/* ==========================================================================
   Immobilienbüro Otmar Dieter GbR – Stylesheet
   Stil: Modern & elegant · Navy (#0E1A63) + Gold
   ========================================================================== */

:root {
  --navy: #0e1a63;
  --navy-deep: #0a1248;
  --navy-soft: #28338f;
  --text: #1c2233;
  --gold: #c9a24b;
  --gold-light: #ddb96f;
  --gold-dark: #a87f2c;
  --paper: #ffffff;
  --cream: #f4f6fb;
  --cream-deep: #e9edf6;
  --muted: #5c6276;
  --line: rgba(14, 26, 99, 0.10);
  --line-light: rgba(255, 255, 255, 0.14);

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 20px rgba(14, 26, 99, 0.07);
  --shadow-md: 0 18px 50px rgba(14, 26, 99, 0.14);
  --shadow-gold: 0 14px 34px rgba(201, 162, 75, 0.32);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 105px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }

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

/* Markenfarben auch bei Textauswahl & Tastatur-Fokus */
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-cream { background: var(--cream); }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.eyebrow-gold { color: var(--gold-light); }

.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { margin-bottom: 16px; }
/* Feine Goldlinie unter Überschriften – zentriert bzw. linksbündig */
.section-head h2::after, .region h2::after, .about-text h2::after, .contact-info h2::after {
  content: ""; display: block; width: 58px; height: 3px; border-radius: 3px;
  margin: 18px auto 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}
.about-text h2::after, .contact-info h2::after { margin-left: 0; }
.section-lead { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: 100px; border: 1.5px solid transparent; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
/* Glanz-Sweep beim Hover */
.btn::after {
  content: ""; position: absolute; top: 0; left: -135%; width: 55%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 135%; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 130%);
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-gold:hover {
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold-dark) 90%);
  transform: translateY(-2px); box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--navy); border-color: rgba(14, 26, 99, 0.28); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Druck-Feedback (zuletzt definiert, damit es Hover-Transform überschreibt) */
.btn:active { transform: scale(0.97); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(14, 26, 99, 0.07);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
/* Header voll­breit: Logo rückt an den linken Rand, Navigation an den rechten */
.site-header > .container { max-width: 100%; padding-left: clamp(24px, 3vw, 44px); padding-right: clamp(24px, 3vw, 44px); }

/* Brand / Logo (frei, ohne Rahmen – immer Originalfarbe auf weißem Header) */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { height: clamp(52px, 7.7vw, 85px); width: auto; display: block; transition: height 0.3s var(--ease); }
.site-header.scrolled .brand-logo { height: clamp(47px, 6.3vw, 71px); }

/* Nav */
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.96rem;
  color: var(--text); position: relative; transition: color 0.2s;
}
.nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width 0.25s var(--ease);
}
.nav > a:not(.nav-cta):hover { color: var(--gold-dark); }
.nav > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { color: #fff !important; padding: 11px 22px; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; perspective: 1200px; perspective-origin: 50% 40%; }
.hero-bg {
  position: absolute; inset: -8%; background-color: var(--navy-deep);
  background-image: url("../img/haus-stadtvilla.jpg");
  background-size: cover; background-position: center;
  transform: scale(1.06); transform-origin: 50% 50%; will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(8, 14, 50, 0.9) 0%, rgba(10, 18, 72, 0.66) 48%, rgba(10, 18, 72, 0.34) 100%);
}
.hero-veil {
  position: absolute; inset: 0 0 auto 0; height: 180px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
}
/* Unterer Verlauf: erdet das Bild und leitet weich in das Navy-Band über */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 14, 50, 0.62), rgba(8, 14, 50, 0));
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-top: 80px; padding-bottom: 80px; will-change: transform, opacity; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .eyebrow { color: var(--gold-light); }
.hero-sub { color: rgba(255, 255, 255, 0.88); font-size: 1.18rem; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 100px;
  z-index: 2; display: grid; place-items: start center; padding-top: 8px;
}
.scroll-hint span { width: 4px; height: 8px; background: var(--gold-light); border-radius: 4px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- Trust / Stats ---------- */
.trust { background: var(--navy); color: #fff; padding: 46px 0; position: relative; }
/* Goldene Haarlinie als edler Übergang vom Hero ins Navy-Band */
.trust::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold-light) 50%, var(--gold) 75%, transparent);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { display: block; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 12%; height: 76%; width: 1px; background: var(--line-light); }
.stat-num, .stat-suffix {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.8vw, 2.9rem);
  color: var(--gold-light); line-height: 1; display: inline;
}
.stat-label { display: block; color: rgba(255, 255, 255, 0.66); font-size: 0.92rem; margin-top: 10px; }

