/* Ad Maiora Mastermind – admaioramastermind.de */

@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'OpenSans'; src: url('/fonts/opensans.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'OpenSans'; src: url('/fonts/opensans-ext.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #5a564f;
  --soft: #8a8378;
  --line: #e6e2da;
  --gold: #C9B27C;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'OpenSans', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --wrap: 68rem;
  --text: 34rem;
  --sec: clamp(4rem, 11vw, 8rem);
  --ease: cubic-bezier(.2, .65, .2, 1);
  --w: #fff;
  --w0: rgba(255,255,255,0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.72;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  text-align: center;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, :focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.008em; text-wrap: balance; }

/* ---------- Bausteine ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.text { max-width: var(--text); margin-left: auto; margin-right: auto; }
.stack { display: flex; flex-direction: column; gap: 1.1rem; align-items: center; }
.stack > * { width: 100%; }
.kicker { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.rule { display: block; width: 26px; height: 1px; background: var(--gold); margin: 0.2rem auto 0.4rem; }
h2 { font-size: clamp(2rem, 6.2vw, 3.1rem); line-height: 1.1; }
h2 + p { margin-top: 0.4rem; }
.strong { font-weight: 600; }
.close { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 1.3; margin-top: 0.4rem; }
.quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 5.6vw, 2.5rem); line-height: 1.25; letter-spacing: -0.005em; text-wrap: balance; }
.sub { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.25; margin-top: 0.8rem; }
.muted { color: var(--muted); }

section { padding-top: var(--sec); padding-bottom: var(--sec); }
section.tight { padding-top: calc(var(--sec) * 0.55); }
.cv.gr .tx { padding-bottom: 1.4rem; }
.warum { padding-top: 0.4rem; }

/* ---------- Seiten (cv): ein Bild über die ganze Fläche, der weiße Verlauf schneidet den Platz für den Text hinein ----------
   Handy: Bild oben (feste Höhe), Text beginnt im unteren Drittel des Bildes, wo es schon weiß ist.
   Desktop: Bild hinter der ganzen Sektion, Text in der weißen Hälfte (links oder rechts). */
.cv { position: relative; padding: 0; --imgh: min(54svh, 26rem); }
.cv .bg { position: relative; z-index: 0; height: var(--imgh); overflow: hidden; }
.cv .bg picture, .cv .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cv .bg::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--w) 0%, rgba(255,255,255,.6) 7%, var(--w0) 18%, var(--w0) 46%, rgba(255,255,255,.86) 68%, rgba(255,255,255,.97) 78%, var(--w) 100%); }
.cv .tx { position: relative; z-index: 1; margin-top: calc(var(--imgh) * -0.24); padding-bottom: var(--sec); }
.desk { display: none; }

/* Bewegung: Bilder setzen sich beim Erscheinen ganz leicht */
html.js .settle img { transform: scale(1.045); transition: transform 2.4s var(--ease); }
html.js .settle.in img { transform: none; }

