/* ==========================================================
   DRV Rettungshundestaffel Westpfalz – Landingpage
   Farben aus dem Logo: Orange #e9550d, Schwarz, Weiß
   Bewusst nur Systemschriften (keine externen Fonts → DSGVO)
   ========================================================== */

:root {
  --orange: #e9550d;
  --orange-dark: #c4450a;
  --orange-soft: #fdf0e8;
  --ink: #161616;
  --ink-soft: #4a4a4a;
  --muted: #6f6f6f;
  --bg: #ffffff;
  --bg-alt: #f6f4f2;
  --line: #e6e1dc;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --container: 1120px;
  --header-h: 72px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--orange-dark); text-underline-offset: .18em; }
a:hover { color: var(--orange); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.muted { color: var(--muted); font-size: .92rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-1px); }



.btn-small { padding: .45rem 1.1rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(0, 0, 0, .05); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.2;
}
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-text strong { color: var(--orange-dark); }

.site-nav ul {
  display: flex; align-items: center; gap: 1.8rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.site-nav a:not(.btn):hover { color: var(--orange-dark); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bar::after  { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(circle at 85% 30%, var(--orange-soft) 0, transparent 55%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
}

.hero h1 span { color: var(--orange); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero-logo {
  justify-self: center;
  width: 420px;
  border-radius: 50%;
  background: #fff;
  padding: 4%;
}
.hero-logo img { width: 100%; height: 100%; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.two-col {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
}

.prose p { color: var(--ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none; padding: 0; margin: 2rem 0 0;
}
.facts li {
  display: flex; flex-direction: column;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--orange);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
}
.fact-num { font-size: 1.45rem; font-weight: 800; color: var(--ink); }
.facts li span:last-child { color: var(--muted); font-size: .95rem; }

/* Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card p { color: var(--ink-soft); margin: 0; }
.card-icon {
  width: 46px; height: 46px; padding: 10px;
  margin-bottom: 1.1rem;
  fill: var(--orange);
  background: var(--orange-soft);
  border-radius: 12px;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-item svg {
  width: 30px; height: 30px;
  fill: var(--orange);
  margin-bottom: 1rem;
}
.contact-item h3 { margin-bottom: .4rem; }
.contact-item p,
.contact-item address { margin: 0 0 .3rem; font-style: normal; color: var(--ink-soft); }
.contact-item a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfcf; font-size: .95rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--orange); text-decoration: underline; }

/* ---------- Modal (Impressum / Datenschutz) ---------- */
.modal {
  width: min(100% - 2rem, 760px);
  max-width: none;
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  color: var(--ink);
  overflow: hidden;
}
.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in .25s ease-out;
}
.modal::backdrop {
  background: rgba(15, 15, 15, .6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 3px solid var(--orange);
  flex-shrink: 0;
}
.modal-head h2 { margin: 0; font-size: 1.5rem; }

.modal-close {
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: var(--bg-alt);
  font-size: 1.7rem; line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--orange); color: #fff; }

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 1rem;
}
.modal-body h3 { margin: 1.6em 0 .4em; font-size: 1.05rem; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body ul { padding-left: 1.2rem; color: var(--ink-soft); }

body.modal-open { overflow: hidden; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 400px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav li .btn { margin-top: 1rem; width: 100%; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-logo { order: -1; width: min(70%, 280px); }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }

  .two-col { grid-template-columns: 1fr; gap: 1rem; }

}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-text { font-size: .9rem; }
  .facts { grid-template-columns: 1fr; }
  .cards,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .modal { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
