/* Revier Adelshofen – öffentliche Seite (CI: Farben, Poppins) */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* CI Revier Adelshofen */
  --forest-950: #16231a;   /* Nachtgrün */
  --forest-900: #22402b;   /* Revier-Grün */
  --forest-800: #22402b;
  --forest-700: #3b4a2c;   /* Moosgrün */
  --moss: #b07f2c;         /* Gold (Schrift) – Kicker auf Hell */
  --sage: #ece3c8;         /* Hirschhorn */
  --cream: #f6f1e3;        /* Horn hell */
  --paper: #ffffff;
  --ochre: #c9973f;        /* Eichengold – Akzente, Linien */
  --ochre-soft: #f6f1e3;
  --signal: #e8590c;       /* Signalorange – nur Sicherheit */
  --signal-soft: #fdeee4;
  --ink: #1b2a1f;          /* Schriftgrün */
  --muted: #5e6b60;        /* Grau */
  --line: rgba(27, 42, 31, .12);
  --bg: var(--paper);
  --surface: #ffffff;
  --placeholder: #fde68a;
  --r-lg: 22px;
  --r-md: 14px;
  --max: 1180px;
  --serif: "Poppins", Arial, sans-serif;
  --sans: "Poppins", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16231a;
    --surface: #1d3222;
    --ink: #ece3c8;
    --muted: #b9b49f;
    --line: rgba(236, 227, 200, .14);
    --cream: #1d3222;
    --ochre-soft: #2a3a26;
    --moss: #c9973f;
    --signal-soft: #3a2418;
    --placeholder: #6b5a12;
  }
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.ph { background: var(--placeholder); color: #3b2f00; border-radius: 6px; padding: 0 6px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: fixed; inset: 14px 14px auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 10px 12px 10px 18px;
  background: rgba(11, 31, 22, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand-mark { width: 44px; height: 44px; margin: -8px 0 -8px -8px; }
.brand-text { display: grid; line-height: 1.05; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.brand span { white-space: nowrap; }
.nav { display: none; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--forest-900); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.topbar .btn { padding: 8px 16px; font-size: 14px; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 94svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: radial-gradient(120% 80% at 70% 20%, #3c5a3c 0%, var(--forest-900) 60%);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 31, 22, .55) 0%, rgba(11, 31, 22, 0) 28%),
    linear-gradient(0deg, rgba(11, 31, 22, .92) 0%, rgba(11, 31, 22, .55) 38%, rgba(11, 31, 22, 0) 70%);
}
.hero-content { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; color: var(--ochre);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 7.5vw, 96px);
  line-height: 1.02; letter-spacing: -.02em; margin: 0 0 22px; max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--ochre); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); max-width: 38em; color: rgba(255, 255, 255, .86); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0;
  background: rgba(255, 255, 255, .16); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
}
.stats div { background: rgba(11, 31, 22, .55); padding: 16px 18px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stats dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.ai-badge {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(11, 31, 22, .6); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 6px 9px; border-radius: 999px;
}
.hero .ai-badge { top: auto; bottom: 14px; left: auto; right: 14px; }

/* ---------- Abschnitte ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.section-head h2::after, .hero h1::after, .legal-hero h1::after {
  content: ""; display: block; width: 110px; height: 3px; background: var(--ochre); margin-top: 18px; border-radius: 2px;
}
.kicker { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; color: var(--moss); margin: 0; }
h2 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.015em;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.04; margin: 0;
}
h2 em { font-style: normal; color: var(--moss); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* Revier – Bento */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px;
}
.tile .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.tile .value { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.tile-big { background: var(--forest-800); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 280px; }
.tile-big .value { font-size: clamp(56px, 8vw, 92px); line-height: 1; margin-bottom: 16px; }
.tile-big .label { color: var(--sage); }
.tile-big p { color: rgba(255, 255, 255, .8); margin: 0; }
.tile-accent { background: var(--cream); border-color: var(--ochre); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile-big { grid-column: span 2; grid-row: span 2; }
  .tile-wide { grid-column: span 2; }
}

/* Warum – Statement & Features */
.statement {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 46px); line-height: 1.18;
  letter-spacing: -.01em; max-width: 22ch; margin: 0;
}
.statement em { font-style: normal; font-weight: 700; color: var(--moss); }
.intro-grid { display: grid; gap: 24px; margin-bottom: 72px; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.2fr 1fr; align-items: end; } }

