/* =========================================================
   PV Sachverständiger – Nikolaus Lohmayr
   Zentrale Gestaltung für alle Seiten.
   Farben & Abstände nur hier unter :root ändern.
   ========================================================= */

:root {
  /* Markenfarben (aus dem Logo) */
  --blau: #0d3b66;          /* Hauptfarbe: Überschriften, Header-Text */
  --blau-dunkel: #082847;   /* Footer, Hover */
  --gelb: #f5a51b;          /* Akzent: Sonne im Logo */
  --gelb-hell: #fff4df;     /* zarte Flächen */

  /* Neutrale Farben */
  --text: #26323f;
  --text-leise: #5b6775;
  --linie: #e3e8ee;
  --hintergrund: #ffffff;
  --flaeche: #f5f7fa;

  /* Maße */
  --breite: 1140px;
  --radius: 14px;
  --schatten: 0 10px 30px rgba(13, 59, 102, 0.08);

  /* Schrift: Systemschriften – schnell & ohne Google-Fonts (DSGVO) */
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--hintergrund);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
h1, h2, h3 { color: var(--blau); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--grau { background: var(--flaeche); }
.section__kopf { max-width: 680px; margin-bottom: 48px; }
.section__kopf--mitte { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #b06f00; margin-bottom: 12px;
}
.leise { color: var(--text-leise); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primaer { background: var(--gelb); color: var(--blau-dunkel); }
.btn--primaer:hover { background: #ffb636; }
.btn--rand { border-color: var(--blau); color: var(--blau); background: transparent; }
.btn--rand:hover { background: var(--blau); color: #fff; }
.btn--hell { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--hell:hover { background: #fff; color: var(--blau); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marke img { width: 56px; height: auto; }
.marke__text { display: flex; flex-direction: column; line-height: 1.15; }
.marke__name { font-weight: 800; color: var(--blau); font-size: 1.05rem; }
.marke__zusatz { font-size: .8rem; color: var(--text-leise); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blau); box-shadow: inset 0 -2px 0 var(--gelb); }
.nav .btn { padding: 10px 20px; font-size: .95rem; box-shadow: none; }
.nav .btn:hover { box-shadow: none; }
.menu-knopf { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--blau); }
.menu-knopf svg { width: 28px; height: 28px; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(245,165,27,.16), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--flaeche) 100%);
}
/* dezentes Solarmodul-Raster im Hintergrund */
.hero__raster {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(13,59,102,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,59,102,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; min-height: calc(100vh - 84px); max-height: 880px; }
.hero__text { padding: 80px 0 110px; align-self: center; }
.hero__text p.unterzeile { font-size: 1.2rem; color: var(--text-leise); max-width: 36ch; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__haken { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-leise); font-weight: 600; font-size: .95rem; }
.hero__haken li { display: flex; align-items: center; gap: 7px; }
.hero__haken svg { width: 18px; height: 18px; color: #e08f00; }

.kicker--pille { background: #fff; border: 1px solid var(--linie); padding: 7px 14px; border-radius: 999px; box-shadow: 0 2px 10px rgba(13,59,102,.06); display: inline-flex; align-items: center; gap: 9px; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gelb); box-shadow: 0 0 0 0 rgba(245,165,27,.6); animation: puls 2.2s infinite; }

/* Gelbe Markierung unter einem Wort, wird "gezeichnet" */
.markiert { position: relative; white-space: nowrap; z-index: 0; }
.markiert::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; z-index: -1;
  background: var(--gelb); opacity: .55; border-radius: 4px;
  transform: scaleX(0); transform-origin: left; animation: zeichnen .9s .9s cubic-bezier(.65,0,.35,1) forwards;
}

.hero__bild { position: relative; align-self: end; display: flex; justify-content: center; }
.hero__portrait { position: relative; z-index: 1; width: 100%; max-width: 470px; filter: drop-shadow(0 30px 40px rgba(13,59,102,.18)); }

/* Warme Karte hinter dem Foto (gleicher Stil wie der Rahmen bei "Über mich"); der Kopf ragt oben heraus */
.buehne {
  position: absolute; bottom: 0; left: 50%; width: 112%; max-width: 540px; height: 64%;
  transform: translateX(-50%); border-radius: 32px 32px 0 0; overflow: hidden;
  background: linear-gradient(165deg, #fff 0%, var(--gelb-hell) 55%, #ffe7b8 100%);
  border: 1px solid #f3e3c4; border-bottom: 0;
  box-shadow: 0 30px 60px -30px rgba(224,143,0,.35);
}
.buehne::before {
  content: ""; position: absolute; right: -18%; top: -22%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,27,.30) 0%, transparent 70%);
}
.buehne::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--gelb), #e08f00);
}

/* schwebende Infokarten */
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 11px 16px 11px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 14px 34px rgba(13,59,102,.16); font-size: .82rem; line-height: 1.3; color: var(--text-leise);
  animation: schweben 6s ease-in-out infinite;
}
.chip strong { display: block; color: var(--blau); font-size: .92rem; }
.chip svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--gelb-hell); color: #d08400; flex: none; }
.chip--1 { left: -4%; bottom: 14%; }
.chip--2 { right: -6%; top: 30%; animation-delay: -2s; }
.chip--3 { left: 0; top: 18%; animation-delay: -4s; }

