/* ============================================================
   global.css: Technik-Geruest + Design-Tokens der Site.

   WICHTIG: Die :root-Bloecke unten sind die EINZIGE Stelle, an der
   Design lebt (Farben, Font, Typo-Scale, Abstaende, Radien, Schatten,
   Motion). Alle Werte sind PLATZHALTER, nur damit der Styleguide vor
   Phase 2 ueberhaupt rendert. Phase 2 (Corporate Identity) MUSS jeden
   Token projektspezifisch setzen. Kein Platzhalter geht live, und
   zwei Kundenseiten teilen niemals dieselben Tokens.

   Nicht verhandelbar (Qualitaets-Untergrenzen, KEIN Design):
   Body-Schrift nie unter 17px, Touch-Targets min. 44px, WCAG-AA-
   Kontrast, Animationen nur mit transform + opacity.

   Fonts: self-hosted via css/fonts.css (scripts/fetch-fonts.sh),
   NIEMALS fonts.googleapis.com einbinden.
   ============================================================ */

:root {
  /* ── Farben (De-Kla: Schwarz / Gold / Weiss) ── */
  --color-brand-main:       #93743B;  /* Gold, dunkel — Eyebrows, Links, Akzente */
  --color-brand-darker:     #7D6332;  /* Gold Hover */
  --color-brand-lighter:    #BC915C;  /* Gold, hell — Buttons, Badges, Preise */
  --color-brand-subtle:     #F5EFE6;  /* Gold sehr hell (Hover-Flaechen) */
  --color-gold:             #BC915C;
  --color-bg-light:         #FFFFFF;  /* Standard-Sektionshintergrund */
  --color-bg-dark:          #080808;  /* Dunkle Baender / Footer */
  --color-bg-card:          #FFFFFF;
  --color-bg-accent:        #F3F3F3;  /* Wechsel-Sektionshintergrund (grau) */
  --color-border:           #E8E8E8;
  --color-text-muted:       #6C665F;  /* WCAG-AA auf Weiß & #F3F3F3 */
  --color-off-white:        #F4F1EC;
  --color-success:          #4E7A46;
  --color-heading:          #080808;
  --color-body:             #6B655F;  /* WCAG-AA-tauglicher warmer Grauton */

  /* ── Typografie: Arimo (Headings) + Raleway (Body/Buttons) ── */
  --font-heading:           'Arimo', 'Helvetica Neue', Arial, sans-serif;
  --font-main:              'Raleway', -apple-system, 'Segoe UI', sans-serif;
  --font-weight-heading:    700;
  --letter-spacing-h1:      -0.015em;
  --letter-spacing-h2:      -0.01em;
  --font-size-body:         17px;
  --line-height-body:       1.75;
  --line-height-heading:    1.12;
  --font-size-h1:           66px;
  --font-size-h1-md:        50px;
  --font-size-h1-sm:        34px;
  --font-size-h2:           60px;
  --font-size-h2-md:        44px;
  --font-size-h2-sm:        32px;
  --font-size-h3:           40px;
  --font-size-h3-sm:        28px;
  --font-size-h4:           22px;
  --font-size-h5:           18px;
  --font-size-eyebrow:      14px;

  /* ── Layout + Abstaende ── */
  --max-width:              1328px;   /* wie Kit-container_width im Bestand */
  --container-padding:      40px;
  --container-padding-sm:   20px;
  --section-padding:        100px 40px;
  --section-padding-mobile: 64px 20px;
  --header-gap-eyebrow:     10px;
  --header-gap-title:       16px;
  --header-gap-subline:     34px;

  /* ── Form + Tiefe ── */
  --radius-s:               10px;    /* Inputs */
  --radius-m:               16px;    /* Cards, Bilder */
  --radius-l:               24px;    /* grosse Baender */
  --radius-pill:            999px;   /* Buttons, Badges */
  --shadow-card:            0 14px 40px rgba(8, 8, 8, 0.06), 0 2px 6px rgba(8, 8, 8, 0.04);

  /* ── Motion ── */
  --ease-out:               cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:            cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:          0.25s;
  --reveal-duration:        0.7s;
  --reveal-distance:        24px;
}

/* Responsive Token-Umschaltung: Komponenten unten enthalten KEINE
   eigenen Breakpoint-Werte, hier werden nur Tokens umgeschaltet. */
