/* ============================================================
   StrukturBau Hessen GmbH — Haupt-Stylesheet
   Designsystem: "Trust & Authority + Minimal" (ui-ux-pro-max)
   Farben: aus dem Firmenlogo abgeleitet (Anthrazit / Bordeaux / Silber)
   Schriften: EB Garamond (Serif, Überschriften) + Lato (Sans, Text)
   Aufbau:
     1. Design-Tokens (CSS Custom Properties)
     2. Reset & Basis
     3. Typografie
     4. Layout-Helfer (Container, Sections, Grid)
     5. Buttons & Links
     6. Header / Navigation
     7. Footer
     8. Komponenten (Hero, Cards, Trust-Strip, Formular, Blog, Legal)
     9. Cookie-Banner
    10. Animationen / Scroll-Reveal
    11. Responsive Breakpoints
    12. Reduced-Motion & Print
   ============================================================ */

/* ---------- 1. DESIGN-TOKENS ---------- */
:root {
  /* Farben – verbindlich aus dem Logo (siehe design-system/MASTER.md) */
  --color-primary:          #283337; /* Anthrazit – Shield/Banner */
  --color-primary-dark:     #1C2427; /* dunkler – Footer/Hover */
  --color-primary-soft:     #3A464C; /* weicheres Anthrazit */
  --color-on-primary:       #FFFFFF;

  --color-accent:           #800C0D; /* Bordeaux – Haus/HESSEN */
  --color-accent-strong:    #660A0B; /* Bordeaux Hover/Active */
  --color-accent-tint:      #F6E9E9; /* sehr dezenter Akzent-Hauch */
  --color-on-accent:        #FFFFFF;

  --color-silver:           #9D9D9D; /* Silber – Gebäude (nur dekorativ) */
  --color-silver-light:     #C4C4C4; /* helles Silber – Haarlinien */

  --color-background:       #FFFFFF;
  --color-surface:          #F7F8F8; /* abwechselnde Sektionen/Karten */
  --color-surface-2:        #EEF1F1;
  --color-foreground:       #232B2E; /* Haupttext (~13:1 auf Weiß) */
  --color-muted-foreground: #566169; /* Sekundärtext (~5.4:1 — AA) */
  --color-border:           #E2E5E6;
  --color-ring:             #800C0D;
  --color-destructive:      #B91C1C;
  --color-success:          #15803D;

  /* Typografie */
  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --fs-xs:   0.8125rem;  /* 13px */
  --fs-sm:   0.9375rem;  /* 15px */
  --fs-base: 1.0625rem;  /* 17px */
  --fs-lg:   1.25rem;    /* 20px */
  --fs-h3:   clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
  --fs-h2:   clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --fs-h1:   clamp(2.5rem, 1.8rem + 3.5vw, 4rem);

  /* Spacing (8pt) */
  --space-xs: 4px;  --space-sm: 8px;  --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 80px;
  --section-py: clamp(56px, 8vw, 112px);

  /* Radius & Schatten */
  --radius-sm: 3px; --radius-md: 6px; --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(28,36,39,.06);
  --shadow-md: 0 6px 18px rgba(28,36,39,.08);
  --shadow-lg: 0 18px 40px rgba(28,36,39,.12);
  --shadow-xl: 0 28px 60px rgba(28,36,39,.16);

  /* Motion */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --dur-micro: 180ms; --dur: 240ms; --dur-lg: 360ms;

  /* z-index Skala */
  --z-base: 1; --z-reveal: 5; --z-header: 100; --z-overlay: 1000; --z-banner: 1100;
}

/* ---------- 2. RESET & BASIS ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* Sichtbarer Fokus für Tastatur-Navigation */
:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip-Link für Screenreader / Tastatur */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: var(--z-banner);
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-md); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. TYPOGRAFIE ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); font-weight: 600; }

p { max-width: 70ch; }

.lead {
  font-size: var(--fs-lg);
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.text-muted { color: var(--color-muted-foreground); }

/* Inhaltslinks (z.B. in Fließtext / Legal) */
.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-micro) var(--ease-out);
}
.prose a:hover { color: var(--color-accent-strong); }

/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.container--narrow { max-width: var(--container-narrow); }

