/* ==========================================================================
   Küchen Riese Senftenberg — Stylesheet
   Farben und Typografie nach dem Entwurf „Küchen Riese Senftenberg GmbH".
   Heller Look: Warmes Porzellan als Grundfläche, Weiß für Karten,
   Graphit für Abschluss-CTA und Footer, Riese-Rot als einzige Akzentfarbe.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, Variable Fonts, nur latin) ---------
   Zwei Dateien (~85 KB) statt einer Google-Fonts-Einbindung: kein Request an
   Dritte (DSGVO), kein zusätzlicher Verbindungsaufbau. Der latin-Subset deckt
   alle deutschen Zeichen ab (Umlaute und ß liegen in U+00C0–U+00FF, die
   typografischen Anführungszeichen in U+2000–U+206F).
   ACHTUNG: U+2192 (Pfeil nach rechts) ist NICHT enthalten — Pfeile deshalb
   immer als Inline-SVG setzen, nie als Schriftzeichen (siehe .link-arrow). */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;             /* Variable Font, Achse wght 300–700 */
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;             /* Variable Font, Achse wght 100–900 */
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens ---------- */
:root {
  color-scheme: light;

  /* Farbpalette aus dem Entwurf */
  --color-primary: #E30613;          /* Riese Rot — Flächen: Buttons, Balken   */
  --color-primary-dark: #B00410;     /* Hover-Zustand roter Flächen            */
  --color-primary-text: #CC0510;     /* Rot als TEXT/Icon (Kontrastgrund s.u.) */
  --color-ink: #181818;              /* Graphit Schwarz — Text, dunkle Bänder  */
  --color-porcelain: #F4F0E9;        /* Warmes Porzellan — Seitengrund         */
  --color-beige: #B9A68E;            /* Arbeitsplatten Beige — Linien, Akzente */
  --color-beige-soft: #EAE3D8;       /* aufgehelltes Beige für ruhige Flächen  */
  --color-white: #FFFFFF;            /* Klarweiß — Karten, Header              */

  --color-text: #181818;
  --color-text-muted: #5E5A55;       /* 6.0:1 auf Porzellan, 6.8:1 auf Weiß    */
  --color-border: #E0D9CE;
  --color-border-strong: #C9BFB1;

  /* Rot als kleine Textfarbe: #E30613 erreicht auf Porzellan nur 4.30:1 und
     fällt damit unter WCAG AA (4.5:1). --color-primary-text (#CC0510) liegt
     bei 5.1:1 auf Porzellan und 5.8:1 auf Weiß. Flächen bleiben beim
     Original-Rot (weiße Schrift auf #E30613 = 4.9:1, AA erfüllt). */

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;                  /* bewusst klein: editorialer Eindruck    */
  --radius-md: 6px;
  --container-width: 1240px;
  --header-height: 80px;

  --shadow-sm: 0 1px 3px rgba(24, 24, 24, 0.07), 0 6px 18px rgba(24, 24, 24, 0.05);
  --shadow-md: 0 4px 12px rgba(24, 24, 24, 0.09), 0 18px 48px rgba(24, 24, 24, 0.10);
  --shadow-lg: 0 10px 30px rgba(24, 24, 24, 0.13), 0 30px 70px rgba(24, 24, 24, 0.15);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-porcelain);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
/* Browser geben <figure> standardmäßig 1em/40px Außenabstand mit. Das schob
   die Galeriekacheln und die Zitatkarte sichtbar in ihre Spalten hinein. */
figure { margin: 0; }
/* <address> ist im Browser-Standard kursiv — hier überall normal setzen. */
address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-sm);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 var(--space-sm); color: var(--color-text-muted); }
strong { font-weight: 600; color: var(--color-text); }
button { font-family: inherit; }

/* Sichtbarer Fokus auf allen bedienbaren Elementen */
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

section, header, footer { scroll-margin-top: var(--header-height); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-lg); } }

.section { padding-block: var(--space-2xl); }
.section--white { background: var(--color-white); }
.section--porcelain { background: var(--color-porcelain); }
.section--beige { background: var(--color-beige-soft); }
.section--ink { background: var(--color-ink); color: var(--color-white); }

