@import url('fonts/fonts.css');
:root {
  --ink: #1B2621;          /* anthracite w/ slight green */
  --ink-2: #121A16;
  --green: #2E8B3D;        /* brand green */
  --green-dark: #24672E;
  --green-soft: #EAF3EC;
  --surface: #F5F7F4;
  --border: #E6EAE5;
  --muted: #5C6B62;
  --text: #1B2621;
  --bg: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(20,30,24,0.07);
  border-bottom-color: var(--border);
}

.nav-link {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--green); transition: width .25s ease;
}
.nav-link:hover { color: var(--green); }
.nav-link:hover::after { width: 100%; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; border-radius: 10px; transition: transform .12s ease, background-color .2s, box-shadow .2s; cursor: pointer; }
.btn-primary { background-color: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(46,139,61,0.28); }
.btn-primary:hover { background-color: var(--green-dark); transform: translateY(-2px); }
.btn-dark { background-color: var(--ink); color: #fff; }
.btn-dark:hover { background-color: var(--ink-2); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background-color: rgba(255,255,255,.12); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--ink); background:#fff; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,22,18,.82) 0%, rgba(15,22,18,.55) 45%, rgba(15,22,18,.15) 100%);
}

/* ---- Herbstaktion (Hinweis im Startbild) ---- */
.herbst-hinweis {
  display: flex; width: fit-content; align-items: center; gap: .7rem;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 1.05rem; line-height: 1.3; color: #2A1A08;
  background: linear-gradient(115deg, #F6DE8D 0%, #D9A43A 45%, #B9741F 100%);
  border: 1px solid rgba(255,236,170,.75);
  border-radius: 12px; padding: .75rem 1.15rem; margin-bottom: 1.1rem;
  box-shadow: 0 10px 28px rgba(150,90,20,.38), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .15s ease, box-shadow .2s;
}
.herbst-hinweis:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(150,90,20,.48), inset 0 1px 0 rgba(255,255,255,.45); }
.herbst-blatt { width: 1.9rem; height: 1.9rem; flex-shrink: 0; color: #F26A10; transform: rotate(-12deg); filter: drop-shadow(0 1px 1px rgba(90,30,0,.35)); }
@media (min-width: 640px) { .herbst-hinweis { font-size: 1.2rem; padding: .85rem 1.35rem; } }

/* ---- Section helpers ---- */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
}
.section-label::before { content: ""; width: 26px; height: 2px; background: var(--green); display: inline-block; }

.eyebrow-center .section-label::after { content: ""; width: 26px; height: 2px; background: var(--green); display: inline-block; }

/* ---- Service cards ---- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20,30,24,0.10);
  border-color: transparent;
}
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green-dark);
  margin-bottom: 1.1rem;
}

/* ---- Location cards ---- */
.location-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; transition: box-shadow .25s ease, transform .25s ease;
}
.location-card:hover { box-shadow: 0 20px 48px rgba(20,30,24,0.12); transform: translateY(-4px); }
.location-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; max-width: 100%;
}

/* ---- Stats ---- */
.stat-num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink); letter-spacing: -0.03em; white-space: nowrap; }
@media (max-width: 420px) { .stat-num { font-size: 2rem; } }

/* ---- Gallery / Lightbox ---- */
.gallery-item { border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(10,14,11,.94); z-index: 100; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.5rem; color: #fff; }

/* ---- Form ---- */
.form-input {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; font-family: 'Inter', sans-serif; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s; outline: none; color: var(--text);
}
.form-input::placeholder { color: #9aa79f; }
.form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,139,61,0.14); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status-error { color: #B42318; }
.form-status-error a, #form-status a { text-decoration: underline; }
.form-label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .92rem; color: var(--ink); }

/* ---- Footer ---- */
.site-footer { background-color: var(--ink-2); color: rgba(255,255,255,.66); }
.site-footer a { color: rgba(255,255,255,.66); transition: color .2s; }
.site-footer a:hover { color: #fff; }

/* ---- Fade-in ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .js .fade-in.visible { opacity: 1; transform: translateY(0); }
}

/* ---- Marquee (reference logos) ---- */
.ref-pill {
  border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1.25rem;
  font-weight: 600; color: var(--muted); background: #fff; white-space: nowrap;
}

/* ---- Aktuelles ---- */
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; display: flex; flex-direction: column; }
.news-date { font-size: .9rem; font-weight: 600; color: var(--green-dark); }
.news-link { margin-top: auto; padding-top: 1.1rem; font-weight: 600; color: var(--green-dark); }
.news-link:hover { text-decoration: underline; }

/* ---- Symbolbild-Hinweis (KI-generierte Bilder) ---- */
.symbolbild { position: absolute; top: .75rem; right: .75rem; z-index: 2; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(18,26,22,.6); padding: .2rem .55rem; border-radius: 6px; }
.symbolbild-unten { top: auto; bottom: .75rem; }

/* ---- Standortkarten (statisches OpenStreetMap-Bild, Klick öffnet Google Maps) ---- */
.map-link { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface); }
.map-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.map-link:hover img { transform: scale(1.03); }
.map-hint { position: absolute; left: .9rem; bottom: .9rem; font-size: .8rem; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.92); padding: .4rem .75rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.map-attrib { position: absolute; right: .4rem; bottom: .3rem; font-size: .62rem; color: rgba(27,38,33,.75); background: rgba(255,255,255,.7); padding: .05rem .35rem; border-radius: 4px; }

/* ---- Umkreis ---- */
.towns { display: flex; flex-wrap: wrap; gap: .55rem; }
.towns li { font-size: .95rem; font-weight: 500; padding: .45rem .85rem; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: rgba(255,255,255,.82); }
.towns li.hl { background: #fff; border-color: #fff; color: var(--ink); font-weight: 700; }
.towns li.home { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.radar { position: relative; aspect-ratio: 560 / 480; max-width: 560px; width: 100%; margin-left: auto; }
.radar svg { width: 100%; height: 100%; overflow: visible; }
.radar .pulse { transform-origin: 220px 240px; animation: radar-pulse 3.4s ease-out infinite; }
@keyframes radar-pulse { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar .pulse { animation: none; opacity: .25; } }
@media (max-width: 1023px) { .radar { margin: 0 auto; max-width: 460px; } }