.feature { display: grid; gap: 28px; align-items: center; margin-bottom: 88px; }
.feature-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--forest-700), var(--moss));
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.feature-media:hover img { transform: scale(1.04); }
.num { font-family: var(--sans); font-weight: 700; letter-spacing: .1em; font-size: 18px; color: var(--moss); display: block; margin-bottom: 10px; }
.feature h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; list-style: none; }
.pill-list li { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .feature.flip .feature-media { order: 2; }
}

.cards3 { display: grid; gap: 14px; margin: 0 0 88px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11, 31, 22, .35); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--cream); color: var(--moss);
}
.icon svg { width: 24px; height: 24px; }

/* Auftrag – dunkle Sektion */
.dark { background: var(--forest-900); color: #fff; position: relative; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; width: 780px; height: 780px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 155, 69, .22), rgba(211, 155, 69, 0) 65%);
  pointer-events: none;
}
.dark .kicker { color: var(--ochre); }
.dark h2 em { color: var(--ochre); }
.dark .section-head p { color: rgba(255, 255, 255, .78); }
.duties { display: grid; gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.duty { background: var(--forest-900); padding: 30px; }
.duty .num { color: var(--ochre); }
.duty h3 { color: #fff; }
.duty p { color: rgba(255, 255, 255, .76); margin: 0; }
@media (min-width: 760px) { .duties { grid-template-columns: 1fr 1fr; } }
.callout {
  position: relative; margin-top: 18px; border-radius: var(--r-lg); padding: 28px 30px;
  background: linear-gradient(120deg, rgba(211, 155, 69, .22), rgba(211, 155, 69, .08));
  border: 1px solid rgba(211, 155, 69, .45);
  display: grid; gap: 8px;
}
.callout strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.callout p { margin: 0; color: rgba(255, 255, 255, .85); }

/* Anspruch */
.values { display: grid; gap: 28px 20px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(4, 1fr); } }
.principle { border-top: 2px solid var(--moss); padding-top: 18px; }
.principle h3 { font-size: 22px; }
.principle p { color: var(--muted); margin: 0; }

/* Wildunfall */
.emergency {
  display: grid; gap: 28px; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px);
  background: var(--signal-soft); color: var(--ink); border: 3px solid var(--signal);
}
.emergency .big { font-family: var(--serif); color: var(--signal); font-size: clamp(88px, 16vw, 170px); line-height: .9; font-weight: 700; letter-spacing: -.03em; }
.emergency h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 8px; }
.emergency ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.emergency li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.emergency li::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--signal); color: #fff; font-weight: 700; font-size: 15px;
}
@media (min-width: 900px) { .emergency { grid-template-columns: .9fr 1.1fr; align-items: center; } }

/* Hinweise */
.notes { display: grid; gap: 14px; margin-top: 64px; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(3, 1fr); } }

/* Kontakt */
.contact {
  border-radius: var(--r-lg); padding: clamp(32px, 6vw, 72px); text-align: center;
  background: var(--cream); display: grid; gap: 18px; justify-items: center;
}
.contact h2 { max-width: 16ch; }
.contact p { margin: 0; }
.contact .mail { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Fuß */
.footer { background: var(--forest-950); color: rgba(255, 255, 255, .72); padding: 56px 0 40px; font-size: 14px; }
.footer-grid { display: grid; gap: 24px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 120px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .fine { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; display: grid; gap: 6px; }
.footer p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* Rechtstexte */
.legal-hero { background: var(--forest-900); color: #fff; padding: 140px 0 56px; }
.legal-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0; }
.legal { max-width: 760px; padding: 56px 20px 96px; margin: 0 auto; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal a { color: var(--moss); }

/* Sanftes Einblenden beim Scrollen (wo unterstützt) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
  }
}
.emergency .kicker { color: var(--signal); }

@media (max-width: 759px) {
  .stats dd { font-size: 18px; overflow-wrap: anywhere; hyphens: auto; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(11, 31, 22, .6) 0%, rgba(11, 31, 22, .35) 30%),
      linear-gradient(0deg, rgba(11, 31, 22, .95) 0%, rgba(11, 31, 22, .7) 55%, rgba(11, 31, 22, .3) 100%);
  }
}
