/* =====================================================================
   Bäckerei Lehmann — Design system
   Brand register · committed warm palette · light theme
   ===================================================================== */

/* ---------- Self-hosted fonts (no third-party CDN) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — derived from the real logo + theme CSS */
  --brown-900: oklch(0.30 0.045 55);
  --brown-800: oklch(0.33 0.05 55);
  --brown-700: oklch(0.36 0.05 55);   /* primary brown / wordmark */
  --brown-500: oklch(0.50 0.055 52);
  --gold-500:  oklch(0.80 0.145 82);  /* accent — bread crust */
  --gold-600:  oklch(0.74 0.155 72);
  --amber-600: oklch(0.54 0.14 50);   /* links / active — AA on cream */
  --green-600: oklch(0.60 0.115 150); /* "open" status */

  /* Surfaces — neutrals tinted toward the brand hue */
  --cream-50:  oklch(0.992 0.008 85); /* page canvas */
  --cream-100: oklch(0.975 0.018 85); /* raised surface */
  --cream-200: oklch(0.955 0.024 84); /* sunken / hover */
  --gold-100:  oklch(0.93 0.05 88);   /* soft highlight */
  --ink:       oklch(0.28 0.012 60);  /* body text */
  --ink-soft:  oklch(0.42 0.02 58);   /* secondary text */
  --line:      oklch(0.88 0.018 75);  /* hairline */
  --line-strong: oklch(0.80 0.025 72);

  /* On-brown foreground */
  --on-brown: oklch(0.96 0.018 85);
  --on-brown-soft: oklch(0.84 0.03 82);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Fluid type scale (ratio ~1.28) */
  --step--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.92rem);
  --step-0:  clamp(1rem, 0.97rem + 0.16vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.7vw, 2rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.4vw, 4rem);
  --step-5:  clamp(2.5rem, 1.4rem + 5.2vw, 5.9rem);

  /* Space */
  --space-section: clamp(4rem, 3rem + 6vw, 8rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px oklch(0.30 0.045 55 / 0.08);
  --shadow-md: 0 14px 34px -22px oklch(0.30 0.045 55 / 0.45);
  --shadow-lg: 0 30px 60px -30px oklch(0.30 0.045 55 / 0.5);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  --measure: 64ch;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* warm paper grain over the whole canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--amber-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--brown-700);
  text-wrap: balance;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.section { padding-block: var(--space-section); position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--gold-500); border-radius: 2px; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 56ch; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--brown-700); color: var(--on-brown);
  padding: 0.7rem 1.1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--brown-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  line-height: 1; padding: 0.95em 1.5em; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--gold-600); color: var(--brown-900); }