.section-header { max-width: 640px; margin: 0 auto var(--space-xl); text-align: center; }
.section-header p { font-size: 1.05rem; }
.section-header--left { margin-inline: 0; text-align: left; }

/* Kleine Majuskel-Zeile über Überschriften, z. B. KÜCHENSTUDIO IN SENFTENBERG */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.eyebrow--red { color: var(--color-primary-text); }
.section--ink .eyebrow { color: var(--color-beige); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-ghost { background: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, 0.65); }
.btn-ghost:hover { background: var(--color-white); color: var(--color-ink); border-color: var(--color-white); }

.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-border-strong); }
.btn-outline:hover { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }

.btn-block { width: 100%; }

/* Textlink mit Pfeil, z. B. „Stil entdecken" oder „Planung starten" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow svg { width: 16px; height: 16px; flex-shrink: 0; }
.link-arrow:hover { gap: 0.8rem; color: var(--color-primary-dark); }
.section--ink .link-arrow { color: var(--color-white); }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute; left: -999px; top: auto; z-index: 1000;
  background: var(--color-primary); color: var(--color-white);
  padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; gap: var(--space-md); height: var(--header-height); }
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-brand img { height: 52px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-menu a:not(.btn) {
  font-size: 0.95rem; font-weight: 500; padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-menu a:not(.btn):hover { color: var(--color-primary-text); border-color: var(--color-primary); }
.nav-menu a[aria-current="page"] { color: var(--color-primary-text); border-color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.nav-actions .btn { padding: 0.7rem 1.35rem; font-size: 0.9rem; }
.mobile-only { display: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--color-ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  /* Kein backdrop-filter am Header: das erzeugt einen neuen containing block
     für position:fixed-Nachfahren — das mobile Menü würde dann an der ~80px
     hohen Kopfzeile statt am Viewport ausgerichtet und den Bildschirm nicht
     mehr ganz abdecken. */
  .nav-menu {
    position: fixed; inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    flex-direction: column; align-items: center; justify-content: flex-start;
    margin-left: 0; padding: var(--space-xl) var(--space-md); gap: var(--space-md);
    transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu a:not(.btn) { font-size: 1.15rem; }
  .nav-actions .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }
}
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-ink);
  color: var(--color-white);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.62) 45%, rgba(10, 10, 10, 0.3) 100%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: var(--space-xl);
  align-items: center;
  padding-block: clamp(var(--space-xl), 9vw, 7rem);
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; } }

.hero-content { max-width: 640px; }
.hero h1 { color: var(--color-white); margin-bottom: var(--space-md); }
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 34em;
  margin-bottom: var(--space-lg);
}
.hero .eyebrow { color: var(--color-beige); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Terminkarte im Hero (im Entwurf rechts über dem Foto) */
.hero-card {
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  justify-self: end;
}
.hero-card h2 { font-size: 1.5rem; margin-bottom: var(--space-xs); }
.hero-card p { font-size: 0.95rem; margin-bottom: var(--space-md); }
.hero-card .btn { margin-bottom: var(--space-sm); }
.hero-card-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 0; font-size: 0.92rem; color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.hero-card-row svg { width: 20px; height: 20px; color: var(--color-primary-text); flex-shrink: 0; }
.hero-card-row a { font-weight: 600; color: var(--color-text); }
.hero-card-row a:hover { color: var(--color-primary-text); }

/* ---------- Fade-in (reine Verbesserung, nie Voraussetzung für Sichtbarkeit) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeInUp 0.65s ease-out both; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Split-Sektion: Bild + Text + Zitatkarte ---------- */
.split {
  display: grid; grid-template-columns: 1fr; gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .split--reverse .split-media { order: 2; }
}
.split-media { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
/* height:auto ist hier Pflicht: die width/height-Attribute am <img> wirken als
   Presentational Hints und setzen eine feste CSS-Höhe. Ohne height:auto bliebe
   die natürliche Höhe stehen und aspect-ratio käme gar nicht zum Tragen. */
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.split-body h2 { margin-bottom: var(--space-md); }
.split-body p { font-size: 1.05rem; }
.split-body .link-arrow { margin-top: var(--space-sm); }

/* Zitatkarte — im Entwurf eine beige Karte, die mit Schatten über der
   Sektionskante schwebt: großes Anführungszeichen oben, darunter der Satz aus
   dem Begrüßungsbrief, abgeschlossen von einem kurzen Strich (keine
   Namenszeile — das Zitat steht auf der eigenen Seite, die Zuschreibung wäre
   doppelt gemoppelt). */
.quote-card {
  position: relative;
  background: var(--color-beige-soft);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-xl);
  max-width: 480px;
}
/* Das Zeichen ist reine Zierde, deshalb aria-hidden über content.
   U+201C liegt im latin-Subset der Schrift (U+2000–U+206F). */
.quote-card::before {
  content: "\201C";
  display: block;
  font-family: var(--font-heading);
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 0.58;
  color: var(--color-beige);
  margin-bottom: var(--space-xs);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.28;
  color: var(--color-ink);
}
/* Kurzer Strich statt Namenszeile, wie im Entwurf */
.quote-card blockquote::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--color-ink);
  margin-top: var(--space-md);
}

