:root {
  --bg: #0e0c10;
  --surface: #1a1720;
  --text: #f2ede4;
  --muted: #b6ada0;
  --accent: #c9a24a;
  --border: rgba(242, 237, 228, 0.12);

  /* Bildlupe (geteilter Baustein) in den Farben dieser Demo */
  --lupe-grund: rgba(8, 7, 10, 0.95);
  --lupe-schrift: #f2ede4;
  --lupe-akzent: #c9a24a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 0 0 0.5em;
}

.demo-flag {
  background: var(--accent);
  color: #1a1408;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px;
  letter-spacing: 0.02em;
}

.section { padding: 90px 6vw; max-width: 1180px; margin: 0 auto; }

/* Hero — gepinnte Bento-Scroll-Galerie (siehe architecture/one-pager-sop.md) */
.hero-scroll {
  position: relative;
  /* 220vh = 120vh echte Scroll-Strecke (Container minus der gepinnten Viewport-Höhe).
     Vorher 350vh/250vh — das war zu viel Weg bis der Hero durch war. */
  height: 220vh;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(14, 12, 16, 0.75), rgba(14, 12, 16, 0));
  pointer-events: none;
}
.nav__brand { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; letter-spacing: 0.02em; }
.nav__cta { display: inline-block; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); padding: 12px 2px; font-size: 0.9rem; }

.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 16px;
  overflow: hidden;
}

.hero-bento {
  display: grid;
  height: 100%;
  gap: 16px;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 1fr 0.5fr 0.5fr 1fr;
}
.hero-cell {
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(150deg, #2a2430, #141116);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
/* Die Bilder hier sind auf height:100% gesetzt und brauchen den Hoehenbezug
   der Zelle — der KI-Badge-Wrapper muss ihn deshalb durchreichen. */
.hero-cell .ai-bild { height: 100%; }
.hero-cell picture { display: block; width: 100%; height: 100%; }
.hero-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bildausschnitt pro Zelle: die Zellen sind deutlich breiter/schmaler als die
   Quelldateien, der Fokuspunkt liegt jeweils auf Augenhöhe der Motive. */
.hero-cell:nth-child(1) { grid-column: 1 / span 6; grid-row: 1 / span 3; transform-origin: top right; }
.hero-cell:nth-child(1) img { object-position: 50% 46%; }
.hero-cell:nth-child(2) { grid-column: 7 / span 2; grid-row: 1 / span 2; }
.hero-cell:nth-child(2) img { object-position: 50% 30%; }
.hero-cell:nth-child(3) { grid-column: 7 / span 2; grid-row: 3 / span 2; transform-origin: bottom right; }
.hero-cell:nth-child(3) img { object-position: 50% 40%; }
.hero-cell:nth-child(4) { grid-column: 1 / span 3; grid-row: 4; transform-origin: top right; }
.hero-cell:nth-child(4) img { object-position: 50% 36%; }
.hero-cell:nth-child(5) { grid-column: 4 / span 3; grid-row: 4; }
.hero-cell:nth-child(5) img { object-position: 50% 32%; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
              rgba(14, 12, 16, 0.86) 0%,
              rgba(14, 12, 16, 0.62) 45%,
              rgba(14, 12, 16, 0) 78%);
}

.hero-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: min(780px, 86vw);
  text-align: center;
  will-change: transform, opacity;
}
.hero-center.is-gone { pointer-events: none; }

