/* ==========================================================================
   Landgaststätte Ponyhof – zentrales Stylesheet für alle Seiten
   Aufbau:  1 Schriften · 2 Design-System „Classical“ (Tokens + Bausteine)
            3 Gemeinsames Layout + Startseite · 4 Ergänzungen (Barrierefreiheit,
            Hilfsklassen, Status, Anfrageformular) · 5 Speisekarte · 6 Rechtstexte
   Keine Inline-Styles in den HTML-Dateien: erlaubt eine strikte
   Content-Security-Policy (style-src 'self').
   ========================================================================== */

/* ---------- 1 Schriften (lokal, SIL Open Font License) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-400-normal.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: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-normal.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: 'Courier Prime'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/courier-prime-latin-700-italic.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: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/courier-prime-latin-700-normal.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: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/kaushan-script-latin-400-normal.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: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/lora-latin-400-italic.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: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lora-latin-400-normal.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: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/lora-latin-600-normal.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: 'Quicksand'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/quicksand-latin-400-normal.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: 'Quicksand'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/quicksand-latin-500-normal.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: 'Quicksand'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/quicksand-latin-600-normal.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; }

/* ---------- 2 Design-System „Classical“ ---------- */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201f1d;
  --color-accent: #b68235;
  --color-accent-2: #ac803e;
  --color-divider: color-mix(in srgb, #201f1d 16%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff3e4;
  --color-accent-200: #ffe3bf;
  --color-accent-300: #facb8d;
  --color-accent-400: #e1ad66;
  --color-accent-500: #c28d41;
  --color-accent-600: #a06f24;
  --color-accent-700: #7d5411;
  --color-accent-800: #5a3b0a;
  --color-accent-900: #3a270d;

  --color-accent-2-100: #fff3e4;
  --color-accent-2-200: #ffe3be;
  --color-accent-2-300: #f5cd96;
  --color-accent-2-400: #dbaf70;
  --color-accent-2-500: #bc8f4e;
  --color-accent-2-600: #9b7232;
  --color-accent-2-700: #79561f;
  --color-accent-2-800: #573d14;
  --color-accent-2-900: #382810;

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif; /* Ersatzschrift mit Serifen statt system-ui */
  --font-heading-weight: 600; /* review round 3: bold retired — semibold is the
     interface headings' ceiling (they need the weight at small sizes); display
     text goes lighter still, to the normal cut (see the deck) */
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  --space-1: 4.6px;
  --space-2: 9.2px;
  --space-3: 13.8px;
  --space-4: 18.4px;
  --space-6: 27.6px;
  --space-8: 36.8px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.plate{filter:sepia(0.22) saturate(0.82) contrast(1.05);box-sizing:border-box;
  border:6px solid var(--color-surface);outline:1px solid var(--color-divider)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: transparent; border: 1px solid var(--color-divider);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg); border: 1px solid var(--color-divider);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }


/* ---------- 3 Gemeinsames Layout + Startseite ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
html.has-tabs { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:root {
  --font-script: "Kaushan Script", cursive; --font-item: "Quicksand", system-ui, sans-serif; --font-price: "Courier Prime", "Courier New", monospace;
  --paper: #f7e6cf; --paper-deep: #efd5b4; --ink: #24190f; --ink-soft: #4a3a2a;
  --note: #963f3a; /* vorher #a4524c: nur 3,8:1 auf Papier – jetzt 4,8:1 */
  --line: color-mix(in srgb, #7d5411 22%, transparent);
}
body { margin: 0; text-wrap: pretty; background: var(--color-accent-100); color: var(--color-accent-900); font-family: var(--font-body); }
img, video { height: auto; }
a { color: var(--color-accent-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 72px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--color-accent-100); color: var(--color-accent-900); padding: 8px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }

