/* ==========================================================================
   Friedas24, Design System
   Anti-Slop Regeln (taste-skill): ein Akzentton, ein Radius-System,
   Dark Mode, dezente motivierte Motion, transform/opacity only.
   ========================================================================== */

/* ---- Reset / Base --------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Tokens ---------------------------------------------------------------*/
:root {
  --font-sans: "Inter var", "Inter", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius, ein System */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Easing (emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Spacing rhythm */
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --container: 1240px;

  /* ===== Offizielle CI-Farben (Markenhandbuch): Grün #77A539 + Bordeaux #9C3561 auf Creme ===== */
  /* Light: Creme-Hintergrund */
  --bg: #F7F6E9;
  --bg-2: #EEEDD8;
  --surface: #FCFCF3;
  --surface-2: #F0F0DD;
  --text: #1F1B16;
  --text-muted: #64614F;
  --border: #E5E3CB;
  --border-strong: #D3D1B2;
  /* Primärer Akzent = Bordeaux (#9C3561) */
  --accent: #9C3561;            /* Text, Links, Eyebrows, Icons */
  --accent-hover: #842B52;
  --accent-fill: #9C3561;       /* Button-/Block-Flächen */
  --accent-fill-hover: #842B52;
  --accent-contrast: #FFFFFF;   /* Text auf Füllfläche */
  --accent-soft: rgba(156, 53, 97, 0.10);
  --accent-ring: rgba(156, 53, 97, 0.22);
  /* Marken-/Statusgrün (#77A539, Oma-Frieda-Emblem) */
  --green: #77A539;
  --green-contrast: #16240A;    /* dunkler Text auf Grün */
  --green-text: #3C5C12;        /* dunkles CI-Grün als Text auf hellem Grund */
  --green-soft: rgba(119, 165, 57, 0.16);
  --shadow-sm: 0 1px 2px rgba(34, 26, 30, 0.05), 0 2px 8px rgba(34, 26, 30, 0.05);
  --shadow: 0 4px 12px rgba(34, 26, 30, 0.08), 0 16px 40px rgba(34, 26, 30, 0.10);
  --grain-opacity: 0.5;
}

[data-theme="dark"] {
  --bg: #16110F;
  --bg-2: #0F0B0A;
  --surface: #1F1816;
  --surface-2: #29211F;
  --text: #EFE9E2;
  --text-muted: #ABA193;
  --border: #322A27;
  --border-strong: #433834;
  --accent: #E0A0B9;            /* CI-Rosé (helle Bordeaux-Abstufung): lesbar auf Dunkel */
  --accent-hover: #EBB4C8;
  --accent-fill: #B2406A;       /* aufgehelltes Bordeaux als Button, weißer Text */
  --accent-fill-hover: #C24F79;
  --accent-contrast: #FFFFFF;
  --accent-soft: rgba(224, 160, 185, 0.16);
  --accent-ring: rgba(224, 160, 185, 0.30);
  --green: #A2CA6F;             /* helle CI-Grün-Abstufung für Dunkel */
  --green-contrast: #14240A;
  --green-text: #C0DC9A;
  --green-soft: rgba(162, 202, 111, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --grain-opacity: 0.35;
}

/* Respektiere System, bis der User manuell umschaltet */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16110F; --bg-2: #0F0B0A; --surface: #1F1816; --surface-2: #29211F;
    --text: #EFE9E2; --text-muted: #ABA193; --border: #322A27; --border-strong: #433834;
    --accent: #E0A0B9; --accent-hover: #EBB4C8; --accent-fill: #B2406A; --accent-fill-hover: #C24F79; --accent-contrast: #FFFFFF;
    --accent-soft: rgba(224,160,185,0.16); --accent-ring: rgba(224,160,185,0.30);
    --green: #A2CA6F; --green-contrast: #14240A; --green-text: #C0DC9A; --green-soft: rgba(162,202,111,0.18);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.45); --shadow: 0 8px 30px rgba(0,0,0,0.5);
    --grain-opacity: 0.35;
  }
}

/* ---- Typography -----------------------------------------------------------*/
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: var(--accent);
  opacity: .6;
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.display {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.0; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance;
}
h2.section-title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.03em; max-width: 18ch;
}
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-muted); max-width: 56ch; line-height: 1.55;
}
.muted { color: var(--text-muted); }
p { max-width: 65ch; }

