/* =========================================================
   BASE.CSS — Genusswerte Bonn
   Design tokens · Reset · Typography · Utilities
   ========================================================= */

/* ---------------------------------------------------------
   Schriften — lokal gehostet statt von Google-Servern geladen.
   Grund: Google Fonts von fonts.googleapis.com/fonts.gstatic.com
   einzubinden überträgt bei jedem Seitenaufruf die Besucher-IP an
   Google (USA) — datenschutzrechtlich umstritten (u. a. LG München I,
   Urt. v. 20.01.2022, Az. 3 O 17493/20). Lokal gehostet entfällt
   diese Übertragung komplett, kein Hinweis in der Datenschutz-
   erklärung nötig.

   Nur die "latin"-Subsets (deckt Deutsch inkl. Umlaute/ß sowie
   Akzentzeichen wie in "Apéro" ab) — cyrillic/greek/vietnamese
   werden hier nicht gebraucht.

   Inter und Playfair Display sind Variable Fonts: eine Datei deckt
   mehrere Schriftschnitte ab (deshalb dieselbe src bei mehreren
   font-weight-Regeln — kein Duplikat, das ist beabsichtigt).
   --------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
}

/* ---------------------------------------------------------
   Design Tokens
   --------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:           #FAF7F2;
  --color-bg-alt:       #F2EDE4;
  --color-green:        #2D4A3E;
  --color-green-light:  #3D6356;
  --color-green-dark:   #1A3028;
  --color-gold:         #C9A96E;
  --color-gold-light:   #DFC08A;
  --color-text:         #1A1A1A;
  --color-text-muted:   #6B6B6B;
  --color-text-light:   #9A9A9A;
  --color-white:        #FFFFFF;
  --color-border:       #E0D8CC;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width:    1200px;
  --section-gap:  var(--space-24);
  --container-px: var(--space-6);

  /* Borders & Shadows */
  --radius-sm:   6px;
  --radius-card: 10px;
  --radius-btn:  6px;
  --radius-pill: 100px;

  --shadow-card:       0 2px 12px rgba(45, 74, 62, 0.08), 0 6px 24px rgba(45, 74, 62, 0.06);
  --shadow-card-hover: 0 8px 32px rgba(45, 74, 62, 0.16), 0 2px 8px rgba(45, 74, 62, 0.08);
  --shadow-header:     0 1px 0 var(--color-border);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

/* ---------------------------------------------------------
   Typography Scale
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

/* Playfair Display rendert "&" sehr verschnörkelt — in Überschriften
   auf ein normales Zeichen (Sans) umstellen */
.amp {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
}

p {
  max-width: 68ch;
}

p + p {
  margin-top: var(--space-4);
}

strong { font-weight: 600; }

/* ---------------------------------------------------------
   Layout Utilities
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* ---------------------------------------------------------
   Accessibility Utilities
   --------------------------------------------------------- */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-green);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-btn);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---------------------------------------------------------
   Focus Styles
   --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------
   Selection
   --------------------------------------------------------- */
::selection {
  background-color: var(--color-green);
  color: var(--color-white);
}

/* ---------------------------------------------------------
   Buchung pausiert / aktiv — gesteuert von config.js

   .gw-booking-off = externes Buchungssystem (aktuell)
   .gw-booking-on  = eigenes Gutscheinsystem

   NICHTS hiervon löschen — das ist der Rücksprung-Pfad.
   Die versteckten Elemente bleiben vollständig im HTML und
   kommen zurück, sobald in config.js bookingEnabled: true steht.
   --------------------------------------------------------- */
.gw-booking-off [data-booking-only]     { display: none !important; }
.gw-booking-on  [data-booking-off-only] { display: none !important; }