/* Buttons: auf hellem Grund dunkler für ausreichenden Kontrast */
.btn { min-height: 44px; padding-inline: 18px; font-size: 16px; text-decoration: none; }
.btn-primary { color: var(--color-accent-700); border-color: var(--color-accent-700); }
.btn-primary:hover { color: var(--color-accent-800); background: color-mix(in srgb, var(--color-accent-700) 10%, transparent); }
.btn-ghost { color: var(--color-accent-700); padding-inline: 12px; }
.dark .btn-primary { color: var(--color-accent-300); border-color: var(--color-accent-400); }
.dark .btn-primary:hover { color: var(--color-accent-200); background: color-mix(in srgb, var(--color-accent-300) 12%, transparent); }
.dark .btn-ghost { color: var(--color-accent-200); }
/* Telefon: auffällig, gut lesbar */
.btn-call { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 22px 10px 18px; border-radius: 6px; background: var(--color-accent-300); color: var(--color-accent-900) !important; text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: 0.02em; font-feature-settings: 'tnum' 1, 'lnum' 1; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: background .15s, transform .15s; }
.btn-call:hover { background: var(--color-accent-200); transform: translateY(-1px); }
.btn-call svg { width: 24px; height: 24px; flex: none; }
.btn-call small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: .75; line-height: 1.2; }
.btn-call span { line-height: 1.15; }
.light .btn-call, .res-card .btn-call { background: var(--color-accent-900); color: var(--color-accent-100) !important; }
.light .btn-call:hover, .res-card .btn-call:hover { background: var(--color-accent-800); }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--color-accent-200) !important; font-weight: 600; font-size: 17px; font-feature-settings: 'tnum' 1, 'lnum' 1; letter-spacing: .02em; text-decoration: none; }
.nav-tel svg { width: 18px; height: 18px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--color-accent-700) 40%, transparent); color: var(--color-accent-800); text-decoration: none; font-size: 15px; }
.social a:hover { background: color-mix(in srgb, var(--color-accent-700) 10%, transparent); }
.social a.wa { border-color: #1f8a4c; color: #146c3a; }
.social a.wa:hover { background: color-mix(in srgb, #25d366 14%, transparent); }
.tag-outline { border-color: var(--color-accent-700); color: var(--color-accent-700); }

/* Kopf */
.dark { background: var(--color-accent-900); color: var(--color-accent-100); }
.nav { max-width: 1200px; margin: 0 auto; padding: 14px clamp(20px, 5vw, 72px); gap: 14px 22px; flex-wrap: wrap; height: auto; background: transparent; border-bottom: 1px solid color-mix(in srgb, var(--color-accent-300) 30%, transparent); color: var(--color-accent-100); }
.nav-brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--color-accent-100) !important; font-size: 20px; }
.nav-brand img { width: auto; height: 30px; }
.nav-brand span { font-family: var(--font-heading); font-weight: 600; font-size: 19px; letter-spacing: .01em; }
.nav-brand b { font-weight: 600; color: var(--color-accent-300); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--color-accent-300); font-size: 15px; }
.nav-links a:hover { color: var(--color-accent-200); }
.nav-toggle { display: none; }
@media (max-width: 1240px) and (min-width: 1001px) { .nav-tel-item { display: none; } }
.nav-call { display: none; }
@media (max-width: 1000px) {
  .nav-call { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; background: var(--color-accent-300); color: var(--color-accent-900) !important; }
  .nav-call svg { width: 20px; height: 20px; }
  .nav-tel-item { display: none; }
  .nav { gap: 10px; }
  .nav-brand { gap: 10px; }
  .nav-brand span { font-size: 17px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-accent-400); background: transparent; border-radius: 4px; cursor: pointer; }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-accent-300); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; }
  .nav.open .nav-links { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 2px; border-top: 1px solid color-mix(in srgb, var(--color-accent-300) 18%, transparent); font-size: 17px; }
  .nav-links li .btn { margin-top: 10px; width: 100%; }
}