/* ---------- Stil-Karten: Welche Küche passt zu Ihnen? ---------- */
/* Drei Karten nebeneinander wie im Entwurf. Bei vier wurden sie so schmal,
   dass die Bilder hochkant wirkten und die Texte umbrachen — die vierte
   Stilrichtung ist weiterhin über den Filter auf /unsere-kuechen/ erreichbar. */
.style-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .style-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); } }

.style-card {
  display: flex; flex-direction: column;
  background: var(--color-white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.style-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
/* Querformat wie im Entwurf — 4:3 ließ die Karten gedrungen wirken. */
.style-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.style-card-body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.style-card h3 { margin-bottom: 0.4rem; }
.style-card p { font-size: 0.95rem; flex: 1; }
.style-card-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--color-text-muted);
  padding: 0.7rem 0; margin-bottom: 0.3rem;
  border-top: 1px solid var(--color-border);
}
.style-card-meta svg { width: 18px; height: 18px; color: var(--color-beige); flex-shrink: 0; }
.style-card .link-arrow { align-self: flex-start; }

/* ---------- Schritte: In vier Schritten zur Traumküche ---------- */
.steps-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.steps-head h2 { margin: 0; }
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }

@media (min-width: 1024px) {
  /* Senkrechte Trennlinien zwischen den Schritten wie im Entwurf */
  .step { padding-inline: var(--space-md); border-left: 1px solid var(--color-border-strong); }
  .step:first-child { padding-left: 0; border-left: none; }
}
.step-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}
.step h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; margin: 0; }

/* ---------- Galerie: Filter, Raster, Lightbox ---------- */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; margin-bottom: var(--space-xl);
}
.filter-btn {
  background: var(--color-white); color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px; padding: 0.55rem 1.3rem;
  font-family: var(--font-body); font-weight: 500; font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--color-ink); }
.filter-btn.is-active {
  background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white);
}

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-white); box-shadow: var(--shadow-sm);
}
.gallery-item.is-hidden { display: none; }
.gallery-trigger {
  display: block; width: 100%; padding: 0; border: none; background: none;
  cursor: pointer; position: relative; aspect-ratio: 4 / 3;
}
.gallery-trigger img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
@media (hover: hover) {
  .gallery-trigger:hover img { transform: scale(1.05); }
}

/* Keine Bildunterschrift beim Überfahren.
   Der Text war wortgleich mit dem alt-Attribut, brachte also keine zusätzliche
   Information, verdeckte mit seinem Verlauf aber rund 40 % des Fotos — genau
   das, was man ansehen will. Auf Touch-Geräten erschien er ohnehin nie.
   Gleiche Entscheidung wie im Schwesterprojekt kuechenwelt-lauchhammer.
   Die Beschriftung steht weiterhin im alt-Attribut (Screenreader) und in
   data-caption (Lightbox).

   Der Fokusrahmen muss nach INNEN zeigen: .gallery-item hat overflow:hidden,
   ein nach außen versetzter Rahmen würde abgeschnitten. Vorher übernahm das
   Overlay diese Aufgabe — ohne diese Regel hätten Tastaturnutzer nach dem
   Entfernen gar keine Rückmeldung mehr. */
