/* ==========================================================================
   Collinghorster Grill — Stylesheet
   Basis: Design-System „Organic“ (claude.ai/design), Marken-Tokens der
   Projektseiten. Alle Farben/Radien/Schatten kommen aus den Variablen unten —
   keine Hex-Werte in den Komponenten hart codieren.
   ========================================================================== */

:root {
  /* Marken-Tokens (aus dem Design-Projekt übernommen) */
  --color-bg: #faf3e6;
  --color-surface: #f2e7d2;
  --color-text: #402020;
  --color-divider: #dfcdb8;

  --color-accent: #8a5540;
  --color-accent-100: #f4e7e0;
  --color-accent-200: #e5ccc0;
  --color-accent-300: #d0ab99;
  --color-accent-400: #b08069;
  --color-accent-500: #8a5540;
  --color-accent-600: #7a4433;
  --color-accent-700: #6b3b2a;
  --color-accent-800: #4a2620;
  --color-accent-900: #402020;

  --color-accent-2: #f0d888;
  --color-accent-2-100: #fcf5e1;
  --color-accent-2-200: #f8eac2;
  --color-accent-2-300: #f3dc9e;
  --color-accent-2-400: #f0d888;
  --color-accent-2-500: #f0d888;
  --color-accent-2-600: #d9bc5e;
  --color-accent-2-700: #8a6a18;
  --color-accent-2-800: #6b5214;
  --color-accent-2-900: #4a380d;

  --color-neutral-100: #f2e7d2;
  --color-neutral-200: #e5d6bc;
  --color-neutral-800: #3a1f1c;
  --color-neutral-900: #2a1414;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2a1414 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2a1414 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2a1414 22%, transparent);

  --container: 1180px;
  --pad-x: clamp(20px, 5vw, 56px);
}

/* --- Basis ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent); }

img { display: block; max-width: 100%; }
figure { margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent-200); }

.text-muted { color: color-mix(in srgb, var(--color-text) 62%, transparent); }

.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }

/* Nur für Screenreader sichtbar */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--color-accent); color: var(--color-bg);
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 12px; color: var(--color-bg); }

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 600;
  font-size: 16px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px;
}
.btn svg { display: block; flex: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }

.btn-secondary { border-color: color-mix(in srgb, var(--color-text) 20%, transparent); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

.btn-ghost { color: var(--color-accent-700); padding-inline: 12px; }
.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: 46px; height: 46px; padding: 0; }
.btn-lg { min-height: 48px; padding: 0 24px; }

/* --- Header ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.site-header .header-inner {
  display: flex; align-items: center; gap: 28px;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--color-text); }
.brand img { width: clamp(140px, 15vw, 176px); height: auto; }

.desknav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.desknav a { color: var(--color-text); white-space: nowrap; }
.desknav a:hover { color: var(--color-accent); }
.desknav a[aria-current="page"] { color: var(--color-accent-700); font-weight: 600; }

.mobnav {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 0 20px 10px; font-size: 15px; font-weight: 500;
}
.mobnav a { color: var(--color-text); white-space: nowrap; }
.mobnav a[aria-current="page"] { color: var(--color-accent-700); font-weight: 600; }

.call-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.call-btn span { white-space: nowrap; }

@media (max-width: 1060px) { .desknav { display: none; } }
@media (min-width: 1061px) { .mobnav { display: none; } }

/* --- Sektionen & Layout ----------------------------------------------------- */

.section { padding-block: clamp(48px, 6vw, 88px); }
.section-sm { padding-block: clamp(40px, 5vw, 72px); }
.section-tint { background: var(--color-accent-2-200); }
.section-surface { background: var(--color-surface); }

.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px); }
.hero-blob {
  position: absolute; right: -140px; top: -180px;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--color-accent-2-300); z-index: -1; pointer-events: none;
}
.hero-blob-warm { background: var(--color-accent-100); }

.kicker {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: var(--color-accent-700);
}