@media (max-width: 380px) { .nav-brand span { font-size: 15px; } .nav-brand img { height: 24px; } .nav { padding-inline: 16px; } }
.hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,19,6,.88) 0%, rgba(30,19,6,.72) 38%, rgba(30,19,6,.25) 70%, rgba(30,19,6,.1) 100%), linear-gradient(0deg, rgba(30,19,6,.55), transparent 35%); }
.hero-inner { width: 100%; padding-block: clamp(56px, 9vw, 120px); }
.hero-inner > * { max-width: 600px; }
.eyebrow { display: block; font-size: 13px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 14px; font-weight: 600; }
.dark .eyebrow, .hero .eyebrow { color: var(--color-accent-300); margin-bottom: 18px; }
.hero h1 { font-family: var(--font-script); font-weight: 400; font-size: clamp(46px, 6.6vw, 92px); line-height: 1.08; letter-spacing: 0; margin: 0 0 24px; color: var(--color-accent-100); text-shadow: 0 2px 18px rgba(0,0,0,.35); max-width: 12ch; }
.hero-lead { font-size: 18px; line-height: 30px; max-width: 50ch; margin: 0 0 32px; color: var(--color-accent-100); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--color-accent-200); }
.hero-facts li::before { content: "•"; margin-right: 8px; color: var(--color-accent-400); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn-hero { min-height: 56px; font-size: 18px; color: var(--color-accent-100) !important; border-color: color-mix(in srgb, var(--color-accent-100) 70%, transparent) !important; backdrop-filter: blur(2px); background: rgba(30,19,6,.25); }
.btn-hero:hover { background: rgba(255,243,228,.14) !important; }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(30,19,6,.55) 0%, rgba(30,19,6,.8) 55%, rgba(30,19,6,.92) 100%); }
  .hero-bg { object-position: 50% 50%; } /* mobil wird ein vorab zugeschnittenes Hochformat geladen */
}

/* Abschnitte */
section.block { padding-block: clamp(40px, 6vw, 76px); }
h2.display { font-family: var(--font-script); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.15; letter-spacing: 0; margin: 0; color: var(--color-accent-800); }
.flourish { display: flex; align-items: center; gap: 10px; color: var(--color-accent-700); font-size: 13px; margin: 10px 0 0; }
.flourish::before, .flourish::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .55; }
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 12px clamp(28px, 5vw, 80px); align-items: end; }
.text { font-size: 16px; line-height: 28px; margin: 0; color: color-mix(in srgb, var(--color-accent-900) 86%, transparent); }
.rule { height: 1px; border: 0; margin: 0; background: color-mix(in srgb, var(--color-accent-700) 28%, transparent); }

