/* Küchenmarkt Götz — Landing (Design-DNA: edel · ruhig · familiengeführt) */
:root {
  --ink: #1B1B1E;          /* Anthrazit-Stein, warm */
  --ink-soft: #26262A;
  --paper: #F4F2EE;        /* warmes Off-White */
  --stone: #8A8886;        /* Logo-Grau abgetönt */
  /* Akzent: Logo-Rot als Signalfarbe (Entscheidung Elvis 2026-08-14, s. STYLEGUIDE.md).
     Rot nur auf Handlung — Linien laufen in Stein-Grau. */
  --accent: #E30613;          /* Logo-Rot */
  --accent-soft: #8A888659;   /* Hairlines, Ränder: Stein-Grau */
  --accent-ink: #F4F2EE;      /* Text auf Accent-Fläche */
  --accent-glow: 14%;         /* Deckkraft der Button-Schatten */
  /* Schrift: die vom CD gemeinte Paarung, sauber ausgeliefert */
  --font-display: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Spacing-Scale (8er-Basis) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --radius: 6px;
  --radius-pill: 999px;       /* CD: Bestandsseite setzt alle Buttons auf Pill */
  --container: 1160px;
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Grundton ist hell. Dunkel sind nur drei Stellen: Hero, Bewertungen, Fuß —
   das gibt den Hell/Dunkel-Rhythmus, ohne die Seite zu erdrücken. */
body {
  font-family: var(--font-body); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6;
}
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
}
/* Auf den dunklen Blöcken dreht sich die Eyebrow-Farbe um */
.takeover .eyebrow { color: var(--stone); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s2) var(--s3);
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
/* Über dem dunklen Hero steht die Leiste hell auf Dunkel, ab dem Scroll hell auf Hell */
.topbar--solid {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  padding-block: var(--s1);
  box-shadow: 0 1px 0 var(--accent-soft);
}
.topbar--solid .topbar__tel { color: var(--ink); }
.topbar--solid .topbar__claim { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.topbar__brand { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.topbar__logo {
  width: 130px; height: auto; display: block; flex: none;
  background: var(--paper); padding: 6px 10px; border-radius: var(--radius);
}
/* Claim bleibt stehen, wenn die Hero-Zeile beim Zoom ausblendet */
.topbar__claim {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--stone); padding-left: var(--s2);
  border-left: 1px solid var(--accent-soft); white-space: nowrap;
}
/* Tablet: dort drängeln Telefon + Button, Claim weicht */
@media (min-width: 768px) and (max-width: 1023px) { .topbar__claim { display: none; } }
/* Mobil steht nur das Logo oben — Kurzform passt */
@media (max-width: 767px) {
  .topbar__claim { font-size: 10px; letter-spacing: .18em; padding-left: var(--s1); }
  .topbar__claim span { display: none; }
}
.topbar__actions { display: flex; align-items: center; gap: var(--s2); }
.topbar__tel {
  color: var(--paper); text-decoration: none; font-weight: 500; font-size: 15px;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar__tel:hover { border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 30px; border-radius: var(--radius-pill);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--small { padding: 10px 20px; font-size: 13.5px; }
.btn--accent {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) var(--accent-glow), transparent);
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) calc(var(--accent-glow) * 1.7), transparent);
}
.btn--ghost {
  color: var(--paper); border: 1px solid var(--accent-soft);
}
.btn--ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- Zoom-Takeover-Hero ---------- */
.takeover { height: 240vh; position: relative; }
@media (max-width: 767px) { .takeover { height: 170vh; } }

.takeover__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
/* Hintergrund: echte Weitwinkel-Küche, scharf, nur abgedunkelt —
   das kleine Bild davor bleibt der Held, der Raum dahinter gibt Tiefe. */
.takeover__bg { position: absolute; inset: 0; background: var(--ink); overflow: hidden; }
.takeover__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) contrast(1.02) brightness(.6);   /* scharf, nur abgedunkelt */
}
.takeover__bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, #1B1B1E1A 0%, #1B1B1EB8 82%);
}
.takeover__card {
  position: relative; width: min(82vw, 640px); aspect-ratio: 3 / 2;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 120px #000000AA, 0 0 0 1px var(--accent-soft);
  transform: scale(var(--p, 1));
  will-change: transform;
}
.takeover__card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}
/* Scrim liegt auf der Karte, nicht auf dem Text — so deckt er auch dann die volle
   Fläche, wenn der Text gegen-skaliert wird. */