.display {
  font-size: clamp(38px, 5.6vw, 68px); line-height: 1.08;
  letter-spacing: -0.028em; margin-top: 16px;
}
.display-sm { font-size: clamp(34px, 4.8vw, 58px); }
h2.section-title { font-size: clamp(28px, 3.4vw, 42px); margin-top: 12px; }
h2.section-title-sm { font-size: clamp(26px, 3vw, 36px); }

.lead {
  font-size: 18px; line-height: 1.65; max-width: 52ch;
  margin: 18px 0 0; color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.split-wide-left { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
.split-wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
.split-start { align-items: start; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gal-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* !important nötig: einzelne Splits/Grids setzen ihre Desktop-Spalten als
   Inline-Style – der würde die Media-Query sonst aushebeln (Quetsch-Layout). */
@media (max-width: 900px) { .split { grid-template-columns: 1fr !important; } }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 700px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .gal-grid, .gal-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Foto-Rahmen */
.photo-frame { border-radius: calc(2 * var(--radius-lg)); overflow: hidden; box-shadow: var(--shadow-md); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.gal-grid img, .gal-grid-3 img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }

/* Info-Karten (Öffnungszeiten etc.) */
.info-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 24px 26px; }
.info-card .value { margin-top: 10px; font-size: 16.5px; line-height: 1.6; }
.info-card a { font-weight: 600; }

/* Preiskarten (Speisekarten-Auszug) */
.price-card { background: var(--color-bg); border-radius: var(--radius-lg); padding: 24px 24px 26px; }
.price-card h3 { font-size: 21px; line-height: 1.2; }
.price-card dl {
  display: grid; grid-template-columns: 1fr auto; gap: 9px 14px;
  margin: 16px 0 0; font-size: 15.5px;
}
.price-card dt, .price-card dd { margin: 0; }
.price-card dd { font-variant-numeric: tabular-nums; color: var(--color-accent-700); }

/* Runde Panels (Kegelbahn-Fakten, Kontakt-Karte, CTA) */
.panel { border-radius: calc(2 * var(--radius-lg)); padding: clamp(28px, 3vw, 44px); }
.panel-lg { padding: clamp(32px, 4vw, 56px); }
.panel-accent { background: var(--color-accent-100); }
.panel-tint { background: var(--color-accent-2-200); }
.panel-surface { background: var(--color-surface); }
.panel-dark { background: var(--color-neutral-800); color: var(--color-bg); }

.stat { font-family: var(--font-heading); font-size: 42px; line-height: 1; }
.stat-label {
  margin-top: 12px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: color-mix(in srgb, var(--color-text) 72%, transparent);
}
.panel-dark .stat-label { color: color-mix(in srgb, var(--color-bg) 75%, transparent); }

/* Status-Badge (geöffnet/geschlossen) */
.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--color-neutral-200); color: var(--color-neutral-800);
}
.status-badge::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor;
}
.status-badge.is-open { background: var(--color-accent-2-200); color: var(--color-accent-2-800); }

/* --- Speisekarten-Viewer ----------------------------------------------------- */

.menu-viewer {
  border-radius: var(--radius-lg); background: var(--color-bg);
  box-shadow: var(--shadow-md); padding: clamp(10px, 1.4vw, 18px);
}
.section-plain .menu-viewer, .menu-viewer.on-surface { background: var(--color-surface); }
.menu-viewer .pdf-host { display: grid; gap: 14px; min-height: 300px; }
.menu-viewer .pdf-host canvas { cursor: zoom-in; }
.menu-viewer .pdf-note {
  padding: 56px 24px; text-align: center; font-size: 16px;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.menu-viewer .pdf-error { padding: 48px 24px; text-align: center; }
.menu-viewer [hidden] { display: none; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.pager .pager-label {
  font-size: 15.5px; font-weight: 600; min-width: 13ch;
  text-align: center; font-variant-numeric: tabular-nums;
}

/* Vergrößerte Seitenansicht (Klick auf eine Speisekarten-Seite) */
.pdf-lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--color-neutral-900) 90%, transparent);
}
.pdf-lightbox[hidden] { display: none; }
.pdf-lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; color: var(--color-bg);
}
.pdf-lightbox-label { font-size: 15px; font-weight: 600; }
.pdf-lightbox-hint { font-size: 13px; opacity: 0.7; }
.pdf-lightbox-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; cursor: pointer;
  border: 0; border-radius: 999px; font-size: 26px; line-height: 1;
  background: var(--color-bg); color: var(--color-text);
}
.pdf-lightbox-close:hover { background: var(--color-accent-200); }
.pdf-lightbox-scroll {
  flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}