.btn:active { transform: translateY(0); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brown-700); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--brown-700); color: var(--on-brown); border-color: var(--brown-700); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-brown); border-color: oklch(0.96 0.02 85 / 0.45); }
.btn--ghost-light:hover { background: var(--on-brown); color: var(--brown-900); }
.btn .ic { width: 1.15em; height: 1.15em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center;
  padding-block: clamp(0.5rem, 1.1vw, 0.8rem);
  background: var(--cream-50);
  box-shadow: 0 1px 0 var(--line);
  --header-fg: var(--brown-700);
  transition: box-shadow 0.4s var(--ease-out);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: clamp(38px, 5.2vw, 52px); width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav a {
  font-family: var(--font-body); font-weight: 500; font-size: var(--step-0);
  color: var(--header-fg); text-decoration: none; position: relative; padding-block: 0.3rem;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: 0.7em 1.2em; }

.site-header.scrolled { box-shadow: 0 1px 0 var(--line), var(--shadow-md); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent;
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--header-fg); transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.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: 820px) {
  /* Mobile: no burger menu — just a centered logo */
  .nav-toggle { display: none; }
  .nav { display: none; }
  .nav-backdrop { display: none; }
  .site-header .container { justify-content: center; }
  .brand { margin-inline: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; color: var(--on-brown); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--brown-900) url("../assets/img/hero-poster.jpg") center 38% / cover no-repeat; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(96deg, oklch(0.22 0.035 50 / 0.82) 0%, oklch(0.22 0.035 50 / 0.42) 48%, oklch(0.22 0.035 50 / 0) 80%),
    linear-gradient(180deg, oklch(0.26 0.04 55 / 0.5) 0%, oklch(0.26 0.04 55 / 0.28) 38%, oklch(0.24 0.035 55 / 0.6) 76%, oklch(0.20 0.03 50 / 0.92) 100%);
}
.hero__inner { padding-block: clamp(7rem, 16vh, 11rem) clamp(3.5rem, 9vh, 6.5rem); max-width: 1080px; }
.hero .eyebrow { color: var(--gold-500); }
.hero .eyebrow::before { background: var(--gold-500); }
.hero h1 { color: var(--on-brown); font-size: var(--step-5); font-weight: 500; line-height: 0.94; letter-spacing: -0.03em; margin-top: 1.1rem; overflow-wrap: break-word; }
.hero h1 em { display: block; font-style: italic; color: var(--gold-500); font-weight: 500; margin-top: 0.08em; }
.hero__slogan { font-size: var(--step-1); color: var(--on-brown-soft); margin-top: 1.5rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__cta .btn { font-size: 1.02rem; padding: 1.05em 1.65em; }
/* bolder: rehearsed entrance + cinematic drift */
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__inner > * { animation: heroRise 0.9s var(--ease-out) both; }
.hero__inner > :nth-child(1) { animation-delay: 0.10s; }
.hero__inner > :nth-child(2) { animation-delay: 0.22s; }
.hero__inner > :nth-child(3) { animation-delay: 0.36s; }
.hero__inner > :nth-child(4) { animation-delay: 0.50s; }
.hero__inner > :nth-child(5) { animation-delay: 0.62s; }
@keyframes heroZoom { from { transform: scale(1.001); } to { transform: scale(1.09); } }
.hero__media video { animation: heroZoom 30s var(--ease-out) both; transform-origin: 62% 42%; }

/* ---------- Story / Über uns ---------- */
.story__head { display: grid; gap: 1.2rem; max-width: var(--measure); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.story__head h2 { font-size: var(--step-4); line-height: 1.02; }
.story__head h2 em { font-style: italic; color: var(--amber-600); }
.story__grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }
.story__media { position: relative; }
.story__media::before { content: ""; position: absolute; left: -1.4rem; top: -1.4rem; width: 50%; height: 48%; background: var(--gold-100); border-radius: var(--radius-lg); z-index: -1; }
.story__media .photo-main { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1/1; object-fit: cover; object-position: 50% 32%; width: 100%; height: auto; }
.story__media .photo-inset {
  position: absolute; right: -1.2rem; bottom: -1.4rem; width: 42%; border-radius: var(--radius); height: auto;
  border: 6px solid var(--cream-50); box-shadow: var(--shadow-lg); aspect-ratio: 1/1; object-fit: cover; object-position: 50% 26%;
}
.story__text p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 54ch; }
.story__text .story__lead { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.01em; color: var(--brown-700); margin-bottom: 0.2rem; max-width: 24ch; }

/* bolder: full-width heritage ledger with monumental numerals */
.story__ledger { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(1.3rem, 5vw, 3.6rem); margin-top: clamp(2.4rem, 5vw, 3.6rem); padding-top: clamp(1.5rem, 2.5vw, 2.1rem); border-top: 2px solid var(--brown-700); }
.story__ledger .stat { display: flex; flex-direction: column; gap: 0.3rem; }
.story__ledger .stat b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); color: var(--brown-700); line-height: 0.85; letter-spacing: -0.02em; white-space: nowrap; }
.story__ledger .stat span { font-size: var(--step--1); color: var(--amber-600); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }

/* ---------- Öffnungszeiten ---------- */
.hours { background: var(--brown-800); color: var(--on-brown); border-radius: var(--radius-lg); overflow: hidden; position: relative; isolation: isolate; }
.hours::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.85; background: radial-gradient(135% 90% at 90% -12%, oklch(0.56 0.08 60 / 0.7), transparent 58%); }
.hours__grid { display: grid; grid-template-columns: 1fr 1fr; }
.hours__intro { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; gap: 1.1rem; justify-content: center; }
.hours__intro .eyebrow { color: var(--gold-500); }
.hours__intro .eyebrow::before { background: var(--gold-500); }
.hours__intro h2 { color: var(--on-brown); font-size: var(--step-4); line-height: 1.0; letter-spacing: -0.02em; }
.hours__intro h2 em { font-style: italic; color: var(--gold-500); }
.hours__intro p { color: var(--on-brown-soft); max-width: 36ch; }
.status-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.3rem 0.7rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: var(--step-0);
  background: oklch(0.96 0.02 85 / 0.1); border: 1px solid oklch(0.96 0.02 85 / 0.22); color: var(--on-brown);
}
.status-badge .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brown-500); position: relative; }
.status-badge.is-open { background: oklch(0.6 0.115 150 / 0.16); border-color: oklch(0.6 0.115 150 / 0.4); }
.status-badge.is-open .dot { background: var(--green-600); }
.status-badge.is-open .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--green-600); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

.hours__list { background: oklch(0.96 0.02 85 / 0.05); padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; gap: 0.1rem; }
.hours__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.1rem; border-radius: var(--radius-sm); }
.hours__row + .hours__row { border-top: 1px solid oklch(0.96 0.02 85 / 0.12); }
.hours__row .day { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); white-space: nowrap; }
.hours__row .time { font-variant-numeric: tabular-nums; color: var(--on-brown-soft); font-size: var(--step-1); white-space: nowrap; }
.hours__row.is-closed .time { color: oklch(0.74 0.03 60); }
.hours__row.is-today { background: var(--gold-500); color: var(--brown-900); border-top-color: transparent !important; box-shadow: var(--shadow-sm); }
.hours__row.is-today + .hours__row { border-top-color: transparent; }
.hours__row.is-today .time { color: oklch(0.30 0.06 55); }
.hours__row.is-today .day::after { content: " · heute"; font-family: var(--font-body); font-weight: 600; font-size: 0.78em; opacity: 0.7; }

/* ---------- Kontakt & Anfahrt ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: stretch; }
.contact__grid > div:first-child { display: flex; flex-direction: column; }
.info-card { background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--shadow-md); }
.info-list { list-style: none; padding: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 0.95rem; align-items: flex-start; }
.info-list .ic-wrap { flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-content: center; background: var(--gold-100); color: var(--brown-700); }
.info-list .ic-wrap svg { width: 20px; height: 20px; }
.info-list dt, .info-list .label { display: block; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.info-list .val { display: block; font-size: var(--step-1); color: var(--brown-700); font-family: var(--font-display); margin-top: 0.15rem; }
.info-list a.val { text-decoration: none; }
.info-list a.val:hover { color: var(--amber-600); }
.info-list .val--phone { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.05; letter-spacing: -0.01em; }

.map-card { margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cream-100); box-shadow: var(--shadow-md); flex: 1; display: flex; flex-direction: column; min-height: 240px; }
.map-card picture { width: 100%; display: block; flex: 1; min-height: 0; }
.map-card img { width: 100%; display: block; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .map-card img { aspect-ratio: 4/3; } }
.map-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; flex-wrap: wrap; }
.map-card__foot span { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-card { background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.4rem); box-shadow: var(--shadow-md); }
.form-card h3 { font-size: var(--step-3); }
.form-card > p { color: var(--ink-soft); margin-top: 0.4rem; margin-bottom: 1.6rem; }
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field--row { grid-template-columns: 1fr 1fr; gap: 1.1rem; display: grid; }
@media (max-width: 480px) { .field--row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: var(--step--1); color: var(--brown-700); }
.field label .req { color: var(--amber-600); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--cream-50); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem; width: 100%; transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.62 0.02 60); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px oklch(0.8 0.145 82 / 0.3); }
.field input:user-invalid, .field textarea:user-invalid { border-color: oklch(0.55 0.16 30); }
.field .err { font-size: var(--step--1); color: oklch(0.5 0.17 30); min-height: 0; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-soft); }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--amber-600); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-status { font-size: var(--step--1); font-weight: 600; }
.form-status.ok { color: var(--green-600); }
.form-status.bad { color: oklch(0.52 0.17 30); }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.btn .spinner { width: 1.05em; height: 1.05em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--brown-900); color: var(--on-brown-soft); margin-top: var(--space-section); isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url("../assets/img/footer-bg.webp"); background-size: cover; background-position: center; opacity: 0.12; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.footer__wordmark { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1; letter-spacing: -0.015em; color: var(--on-brown); }
.footer__brand p { margin-top: 1.1rem; max-width: 34ch; }
.footer h3 { color: var(--on-brown); font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--on-brown-soft); text-decoration: none; }
.footer a:hover { color: var(--gold-500); }
.footer__mini-hours { font-variant-numeric: tabular-nums; }
.footer__mini-hours span { color: var(--on-brown); }
.footer__bottom { border-top: 1px solid oklch(0.96 0.02 85 / 0.14); padding-block: 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem 2.4rem; flex-wrap: wrap; font-size: var(--step--1); }
.footer__bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 3.2vw, 2.6rem); }
.btn-link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.btn-link:hover { color: var(--gold-500); }
.socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; border: 1px solid oklch(0.96 0.02 85 / 0.22); }
.socials a:hover { background: var(--gold-500); color: var(--brown-900); border-color: var(--gold-500); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Cookie consent ---------- */
.consent-banner {
  position: fixed; left: 50%; bottom: clamp(0.8rem, 2vw, 1.6rem); translate: -50% 0; z-index: 300;
  width: min(680px, calc(100vw - 2rem)); background: var(--cream-50); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(1.2rem, 3vw, 1.6rem); display: none;
}
.consent-banner.show { display: block; animation: slideUp 0.5s var(--ease-out) both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.consent-banner h2 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.consent-banner p { font-size: var(--step--1); color: var(--ink-soft); }
.consent-banner p a { font-weight: 600; }
.consent-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.1rem; }
.consent-actions .btn { padding: 0.7em 1.2em; font-size: var(--step--1); }