/* ---------- Cards / Leistungen ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-icon {
  width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--cream); color: var(--navy); transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.card:hover .card-icon { background: var(--navy); color: var(--gold-light); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }

/* ---------- Haustypen / Galerie ---------- */
/* Partner-Badge über der Galerie: macht klar, dass die Haustypen von
   Heinz von Heiden stammen und wir Vertriebspartner sind */
.gallery-partner {
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px 30px;
  max-width: 780px; margin: 0 auto clamp(36px, 5vw, 56px);
}
.gallery-partner-logo { height: 48px; width: auto; flex: none; }
.gallery-partner p {
  margin: 0; font-size: 0.95rem; line-height: 1.55; max-width: 52ch;
  padding-left: 24px; border-left: 1px solid var(--line);
}
.gallery-partner p strong { color: var(--navy); }
@media (max-width: 620px) {
  .gallery-partner { flex-direction: column; gap: 14px; text-align: center; padding: 22px 20px; }
  .gallery-partner-logo { height: 40px; }
  .gallery-partner p { padding-left: 0; border-left: 0; }
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ghouse {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--navy-deep);
}
.ghouse img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.ghouse:hover img { transform: scale(1.07); }
/* Feiner innenliegender Rahmen – wirkt wie eine Passepartout-Kante */
.ghouse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.ghouse-link { display: block; }
.ghouse figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 22px 18px;
  background: linear-gradient(to top, rgba(8, 14, 50, 0.9), rgba(8, 14, 50, 0));
  color: #fff; display: flex; flex-direction: column; gap: 2px;
  /* Klicks gehen durch die Bildunterschrift hindurch auf den Link */
  pointer-events: none;
}
.ghouse figcaption::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px; margin-bottom: 8px;
  background: var(--gold-light); transition: width 0.4s var(--ease);
}
.ghouse:hover figcaption::before { width: 46px; }
.ghouse-type { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.ghouse-more {
  font-size: 0.82rem; font-weight: 600; color: var(--gold-light);
  opacity: 0.85; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (hover: hover) {
  .ghouse-more { opacity: 0; transform: translateY(4px); }
  .ghouse:hover .ghouse-more, .ghouse:focus-within .ghouse-more { opacity: 1; transform: none; }
}
.gallery-cta { text-align: center; margin-top: 48px; }
.gallery-cta p { max-width: 580px; margin: 0 auto 22px; color: var(--muted); }
.gallery-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-statement {
  position: relative; overflow: hidden; background: var(--navy);
  background-image: radial-gradient(circle at 82% 12%, rgba(201, 162, 75, 0.24), transparent 56%);
  border-radius: var(--radius); aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: clamp(30px, 5vw, 58px); color: #fff; box-shadow: var(--shadow-md);
}
.about-statement-since {
  font-family: var(--font-display); font-weight: 700; line-height: 0.9; letter-spacing: -0.01em;
  font-size: clamp(3.6rem, 8.5vw, 6.2rem); color: var(--gold-light);
}
.about-statement-text {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.95rem);
  color: #fff; max-width: 16ch; padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, 0.2);
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; }
.about-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 32px; color: var(--text); font-weight: 500; }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: var(--gold); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}