/* ---- Layout ---------------------------------------------------------------*/
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.stack > * + * { margin-top: 1.25rem; }
.center { text-align: center; margin-inline: auto; }

/* ---- Buttons --------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease,
              border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent-fill); color: var(--accent-contrast); box-shadow: 0 1px 0 var(--accent-ring); }
.btn--primary:hover { background: var(--accent-fill-hover); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn .ico { width: 1.05em; height: 1.05em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Header / Nav ---------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background-color 250ms ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--accent); color: var(--accent-contrast);
  display: grid; place-items: center; font-size: .95rem; font-weight: 800;
}
.brand .mark svg { width: 18px; height: 18px; }
.brand-logo { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo--light { display: none; }
  :root:not([data-theme="light"]) .brand-logo--dark { display: block; }
}
.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav-links a {
  padding: .5rem .75rem; border-radius: var(--r-xs); font-size: .95rem;
  font-weight: 500; color: var(--text-muted);
  transition: color 180ms ease, background-color 180ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-xs); display: grid; place-items: center;
  color: var(--text-muted); transition: color 180ms ease, background-color 180ms ease, transform 160ms var(--ease-out);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.nav-toggle { display: none; }

/* Sprachumschalter */
.lang-switch { position: relative; }
.lang-btn { gap: .35rem; width: auto; padding: 0 .55rem; }
.lang-btn [data-lang-code] { font-size: .82rem; font-weight: 700; letter-spacing: .03em; }
.lang-flag { font-size: 1.15rem; line-height: 1; }
.lang-menu .lang-flag { margin-right: .55rem; font-size: 1.1rem; }
.lang-menu {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60;
  min-width: 160px; padding: .4rem; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  text-align: left; padding: .55rem .7rem; border-radius: var(--r-xs);
  font-size: .95rem; font-weight: 500; color: var(--text-muted);
  transition: background-color 150ms ease, color 150ms ease;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button[aria-current="true"] { color: var(--accent); font-weight: 650; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 72px 0 0; z-index: 49;
  background: var(--bg); padding: 1.5rem clamp(1.1rem, 4vw, 2.5rem) 2.5rem;
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  overflow-y: auto;
}
.mobile-nav[data-open="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a { padding: .9rem .25rem; font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 1.25rem; }

/* ---- Hero -----------------------------------------------------------------*/
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(3rem, 6vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 36rem; }
.hero-copy .display { margin-top: 1.1rem; }
.hero-copy .lead { margin-top: 1.4rem; }
.hero-copy .btn-row { margin-top: 2rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; }
.hero-stats .stat .lbl { font-size: .85rem; color: var(--text-muted); }
.hero-visual { position: relative; }
.hero-visual .media { aspect-ratio: 4 / 5; }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .75rem;
  max-width: 15rem;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px var(--green-soft); }
.hero-badge .t { font-weight: 700; font-size: .95rem; }
.hero-badge .s { font-size: .8rem; color: var(--text-muted); }
.hero-blur { position: absolute; z-index: -1; filter: blur(70px); opacity: .5; border-radius: 50%; }
.hero-blur--1 { width: 38vw; height: 38vw; background: var(--accent); top: -10%; right: -8%; opacity: .14; }

/* ---- Media placeholders ---------------------------------------------------*/
.media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--accent) 22%, var(--surface-2)), var(--surface-2));
  border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-muted);
}
.media::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px; opacity: .10; color: var(--accent);
}
.media .media-label {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: .5rem; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.media .media-label svg { width: 30px; height: 30px; opacity: .55; }
.media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 1; }
.media.is-photo { background: var(--surface-2); }
.media.is-photo::after { display: none; }
.media.contain img { object-fit: contain; }
.media.contain { background: var(--surface-2); }
.media.contain--dark { background: #0c1411; }

/* ---- Vorteile strip -------------------------------------------------------*/
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.perk { display: flex; flex-direction: column; gap: .75rem; }
.perk .pico {
  width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.perk .pico svg { width: 24px; height: 24px; }
.perk h3 { font-size: 1.12rem; }
.perk p { font-size: .94rem; color: var(--text-muted); }

/* ---- Split (Idee / Nachhaltigkeit) ---------------------------------------*/
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media .media { aspect-ratio: 5 / 4; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.feature-list li { display: flex; gap: .85rem; align-items: flex-start; }
.feature-list .ck {
  flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.feature-list .ck svg { width: 14px; height: 14px; }
.feature-list b { font-weight: 650; }
.feature-list span.txt { color: var(--text-muted); font-size: .96rem; }

/* ---- Friedas Geschichte (Editorial quote) --------------------------------*/
.story { position: relative; }
.story-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 0.8fr 1.2fr;
}
.story-portrait { position: relative; min-height: 380px; }
.story-portrait .media { position: absolute; inset: 0; border-radius: 0; border: 0; aspect-ratio: auto; }
.story-body { padding: clamp(2rem, 4vw, 3.5rem); }
.story-body blockquote {
  font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: -0.02em;
  font-weight: 600; margin: 0;
}
.story-body .qmark { color: var(--accent); font-size: 3rem; line-height: 0; font-weight: 800; }
.story-body cite { display: block; margin-top: 1.5rem; font-style: normal; }
.story-body cite b { font-weight: 700; }
.story-body cite span { display: block; color: var(--text-muted); font-size: .9rem; }

/* ---- Bento (Sortiment) ----------------------------------------------------*/
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: var(--gap); }
.cell {
  border-radius: var(--r); border: 1px solid var(--border); padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
  position: relative; overflow: hidden; background: var(--surface);
}
.cell h3 { font-size: 1.25rem; }
.cell p { font-size: .92rem; color: var(--text-muted); }
.cell .cell-ico { position: absolute; top: 1.25rem; left: 1.25rem; color: var(--accent); }
.cell .cell-ico svg { width: 26px; height: 26px; }
.cell--accent { background: var(--accent-fill); color: var(--accent-contrast); border-color: transparent; }
.cell--accent p { color: color-mix(in srgb, var(--accent-contrast) 78%, transparent); }
.cell--accent .cell-ico { color: var(--accent-contrast); }
.cell--accent .big { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.cell--media { background:
    radial-gradient(120% 120% at 0% 100%, color-mix(in srgb, var(--accent) 20%, var(--surface-2)), var(--surface-2)); }
.cell--media::after {
  content: ""; position: absolute; inset: 0; opacity: .08; color: var(--accent);
  background-image: radial-gradient(currentColor 1px, transparent 1px); background-size: 20px 20px;
}
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }

/* ---- Standorte ------------------------------------------------------------*/
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.loc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .65rem;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
}
.loc-card .loc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.loc-card h3 { font-size: 1.15rem; }
.loc-card .addr { color: var(--text-muted); font-size: .95rem; }
.loc-card .meta { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); display: flex; gap: .4rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge .bdot { width: 7px; height: 7px; border-radius: 50%; }
.badge--open { background: var(--green-soft); color: var(--green-text); }
.badge--open .bdot { background: var(--green); }
.badge--soon { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge--soon .bdot { background: var(--text-muted); }

/* ---- Store-Galerie ---------------------------------------------------------*/
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.g-item {
  border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--surface-2); border: 1px solid var(--border);
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .g-item:hover img { transform: scale(1.04); }
}
.g-item--wide { grid-column: span 2; }
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }

/* ---- CTA band -------------------------------------------------------------*/
.cta-band { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--accent-fill); color: var(--accent-contrast); padding: clamp(2.5rem, 6vw, 5rem); }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; max-width: 16ch; }
.cta-band p { color: color-mix(in srgb, var(--accent-contrast) 82%, transparent); max-width: 48ch; margin-top: 1rem; }
.cta-band .btn-row { margin-top: 2rem; }
.cta-band .btn--primary { background: var(--accent-contrast); color: var(--accent); }
.cta-band .btn--primary:hover { background: color-mix(in srgb, var(--accent-contrast) 90%, #000); }
.cta-band .btn--ghost { border-color: color-mix(in srgb, var(--accent-contrast) 45%, transparent); color: var(--accent-contrast); }
.cta-band .btn--ghost:hover { border-color: var(--accent-contrast); color: var(--accent-contrast); background: color-mix(in srgb, var(--accent-contrast) 12%, transparent); }
.cta-blur { position: absolute; width: 30rem; height: 30rem; border-radius: 50%; background: #fff; opacity: .10; filter: blur(40px); right: -6rem; top: -8rem; }

/* ---- FAQ (disclosure) -----------------------------------------------------*/
.faq-list { max-width: 60rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.4rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; transition: transform 240ms var(--ease-out); color: var(--accent); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }
.faq-item .faq-answer p { max-width: none; }
.faq-item .faq-answer p + p { margin-top: .6rem; }
.faq-item .faq-answer a {
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.faq-item .faq-answer a:hover { color: var(--accent-hover); }

/* ---- Page hero (subpages) -------------------------------------------------*/
.page-hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero .display { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-top: 1rem; max-width: 16ch; }
.page-hero .lead { margin-top: 1.25rem; }

/* ---- Prose (Über uns / Rechtliches) --------------------------------------*/
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p { margin-top: 1rem; color: var(--text-muted); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose h2, .prose h3 { scroll-margin-top: 90px; }
.prose ul, .prose ol { margin-top: 1rem; padding-left: 1.4rem; color: var(--text-muted); display: grid; gap: .5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { padding-left: .25rem; }
.prose .sub { font-weight: 650; color: var(--text); }

/* Anker-Navigation (Rechtliches) */
.legal-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.legal-nav a {
  padding: .5rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600; color: var(--text-muted);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.legal-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* Hinweis-Box */
.callout {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid var(--accent-ring);
  border-radius: var(--r); padding: 1rem 1.25rem; margin-top: 1.5rem;
  font-size: .95rem; color: var(--text);
}
.callout svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.callout p { margin: 0; max-width: none; color: inherit; }
.legal-note { margin-top: 2.5rem; font-size: .85rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 1.25rem; }

/* hidden-Attribut gewinnt immer (auch gegen display:flex etc.) */
[hidden] { display: none !important; }

/* ---- Formular ---------------------------------------------------------------*/
.form-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem); box-shadow: var(--shadow);
}
.form-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent-fill), var(--green));
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .92rem; letter-spacing: .01em; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
  padding: .9rem 1.1rem; width: 100%;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.btn--block { width: 100%; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form-consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--text-muted); }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-note {
  display: none; border-radius: var(--r-sm); padding: .9rem 1.1rem; font-size: .95rem; font-weight: 550;
}
.form-note[data-state="success"] { display: block; background: var(--green-soft); color: var(--green-text); }
.form-note[data-state="error"] { display: block; background: var(--accent-soft); color: var(--accent); }
/* Honeypot unsichtbar, aber nicht display:none (Bots erkennen das) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---- Footer ---------------------------------------------------------------*/
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 5rem) 2rem; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .lead { font-size: .98rem; margin-top: 1rem; max-width: 32ch; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--text-muted); font-size: .95rem; transition: color 160ms ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--text-muted); }
.social { display: flex; gap: .5rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); transition: all 180ms ease; }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }
/* Kompakte Variante in Standort-Karten */
.social--sm a { width: 32px; height: 32px; border-color: var(--border-strong); }
.social--sm svg { width: 15px; height: 15px; }
.loc-card .social { margin-top: .85rem; }

/* ---- Reveal animation -----------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 70ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 210ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .icon-btn, .loc-card, .faq-item summary .chev { transition: none; }
}

/* ---- Responsive -----------------------------------------------------------*/
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1.75rem; }
  .hero-visual .media { aspect-ratio: 16 / 10; }
  .hero-badge { left: auto; right: 14px; bottom: 14px; }
  .split, .story-card, .footer-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .story-portrait { min-height: 260px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-2, .col-3, .col-4 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav { height: 64px; gap: .75rem; }
  .nav-actions { gap: .35rem; }
  /* Primärer CTA-Button steckt im Mobil-Menü, im Header ausblenden */
  .nav-actions > .btn--primary { display: none; }
  .hero-stats { gap: 1.4rem 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
}
@media (min-width: 761px) { .mobile-nav { display: none; } }

/* Kleine Smartphones */
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-badge { display: none; }
  .hero-visual .media { aspect-ratio: 4 / 3; }
  /* CTAs volle Breite, leichter zu treffen */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .loc-card { padding: 1.25rem; }
  .story-body { padding: 1.5rem; }
  .cta-band { padding: 2rem 1.5rem; }
  .lang-menu { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
}