section { position: relative; }
.section { padding-block: var(--section-py); }
.section--surface { background: var(--color-surface); }
.section--dark {
  background: var(--color-primary);
  color: #E7EBEC;
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head { max-width: 64ch; margin-bottom: var(--space-2xl); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--space-md); }
.section-head h2 { margin-bottom: var(--space-md); }

.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 5. BUTTONS & LINKS ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 28px;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-decoration: none;
  text-align: center;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* helle Variante auf dunklen Sektionen */
.section--dark .btn-secondary,
.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.section--dark .btn-secondary:hover,
.cta-band .btn-secondary:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.link-arrow svg {
  width: 16px; height: 16px;
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. HEADER / NAVIGATION ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-border);
  background: rgba(255,255,255,.95);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--color-primary);
}
.brand img { height: 52px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand .brand-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}

/* Primärnavigation */
.nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  padding: 0;
}
.nav-list a {
  position: relative;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 8px 2px;
  transition: color var(--dur-micro) var(--ease-out);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-list a:hover { color: var(--color-accent); }
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--color-accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--color-primary);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* Abstand für fixierten Header */
main { padding-top: var(--header-h); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 7. FOOTER ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #C2C9CB;
  padding-block: var(--space-4xl) var(--space-xl);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}
.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
}
.footer-brand .brand-tag {
  color: var(--color-silver);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-brand p { margin-top: var(--space-md); max-width: 36ch; color: #A9B2B5; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-links a {
  text-decoration: none;
  color: #C2C9CB;
  transition: color var(--dur-micro) var(--ease-out);
}
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a { color: #C2C9CB; text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  align-items: center;
  justify-content: space-between;
  color: #8E989B;
  font-size: var(--fs-xs);
}
.footer-bottom nav { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.footer-bottom a { color: #8E989B; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 8. KOMPONENTEN ---------- */

/* 8.1 Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%);
  color: var(--color-foreground);
  overflow: hidden;
}
.hero::before { /* dezente architektonische Blueprint-Linien (dunkel auf hell) */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(40,51,55,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,51,55,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 75% 35%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 75% 35%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero::after { /* zarter Bordeaux-Lichtschein */
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(128,12,13,.10) 0%, rgba(128,12,13,0) 65%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--space-3xl);
  align-items: center;
  padding-block: clamp(64px, 11vw, 150px);
}
.hero h1 { color: var(--color-primary); margin-bottom: var(--space-lg); }
.hero h1 .accent { color: var(--color-accent); font-style: italic; }
.hero .lead { color: var(--color-muted-foreground); margin-bottom: var(--space-xl); max-width: 48ch; }
.hero .eyebrow { color: var(--color-accent); margin-bottom: var(--space-lg); }
.hero .eyebrow::before { background: var(--color-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-figure .logo-plate {
  /* Kein weißer Kasten mehr: Logo sitzt direkt auf dem hellen Hero-Grund */
  background: transparent;
  padding: 0;
  box-shadow: none;
  max-width: 340px;
}
.hero-figure .logo-plate img { width: 100%; height: auto; }

/* 8.2 Stat / Trust strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.section--dark .stat .num { color: var(--color-silver-light); }
.stat .label {
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-muted-foreground);
}
.section--dark .stat .label { color: #B7BFC1; }

/* 8.3 Service cards */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur-lg) var(--ease-out),
              transform var(--dur-lg) var(--ease-out),
              border-color var(--dur-lg) var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card::before { /* Bordeaux-Haarlinie oben, erscheint bei Hover */
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-lg) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-silver-light);
}
.card:hover::before { transform: scaleX(1); }
.card .card-icon {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.card .card-icon svg { width: 28px; height: 28px; }
.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;      /* kompakter als globale h3 → weniger Zeilenumbruch */
  line-height: 1.3;
  min-height: 2.6em;        /* zwei Zeilen reservieren → Überschriften bündig */
}
.card p { color: var(--color-muted-foreground); font-size: var(--fs-sm); margin-bottom: var(--space-md); }
.card .card-list {
  list-style: none; padding: 0; margin: auto 0 0;  /* an den Kartenboden binden → Listen bündig */
  display: grid; gap: 6px;
}
.card .card-list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-sm);
  color: var(--color-foreground);
}
.card .card-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* 8.4 Split / media-text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split .media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}
.split .media img { width: 100%; height: 100%; object-fit: cover; }