.gallery-trigger:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(18, 17, 16, 0.94);
  display: none; align-items: center; justify-content: center; padding: var(--space-md);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: min(92vw, 1180px); text-align: center; margin: 0; }
.lightbox-figure img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); }
.lightbox-figure figcaption { color: var(--color-white); margin-top: var(--space-sm); font-size: 0.95rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255, 255, 255, 0.14); border: none; color: var(--color-white);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: var(--space-md); right: var(--space-md); }
.lightbox-prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-md); top: 50%; transform: translateY(-50%); }

/* ---------- Abschluss-CTA (dunkles Band mit Foto) ----------
   Im Entwurf läuft das Band randlos über die volle Breite und ist flach —
   als abgerundeter Kasten im Container wirkte es deutlich zu hoch und zu
   brav. Deshalb kein Radius, kein Container, kompakte Innenabstände. */
.final-cta {
  display: grid; grid-template-columns: 1fr;
  background: var(--color-ink); color: var(--color-white);
  overflow: hidden;
}
@media (min-width: 900px) { .final-cta { grid-template-columns: 1.05fr 0.95fr; } }
.final-cta-body {
  padding: clamp(var(--space-md), 3vw, var(--space-lg)) var(--space-sm);
  display: flex; flex-direction: column; justify-content: center;
}
/* Linke Kante auf die Container-Flucht der übrigen Sektionen bringen,
   obwohl das Band selbst randlos ist. */
@media (min-width: 768px) {
  .final-cta-body {
    padding-left: max(var(--space-lg), calc((100vw - var(--container-width)) / 2 + var(--space-lg)));
    padding-right: var(--space-lg);
  }
}
.final-cta h2 { color: var(--color-white); margin-bottom: var(--space-xs); }
.final-cta p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; margin-bottom: var(--space-md); }
.final-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.final-cta-phone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 1.05rem; color: var(--color-white);
}
.final-cta-phone svg { width: 20px; height: 20px; color: var(--color-beige); flex-shrink: 0; }
.final-cta-phone:hover { color: var(--color-beige); }
/* Feste Bandhöhe statt natürlicher Bildhöhe: Sonst bestimmt das Seitenverhältnis
   des Fotos die Höhe des ganzen Bandes, und es wird fast doppelt so hoch wie im
   Entwurf. Das Bild füllt den Ausschnitt per object-fit. */
.final-cta-media { height: clamp(220px, 21vw, 300px); }
.final-cta-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-xl); } }

.contact-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-lg);
}
.contact-card h3 { margin-bottom: var(--space-xs); }
.contact-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-md) 0 var(--space-sm); }
@media (max-width: 480px) { .contact-card-actions .btn { width: 100%; } }
.contact-note { font-size: 0.88rem; line-height: 1.6; color: var(--color-text-muted); margin: 0; }
.contact-note a { text-decoration: underline; }

/* Microsoft-Forms-iFrame (wird erst nach Klick eingehängt, siehe script.js).
   Großzügige Höhe: Forms scrollt intern — je mehr auf einmal sichtbar ist,
   desto weniger verschachteltes Scrollen entsteht. */
.form-frame-wrap {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--color-white);
}
.form-frame-wrap iframe { width: 100%; height: clamp(560px, 78vh, 900px); border: none; display: block; }
.form-frame-wrap:focus { outline: none; }