.food { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 16px; margin-top: 40px; }
.food-item { position: relative; margin: 0; height: clamp(260px, 30vw, 380px); overflow: hidden; border-radius: 6px; box-shadow: 0 8px 22px color-mix(in srgb, #2d2b2b 18%, transparent); }
.food-item img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .6s ease; }
.food-item:hover img { transform: scale(1.04); }
.food-item figcaption { position: absolute; inset: auto 0 0 0; margin: 0; padding: 40px 18px 14px; font-family: var(--font-script); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; color: #fff7ec; background: linear-gradient(0deg, rgba(30,19,6,.78), transparent); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
@media (max-width: 700px) {
  .food { grid-template-columns: 1fr 1fr; gap: 10px; }
  .food-item { height: 220px; }
  .food-item.wide { grid-column: span 2; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .food-item img { transition: none; } .food-item:hover img { transform: none; } }
.dishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin-top: 40px; }
.card { background: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.5), transparent 55%), linear-gradient(180deg, var(--paper), var(--paper-deep)); border: 0; box-shadow: 0 6px 18px color-mix(in srgb, #2d2b2b 12%, transparent), inset 0 0 0 1px rgba(125,84,17,.12); padding: 22px; border-radius: 6px; }
.card-kicker { color: var(--note); font-family: var(--font-script); font-size: 20px; letter-spacing: 0; text-transform: none; margin: 0; }
.card-title { color: var(--color-accent-900); font-family: var(--font-item); font-weight: 600; font-size: 19px; letter-spacing: -.01em; margin: 0; }
.card-body { color: color-mix(in srgb, var(--color-accent-900) 85%, transparent); font-size: 14.5px; line-height: 1.6; opacity: 1; }
.card-meta { margin: 0; justify-content: space-between; font-size: 13px; color: color-mix(in srgb, var(--color-accent-900) 75%, transparent); }
.card-meta .price { font-family: var(--font-price); font-style: italic; font-weight: 700; letter-spacing: .04em; color: var(--color-accent-900); font-size: 17px; }
.small-note { font-size: 13px; line-height: 20px; margin: 16px 0 0; color: color-mix(in srgb, var(--color-accent-900) 72%, transparent); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split .text + .text { margin-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { font-size: 13px; padding: 4px 12px; }
.tag-accent { background: var(--color-accent-200); }

.gallery { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: clamp(200px, 24vw, 300px); gap: 16px; padding-bottom: clamp(40px, 6vw, 76px); }
.gallery figure { margin: 0; overflow: hidden; }
.gallery .g-video { grid-row: span 2; }
.gallery img, .gallery video { width: 100%; height: 100% !important; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .gallery .g-video { grid-column: span 2; grid-row: span 3; }
}
.split img { width: 100%; object-fit: cover; }

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px clamp(32px, 5vw, 64px); }
.hours { width: 100%; color: var(--color-accent-900); font-family: var(--font-item); font-weight: 500; font-size: 16px; }
.hours td { padding: 12px 8px; }
.hours td:last-child { text-align: right; white-space: nowrap; font-feature-settings: 'tnum' 1; }
.hours tr.today { background: color-mix(in srgb, var(--color-accent-300) 35%, transparent); font-weight: 600; }
.hours tr.today td:first-child::after { content: " · heute"; font-weight: 400; color: var(--color-accent-700); }
.table tbody tr:hover { background: transparent; }
.hours tr.today:hover { background: color-mix(in srgb, var(--color-accent-300) 35%, transparent); }
address { font-style: normal; font-size: 16px; line-height: 28px; margin: 24px 0 0; color: color-mix(in srgb, var(--color-accent-900) 86%, transparent); }

.map-box { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--color-accent-200) 70%, transparent), color-mix(in srgb, var(--color-accent-300) 45%, transparent)); color: var(--color-accent-900); }
.map-box img { width: 96px; height: 96px; margin: 0 auto 12px; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-box.loaded { padding: 0; }
.map-title { font-family: var(--font-heading); font-size: 22px; line-height: 1.3; margin: 0 0 6px; }
.map-hint { font-size: 13px; line-height: 20px; margin: 0 auto 16px; max-width: 34ch; color: color-mix(in srgb, var(--color-accent-900) 78%, transparent); }

.res-card { padding: 28px; }
.res-card .btn-call { margin: 6px 0 4px; font-size: clamp(26px, 3.4vw, 34px); }
.res-or { font-size: 14px; margin: 14px 0 0; color: color-mix(in srgb, var(--color-accent-900) 80%, transparent); }
.foot-tel { font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: .02em; color: var(--color-accent-200) !important; text-decoration: none; font-feature-settings: 'tnum' 1, 'lnum' 1; }

footer { background: var(--color-accent-900); color: var(--color-accent-200); }
.foot { padding-block: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px 40px; font-size: 14px; line-height: 24px; }
.foot a { color: var(--color-accent-300); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 120px; height: 120px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 28px; }
.foot-bottom { border-top: 1px solid color-mix(in srgb, var(--color-accent-300) 20%, transparent); padding-block: 16px; font-size: 12px; color: color-mix(in srgb, var(--color-accent-200) 75%, transparent); }

/* ---------- 4 Ergänzungen ---------- */
picture { display: contents; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Sichtbarer Tastaturfokus: 6,1:1 auf hellem, 9,5:1 auf dunklem Grund (vorher 3,1:1) */
:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, footer :focus-visible, .tabs :focus-visible { outline-color: var(--color-accent-300); }
.btn-call:focus-visible { outline-offset: 4px; }

/* Hilfsklassen (ersetzen frühere style="…"-Attribute) */
.mt-16 { margin-top: 16px; }
.mt-28 { margin-top: 28px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.measure { max-width: 52ch; }
.measure-narrow { max-width: 46ch; }
.pos-low { object-position: 50% 85%; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.flourish.gap { margin-bottom: 22px; }
.block-tight { padding-bottom: 36px !important; }
.block-flush { padding-top: 0 !important; }
.split-top { align-items: start; }
h2.display.display-sm { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 16px; }

/* Kopf: Zeile im H1, aktive Seite, Navigation */
.hero h1 .eyebrow { font-family: var(--font-body); max-width: none; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.nav-links a[aria-current="page"] { color: var(--color-accent-100); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Öffnungsstatus: steht mit festem Text im HTML (kein Layout-Sprung), das Skript ersetzt ihn durch den Live-Status */
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 12px; border-radius: 18px; font-family: var(--font-item); font-weight: 600; font-size: 15px; line-height: 1.3; min-height: 34px; background: rgba(30,19,6,.55); color: var(--color-accent-100); border: 1px solid color-mix(in srgb, var(--color-accent-300) 45%, transparent); }
.status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent-400); }
.status.is-open::before { background: #7fd28c; box-shadow: 0 0 0 4px rgba(127,210,140,.22); }
.status.is-closed::before { background: transparent; border: 2px solid var(--color-accent-300); }

/* Öffnungszeiten: bricht auf schmalen Bildschirmen nicht mehr um */
@media (max-width: 480px) { .hours { font-size: 15px; } .hours td { padding: 12px 6px; } }

/* Video in der Galerie: Pause-Schalter (WCAG 2.2.2) */
.g-video { position: relative; }
.video-toggle { position: absolute; right: 14px; bottom: 14px; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--color-accent-100) 60%, transparent); border-radius: 999px; background: rgba(30,19,6,.72); color: var(--color-accent-100); font-family: var(--font-item); font-weight: 600; font-size: 14px; cursor: pointer; }
.video-toggle:hover { background: rgba(30,19,6,.9); }
.video-toggle:focus-visible { outline-color: var(--color-accent-300); }

/* Reservierungsanfrage per E-Mail */
.res-form { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; align-items: end; /* Felder bündig, auch wenn ein Label umbricht */ }
.res-form h3 { grid-column: 1 / -1; font-family: var(--font-item); font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; margin: 0; color: var(--color-accent-900); }
.res-form .field > label { font-family: var(--font-item); font-weight: 500; font-size: 14px; color: var(--ink-soft); }
.res-form .input { min-height: 44px; font-family: var(--font-item); font-size: 16px; color: var(--ink); background: rgba(255,255,255,.55); border-color: color-mix(in srgb, var(--color-accent-700) 55%, transparent); }
.res-form .input:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 1px; }
.res-form .wide { grid-column: 1 / -1; }
.res-form .btn-mail { grid-column: 1 / -1; min-height: 48px; font-size: 17px; color: var(--color-accent-100); background: var(--color-accent-900); border-color: var(--color-accent-900); }
.res-form .btn-mail:hover { background: var(--color-accent-800); }
.res-form .btn-mail svg { width: 20px; height: 20px; }
.res-msg { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--note); font-weight: 600; }
.res-hint { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 380px) { .res-form { grid-template-columns: 1fr; } }
.res-form input[type="date"], .res-form input[type="time"] { -webkit-appearance: none; appearance: none; }