.takeover__card::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #1B1B1E4D 0%, #1B1B1EA6 42%, #1B1B1EE6 100%);
}
.takeover__copy {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; gap: var(--s2);
  text-align: center; padding: var(--s3);
  color: var(--paper);   /* Grundfarbe der Seite ist dunkel — im Hero dreht sie sich um */
  /* Headline und CTA bleiben über die ganze Zoom-Strecke stehen — es darf keinen
     Scrollpunkt geben, an dem nur ein Bild ohne Angebot und ohne Knopf zu sehen ist.
     Gegen-Skalierung: die Karte wächst um --p, der Text rechnet das raus und
     behält seine Größe. Sonst blähen sich Headline und Buttons mit auf. */
  transform: scale(calc(1 / var(--p, 1)));
  transform-origin: center center;
  will-change: transform;
}
/* Nur die Kopfzeile tritt zurück, wenn das Bild übernimmt */
.takeover__copy .eyebrow { opacity: calc(1 - var(--t, 0) * 2.2); }
.takeover__copy h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 4.6vw, 3rem); line-height: 1.14; letter-spacing: .015em;
  text-shadow: 0 2px 24px #1B1B1E80;
}
@media (max-width: 767px) {
  .takeover__card { width: 88vw; aspect-ratio: 3 / 4; }
  .takeover__card::after { background: linear-gradient(200deg, #1B1B1E26 0%, #1B1B1EDB 85%); }
}
/* Hero-Headline bleibt einfarbig: Rot auf dem bewegten Bild verliert Kontrast,
   das Signal übernimmt der CTA darunter. */
.takeover__copy h1 em { font-style: normal; color: inherit; }
/* Chip, damit die Zeile auch über hellen Bildstellen liest */
.takeover__copy .eyebrow {
  justify-self: center; padding: 8px 18px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink) 74%, transparent);
  backdrop-filter: blur(6px); color: var(--paper);
}
.takeover__ctas {
  display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap;
  margin-top: var(--s2);
}
.takeover__hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone);
  display: grid; justify-items: center; gap: 8px;
  opacity: calc(1 - var(--t, 0) * 3);
}
.takeover__hintline {
  width: 1px; height: 42px;
  background: linear-gradient(var(--stone), transparent);
  animation: hintPulse 2.2s ease-in-out infinite;
}
@keyframes hintPulse { 50% { transform: scaleY(.55); transform-origin: top; } }