/* ---------- Kopf & Hero: das Cover (Stand v5, von Janis freigegeben) ---------- */
.hero { position: relative; padding: 0; }
.brand { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: max(1.6rem, env(safe-area-inset-top)) var(--gutter) 0; }
.brand svg { width: 190px; height: auto; }
.brand .line { margin-top: 0.9rem; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; text-wrap: balance; max-width: 22rem; }
.hero .bg { position: relative; z-index: 0; width: 100%; aspect-ratio: 4 / 5; margin-top: -2.4rem; overflow: hidden; }
.hero .bg picture, .hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero .bg::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--w) 0%, rgba(255,255,255,.7) 10%, var(--w0) 26%, var(--w0) 62%, rgba(255,255,255,.8) 80%, var(--w) 100%); }
.hero .shade { display: none; }
.hero .wrap { position: relative; z-index: 2; margin-top: -4.2rem; padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero .latin .quote { font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 6.4vw, 2.6rem); }
.hero .latin .de { margin-top: 0.7rem; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.hero .latin .nur { margin-top: 1.4rem; font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.hero .kicker { display: none; }

/* Die These */
.statement { padding-top: calc(var(--sec) * 0.8); padding-bottom: calc(var(--sec) * 0.7); }
.statement h1 { font-size: clamp(1.9rem, 8.1vw, 3.4rem); line-height: 1.1; }
.statement h1 .l { display: block; }
.statement .lead { margin-top: 1.1rem; color: var(--muted); }

/* ---------- Beweis ---------- */
.stats { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 22rem; margin: 0 auto; }
.stat { border-top: 1px solid var(--gold); padding-top: 1.1rem; }
.stat .z { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 9vw, 3.9rem); line-height: 1; color: var(--gold); letter-spacing: -0.01em; }
.stat .l { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.stats + p { margin-top: 2.8rem; max-width: 30rem; margin-left: auto; margin-right: auto; }

/* ---------- Listen ---------- */
.ebenen { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 2.6rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.ebene { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.ebene b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.35rem; }
.ebene p { color: var(--muted); font-size: 0.95rem; }
.ebenen .ebene:last-child { border-bottom: 1px solid var(--line); }

/* Drei Schritte */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 2.4rem; max-width: 30rem; margin-left: auto; margin-right: auto; }
.step { position: relative; padding: 2rem 0 2.4rem; }
.step + .step::before { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 2rem; background: var(--gold); transform: translateX(-50%); }
.step + .step { padding-top: 3.2rem; }
.step .n { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 12vw, 4.8rem); line-height: 0.9; color: var(--gold); }
.step h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.15; margin-top: 0.9rem; }
.step p { margin-top: 0.8rem; color: var(--muted); }

/* FAQ */
.faq { margin-top: 2.4rem; max-width: 40rem; margin-left: auto; margin-right: auto; }
.qa { border-top: 1px solid var(--line); padding: 1.6rem 0 1.8rem; }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.qa p { margin-top: 0.75rem; color: var(--muted); }

/* Gründer */
.faces { display: flex; justify-content: center; gap: 2rem; margin: 1.2rem 0 0.6rem; }
.face { text-align: center; }
.face img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); margin: 0 auto; }
.face span { display: block; margin-top: 0.6rem; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }

/* Schluss */
.latin .quote { font-style: italic; font-weight: 500; }
.latin .de { margin-top: 0.7rem; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.latin .nur { margin-top: 1.6rem; font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
/* Schluss: erst der Satz, darunter noch einmal sie – das Bild kommt aus dem Weiß und läuft in den Footer */
.cv.schluss .tx { margin-top: 0; padding-top: calc(var(--sec) * 0.3); padding-bottom: 0; }
.cv.schluss .bg { margin-top: -12%; height: min(64svh, 30rem); }
.cv.schluss .bg::after { background: linear-gradient(180deg, var(--w) 0%, rgba(255,255,255,.92) 20%, var(--w0) 46%, var(--w0) 72%, rgba(255,255,255,.9) 90%, var(--w) 100%); }

/* Footer */
footer { padding: 0.5rem 0 max(2.5rem, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 0.86rem; }
footer .wm { display: flex; justify-content: center; }
footer .wm svg { width: 170px; height: auto; }
footer .mail { display: inline-block; margin-top: 1.6rem; padding: 0.4rem 0; letter-spacing: 0.06em; color: var(--ink); min-height: 44px; line-height: 44px; }
footer .mail:hover { color: var(--gold); }
footer nav { margin-top: 0.2rem; display: flex; justify-content: center; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
footer nav a { display: inline-block; padding: 0.6rem 0.2rem; min-height: 44px; }
footer nav a:hover { color: var(--ink); }
footer .copy { margin-top: 0.8rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }

/* Unterseiten */
.page { padding-top: clamp(2rem, 6vw, 4rem); text-align: left; }
.page h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1; margin-bottom: 1.5rem; }
.page h2 { font-size: 1.55rem; font-weight: 600; margin-top: 2.4rem; margin-bottom: 0.6rem; }
.page p { margin-top: 0.6rem; }
.page a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--gold); overflow-wrap: anywhere; }
.page .back { display: inline-block; margin-top: 3rem; text-decoration: none; font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); min-height: 44px; line-height: 44px; }
.page .back:hover { color: var(--ink); }
.page .text { margin-left: 0; }
.topbar { display: flex; justify-content: center; padding: 1.6rem 0 0; }
.topbar svg { width: 120px; height: auto; }
.page + footer { border-top: 1px solid var(--line); padding-top: 3rem; margin-top: 3rem; }