/* Fuß */
.foot-contact strong { color: var(--color-accent-100); font-weight: 600; }
.foot-hours { display: block; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.nav-tel { min-height: 28px; }
@media (max-width: 350px) { .nav { padding-inline: 12px; gap: 8px; } .nav-brand { gap: 8px; } .nav-brand span { font-size: 14px; } }

/* Kopfzeile bleibt einzeilig, auch solange die Webschriften noch laden (vorher: Umbruch und Layout-Sprung, CLS 0,2–0,4) */
@media (max-width: 1000px) {
  .nav-brand { flex: 1 1 0; min-width: 0; margin-right: 0; overflow: hidden; }
  .nav-brand span { overflow: hidden; text-overflow: ellipsis; }
  .nav-brand img { flex: none; }
}
@media (min-width: 1001px) {
  .nav { flex-wrap: nowrap; }
  .nav-brand { flex: none; }
  .nav-links { flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
}

/* ---------- 5 Speisekarte ---------- */
/* Kopf der Unterseiten */
.subhero { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 72px) clamp(36px, 5vw, 64px); text-align: center; }
.subhero img { width: 120px; height: 120px; margin: 0 auto 18px; }
.subhero .kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-300); margin: 0 0 14px; }
.subhero h1 { font-family: var(--font-script); font-weight: 400; font-size: clamp(46px, 8vw, 88px); line-height: 1.05; letter-spacing: 0; margin: 0; color: var(--color-accent-100); }