.consent-modal { position: fixed; inset: 0; z-index: 310; display: none; place-content: center; padding: 1rem; }
.consent-modal.show { display: grid; }
.consent-modal__backdrop { position: absolute; inset: 0; background: oklch(0.26 0.04 55 / 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.consent-modal__panel {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: var(--cream-50); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem); animation: slideUp 0.45s var(--ease-out) both;
}
.consent-modal__panel h2 { font-size: var(--step-2); }
.consent-modal__panel > p { color: var(--ink-soft); font-size: var(--step--1); margin-top: 0.4rem; }
.consent-cat { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.consent-cat:first-of-type { margin-top: 1.2rem; }
.consent-cat h3 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 600; color: var(--brown-700); }
.consent-cat p { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.25rem; max-width: 42ch; }
.switch { position: relative; flex-shrink: 0; width: 50px; height: 28px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--cream-200); border: 1px solid var(--line-strong); border-radius: 999px; transition: background-color 0.25s var(--ease-out); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.28s var(--ease-out); }
.switch input:checked + .track { background: var(--green-600); border-color: var(--green-600); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:disabled + .track { background: var(--brown-500); border-color: var(--brown-500); opacity: 0.6; }
.switch input:focus-visible + .track { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.consent-modal__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(7rem, 14vh, 9rem); }
.legal__head { border-bottom: 1px solid var(--line); padding-bottom: 1.8rem; margin-bottom: 3rem; }
.legal__head a.back { font-size: var(--step--1); font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.legal__head h1 { font-size: var(--step-4); margin-top: 0.9rem; line-height: 1.0; letter-spacing: -0.02em; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-3); margin-top: 3.2rem; margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; color: var(--brown-700); margin-top: 1.8rem; margin-bottom: 0.4rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-top: 0.9rem; line-height: 1.75; }
.prose > p:first-of-type { font-size: var(--step-1); color: var(--ink); line-height: 1.6; }
.prose ul { margin-top: 0.9rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose strong { color: var(--brown-700); }
.prose address { font-style: normal; color: var(--ink); margin-top: 0.7rem; line-height: 1.8; }
.prose address strong { font-size: var(--step-1); }
.todo-flag { color: var(--amber-600); font-weight: 700; border-bottom: 1px dashed currentColor; }

/* ---------- FAQ ---------- */
.faq__list { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem 1.4rem; }
@media (max-width: 720px) { .faq__list { grid-template-columns: 1fr; } }
.faq__item {
  background: var(--cream-100); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem clamp(1.2rem, 3vw, 1.7rem);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.55rem);
  line-height: 1.22; color: var(--brown-700); cursor: pointer;
  list-style: none; transition: color 0.2s var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--amber-600); }
