/* ─── Schriften (lokal gehostet, keine Verbindung zu Google) ─── */
/* Variable Fonts: eine Datei deckt alle verwendeten Gewichte ab. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Design Tokens ──────────────────────────────────────────── */

:root {
  /* Colour Palette */
  --clr-primary-900: #1a3a2a;
  --clr-primary-800: #234d38;
  --clr-primary-700: #2e6347;
  --clr-primary-600: #3a7a57;
  --clr-primary-500: #4a9068;
  --clr-primary-400: #6aad87;
  --clr-primary-300: #93c9a9;
  --clr-primary-200: #c3e3d0;
  --clr-primary-100: #e8f5ee;
  --clr-primary-50:  #f3faf6;

  --clr-earth-800: #5c4033;
  --clr-earth-600: #7d5a4a;
  --clr-earth-400: #b08070;
  --clr-earth-200: #e0c8bf;
  --clr-earth-100: #f5ede9;

  --clr-cream:     #faf8f4;
  --clr-white:     #ffffff;
  --clr-text-900:  #1c1c1c;
  --clr-text-700:  #3d3d3d;
  --clr-text-500:  #6b6b6b;
  --clr-text-300:  #a8a8a8;
  --clr-border:    #e2e8e4;

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

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  /* 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-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,58,42,0.08), 0 1px 2px rgba(26,58,42,0.04);
  --shadow-md: 0 4px 12px rgba(26,58,42,0.10), 0 2px 6px rgba(26,58,42,0.06);
  --shadow-lg: 0 10px 30px rgba(26,58,42,0.12), 0 4px 10px rgba(26,58,42,0.07);
  --shadow-xl: 0 20px 50px rgba(26,58,42,0.15);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms var(--ease-smooth);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 760px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  color: var(--clr-text-900);
  background: var(--clr-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
p + p { margin-top: var(--space-4); }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  color: var(--clr-primary-900);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

.subtitle {
  font-size: var(--text-lg);
  color: var(--clr-text-500);
  font-weight: var(--fw-light);
  line-height: 1.7;
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary-600);
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-20);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: var(--space-32);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-primary-700);
  color: var(--clr-white);
  box-shadow: 0 4px 14px rgba(46,99,71,0.35);
}
.btn-primary:hover {
  background: var(--clr-primary-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46,99,71,0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--clr-primary-700);
  color: var(--clr-primary-700);
}
.btn-secondary:hover {
  background: var(--clr-primary-700);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Push the button inside card-body to the bottom */
.card-body > a.btn {
  margin-top: auto !important;
}

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-green {
  background: var(--clr-primary-100);
  color: var(--clr-primary-700);
}

.badge-earth {
  background: var(--clr-earth-100);
  color: var(--clr-earth-800);
}

/* ─── Divider ────────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary-600), var(--clr-primary-300));
  border-radius: var(--radius-full);
  margin-block: var(--space-6);
}

.divider--center { margin-inline: auto; }

/* ─── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(250,248,244,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Wortmarke (Seitenverhältnis 640:338) – Höhe steuert die Breite mit */
.nav-logo img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-700);
  position: relative;
  padding-block: var(--space-2);
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary-600);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--clr-primary-700); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── Dropdown "Angebot" ───────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-700);
  cursor: pointer;
  padding-block: var(--space-2);
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary-600);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}

.nav-dropdown-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--clr-primary-700);
}

.nav-dropdown.is-open .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
  width: 100%;
}

.nav-dropdown.is-open .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%; /* no gap – mouse stays inside hover zone */
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: auto;
  white-space: nowrap;
  padding: 20px 0 var(--space-2); /* 20px top = visual gap replacement */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  transform: translateX(-50%) translateY(-6px);
}

/* small arrow pointing up (sits inside the padding area) */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--clr-border);
  border-top: none;
}
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--clr-white);
  border-top: none;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-700);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--clr-primary-50);
  color: var(--clr-primary-700);
}

.nav-dropdown-menu a::after { display: none !important; }

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-cta {
  padding: var(--space-2) var(--space-5) !important;
  background: var(--clr-primary-700);
  color: var(--clr-white) !important;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--clr-primary-800) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-primary-900);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--clr-cream);
  padding: var(--space-8);
  flex-direction: column;
  gap: var(--space-6);
  z-index: 99;
  border-top: 1px solid var(--clr-border);
}

.nav-mobile a {
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
  color: var(--clr-primary-900);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--clr-border);
  display: block;
  transition: color var(--transition), padding-left var(--transition);
}

.nav-mobile a:hover {
  color: var(--clr-primary-600);
  padding-left: var(--space-4);
}

.nav-mobile.open { display: flex; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-primary-900);
  color: rgba(255,255,255,0.7);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--clr-white);
  margin-bottom: var(--space-2);
}

.footer-brand-sub {
  font-size: var(--text-sm);
  color: var(--clr-primary-300);
  margin-bottom: var(--space-6);
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-white);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--clr-primary-300); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--clr-primary-300); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--clr-primary-900) 0%, var(--clr-primary-700) 50%, var(--clr-primary-800) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(106,173,135,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(176,128,112,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--clr-cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--clr-white);
  max-width: 650px;
  flex: 1 1 auto;
}

/* Logo rechts im Hero. Die Datei ist bereits cream eingefärbt und
   freigestellt – dunkles Original hätte auf dem Grün keinen Kontrast. */