/* ---------- Vertrauensleiste ---------- */
.vertrauen { background: var(--blau); color: #fff; }
.vertrauen__liste {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  list-style: none; margin: 0; padding: 28px 0;
}
.vertrauen__liste li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .97rem; }
.vertrauen__liste svg { width: 26px; height: 26px; color: var(--gelb); flex: none; }

/* ---------- Karten (Leistungen) ---------- */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.karte:hover { box-shadow: var(--schatten); transform: translateY(-3px); }
.karte__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--gelb-hell);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--blau);
}
.karte__icon svg { width: 26px; height: 26px; }
.karte p { color: var(--text-leise); font-size: .98rem; }
.karte p:last-child { margin-bottom: 0; }
.karte__link { margin-top: auto; font-weight: 700; text-decoration: none; }
.karte--cta { background: var(--blau); border-color: var(--blau); color: #fff; justify-content: center; }
.karte--cta h3 { color: #fff; }
.karte--cta p { color: rgba(255,255,255,.8); }

/* ---------- Zwei Spalten / Vorteile ---------- */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.vorteile { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.vorteile li { display: flex; gap: 16px; align-items: flex-start; }
.vorteile svg { width: 26px; height: 26px; color: var(--gelb); flex: none; margin-top: 2px; }
.vorteile strong { color: var(--blau); display: block; }

/* ---------- Ablauf ---------- */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: schritt; list-style: none; padding: 0; margin: 0; }
.schritte li { position: relative; background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--linie); }
.schritte li::before {
  counter-increment: schritt; content: counter(schritt);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blau); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.schritte p { color: var(--text-leise); margin: 0; }

/* ---------- Über-mich-Vorschau ---------- */
.portrait-rahmen {
  position: relative; border-radius: 28px; overflow: hidden; display: flex; justify-content: center; padding-top: 40px;
  background: linear-gradient(160deg, #fff 0%, var(--gelb-hell) 100%); border: 1px solid #f3e3c4;
}
.portrait-rahmen img { position: relative; z-index: 1; max-width: 380px; width: 85%; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.seitenkopf { background: var(--flaeche); padding: 72px 0 56px; border-bottom: 1px solid var(--linie); }
.seitenkopf p { font-size: 1.15rem; color: var(--text-leise); max-width: 60ch; margin: 0; }

/* ---------- Fließtext (Über mich, Impressum, Datenschutz) ---------- */
.inhalt { max-width: 760px; }
.inhalt h2 { margin-top: 1.8em; font-size: 1.5rem; }
.inhalt h3 { margin-top: 1.5em; }
.inhalt ul { padding-left: 1.2em; }
.inhalt li { margin-bottom: .4em; }
.hinweis-platzhalter { background: #fff3cd; border: 1px dashed #e0a800; padding: 2px 6px; border-radius: 4px; }

/* ---------- Kontakt ---------- */
.kontakt-raster { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.kontakt-liste { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.kontakt-liste li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; }
.kontakt-liste svg { width: 24px; height: 24px; color: var(--blau); flex: none; margin-top: 3px; }
.kontakt-liste a { font-weight: 700; text-decoration: none; }
.kontakt-liste span { display: block; color: var(--text-leise); font-size: .93rem; }

.formular { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 36px; box-shadow: var(--schatten); }
.formular label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.formular input, .formular textarea, .formular select {
  width: 100%; padding: 13px 14px; border: 1px solid #cfd6de; border-radius: 10px;
  font: inherit; font-size: 1rem; margin-bottom: 18px; background: #fff; color: var(--text);
}
.formular input:focus, .formular textarea:focus, .formular select:focus { outline: 2px solid var(--gelb); border-color: var(--gelb); }
.formular textarea { min-height: 140px; resize: vertical; }
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formular .einwilligung { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--text-leise); }
.formular .einwilligung input { width: auto; margin: 4px 0 0; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--blau); color: #fff; padding: 72px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-band__aktionen { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--blau-dunkel); color: rgba(255,255,255,.75); padding: 56px 0 28px; font-size: .95rem; }
.footer__raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--gelb); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__marke { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer__marke img { width: 52px; background: #fff; border-radius: 50%; padding: 4px; }
.footer__marke strong { color: #fff; }
.footer__unten { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .karten { grid-template-columns: 1fr 1fr; }
  .vertrauen__liste { grid-template-columns: 1fr 1fr; }
  .footer__raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-knopf { display: block; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--linie); padding: 8px 20px 20px;
  }
  .nav.offen { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linie); }
  .nav a:hover, .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .hero__inner, .zweispaltig, .kontakt-raster { grid-template-columns: 1fr; }
  .hero__inner { min-height: 0; max-height: none; gap: 0; }
  .hero__text { padding: 40px 0 24px; }
  .hero__portrait { max-width: 340px; }
  .buehne { width: 100%; max-width: 400px; height: 60%; }
  .chip { font-size: .75rem; padding: 8px 12px 8px 9px; }
  .chip strong { font-size: .82rem; }
  .chip svg { width: 28px; height: 28px; padding: 5px; }
  .chip--1 { left: 0; bottom: 8%; }
  .chip--2 { right: 0; top: 52%; }
  .chip--3 { display: none; }
  .faq-raster { grid-template-columns: 1fr; gap: 8px; }
  .schritte { grid-template-columns: 1fr; }
  .zweispaltig { gap: 40px; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .karten, .vertrauen__liste, .footer__raster, .formular .zeile { grid-template-columns: 1fr; }
  .marke__zusatz { display: none; }
  .formular { padding: 24px; }
  .hero__aktionen .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   ANIMATIONEN & EFFEKTE
   Werden automatisch von js/main.js angewendet – im HTML
   muss dafür nichts markiert werden.
   ========================================================= */

/* Lesefortschritt oben */
.fortschritt {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--gelb), #ffcf6b);
  transform: scaleX(var(--fortschritt, 0)); transform-origin: left;
}

/* Header wird beim Scrollen kompakter */
.header { transition: box-shadow .3s ease, background .3s ease; }
.header__inner { transition: height .3s ease; }
.marke img { transition: width .3s ease; }
.header.gescrollt { box-shadow: 0 6px 24px rgba(13,59,102,.08); }
.header.gescrollt .header__inner { height: 68px; }
.header.gescrollt .marke img { width: 46px; }
@media (max-width: 860px) { .header.gescrollt .nav { top: 68px; } }

/* Buttons: Glanz beim Darüberfahren */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--primaer { box-shadow: 0 8px 20px rgba(245,165,27,.35); }
.btn--primaer::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn--primaer:hover::after { transform: translateX(120%); }
.btn .pfeil { transition: transform .2s ease; }
.btn:hover .pfeil { transform: translateX(4px); }

/* Karten: Lichtkegel folgt der Maus */
.karte { position: relative; overflow: hidden; }
.karte::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(245,165,27,.13), transparent 60%);
}
.karte:hover::before { opacity: 1; }
.karte:hover { border-color: #f3d9a6; }
.karte__icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease; }
.karte:hover .karte__icon { transform: scale(1.1) rotate(-6deg); background: var(--gelb); }
.karte--cta::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 60%); }
.karte__link { transition: gap .2s ease, color .2s ease; }

/* Ablauf: Verbindungslinie wird beim Scrollen gezeichnet */
.schritte { position: relative; }
.schritte::before {
  content: ""; position: absolute; top: 52px; left: 49px; right: calc((100% - 48px) / 3 - 49px); height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--gelb), var(--blau));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.65,0,.35,1) .3s;
}
.schritte.sichtbar::before { transform: scaleX(1); }
.schritte { isolation: isolate; }
.schritte li::before { position: relative; z-index: 3; box-shadow: 0 0 0 6px #fff; }

/* Vertrauensleiste: Icons wippen leicht */
.vertrauen__liste li svg { transition: transform .3s ease; }
.vertrauen__liste li:hover svg { transform: translateY(-3px) scale(1.1); }

/* FAQ */
.faq-raster { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #f3d9a6; box-shadow: var(--schatten); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; color: var(--blau);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  display: grid; place-items: center; border-radius: 50%; background: var(--gelb-hell); color: #b06f00;
  font-size: 1.2rem; font-weight: 700; transition: transform .3s ease, background .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gelb); color: var(--blau-dunkel); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--text-leise); }