/* ---------- Bewegung ---------- */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
/* Textblöcke erscheinen Zeile für Zeile, ruhig gestaffelt */
html.js .rv.stack { opacity: 1; transform: none; transition: none; }
html.js .rv.stack > * { opacity: 0; transform: translateY(22px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
html.js .rv.stack.in > * { opacity: 1; transform: none; }
html.js .rv.stack > :nth-child(2) { transition-delay: .1s; } html.js .rv.stack > :nth-child(3) { transition-delay: .2s; }
html.js .rv.stack > :nth-child(4) { transition-delay: .3s; } html.js .rv.stack > :nth-child(5) { transition-delay: .4s; }
html.js .rv.stack > :nth-child(6) { transition-delay: .5s; } html.js .rv.stack > :nth-child(7) { transition-delay: .6s; }
html.js .rv.stack > :nth-child(n+8) { transition-delay: .7s; }
html.js .rv.d1 { transition-delay: .12s; } html.js .rv.d2 { transition-delay: .24s; } html.js .rv.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv, html.js .rv.stack > *, html.js .settle img { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 52rem; }
  .ebenen { grid-template-columns: 1fr 1fr; column-gap: 3rem; max-width: 52rem; }
  .ebenen .ebene:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .cv { --imgh: min(60vh, 34rem); }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  body { font-size: 1.0625rem; }
  .desk { display: block; } .mob { display: none; }

  /* Cover Desktop (Stand v5): Wortmarke oben mittig, sie links, der Satz rechts */
  .hero { min-height: min(92vh, 58rem); display: flex; flex-direction: column; justify-content: center; }
  .brand { position: absolute; top: 0; left: 0; right: 0; padding: 2.6rem 0 0; }
  .brand svg { width: 240px; }
  .brand .line { margin-top: 1.1rem; font-size: 0.9rem; max-width: none; }
  .hero .bg { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; }
  .hero .bg::after { display: none; }
  .hero .bg img { object-position: 50% 60%; }
  .hero .shade { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.5) 12%, var(--w0) 26%),
    linear-gradient(0deg, var(--w) 0%, rgba(255,255,255,.6) 10%, var(--w0) 26%),
    linear-gradient(270deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.5) 30%, var(--w0) 55%); }
  .hero .wrap { margin-top: 0; padding: 0; display: flex; justify-content: flex-end; }
  .hero .latin { width: 46%; text-align: center; padding-top: 6vh; }
  .hero .latin .quote { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
  .statement { padding-top: calc(var(--sec) * 0.9); padding-bottom: calc(var(--sec) * 0.6); }
  .statement .text { max-width: 44rem; }
  .statement h1 { font-size: clamp(2.6rem, 3.8vw, 3.6rem); }
  .statement h1 .l { display: inline; }
  .statement .lead { max-width: 36rem; margin-left: auto; margin-right: auto; font-size: 1.125rem; }

  /* Seiten: Bild hinter der ganzen Sektion, Text in der weißen Hälfte */
  .cv { min-height: min(100vh, 60rem); display: flex; align-items: center; }
  .cv .bg { position: absolute; inset: 0; height: auto; z-index: 0; }
  .cv .bg::after { background:
    linear-gradient(90deg, var(--w) 0%, var(--w) 38%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.45) 60%, var(--w0) 72%),
    linear-gradient(180deg, var(--w) 0%, var(--w0) 10%, var(--w0) 90%, var(--w) 100%); }
  .cv.r .bg::after { background:
    linear-gradient(270deg, var(--w) 0%, var(--w) 38%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.45) 60%, var(--w0) 72%),
    linear-gradient(180deg, var(--w) 0%, var(--w0) 10%, var(--w0) 90%, var(--w) 100%); }
  /* Der Text steht mittig in seiner Bildschirmhälfte (links oder rechts), das Motiv mittig in der anderen */
  .cv .tx { margin-top: 0; padding: clamp(5rem, 10vh, 8rem) 0; width: 100%; text-align: left; }
  .cv .tx .wrap { max-width: none; padding: 0; }
  .cv .tx .text { width: 32rem; max-width: 32rem; margin-left: max(var(--gutter), calc(25vw - 16rem)); margin-right: 0; }
  .cv.r .tx .text { margin-left: min(calc(75vw - 16rem), calc(100vw - 32rem - var(--gutter))); margin-right: 0; }
  .cv .tx .stack { align-items: flex-start; }
  .cv .tx .rule { margin-left: 0; }

  /* Lange Seiten (Gründer): das Bild bleibt stehen, der Text läuft darüber */
  .cv.long { display: block; }
  .cv.long .bg { position: sticky; top: 0; height: 100vh; inset: auto; }
  .cv.long .tx { margin-top: -100vh; min-height: 100vh; display: flex; align-items: center; }

  /* Der Weg: Text oben mittig über dem Bild, die drei Schritte unten im Weiß */
  .cv.weg { display: block; }
  .cv.weg .bg { bottom: auto; height: 68%; }
  .cv.weg .bg::after { background: linear-gradient(180deg, var(--w) 0%, rgba(255,255,255,.96) 16%, rgba(255,255,255,.6) 30%, var(--w0) 42%, var(--w0) 58%, rgba(255,255,255,.9) 84%, var(--w) 100%); }
  .cv.weg .tx { text-align: center; padding: clamp(4rem, 8vh, 6rem) 0 0; }
  .cv.weg .tx .text { margin-left: auto; margin-right: auto; }
  .cv.weg .tx .stack { align-items: center; } .cv.weg .tx .rule { margin-left: auto; }
  .cv.weg .stepwrap { position: relative; z-index: 1; padding: clamp(20rem, 42vh, 26rem) 0 clamp(4rem, 8vh, 6rem); }

  /* Schluss: wie der Hero, nur ruhiger – Text links, sie rechts */
  .cv.schluss { min-height: min(92vh, 56rem); }
  .cv.schluss .tx { padding: 0; }
  .cv.schluss .bg { margin-top: 0; height: auto; }
  .cv.schluss .bg img { object-position: 72% 60%; }
  .cv.schluss .bg::after { background:
    linear-gradient(90deg, var(--w) 0%, var(--w) 22%, rgba(255,255,255,.9) 36%, rgba(255,255,255,.3) 52%, var(--w0) 64%),
    linear-gradient(180deg, var(--w) 0%, var(--w0) 12%, var(--w0) 86%, var(--w) 100%); }
  .cv.schluss .tx .text { width: 30rem; max-width: 30rem; margin-left: max(var(--gutter), calc(25vw - 15rem)); }
  .cv.schluss .tx { text-align: center; }
  .cv.schluss .tx .stack { align-items: center; text-align: center; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; max-width: var(--wrap); margin-top: 1rem; }
  .step { padding: 1.5rem 0 1rem; }
  .step + .step { padding-top: 1.5rem; } .step + .step::before { display: none; }
  .step .n { font-size: 5.5rem; }
  .step h3 { font-size: 1.85rem; margin-top: 1rem; }
  .faq { max-width: 44rem; }
  footer .wm svg { width: 200px; }
  .stat .l { max-width: 15rem; margin-left: auto; margin-right: auto; }
}