.hero-figure {
  position: relative;
  z-index: 1;
  /* wächst mit dem Fenster mit, damit es auf grossen Schirmen nicht verloren wirkt */
  flex: 0 1 clamp(400px, 38vw, 540px);
  min-width: 0;
  margin-left: auto;       /* bündig mit dem rechten Rand des Containers */
  animation-delay: 0.15s;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.95;
}

.hero-title {
  color: var(--clr-white);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ─── Page Header (internal pages) ──────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--clr-primary-900), var(--clr-primary-700));
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--clr-cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header-eyebrow {
  color: var(--clr-primary-300);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.page-header h1 { color: var(--clr-white); margin-bottom: var(--space-4); }

.page-header p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
}

/* Mailadresse im grünen Kopfbereich – heller als der Fließtext und
   unterstrichen, damit sie sich nicht nur über die Farbe als Link zu
   erkennen gibt. */
.header-mail {
  color: var(--clr-primary-200);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(195,227,208,0.5);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.header-mail:hover,
.header-mail:focus-visible {
  color: var(--clr-white);
  text-decoration-color: var(--clr-white);
}

/* ─── CTA Block ──────────────────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, var(--clr-primary-800), var(--clr-primary-900));
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(106,173,135,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block h2 { color: var(--clr-white); margin-bottom: var(--space-4); }
.cta-block p { color: rgba(255,255,255,0.75); margin-bottom: var(--space-8); max-width: 480px; margin-inline: auto; }

/* ─── Info / Notice Box ──────────────────────────────────────── */
.notice {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.7;
  display: flex;
  gap: var(--space-3);
}

.notice--info {
  background: var(--clr-primary-50);
  border-left: 3px solid var(--clr-primary-500);
  color: var(--clr-primary-800);
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-4);
}

.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--clr-white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ─── Angebot Feature List ───────────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: var(--space-3); margin-block: var(--space-6); }

.feature-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--clr-text-700);
}

/* Der Kreis sitzt in einer Box von genau einer Zeilenhöhe und wird darin
   zentriert. Dadurch bleibt er bei jeder Schriftgröße auf Zeilenmitte –
   ein festes margin-top würde nur für eine einzige Größe stimmen. */
.feature-icon {
  width: 10px;
  min-width: 10px;
  height: 1.6em;   /* Fallback: entspricht der line-height des Fliesstexts */
  height: 1lh;
  background: url('../img/Kreis.png') center center / 10px 10px no-repeat;
  display: inline-block;
  border: none;
}

/* ─── Cookie Banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  max-width: 560px;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-border);
  padding: var(--space-6);
  z-index: 200;
  display: none;
  animation: slideUp 0.4s var(--ease-smooth);
}

.cookie-banner.show { display: block; }

.cookie-banner h3 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-primary-900);
  margin-bottom: var(--space-2);
}

.cookie-banner p {
  font-size: var(--text-sm);
  color: var(--clr-text-500);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.cookie-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.6s var(--ease-smooth) forwards; }

/* ─── Scroll-reveal (JS driven) ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Nebeneinander wird es zu eng – das Logo rutscht unter den Text.
     Der Hero wächst dabei mit, sonst liefe das Logo in die cremefarbene
     Ellipse am Fuß und wäre dort unsichtbar (gleiche Farbe). */
  .hero { min-height: auto; padding-block: calc(var(--nav-height) + var(--space-12)) calc(var(--space-24) + var(--space-6)); }
  .hero-layout { flex-direction: column; align-items: flex-start; }
  /* order: -1 hebt das Logo über die Überschrift, ohne die Reihenfolge
     im Markup zu ändern – dort steht es weiterhin hinter dem Text. */
  .hero-figure {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    /* auf dem Handy 340px, auf breiteren Tablets wächst es mit */
    max-width: min(100%, max(340px, 38vw));
    margin-left: 0;
    margin-block: 0;   /* der gap des Flex-Containers reicht als Abstand */
  }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-logo img { height: 50px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* .hero wird schon ab 1024px umgestellt – siehe oben */

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }

  .cta-block { padding: var(--space-10) var(--space-6); }

  .section { padding-block: var(--space-12); }
  .section--lg { padding-block: var(--space-20); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cookie-banner { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
}



/* Angebot grid: 2x2 on desktop, 1 column on mobile */
@media (max-width: 640px) {
  .angebot-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Angebot card hover */
.angebot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


/* ─── Rechtstexte (Datenschutz, Impressum) ───────────────────── */
.legal-doc {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  padding: var(--space-10);
}

.legal-doc > section + section {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--clr-border);
}

.legal-doc h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.legal-doc h3 {
  font-size: var(--text-lg);
  color: var(--clr-primary-700);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-doc h3:first-of-type { margin-top: 0; }

.legal-doc p,
.legal-doc li {
  color: var(--clr-text-700);
  line-height: 1.85;
}

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

.legal-doc ul {
  margin-top: var(--space-3);
  padding-left: var(--space-5);
  list-style: disc;
}

.legal-doc li + li { margin-top: var(--space-2); }

.legal-doc a {
  color: var(--clr-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal-doc a:hover { color: var(--clr-primary-800); }

.legal-doc address {
  font-style: normal;
  color: var(--clr-text-700);
  line-height: 1.85;
  margin-top: var(--space-4);
}

.legal-doc address + p,
.legal-doc ul + p { margin-top: var(--space-4); }

.legal-doc__meta {
  color: var(--clr-text-500);
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .legal-doc { padding: var(--space-6); }
}