/* Sprungleiste Speisen / Getränke */
.tabs { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--color-accent-900) 96%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid color-mix(in srgb, var(--color-accent-300) 25%, transparent); }
.tabs-inner { max-width: 1200px; margin: 0 auto; padding: 10px clamp(20px, 5vw, 72px); display: flex; gap: 10px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.tabs-inner::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--color-accent-200); font-family: var(--font-item); font-weight: 500; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-accent-300) 30%, transparent); white-space: nowrap; }
.tabs a.main { background: var(--color-accent-300); color: var(--color-accent-900); border-color: var(--color-accent-300); font-weight: 600; }
.tabs a:hover { border-color: var(--color-accent-300); color: var(--color-accent-100); }
.tabs a.main:hover { color: var(--color-accent-900); }
.tabs .sep { flex: none; width: 1px; height: 22px; background: color-mix(in srgb, var(--color-accent-300) 35%, transparent); }

/* Karten-Seiten im Stil der gedruckten Speisekarte */
main.karte { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 5vw, 72px) clamp(48px, 7vw, 96px); display: grid; gap: clamp(28px, 5vw, 56px); }
.page {
  position: relative; overflow: hidden; border-radius: 6px; color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.45), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(160,111,36,.10), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-deep));
  box-shadow: 0 12px 32px color-mix(in srgb, #2d2b2b 18%, transparent), inset 0 0 0 1px rgba(125,84,17,.12);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(32px, 5vw, 56px);
}
.page::before { /* Pferd als Wasserzeichen wie auf der gedruckten Karte */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/wasserzeichen.webp") center 38% / min(560px, 80%) no-repeat; opacity: .07; filter: sepia(.4);
}
.page-head { position: relative; text-align: center; margin-bottom: clamp(20px, 4vw, 40px); }
.page-head h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.15; letter-spacing: 0; margin: 0; color: var(--color-accent-800); }
.head-rule { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--color-accent-700); margin-top: 6px; font-size: 14px; }
.head-rule::before, .head-rule::after { content: ""; width: 70px; height: 1px; background: var(--color-accent-700); opacity: .6; }
.cols { position: relative; columns: 2 380px; column-gap: clamp(32px, 6vw, 88px); }

.menu-block { break-inside: avoid; margin: 0 0 clamp(26px, 4vw, 40px); }
.menu-block h3 { font-family: var(--font-script); font-weight: 400; font-size: clamp(30px, 3.6vw, 38px); line-height: 1.15; letter-spacing: 0; margin: 0 0 10px; color: var(--ink); }
.menu-block h3 small { font-size: .5em; }
.items { list-style: none; margin: 0; padding: 0 0 0 clamp(4px, 1.4vw, 18px); }
.item { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; font-family: var(--font-item); font-size: 17px; font-weight: 500; color: var(--ink-soft); letter-spacing: -.01em; }
.item .name { flex: 1; min-width: 0; }
.price { font-family: var(--font-price); font-style: italic; font-weight: 700; font-size: 16px; letter-spacing: .12em; color: var(--ink); white-space: nowrap; text-align: right; }
.item.multi { align-items: flex-start; padding: 7px 0; }
.item.multi + .item.multi { border-top: 1px dashed var(--line); }
.sizes { display: grid; grid-template-columns: auto auto; column-gap: clamp(18px, 4vw, 44px); row-gap: 2px; align-items: baseline; }
.size { font-family: var(--font-item); font-size: 15px; font-weight: 400; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.note { font-family: var(--font-price); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--note); text-align: center; margin: 14px auto 0; max-width: 40ch; line-height: 1.6; }