.faq__chevron {
  flex-shrink: 0; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: var(--gold-100); color: var(--brown-700);
  transition: transform 0.3s var(--ease-out), background-color 0.25s var(--ease-out);
}
.faq__item[open] summary .faq__chevron { transform: rotate(180deg); background: var(--gold-500); }
.faq__answer { padding: 0 clamp(1.1rem, 3vw, 1.6rem) 1.25rem; }
.faq__answer p { color: var(--ink-soft); max-width: 62ch; }
.faq__item[open] .faq__answer { animation: faq-reveal 0.32s var(--ease-out) both; }
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: minmax(240px, 0.85fr) 1.6fr; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.reviews__summary {
  background: var(--brown-800); color: var(--on-brown);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center; box-shadow: var(--shadow-md);
  position: sticky; top: 92px;
}
.reviews__score { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.2rem, 2rem + 4vw, 4.6rem); line-height: 1; color: var(--gold-500); letter-spacing: -0.02em; }
.reviews__stars { display: inline-flex; gap: 0.2rem; margin-top: 0.6rem; color: var(--gold-500); }
.reviews__stars svg { width: 22px; height: 22px; }
.reviews__count { margin-top: 0.7rem; color: var(--on-brown-soft); font-size: var(--step--1); }
.reviews__count strong { color: var(--on-brown); font-weight: 700; }
.reviews__summary .btn { margin-top: 1.5rem; width: 100%; --btn-fg: var(--on-brown); border-color: oklch(0.96 0.02 85 / 0.4); }
.reviews__summary .btn:hover { background: var(--on-brown); color: var(--brown-900); border-color: var(--on-brown); }

.reviews__list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); align-content: start; }
.review-card {
  display: flex; flex-direction: column;
  background: var(--cream-100); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.3rem, 2.6vw, 1.6rem);
  box-shadow: var(--shadow-sm);
}
.review-card__stars { color: var(--gold-600); font-size: 1rem; letter-spacing: 0.14em; }
.review-card blockquote { margin-top: 0.6rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-0); line-height: 1.45; color: var(--brown-700); }
.review-card figcaption { margin-top: auto; padding-top: 0.9rem; font-weight: 600; color: var(--ink-soft); font-size: var(--step--1); letter-spacing: 0.02em; }
.review-card__src { color: var(--ink-soft); font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 480px; margin-inline: auto; margin-bottom: 2.5rem; }
  .story__media .photo-inset { right: 0; }
  .hours__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__grid > div:first-child { display: block; }
  .map-card { display: block; flex: none; min-height: 0; }
  .map-card picture { flex: none; }
  .map-card img { height: auto; aspect-ratio: 16/9; }
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__summary { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; }
  .hero { align-items: center; }
  .hero__inner { padding-top: 7rem; }

  /* Öffnungszeiten: smaller on phones so the dynamic status label stays on one line */
  .hours__intro { padding: clamp(1.4rem, 6vw, 2rem); gap: 0.9rem; }
  .hours__intro h2 { font-size: var(--step-3); }
  .status-badge { font-size: 0.8rem; padding: 0.55rem 0.9rem 0.55rem 0.75rem; gap: 0.5rem; }
  .status-badge .dot { width: 9px; height: 9px; }
  .hours__list { padding: clamp(1rem, 5vw, 1.6rem); }
  .hours__row { padding: 0.8rem 0.85rem; }
  .hours__row .day, .hours__row .time { font-size: var(--step-0); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media video { display: none; }
}