.contact-info { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-info-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-info-item svg { width: 22px; height: 22px; color: var(--color-primary-text); flex-shrink: 0; margin-top: 0.25rem; }
/* Der Textblock neben dem Icon muss die Zeile fuellen, sonst bleibt eine
   Tabelle darin so schmal wie ihr Inhalt. Genau das war auf
   /planungsanfrage/ der Fall: In den Oeffnungszeiten stiess
   "Montag - Freitag" ohne Luecke an "09:30 - 18:30". Auf /kontakt/ fiel es
   nicht auf, weil dort ein style="flex:1" im Markup stand - jetzt steht
   die Regel hier und gilt fuer beide. min-width:0 erlaubt dem Block, unter
   seine Inhaltsbreite zu schrumpfen; ohne das laeuft er auf schmalen
   Schirmen ueber. */
.contact-info-item > div { flex: 1; min-width: 0; }
.contact-info-item a:hover { color: var(--color-primary-text); }

.opening-hours { width: 100%; border-collapse: collapse; }
.opening-hours caption {
  text-align: left; font-weight: 600; padding-bottom: var(--space-xs); color: var(--color-text);
}
.opening-hours td { padding: 0.45rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.93rem; }
/* Luecke zur Tagesspalte, damit beide auch bei schmaler Tabelle nicht
   aneinanderstossen; nowrap haelt "09:30 - 18:30" in einer Zeile. */
.opening-hours td:last-child {
  text-align: right; color: var(--color-text-muted);
  padding-left: var(--space-sm); white-space: nowrap;
}

/* Karte mit 2-Klick-Lösung */
.map-wrap { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.map-placeholder {
  position: relative; min-height: 320px; background: var(--color-beige-soft);
  display: flex; align-items: center; justify-content: center;
}
.map-consent {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-sm);
  text-align: center; padding: var(--space-md);
}
.map-consent p { margin: 0; font-size: 0.92rem; max-width: 34em; }
#map-live { min-height: 320px; }

/* ---------- Unterseiten ----------
   Der Seitenkopf war ein durchgehend schwarzes Band. Auf breiten Schirmen
   stand der Text darin nur im linken Drittel, während die Fläche über die
   volle Breite lief — das wirkte angeschnitten. Jetzt ein ruhiger, warmer
   Ton aus der Palette: klar vom weißen Kopf abgesetzt, ohne harte Kante.

   Der Einleitungsabsatz ist hier raus. Er brach bei 62 Zeichen um und ließ
   die rechte Hälfte leer stehen; als Lauftext gehört er in den Inhalt
   (siehe .page-lead) und nicht in die Kopfzone. */
.page-hero {
  background: var(--color-beige-soft);
  color: var(--color-text);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  color: var(--color-ink);
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
}
.page-hero .eyebrow { color: var(--color-text-muted); }

/* Einleitung als erster Absatz im Inhalt, nicht im Seitenkopf. */
.page-lead {
  max-width: 68ch;
  margin: 0 auto var(--space-xl);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  text-align: center;
}
.page-lead--left {
  margin-inline: 0;
  margin-bottom: var(--space-lg);
  text-align: left;
  max-width: none;          /* fluchtet mit dem Fliesstext darunter */
}

.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.breadcrumb a:hover { color: var(--color-primary-text); text-decoration: underline; }
.breadcrumb span { padding-inline: 0.4rem; }

/* Fließtext der Rechts- und Textseiten */
.prose { max-width: 75ch; margin-inline: auto; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: var(--space-xl); }
.prose h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-top: var(--space-lg); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-text); }
.prose ul, .prose ol { list-style: disc; padding-left: 1.5rem; margin: 0 0 var(--space-sm); }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--color-primary-text); text-decoration: underline; }
.prose address { font-style: normal; }

/* iFrames der Unterseiten (Küchenplaner, 360-Grad-Rundgang) */
.embed-wrap {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--color-white);
}
.embed-wrap iframe { width: 100%; border: none; display: block; }
.embed-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-sm); text-align: center;
  min-height: 340px; padding: var(--space-lg);
  background: var(--color-beige-soft);
}
.embed-consent p { margin: 0; max-width: 46em; font-size: 0.95rem; }

