/* ════════════════════════════════════════════════════════════
   Baurenovierung Zimmermann — global.css
   Mood: „Frisch & Luftig" — hell, klares Blau, frisches Teal
   ════════════════════════════════════════════════════════════ */

/* ─── Google Fonts Import ─── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Figtree:wght@400;500;600&display=swap');

/* ─── CSS-Variablen ─── */
:root {
  /* ── Farben: Brand ── */
  --color-brand-main:       #2563EB;   /* Klares Blau (CTAs, Links) */
  --color-brand-darker:     #1D4ED8;   /* Hover / dunkler */
  --color-brand-lighter:    #60A5FA;   /* Himmelblau (Highlights) */
  --color-brand-subtle:     #EFF5FF;   /* Sehr helle Blau-Tönung (Panels) */

  /* ── Farben: Akzent (Teal) ── */
  --color-accent:           #0EA5A0;   /* Frisches Teal */
  --color-accent-darker:    #0C8B87;   /* Teal für Text-auf-hell */
  --color-accent-subtle:    #E6FAF8;   /* Helles Teal-Panel */

  /* ── Farben: Backgrounds ── */
  --color-bg-light:         #F6FAFF;   /* Kühles Weiß (Seiten-BG) */
  --color-bg-dark:          #102A4C;   /* Tiefes Navy (dunkle Sektionen) */
  --color-bg-card:          #FFFFFF;   /* Karten */
  --color-bg-accent:        #EAF2FF;   /* Heller Blau-Block */

  /* ── Farben: Struktur & Text ── */
  --color-border:           #DCE7F2;   /* Helle Blau-Grau-Linie */
  --color-text-muted:       #5A6B82;   /* Gedämpfter Text */
  --color-off-white:        #F6FAFF;   /* Text auf dunklem BG */
  --color-success:          #16A34A;
  --color-heading:          #0F2747;   /* Tiefes Navy (Überschriften) */
  --color-body:             #334155;   /* Fließtext */

  /* ── Typografie ── */
  --font-display:           'Outfit', sans-serif;     /* Überschriften */
  --font-main:              'Figtree', sans-serif;    /* Fließtext */
  --font-size-body:         17px;
  --line-height-body:       1.6;
  --font-size-h1:           68px;
  --font-size-h2:           48px;
  --font-size-h3:           32px;
  --font-size-h4:           22px;
  --font-size-h5:           18px;
  --font-size-small:        17px;
  --font-size-nav:          17px;
  --font-size-button:       17px;

  /* ── Layout ── */
  --max-width:              1200px;
  --section-padding:        100px 40px;
  --section-padding-mobile: 60px 20px;
  --radius-sm:              8px;
  --radius-md:              14px;
  --radius-lg:              22px;
  --radius-pill:            999px;

  /* ── Schatten (layered + blau-getönt) ── */
  --shadow-sm:
    0 1px 2px rgba(15,39,71,0.04),
    0 2px 6px rgba(37,99,235,0.06);
  --shadow-md:
    0 1px 2px rgba(37,99,235,0.04),
    0 6px 16px rgba(37,99,235,0.08),
    0 16px 32px rgba(15,39,71,0.06);
  --shadow-lg:
    0 2px 6px rgba(37,99,235,0.05),
    0 12px 28px rgba(37,99,235,0.10),
    0 28px 56px rgba(15,39,71,0.10);

  /* ── Motion ── */
  --ease-spring:            cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:               cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* [hidden] muss immer verstecken — sonst überschreibt eigenes display:flex das Attribut
   (sonst liegt z.B. eine unsichtbare Overlay-Ebene über der Seite und blockt Hover/Klick). */
[hidden] { display: none !important; }

/* KEIN `scroll-behavior: smooth` — kollidiert mit Lenis (Phase 5). */

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

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;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

p { color: var(--color-body); }

a { color: var(--color-brand-main); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--color-brand-darker); }

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

strong { font-weight: 600; color: var(--color-heading); }

::selection { background: var(--color-brand-lighter); color: #fff; }

/* ─── Layout-Helfer ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Anker-Offset wegen fixer Navigation */
section[id] { scroll-margin-top: 88px; }

/* Eyebrow / Label über Überschriften */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-main);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}

/* ─── Buttons ─── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-size: var(--font-size-button);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring),
              box-shadow 0.25s var(--ease-out),
              background-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--color-brand-main);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-brand-darker);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-heading);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-brand-main);
  color: var(--color-brand-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-off-white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

/* Fokus-Sichtbarkeit für alle interaktiven Elemente */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-brand-lighter);
  outline-offset: 3px;
}

/* ─── Formularfelder (Basis) ─── */
input, textarea {
  font-family: var(--font-main);
  font-size: var(--font-size-body);
  color: var(--color-body);
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
input:focus, textarea:focus {
  border-color: var(--color-brand-main);
  box-shadow: 0 0 0 4px var(--color-brand-subtle);
}
input::placeholder, textarea::placeholder { color: var(--color-text-muted); }

/* ─── Reveal-on-Scroll (Observer setzt .in in index.html) ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

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

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  :root { --section-padding: 80px 32px; }
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  :root { --section-padding: 60px 20px; }
}

@media (max-width: 560px) {
  .eyebrow { font-size: 11.5px; letter-spacing: 0.06em; gap: 6px; }
  .eyebrow::before { width: 20px; }
}