.hint { text-align: center; font-size: 13px; line-height: 1.6; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--color-accent-900) 74%, transparent); margin: 0; }
.karte-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; }

@media (max-width: 520px) {
  .item { font-size: 16px; }
  .price { font-size: 15px; letter-spacing: .06em; }
  .cols { columns: 1; }
}
@media print {
  .dark, .tabs, footer, .hint, .karte-cta, .skip { display: none !important; }
  body { background: #fff; }
  main.karte { padding: 0; }
  .page { box-shadow: none; break-after: page; }
}

/* ---------- 6 Impressum, Datenschutz, Fehlerseite ---------- */
main.legal { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 5vw, 40px) clamp(48px, 7vw, 88px); }
main.legal .page::before { background-position: center 40%; background-size: min(460px, 80%); opacity: .06; filter: none; }
main.legal section { position: relative; margin: 0 0 30px; }
main.legal section:last-child { margin-bottom: 0; }
main.legal h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; letter-spacing: 0; margin: 0 0 10px; color: var(--color-accent-800); }
main.legal p { font-size: 16px; line-height: 1.75; margin: 0 0 10px; color: var(--ink-soft); }
main.legal a { color: var(--color-accent-700); overflow-wrap: anywhere; }
main.legal .big { font-family: var(--font-heading); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 6px; }
/* Platzhalter – vor Veröffentlichung ausfüllen */
.todo { background: #fff2a8; color: #6b4b00; padding: 1px 6px; border-radius: 3px; font-style: normal; outline: 1px dashed #c9a400; }
main.legal .center { text-align: center; }
main.legal .center .actions { justify-content: center; margin-top: 22px; }

/* 404-Seite: „4 🐴 4“ im Kopf, Auswege als kleine Speisekarte */
.err-code { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.6vw, 18px); margin: 0 0 clamp(14px, 2.4vw, 26px); font-family: var(--font-script); font-size: clamp(96px, 19vw, 190px); line-height: .9; color: var(--color-accent-300); text-shadow: 0 6px 0 rgba(0,0,0,.18); }
.err-code img { width: clamp(104px, 20vw, 200px); height: auto; margin: 0 clamp(-14px, -1.5vw, -6px); transform: rotate(-7deg); transform-origin: 50% 80%; }
.err-code span:first-child { transform: rotate(-4deg); }
.err-code span:last-child { transform: rotate(5deg); }
@media (prefers-reduced-motion: no-preference) {
  .err-code img { animation: pony-auf 1.1s cubic-bezier(.3, 1.4, .5, 1) .2s both; }
  @keyframes pony-auf { from { transform: translateX(-60%) rotate(4deg); opacity: 0; } to { transform: rotate(-7deg); opacity: 1; } }
}
.err-hero h1 { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.12; max-width: 16ch; margin-inline: auto; }
.err-lead { max-width: 46ch; margin: 18px auto 0; font-size: 18px; line-height: 1.65; color: var(--color-accent-200); }
main.legal.err { max-width: 720px; }
.err-menu { padding: 0; position: relative; }
.err-menu .item { align-items: center; padding: 14px 0; border-top: 1px dashed var(--line); font-size: 19px; }
.err-menu .item:first-child { border-top: 0; }
main.legal .err-menu a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: normal; }
main.legal .err-menu a:hover { color: var(--color-accent-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.err-menu a small { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
main.legal .note { position: relative; margin-top: 22px; }