/* Einstiegs-Stagger */
.takeover__copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.takeover__copy .eyebrow { animation-delay: .15s; }
.takeover__copy h1 { animation-delay: .3s; }
.takeover__copy .takeover__ctas { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Grundraster Sektionen ---------- */
.wrap { width: min(100% - 2 * var(--s3), var(--container)); margin-inline: auto; }
.h2 {
  font-family: var(--font-display); font-weight: 300; line-height: 1.18;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: 0; margin-top: var(--s2);
}
.h2 em { font-style: normal; color: var(--accent); }
.lead { color: color-mix(in srgb, currentColor 78%, transparent); max-width: 46ch; margin-top: var(--s2); line-height: 1.65; }
.eyebrow--ink { color: color-mix(in srgb, var(--ink) 52%, transparent); }

/* Reveal-Stagger (Scroll-Animation 2)
   Nur versteckt, wenn JS läuft — sonst bliebe die halbe Seite unsichtbar. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Küchen-Galerie ---------- */
.galerie { padding-bottom: var(--s6); }
.galerie__gitter { list-style: none; padding: 0; margin-top: var(--s4); display: grid; gap: var(--s2); }
@media (min-width: 620px) { .galerie__gitter { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .galerie__gitter { grid-template-columns: repeat(3, 1fr); } }
.galerie__gitter li { overflow: hidden; border-radius: var(--radius); background: #fff; }
.galerie__gitter li:nth-child(2), .galerie__gitter li:nth-child(5) { transition-delay: .07s; }
.galerie__gitter li:nth-child(3), .galerie__gitter li:nth-child(6) { transition-delay: .14s; }
.galerie__gitter img {
  display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  filter: saturate(.92) contrast(1.04);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.galerie__gitter li:hover img { transform: scale(1.05); }
.galerie__hinweis { margin-top: var(--s2); font-size: 13.5px; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.galerie__hinweis a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); margin-left: 6px; }
.galerie { scroll-margin-top: 84px; }

/* ---------- Termin ---------- */
.termin { padding: var(--s6) 0; }
.termin__grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .termin__grid { grid-template-columns: 1fr 1.05fr; gap: var(--s5); } }
.termin__intro .lead { color: color-mix(in srgb, var(--ink) 76%, transparent); }
.termin__fakten { margin-top: var(--s4); display: grid; gap: var(--s2); }
.termin__fakten dt {
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}
.termin__fakten dd { margin: 2px 0 0; font-size: 15.5px; }
.termin__fakten a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }

.termin__box {
  background: #fff; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: var(--radius); padding: var(--s4);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--ink) 8%, transparent);
}
@media (max-width: 599px) { .termin__box { padding: var(--s3); } }

/* Kalender-Embed (nur sichtbar, wenn data-embed gesetzt ist) */
.kalender:empty { display: none; }
.kalender { margin-bottom: var(--s4); }
.kalender iframe { width: 100%; min-height: 620px; border: 0; border-radius: var(--radius); display: block; }

/* ---------- Formular ---------- */
.form { display: grid; gap: var(--s2); }
.form__hint { font-size: 13px; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; /* 16px: verhindert iOS-Zoom beim Fokus */
  color: var(--ink); background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: var(--radius); padding: 12px 14px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field-row { display: grid; gap: var(--s2); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.55; margin-top: var(--s1); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 1px; }
.btn--block { width: 100%; text-align: center; min-height: 52px; border: 0; font-family: inherit; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__sicher {
  list-style: none; padding: 0; margin-top: var(--s1);
  display: grid; gap: 6px; font-size: 13px; line-height: 1.45;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.form__sicher li { padding-left: 20px; position: relative; }
.form__sicher li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.form__status { font-size: 14px; min-height: 1.2em; }
.form__status[data-ok="1"] { color: #1E7A4B; }
.form__status[data-ok="0"] { color: #B3261E; }

/* ---------- Familie ---------- */
.familie { padding: var(--s6) 0; }
.familie__grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .familie__grid { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.familie__bild { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--accent-soft); }
.familie__bild img { width: 100%; height: auto; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.familie__bild:hover img { transform: scale(1.04); }
.familie__text p { color: color-mix(in srgb, var(--ink) 74%, transparent); line-height: 1.75; margin-top: var(--s2); max-width: 50ch; }
.familie__text .btn { margin-top: var(--s3); }

/* ---------- Signature: die Linie zeichnet sich (Scroll-Animation 3) ---------- */
.lichtlinie { margin: var(--s5) 0 0; display: grid; place-items: center; }
.lichtlinie span {
  display: block; height: 1px; width: min(100% - 2 * var(--s3), var(--container));
  background: linear-gradient(90deg, transparent, var(--stone), transparent);
  transform: scaleX(var(--draw, 0)); transform-origin: center; will-change: transform;
}

/* ---------- Kurz-Infos ---------- */
.kurz { padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--accent-soft); }
.kurz__grid { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 860px) { .kurz__grid { grid-template-columns: 1.15fr .85fr; gap: var(--s5); } }
.kurz__fakten { margin-top: var(--s3); display: grid; gap: var(--s2); }
.kurz__fakten dt {
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}
.kurz__fakten dd { margin: 3px 0 0; font-size: 15.5px; line-height: 1.6; }
.kurz__fakten a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.kurz__mehr {
  border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: var(--s3);
  display: grid; gap: var(--s2); justify-items: start;
}
.kurz__mehr p { font-size: 15px; line-height: 1.65; color: color-mix(in srgb, var(--ink) 70%, transparent); }

/* ---------- Fuß ---------- */
.fuss { background: var(--ink); color: var(--paper); padding: var(--s5) 0 calc(var(--s5) + 60px); font-size: 14.5px; }
.fuss__grid { display: grid; gap: var(--s3); color: color-mix(in srgb, var(--paper) 68%, transparent); }
@media (min-width: 700px) { .fuss__grid { grid-template-columns: 1fr 1fr; } }
.fuss__logo { background: var(--paper); padding: 8px 12px; border-radius: var(--radius); margin-bottom: var(--s2); display: block; width: 150px; height: auto; }
.fuss p { line-height: 1.7; }
.fuss a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.fuss a:hover { border-color: var(--accent); }
@media (min-width: 768px) { .fuss { padding-bottom: var(--s5); } }

/* ---------- Sticky Mobile CTA ---------- */
.stickybar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1.6fr;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--accent-soft);
  padding: 10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));
  gap: 10px;
}
.stickybar a {
  display: grid; place-items: center; min-height: 48px;
  text-decoration: none; font-weight: 600; font-size: 15px; border-radius: var(--radius);
}
.stickybar__call { color: var(--paper); border: 1px solid var(--accent-soft); }
.stickybar__cta { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 767px) {
  .stickybar { display: grid; }
  .topbar__tel { display: none; }
  .topbar .btn { display: none; } /* sticky bar übernimmt mobil */
}

/* ---------- Powered-by Schwarzwald Agent ---------- */
.pbStrip {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 26px 16px 22px; text-align: center;
  background: #FEFDF9; border-top: 1px solid #E8E0D5;
}
.pbStrip .pbLink {
  display: inline-flex; align-items: center; gap: 11px;
  opacity: .75; transition: opacity .18s ease; text-decoration: none;
}
.pbStrip .pbLink:hover { opacity: 1; text-decoration: none; }
.pbStrip .pbLabel {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .28em; color: #8B7355;
}
.pbStrip .pbIcon { height: 32px; width: 32px; object-fit: contain; display: block; }
.pbStrip .pbName {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: #0D4A3C;
}

@media (prefers-reduced-motion: reduce) {
  .takeover { height: auto; }
  .takeover__stage { position: static; height: 100svh; }
  .takeover__card { transform: none; }
  .takeover__copy { opacity: 1; }
  .takeover__copy > * { animation: none; }
  .takeover__hint { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lichtlinie span { transform: none; }
  .familie__bild img { transition: none; }
}