.pdf-lightbox-scroll canvas {
  display: block; margin: 0 auto; border-radius: 10px; background: #fff;
}

/* --- Karte & Consent ---------------------------------------------------------- */

.map-box {
  border-radius: calc(2 * var(--radius-lg)); overflow: hidden;
  min-height: 340px; background: var(--color-surface);
}
.map-box iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-box.tall, .map-box.tall iframe { min-height: 420px; }
.map-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; height: 100%; min-height: 340px; padding: 32px; text-align: center;
}
.map-box.tall .map-consent { min-height: 420px; }
.map-consent p {
  margin: 0; font-size: 15.5px; line-height: 1.6; max-width: 34ch;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
}

/* --- Cookie-Hinweis ------------------------------------------------------------ */

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: var(--color-bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px 24px;
}
.cookie-banner h2 { font-size: 19px; }
.cookie-banner p {
  font-size: 15px; line-height: 1.6; margin: 8px 0 0;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}
.cookie-banner .btn-row { margin-top: 16px; gap: 10px; }
.cookie-banner .btn { min-height: 44px; padding: 0 20px; }
.cookie-banner[hidden] { display: none; }

/* --- FAQ ------------------------------------------------------------------------ */

.faq details {
  border-radius: var(--radius-lg); background: var(--color-bg);
  padding: 18px 24px; margin-top: 12px;
}
.faq summary {
  cursor: pointer; font-family: var(--font-heading); font-size: 19px;
  line-height: 1.3; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent-700); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: color-mix(in srgb, var(--color-text) 82%, transparent); }

/* --- Footer ---------------------------------------------------------------------- */

.site-footer { background: var(--color-neutral-800); color: var(--color-bg); padding-top: clamp(40px, 5vw, 64px); }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer .footer-brand { font-family: var(--font-heading); font-size: 20px; }
.site-footer .footer-heading {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; opacity: 0.7;
}
.site-footer p { font-size: 15.5px; line-height: 1.7; margin: 12px 0 0; opacity: 0.8; }
.site-footer .footer-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; font-size: 15.5px; }
.site-footer .footer-links a, .site-footer .footer-bottom a { color: var(--color-bg); opacity: 0.85; }
.site-footer .footer-links a:hover, .site-footer .footer-bottom a:hover { opacity: 1; color: var(--color-bg); }
.site-footer .tel { color: var(--color-accent-2-500); }
.site-footer .footer-bottom {
  margin-top: 32px; padding: 28px 0 32px;
  border-top: 1px solid color-mix(in srgb, var(--color-bg) 18%, transparent);
  display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; opacity: 0.75;
}
.site-footer .footer-bottom .push-right { margin-left: auto; }
@media (max-width: 700px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* Credit-Streifen (wie auf bitnet-system.de) */
.footer-credit {
  background: var(--color-neutral-900);
  padding: 12px 0;
  text-align: center; font-size: 13.5px;
}
.footer-credit a { color: color-mix(in srgb, var(--color-bg) 72%, transparent); }
.footer-credit a:hover { color: var(--color-bg); }
.footer-credit strong { font-weight: 700; color: color-mix(in srgb, var(--color-bg) 88%, transparent); }