/* Wertekarten (Über uns) */
.value {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.value .v-icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
}
.value .v-icon svg { width: 24px; height: 24px; }
.value h4 { margin-bottom: 4px; }
.value p { font-size: var(--fs-sm); color: var(--color-muted-foreground); }

/* 8.5 Page hero (Sub-Seiten) */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding-block: clamp(56px, 9vw, 120px) clamp(40px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -8%; bottom: -40%;
  width: 40vw; height: 40vw; max-width: 480px; max-height: 480px;
  background: radial-gradient(circle, rgba(128,12,13,.38) 0%, rgba(128,12,13,0) 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: var(--z-base); }
.page-hero h1 { color: #fff; margin-bottom: var(--space-md); }
.page-hero .lead { color: #C9D0D2; max-width: 60ch; }
.breadcrumb {
  list-style: none; padding: 0; margin-bottom: var(--space-lg);
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: var(--fs-sm); color: #97A1A4;
}
.breadcrumb a { color: #97A1A4; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: #5B6669; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li[aria-current="page"] { color: #E7EBEC; }

/* 8.6 Blog */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-lg) var(--ease-out), transform var(--dur-lg) var(--ease-out);
  height: 100%;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-thumb {
  aspect-ratio: 16 / 10;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.post-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.post-meta {
  display: flex; gap: var(--space-md); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--color-muted-foreground);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.post-tag { color: var(--color-accent); }
.post-card h3 { font-size: var(--fs-h3); }
.post-card p { font-size: var(--fs-sm); color: var(--color-muted-foreground); }
.post-card .link-arrow { margin-top: auto; }

/* 8.7 Formular */
.form-grid { display: grid; gap: var(--space-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field .req { color: var(--color-accent); }
.field .hint { font-size: var(--fs-xs); color: var(--color-muted-foreground); }
.input, .textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--color-foreground);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 48px;
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.input:focus-visible, .textarea:focus-visible {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(128,12,13,.15);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--color-destructive); }
.field-error {
  color: var(--color-destructive);
  font-size: var(--fs-xs);
  font-weight: 700;
  min-height: 1em;
}
.checkbox-row {
  display: flex; gap: var(--space-sm); align-items: flex-start;
  font-size: var(--fs-sm); color: var(--color-muted-foreground);
}
.checkbox-row input {
  width: 20px; height: 20px; margin-top: 2px; flex: none;
  accent-color: var(--color-accent); cursor: pointer;
}
.checkbox-row a { color: var(--color-accent); }

.form-note { font-size: var(--fs-xs); color: var(--color-muted-foreground); }

/* Formular-Feedback (aria-live) */
.form-feedback {
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: 700;
  display: none;
}
.form-feedback.is-success { display: block; background: #E7F4EC; color: var(--color-success); border: 1px solid #BCE3C9; }
.form-feedback.is-error   { display: block; background: #FBEAEA; color: var(--color-destructive); border: 1px solid #F3C9C9; }

/* Kontakt-Infokarten */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex; gap: var(--space-md); align-items: flex-start;
}
.contact-card .c-icon {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--color-accent-tint); color: var(--color-accent);
  border-radius: var(--radius-md);
}
.contact-card .c-icon svg { width: 22px; height: 22px; }
.contact-card h4 { margin-bottom: 2px; font-family: var(--font-body); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted-foreground); }
.contact-card a, .contact-card address { font-style: normal; color: var(--color-foreground); font-size: var(--fs-base); text-decoration: none; font-weight: 700; }
.contact-card a:hover { color: var(--color-accent); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-placeholder {
  display: grid; place-items: center; text-align: center;
  height: 380px; background: var(--color-surface-2); color: var(--color-muted-foreground);
  padding: var(--space-xl); gap: var(--space-md);
}
.map-placeholder svg { width: 40px; height: 40px; color: var(--color-silver); }

/* 8.8 CTA-Band */
.cta-band {
  background:
    radial-gradient(circle at 80% 120%, rgba(128,12,13,.5), transparent 55%),
    var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-md); }
.cta-band p { color: #C9D0D2; margin: 0 auto var(--space-xl); max-width: 52ch; }
.cta-band .hero-actions { justify-content: center; }

/* 8.9 Legal / Prose */
.prose h2 { font-size: var(--fs-h3); margin: var(--space-2xl) 0 var(--space-md); }
.prose h3 { font-size: var(--fs-lg); margin: var(--space-xl) 0 var(--space-sm); font-family: var(--font-body); font-weight: 700; color: var(--color-foreground); }
.prose p, .prose li { color: var(--color-foreground); }
.prose p { margin-bottom: var(--space-md); max-width: 72ch; }
.prose ul, .prose ol { margin: 0 0 var(--space-md) 1.2rem; display: grid; gap: 6px; }
.prose ul li { padding-left: 4px; }
.prose strong { font-weight: 700; }
.prose .meta-block {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.prose .meta-block p { margin: 0; }

/* Rechtlicher Hinweis-Kasten */
.legal-notice {
  background: var(--color-accent-tint);
  border: 1px solid #E7C9C9;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex; gap: var(--space-md); align-items: flex-start;
  margin-bottom: var(--space-2xl);
}
.legal-notice svg { flex: none; width: 24px; height: 24px; color: var(--color-accent); margin-top: 2px; }
.legal-notice p { margin: 0; font-size: var(--fs-sm); color: #6E2A2A; }
.legal-notice strong { color: var(--color-accent-strong); }

/* Platzhalter-Markierung für noch auszufüllende Angaben */
.placeholder {
  background: #FFF3CD;
  color: #7A5B00;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95em;
  border: 1px dashed #E0B400;
}

/* ---------- 9. COOKIE-BANNER ---------- */
.cookie-banner {
  position: fixed;
  left: var(--space-md); right: var(--space-md); bottom: var(--space-md);
  max-width: 560px;
  margin-inline: auto;
  z-index: var(--z-banner);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg) var(--space-xl);
  transform: translateY(140%);
  opacity: 0;
  transition: transform var(--dur-lg) var(--ease-out), opacity var(--dur-lg) var(--ease-out);
  visibility: hidden;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}
.cookie-banner p { font-size: var(--fs-sm); color: var(--color-muted-foreground); margin-bottom: var(--space-md); }
.cookie-banner p a { color: var(--color-accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.cookie-actions .btn { flex: 1 1 auto; min-width: 140px; }

/* ---------- 10. SCROLL-REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-lg) var(--ease-out), transform var(--dur-lg) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger über Inline-Variable --i */
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 60ms); }

/* Hero-Load-Animation (einmalig) */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero .hero-anim {
  opacity: 0;
  animation: heroRise var(--dur-lg) var(--ease-out) forwards;
}
.hero .hero-anim:nth-child(1) { animation-delay: 80ms; }
.hero .hero-anim:nth-child(2) { animation-delay: 160ms; }
.hero .hero-anim:nth-child(3) { animation-delay: 240ms; }
.hero .hero-anim:nth-child(4) { animation-delay: 320ms; }
.hero-figure { animation: heroRise var(--dur-lg) var(--ease-out) 360ms forwards; opacity: 0; }

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-figure { order: -1; }
  .hero-figure .logo-plate { max-width: 260px; }
  .split { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }  /* Tablet: 2 statt 3 Spalten – luftiger */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); }
}

@media (max-width: 860px) {
  /* Mobile-Navigation */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md) clamp(20px,5vw,48px) var(--space-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), visibility var(--dur);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list li { border-bottom: 1px solid var(--color-border); }
  .nav-list a { display: block; padding: 16px 4px; font-size: var(--fs-base); }
  .nav-list a::after { display: none; }
  .nav .btn { margin-top: var(--space-md); width: 100%; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brand .brand-text { display: none; } /* nur Logo auf kleinen Screens */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .cookie-actions .btn { flex-basis: 100%; }
}

/* ---------- 12. REDUCED-MOTION & PRINT ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero .hero-anim, .hero-figure { opacity: 1 !important; animation: none !important; }
}

@media print {
  .site-header, .cookie-banner, .nav-toggle, .hero-actions, .cta-band { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
  main { padding-top: 0; }
}