/* ---------- Partner / Heinz von Heiden ---------- */
.partner-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(30px, 5vw, 52px); display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px); align-items: center; box-shadow: var(--shadow-sm);
}
.partner-logo { max-width: 320px; width: 100%; height: auto; }
.seals { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; }
.seal { text-align: center; }
.seal img { max-height: 150px; width: auto; margin: 0 auto 12px; }
.seal figcaption { font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.seal figcaption small { font-weight: 400; font-size: 0.78rem; }

/* ---------- Region Band (Drohnenbild) ---------- */
.region { position: relative; color: #fff; padding: clamp(72px, 11vw, 130px) 0; overflow: hidden; }
.region-bg { position: absolute; inset: 0; background: url("../img/drohne-stadt.jpg") center / cover no-repeat; }
.region-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 72, 0.84), rgba(8, 14, 50, 0.9)); }
.region-content { position: relative; z-index: 2; max-width: 680px; text-align: center; margin: 0 auto; }
.region h2 { color: #fff; margin-bottom: 16px; }
.region p { color: rgba(255, 255, 255, 0.86); font-size: 1.1rem; margin-bottom: 30px; }

/* ---------- Ablauf / Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step {
  position: relative; padding: 34px 26px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-sm); }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; color: var(--gold); opacity: 0.55;
  display: block; margin-bottom: 12px; line-height: 1; transition: opacity 0.3s var(--ease);
}
.step:hover .step-num { opacity: 1; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.96rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico { flex: none; width: 46px; height: 46px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.contact-ico svg { width: 20px; height: 20px; }
.contact-list a:hover { color: var(--gold-dark); }
.contact-note { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 3px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); align-self: start;
  position: relative; overflow: hidden;
}
/* Goldener Akzent an der Oberkante der Kontaktkarte */
.contact-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}
.contact-card .contact-list { margin-top: 0; }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 7px; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fcfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.16); }
.field textarea { resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; font-size: 0.9rem; color: var(--muted); }
.checkbox input { margin-top: 3px; accent-color: var(--gold); flex: none; }
.checkbox a { color: var(--gold-dark); text-decoration: underline; }
.form-note { margin-top: 14px; font-size: 0.92rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #2e7d32; }
.form-note.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 64px 0 28px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold-light) 50%, var(--gold) 75%, transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-light); }
.footer-logo { height: 50px; width: auto; display: inline-block; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; font-size: 0.96rem; }
.footer-col h4 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a, .footer-addr { display: block; padding: 5px 0; color: rgba(255, 255, 255, 0.68); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }
.footer-links a { margin-left: 18px; }
.footer-links a:hover { color: var(--gold-light); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal { padding: clamp(120px, 16vw, 170px) 0 90px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 22px; }
.legal a { color: var(--gold-dark); text-decoration: underline; }
.legal .placeholder { background: var(--cream); border-left: 3px solid var(--gold); padding: 2px 8px; border-radius: 4px; font-style: italic; color: var(--muted); }
.legal .back { display: inline-block; margin-top: 40px; }

/* ---------- Reveal animation ----------
   Als Keyframe-Animation (statt transition), damit Hover-Transitions der
   Komponenten (Karten, Steps …) nicht überschrieben werden. */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; animation: revealUp 0.7s var(--ease) backwards; }
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } }

/* Gestaffeltes Einblenden innerhalb von Rastern & im Hero */
.cards .reveal.in:nth-child(2), .gallery .reveal.in:nth-child(2), .steps .reveal.in:nth-child(2),
.trust-grid .reveal.in:nth-child(2), .hero-content .reveal.in:nth-child(2) { animation-delay: 0.1s; }
.cards .reveal.in:nth-child(3), .gallery .reveal.in:nth-child(3), .steps .reveal.in:nth-child(3),
.trust-grid .reveal.in:nth-child(3), .hero-content .reveal.in:nth-child(3) { animation-delay: 0.2s; }
.cards .reveal.in:nth-child(4), .gallery .reveal.in:nth-child(4), .steps .reveal.in:nth-child(4),
.trust-grid .reveal.in:nth-child(4), .hero-content .reveal.in:nth-child(4) { animation-delay: 0.3s; }
.cards .reveal.in:nth-child(5), .gallery .reveal.in:nth-child(5) { animation-delay: 0.4s; }
.gallery .reveal.in:nth-child(6) { animation-delay: 0.5s; }

/* ---------- Scroll-Fortschrittsbalken ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 0.08s linear;
}

/* ---------- Nach-oben-Button (mobil) ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(14, 26, 99, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); display: none; place-items: center;
  cursor: pointer; z-index: 320; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease), background 0.2s var(--ease), bottom 0.3s var(--ease);
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(14, 26, 99, 0.8); }
/* Solange der Cookie-Hinweis sichtbar ist, Button darüber anheben */
body.cookie-open .to-top { bottom: 120px; }
@media (max-width: 760px) { .to-top { display: grid; } }

/* ---------- Cookie-Hinweis (kein Tracking, nur Info) ---------- */
.cookie-note {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 300;
  width: min(680px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 15px 18px;
}
.cookie-note p { color: var(--text); font-size: 0.92rem; margin: 0; flex: 1 1 280px; }
.cookie-note a { color: var(--gold-dark); text-decoration: underline; }
.cookie-note .cookie-ok { padding: 9px 22px; font-size: 0.9rem; }
.cookie-note[hidden] { display: none; }
@media (max-width: 560px) {
  .cookie-note { bottom: 12px; padding: 14px; }
  .cookie-note .cookie-ok { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .partner-box { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; }
  .partner-logo { margin: 0 auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .stat:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  /* Solide statt Glas: sonst „fängt" backdrop-filter das fixed-Menü ein */
  .site-header, .site-header.scrolled { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    background: var(--navy); padding: 40px; transform: translateX(100%);
    transition: transform 0.35s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  }
  .nav.open { transform: translateX(0); }
  .nav > a, .site-header:not(.scrolled) .nav > a { color: #fff !important; font-size: 1.1rem; padding: 8px 0; width: 100%; }
  .nav-cta { margin-top: 14px; }
}

@media (max-width: 560px) {
  .cards, .gallery, .steps, .footer-grid { grid-template-columns: 1fr; }
  .seals { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .about-badge { right: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: scale(1.06); }
}