.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; }
.hero-center h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.04; margin-top: 0.3em; }
.hero__sub { color: var(--muted); max-width: 46ch; margin: 20px auto 32px; font-size: 1.05rem; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.hero__scroll { color: var(--muted); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid transparent; }
.hero__scroll:hover { color: var(--text); border-color: var(--accent); }
.hero__meta { color: var(--muted); font-size: 0.85rem; margin: 30px 0 0; letter-spacing: 0.01em; }

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  border: none;
  font-family: inherit;
  line-height: 1.3;
}
.btn--primary { background: var(--accent); color: #1a1408; }
.btn--primary:hover { filter: brightness(1.08); }

/* Signature */
.signature h2, .portfolio h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 44px; }
.signature__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.signature__num { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.signature__item p { color: var(--muted); font-size: 0.95rem; }

/* Portfolio */
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1020px) and (min-width: 781px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
.portfolio__card { background: var(--surface); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.portfolio__img {
  aspect-ratio: 4/5;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  background: linear-gradient(150deg, #2a2430, #141116);
}
.portfolio__card .galerie__knopf { border-radius: 0; }
.portfolio__card h3, .portfolio__card p { padding: 0 18px; }
.portfolio__card h3 { margin-top: 20px; }
.portfolio__card p { color: var(--muted); font-size: 0.9rem; padding-bottom: 22px; }

/* Process */
.process h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 44px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process__item { border-top: 1px solid var(--border); padding-top: 20px; }
.process__num { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.process__item p { color: var(--muted); font-size: 0.92rem; }

/* Buchungsweg direkt unter dem Ablauf — ein Satz, ein Knopf. */
.process__buchen {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.process__buchen p { margin: 0; font-size: 1.02rem; color: var(--text); max-width: 52ch; }

/* Stats */
.stats { padding-top: 0; padding-bottom: 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 46px 6vw;
}
.stats__item { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.stats__item strong { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--accent); }
.stats__item span { color: var(--muted); font-size: 0.85rem; }

/* Stimmen — durchlaufendes Laufband */
.stimmen-sektion { padding-bottom: 32px; }
.stimmen-sektion h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }

/* Der Stopp-Schalter ist optisch entfernt, aber nicht gestrichen: Bewegung, die
   von allein startet und laenger als 5s laeuft, braucht eine Anhalte-Moeglichkeit
   (WCAG 2.2.2). Maus = Hover, Touch = Tippen aufs Band, Tastatur = dieser Knopf,
   der wie der Skip-Link erst beim Fokussieren sichtbar wird. */
.stimmen__pause {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--accent);
  color: #1a1408;
  border: 0;
  border-radius: 0 0 6px 0;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  z-index: 2000;
}
.stimmen__pause:focus { left: 0; position: fixed; top: 0; }

.stimmen {
  overflow: hidden;
  padding: 4px 0 90px;
  /* weiche Kanten, damit die Karten nicht hart abgeschnitten hereinlaufen */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.stimmen__spur {
  display: flex;
  width: max-content;
  animation: stimmen-lauf 70s linear infinite;
}
.stimmen__gruppe { display: flex; }

/* Pausieren: bei Hover, bei Tastaturfokus und per Schalter (WCAG 2.2.2 —
   automatisch startende Bewegung ueber 5s braucht eine Stopp-Moeglichkeit,
   und Hover allein hilft Touch-Nutzerinnen nicht). */
.stimmen:hover .stimmen__spur,
.stimmen:focus-within .stimmen__spur,
.stimmen.is-angehalten .stimmen__spur { animation-play-state: paused; }

@keyframes stimmen-lauf {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.stimme {
  flex: 0 0 min(400px, 76vw);
  margin: 0 12px;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stimme cite {
  display: block;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Kontakt */
.kontakt { background: var(--surface); border-top: 1px solid var(--border); border-radius: 0; }
.kontakt__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
/* Preis ist eine Information, kein Handlungsaufruf — deshalb kein Button daneben.
   Der einzige primaere CTA der Sektion ist der Formular-Knopf. */
.kontakt__preis { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.kontakt__preis-label { color: var(--muted); }
.kontakt__preis strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
}
.kontakt__preis-note { flex-basis: 100%; color: var(--muted); font-size: 0.85rem; }

.kontakt__fakten {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kontakt__fakten li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}
/* Haken rein zeichnerisch, damit Screenreader kein Sonderzeichen vorlesen */
.kontakt__fakten li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hier stand eine Anzahlungs-Option ("zahlung"-Fake-Interaktion). Entfernt, weil
   ein One-Pager ohne Buchungsvorgang keinen Betrag nennen kann: "Session ab 420 €"
   ist eine Untergrenze, 20 % davon sind also keine feste Zahl. Die Zahlungs-
   Simulation als Verkaufsargument deckt die Onlineshop-Demo per "checkout" ab. */

.kontakt__form { display: flex; flex-direction: column; gap: 16px; }
.kontakt__form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.kontakt__form input, .kontakt__form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.kontakt__form button { margin-top: 6px; }
.form-note { color: var(--muted); font-size: 0.78rem; margin: 4px 0 0; }

.footer {
  display: flex; justify-content: space-between;
  padding: 26px 6vw;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 767px) {
  .hero-scroll { height: 190vh; }
  .hero-stage { padding: 10px; }

  /* Hochkant-Zellen: die beiden Querformat-Motive fliegen raus, es bleiben
     die drei Hochformate (Zelle 1 per <picture> auf hero-image.webp). */
  .hero-bento {
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1.55fr 1fr;
  }
  .hero-cell:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  .hero-cell:nth-child(1) img { object-position: 50% 40%; }
  .hero-cell:nth-child(2) { grid-column: 1; grid-row: 2; display: block; }
  .hero-cell:nth-child(3) { grid-column: 2; grid-row: 2; display: block; transform-origin: top right; }
  .hero-cell:nth-child(4), .hero-cell:nth-child(5) { display: none; }

  /* --- Hero-Text auf kleinen Schirmen ---------------------------------
     Problem war: die Nav brach auf zwei Zeilen (96px hoch), der Textblock
     war 492px hoch und wurde im GANZEN Bild zentriert. Ab Fensterhoehen
     unter ~684px lagen beide uebereinander. Also: Nav einzeilig halten,
     Text verkleinern und unterhalb der Nav zentrieren. */

  .demo-flag { font-size: 0.68rem; padding: 5px 10px; }

  .nav { padding: 14px 5vw; }
  .nav__brand { font-size: 1.1rem; }
  .nav__cta { font-size: 0.78rem; padding: 8px 2px; }

  /* um die halbe Nav-Hoehe nach unten versetzt = mittig im freien Bereich */
  .hero-center {
    top: calc(50% + 26px);
    width: min(560px, 88vw);
  }
  .hero-center .eyebrow { font-size: 0.68rem; letter-spacing: 0.08em; }
  .hero-center h1 { font-size: clamp(1.75rem, 7.4vw, 2.5rem); line-height: 1.08; }
  .hero__sub { font-size: 0.95rem; max-width: 34ch; margin: 14px auto 22px; }
  .hero__actions { gap: 16px; }
  .hero__meta { font-size: 0.76rem; margin-top: 20px; }

  /* Der Text liegt auf den Bildern. Frueher lag hier ein deckender Schleier
     ueber der ganzen Flaeche — der hat die Bilder erschlagen, also genau das
     zunichte gemacht, wofuer die Farbmotive da sind. Jetzt nur noch eine
     leichte Grundabdunklung an den Raendern; die eigentliche Lesbarkeit macht
     der lokale Verlauf hinter dem Textblock (siehe .hero-center::before). */
  .hero-scrim {
    background: linear-gradient(180deg,
                rgba(14, 12, 16, 0.42) 0%,
                rgba(14, 12, 16, 0.18) 30%,
                rgba(14, 12, 16, 0.18) 70%,
                rgba(14, 12, 16, 0.46) 100%);
  }

  /* Abdunklung wandert mit dem Text statt ueber dem ganzen Bild zu liegen,
     mit weichem Auslauf, damit keine sichtbare Kante entsteht. */
  .hero-center::before {
    content: "";
    position: absolute;
    inset: -26px -20px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
                rgba(14, 12, 16, 0.93) 0%,
                rgba(14, 12, 16, 0.86) 45%,
                rgba(14, 12, 16, 0.55) 75%,
                rgba(14, 12, 16, 0) 100%);
  }
}

/* Niedrige Fenster (Handy mit Browserleiste, Querformat): noch eine Stufe
   kompakter, die Kennzahlenzeile weicht. */
@media (max-width: 767px) and (max-height: 700px) {
  .hero-center h1 { font-size: clamp(1.55rem, 6.6vw, 2.1rem); }
  .hero__sub { font-size: 0.88rem; margin: 12px auto 18px; }
  .hero__meta { display: none; }
}

@media (max-width: 780px) {
  .signature__grid, .portfolio__grid, .process__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); padding: 32px 6vw; }
  .stimmen { padding-bottom: 60px; }
  .stimme { padding: 24px 22px; font-size: 1.15rem; }
  .kontakt__inner { grid-template-columns: 1fr; }
  .section { padding: 60px 6vw; }
  .footer { flex-direction: column; gap: 6px; }
}

/* Accessibility: focus, motion, skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1408;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

  /* Scroll-Galerie wird zu einem statischen Raster mit Text darunter */
  .hero-scroll { height: auto; }
  .hero-stage { position: static; height: auto; padding: 96px 6vw 60px; }
  .hero-bento { height: 72vh; min-height: 460px; }
  .hero-scrim { display: none; }
  .hero-center {
    position: static;
    transform: none;
    width: auto;
    max-width: 780px;
    margin: 48px auto 0;
    opacity: 1;
  }

  /* Laufband wird zu einem ruhigen, umbrechenden Raster */
  .stimmen { -webkit-mask-image: none; mask-image: none; overflow: visible; padding: 0 6vw 60px; }
  .stimmen__spur { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .stimmen__gruppe { flex-wrap: wrap; justify-content: center; }
  .stimmen__gruppe[aria-hidden="true"] { display: none; }
  .stimme { margin: 0 12px 24px; }
  .stimmen__pause { display: none; }
}

/* Pflichtseiten der Betreiberin — liegen eine Ebene ueber den Demos */
.rechtliches a { color: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 3px 0; }
.rechtliches a:hover { text-decoration-thickness: 2px; }