@media (max-width: 1024px) {
  :root {
    --font-size-h1: var(--font-size-h1-md);
    --font-size-h2: var(--font-size-h2-md);
  }
}
@media (max-width: 767px) {
  :root {
    --font-size-h1: var(--font-size-h1-sm);
    --font-size-h2: var(--font-size-h2-sm);
    --font-size-h3: var(--font-size-h3-sm);
    --container-padding: var(--container-padding-sm);
    --header-gap-eyebrow: 10px;
    --header-gap-title: 14px;
    --header-gap-subline: 28px;
  }
}

/* ============================================================
   Ab hier nur noch Technik: alles referenziert Tokens,
   nirgendwo stehen Design-Literale.
   ============================================================ */

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

/* KEIN scroll-behavior: smooth hier oder anderswo: kollidiert mit Lenis (Phase 5). */

body {
  font-family: var(--font-main);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-body);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-heading);
}

h1 { font-size: var(--font-size-h1); letter-spacing: var(--letter-spacing-h1); }
h2 { font-size: var(--font-size-h2); letter-spacing: var(--letter-spacing-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }

a { color: var(--color-brand-main); text-decoration: none; }
a:hover { color: var(--color-brand-darker); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-brand-main);
  outline-offset: 2px;
}

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

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

/* Buttons: Look kommt komplett aus den Tokens (Radius, Farben, Motion).
   min-height 48px ist Touch-Target-Untergrenze, kein Design. */
.btn-primary, .btn-secondary, .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: var(--font-size-body);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition:
    background-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-fast) ease;
}
/* Primaer = schwarze Pill (1:1 zum Bestand) */
.btn-primary {
  background: var(--color-bg-dark);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: #FFFFFF;
  color: var(--color-bg-dark);
  box-shadow: inset 0 0 0 1.5px var(--color-bg-dark);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
/* Gold-Variante (Formular-Submit, CTA auf dunklem Grund) */
.btn-gold {
  background: var(--color-gold);
  color: #0A0A0A;
}
.btn-gold:hover { background: var(--color-bg-dark); color: #FFFFFF; transform: translateY(-2px); }
.btn-gold:active { transform: translateY(0); }
/* Sekundaer = Outline */
.btn-secondary {
  background: transparent;
  color: var(--color-heading);
  box-shadow: inset 0 0 0 1.5px var(--color-heading);
}
.btn-secondary:hover {
  background: var(--color-heading);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }

/* ── Section-Header: Eyebrow / Title / Subline ──
   PFLICHT: Jeder Section-Header nutzt diese 3 Klassen, damit Groessen,
   Abstaende und Alignment in JEDER Section identisch sind. Das ist ein
   Konsistenz-Mechanismus INNERHALB einer Site; wie er aussieht, steuern
   die Tokens oben. Niemals pro Section ueberschreiben. */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--font-size-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-main);
  margin-bottom: var(--header-gap-eyebrow);
}
/* kleines Gold-Quadrat vor dem Eyebrow (1:1 zum Bestand) */
.section-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--color-brand-main);
  flex: none;
}
.section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-h2);
  color: var(--color-heading);
  margin-bottom: var(--header-gap-title);
}
.section-subline {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
  margin-bottom: var(--header-gap-subline);
  max-width: 680px;
}

/* ── Reveal-Animationen (Init in js/main.js) ──
   Charakter (Distanz, Dauer, Kurve) kommt aus den Motion-Tokens.
   Ohne JS (html ohne .js-Klasse) bleibt alles sichtbar. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Screenshots deterministisch: screenshot.mjs setzt html.screenshot */
html.screenshot [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Barrierefreiheit: Bewegung reduzieren ──
   Deaktiviert Ken-Burns, Hover-Transforms, Reveal-Transitions und Lenis-Smoothing. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Google Maps Zwei-Klick (Markup: snippets/google-maps-consent.html) ── */
.map-consent {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-bg-accent);
}
.map-consent > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.85);
}
.map-consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(15, 23, 42, 0.55);
}
.map-consent-overlay p {
  color: var(--color-off-white);
  font-size: var(--font-size-body);
  max-width: 520px;
}
.map-consent-overlay a { color: #FFFFFF; text-decoration: underline; }