.tour-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 900px) { .tour-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255, 255, 255, 0.72); padding-block: var(--space-xl) var(--space-md); }
.site-footer > .container:not(:last-child) { margin-bottom: var(--space-lg); }
.footer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-template-areas: "brand brand" "nav kontakt" "nav hours";
  gap: var(--space-lg) var(--space-md);
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
    grid-template-areas: "brand nav kontakt hours";
    gap: var(--space-lg);
  }
}
.footer-col-brand   { grid-area: brand; }
.footer-col-nav     { grid-area: nav; }
.footer-col-kontakt { grid-area: kontakt; }
.footer-col-hours   { grid-area: hours; }

/* Das Logo liegt im Fuss auf einer hellen Platte, statt als weisse
   Variante direkt auf Graphit zu stehen. Grund: Die Wortmarke hat sehr
   enge Binnenraeume — zwischen den Buchstaben von „RIESE" liegen in der
   Quelle nur 5 px. Bei 62 px Anzeigehoehe sind das weniger als ein Pixel;
   die weisse Variante lief dadurch zu einem Klumpen zusammen und
   „SENFTENBERG" war nicht mehr lesbar. Auf heller Flaeche traegt das
   Original seine eigenen Farben (rotes „Kuechen", graphitfarbenes
   „RIESE") und bleibt dadurch auch klein noch klar. */
.footer-brand {
  display: inline-block;
  background: var(--color-porcelain);
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}
.footer-brand img { height: 62px; width: auto; display: block; }
.footer-claim { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-beige); margin: 0; }
.footer-grid h3 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-white); margin-bottom: var(--space-sm);
}
.footer-links li { margin-bottom: 0.55rem; font-size: 0.93rem; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--color-white); }
.footer-links .with-icon { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-links .with-icon svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 0.28rem; color: var(--color-beige); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13); padding-top: var(--space-md);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--space-sm); font-size: 0.85rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom a:hover { color: var(--color-white); text-decoration: underline; }

@media (max-width: 899px) {
  .site-footer .container { text-align: center; }
  /* .footer-brand ist inline-block, die zentrierte Zeile des Containers
     richtet die Platte selbst mittig aus — kein margin noetig. */
  .footer-links .with-icon { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom nav { justify-content: center; }
}

/* ---------- Mitwandernder Anruf-Knopf (nur mobil) ----------
   Erscheint erst, wenn der Hero aus dem Blick ist: Solange die großen CTAs
   oben sichtbar sind, wäre er doppelt und verdeckte nur Inhalt. Ab 1100px
   entfällt er — dort steht der Beratungstermin-Knopf dauerhaft im Kopf. */
.call-fab {
  position: fixed;
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 450;
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.14);
  transform: translateY(150%);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), background-color 0.2s ease;
}
.call-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
.call-fab.is-visible { transform: none; }
.call-fab:active { background: var(--color-primary-dark); }
@media (max-width: 1100px) { .call-fab { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) {
  .call-fab { transition: none; }
}
/* Solange der Knopf schwebt, darf er die Rechtslinks im Fuß nicht verdecken. */
@media (max-width: 1100px) {
  .site-footer { padding-bottom: calc(var(--space-md) + 68px); }
}
/* Beim offenen Menü wäre er über der Navigation im Weg. */
body.nav-open .call-fab { transform: translateY(150%); }

/* ---------- Öffnungszeiten im Fuß ---------- */
.footer-hours { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.footer-hours td { padding: 0.25rem 0; vertical-align: top; }
.footer-hours td:last-child { text-align: right; color: var(--color-white); white-space: nowrap; }
.footer-hours-note { margin: var(--space-sm) 0 0; font-size: 0.85rem; line-height: 1.5; }
.footer-hours-note a { text-decoration: underline; }
@media (max-width: 899px) {
  .footer-hours { max-width: 280px; margin-inline: auto; }
}

/* ---------- Checkliste (Planungsanfrage) ---------- */
.checkliste { margin: 0 0 var(--space-md); padding: 0; list-style: none; }
.checkliste li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--color-text-muted);
}
.checkliste li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* ---------- Utilities ---------- */
/* [hidden] muss Layout-Regeln wie display:flex schlagen, sonst bleiben per JS
   versteckte Blöcke (z. B. die Formular-Karte) sichtbar. */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