.faq details[open] p { animation: einblenden-hoch .4s ease; }

/* CTA-Band: leuchtende Sonne im Hintergrund */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,27,.35), transparent 65%);
  animation: atmen 8s ease-in-out infinite;
}
.cta-band__inner { position: relative; }

/* Seitenkopf der Unterseiten: Raster + Sonnenschein */
.seitenkopf { position: relative; overflow: hidden; }
.seitenkopf::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(13,59,102,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(13,59,102,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.seitenkopf::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -80px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,27,.28), transparent 65%);
}
.seitenkopf .container { position: relative; z-index: 1; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.sichtbar { opacity: 1; transform: none; }
.js .reveal--links { transform: translateX(-36px); }
.js .reveal--rechts { transform: translateX(36px); }
.js .reveal--zoom { transform: scale(.94); }

/* ---------- Startanimation Hero ---------- */
.js .hero__text > * { opacity: 0; animation: einblenden-hoch .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero__text > :nth-child(1) { animation-delay: .1s; }
.js .hero__text > :nth-child(2) { animation-delay: .2s; }
.js .hero__text > :nth-child(3) { animation-delay: .35s; }
.js .hero__text > :nth-child(4) { animation-delay: .5s; }
.js .hero__text > :nth-child(5) { animation-delay: .65s; }
.js .hero__portrait { opacity: 0; animation: portrait-rein 1.1s .25s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero .buehne { opacity: 0; animation: buehne-auf 1.2s .1s cubic-bezier(.2,.7,.2,1) forwards; }
.js .chip { opacity: 0; animation: chip-rein .7s cubic-bezier(.34,1.56,.64,1) forwards, schweben 6s ease-in-out infinite; }
.js .chip--1 { animation-delay: 1s, 1.7s; }
.js .chip--2 { animation-delay: 1.2s, -.3s; }
.js .chip--3 { animation-delay: 1.4s, -2.3s; }

/* ---------- Keyframes ---------- */
@keyframes einblenden-hoch { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes portrait-rein { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes buehne-auf { from { opacity: 0; transform: translateX(-50%) translateY(40px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes chip-rein { from { opacity: 0; transform: translateY(16px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes schweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes zeichnen { to { transform: scaleX(1); } }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(245,165,27,.6); } 70% { box-shadow: 0 0 0 10px rgba(245,165,27,0); } 100% { box-shadow: 0 0 0 0 rgba(245,165,27,0); } }
@keyframes atmen { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.15); opacity: 1; } }

@media (max-width: 860px) {
  .faq-raster { grid-template-columns: 1fr; gap: 8px; }
  .schritte::before { z-index: 0; top: 52px; bottom: 80px; left: 49px; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--gelb), var(--blau)); }
  .schritte.sichtbar::before { transform: scaleY(1); }
}

/* Wer in den Systemeinstellungen "Bewegung reduzieren" aktiviert hat, bekommt keine Animationen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero__text > *, .js .hero__portrait, .js .hero .buehne, .js .chip { opacity: 1 !important; transform: none !important; }
  .js .hero .buehne { transform: translateX(-50%) !important; }
  .markiert::after, .schritte::before { transform: none !important; }
}

/* Foto auf "Über mich" bleibt beim Scrollen stehen (nur Desktop) */
@media (min-width: 861px) {
  .portrait-rahmen { position: sticky; top: 110px; }
}
