/* ═══════════════════════════════════════════════════
   ANIMATIONEN
   ═══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: fadeUp .6s .1s  both; }
.anim-2 { animation: fadeUp .6s .25s both; }
.anim-3 { animation: fadeUp .6s .4s  both; }
.anim-4 { animation: fadeUp .7s .3s  both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 860px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-toggle  { display: flex; align-items: center; }

  /* Mobile Dropdown-Nav */
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--gruen);
    border-top: 1px solid rgba(193,209,199,.2);
    box-shadow: var(--sh-lg);
    z-index: 199;
  }

  .primary-nav.is-open ul {
    flex-direction: column;
    gap: 0;
    padding: .5rem 0 .75rem;
  }

  .primary-nav.is-open a {
    padding: .8rem 1.5rem;
    border-radius: 0;
    font-size: .95rem;
    border-bottom: 1px solid rgba(193,209,199,.1);
    width: 100%;
    min-height: 52px;
  }

  .primary-nav.is-open li:last-child a { border-bottom: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-img-wrap { order: -1; }
  .ziele-layout { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobil (≤ 540px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 540px) {
  body { font-size: 16px; }

  section, .cta-wrap { padding: 2.5rem 1rem; }

  .logo-sub { display: none; }
  .logo-name { font-size: .9rem; }

  .hero { padding: 2.5rem 1rem 3.5rem; }
  .hero-text h1 { font-size: 1.75rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .stat-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1.25rem;
  }

  .card-grid { grid-template-columns: 1fr; }

  .info-card { padding: 1.5rem; }
  .kontakt-aside { padding: 1.5rem; }

  .transparenz-box { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Sehr schmal (≤ 360px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 360px) {
  body { font-size: 15px; }
  .logo-img { height: 32px; }
  .logo-name { font-size: .8rem; }
  .nav-toggle { padding: 0 .65rem; font-size: .8rem; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--rot);
  border-bottom: 1px solid var(--mint);
  padding: .55rem 1.25rem;
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--ff-ui);
  font-size: .78rem;
    color: #fff!important;

}
.breadcrumb-inner a { color: var(--white); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner .current { color: var(--white); font-weight: 700; }
.breadcrumb-sep { margin: 0 .4em; opacity: .45; }

/* ── Page-Header (Unterseiten ohne Hero) ── */
.page-header {
  background: linear-gradient(160deg, var(--gruen) 0%, var(--gruen-mid) 55%, #1a5c35 100%);
  color: #fff;
  padding: 4rem 1.25rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c1d1c7' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
/* Mit Bild → zweispaltiges Hero-Layout */
.page-header-inner.has-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.page-header h1 {
  font-family: var(--ff-ui);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.page-header h1 span { color: var(--mint); }
.page-header p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
  max-width: 620px;
  margin: 0;
}
.page-header-figure {
  position: relative;
  margin: 0;
}
.page-header-inner:not(.has-image) .page-header-figure {
  margin-top: 1.75rem;
  max-width: 600px;
}
.page-header-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 4px solid rgba(193,209,199,.3);
}
.page-header-caption {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  background: rgba(6,69,32,.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: .75rem 1rem;
  font-family: var(--ff-ui);
  font-size: .75rem;
  color: var(--mint);
  line-height: 1.5;
  text-align: center;
}
.page-header-caption strong { color: #fff; }
.page-header-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}
@media (max-width: 760px) {
  .page-header-inner.has-image {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .page-header-cta .btn { width: 100%; justify-content: center; }
}


/* ── Inhalts-Layout Unterseiten ── */
.content-section { padding: 3rem 1.25rem; }
.content-inner { max-width: var(--max-w); margin: 0 auto; }

/* ── Prose-Text ── */
.prose p { font-size: 1rem; line-height: 1.85; color: var(--text-mid); margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  font-family: var(--ff-ui); font-weight: 700;
  font-size: 1.15rem; color: var(--gruen);
  margin: 1.5rem 0 .5rem;
}
.prose h4 { font-family: var(--ff-ui); font-weight: 700; font-size: 1rem; color: var(--gruen); margin: 1.25rem 0 .4rem; }
.prose ul { list-style: none; margin-bottom: 1rem; }
.prose ul li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: .3rem;
}
.prose ul li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--rot); font-weight: 700;
}
.prose strong { color: var(--text); }
.prose a { color: var(--rot); }
.prose a:hover { color: var(--rot-h); }

/* ── Info-Box (Öffnungszeiten, Kosten etc.) ── */
.info-box {
  background: var(--mint-light);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--gruen);
  margin: 1.75rem 0;
}
.info-box h4 {
  font-family: var(--ff-ui); font-weight: 700;
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--gruen);
  margin-bottom: .6rem;
}
.info-box p, .info-box li {
  font-size: .95rem; line-height: 1.75; color: var(--text-mid);
}

/* ── Highlight-Box (Kosten, Hinweise) ── */
.highlight-box {
  background: var(--sand);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--rot);
  margin: 1.75rem 0;
}
.highlight-box p { font-size: .95rem; line-height: 1.75; color: var(--text-mid); }

/* ── Adress-Grid ── */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.address-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  border-top: 4px solid var(--gruen);
  box-shadow: var(--sh-sm);
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.address-card h4 {
  font-family: var(--ff-ui); font-weight: 700;
  font-size: .95rem; color: var(--gruen);
  margin-bottom: .4rem;
}
.address-card a { color: var(--rot); text-decoration: none; }
.address-card a:hover { text-decoration: underline; }

/* ── Zwei-Spalten-Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ── Seitenbild ── */
.page-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  margin-bottom: 1.5rem;
}

/* ── Kennzahl-Kacheln ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%,190px),1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}
.stat-tile {
  background: var(--gruen);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-align: center;
}
.stat-tile .num {
  font-family: var(--ff-ui);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  display: block;
}
.stat-tile .lbl {
  font-family: var(--ff-ui);
  font-size: .78rem;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-top: .3rem;
}

/* ── Download-Link ── */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--mint-light);
  border: 2px solid var(--mint);
  border-radius: var(--r-pill);
  padding: .6em 1.25em;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: .9rem;
  color: var(--gruen);
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast);
  margin: .4rem .2rem;
}
.download-link:hover {
  background: var(--mint);
  border-color: var(--gruen);
  color: var(--gruen);
}

/* ── Kontaktformular ── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: .88rem;
  color: var(--gruen);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7em .9em;
  border: 2px solid var(--mint);
  border-radius: var(--r);
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gruen);
  box-shadow: 0 0 0 3px rgba(6,69,32,.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-hint {
  font-family: var(--ff-ui);
  font-size: .78rem;
  color: var(--text-light);
  margin-top: .35rem;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .content-section { padding: 2rem 1rem; }
  .info-box, .highlight-box { padding: 1.1rem 1.2rem; }
  .address-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   SUCHE — Suchfeld im Header + Live-Ergebnisse
   ═══════════════════════════════════════════════════ */

/* Suchfeld im Header */
.search-wrap {
  position: relative;
}

.search-field {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(193,209,199,.35);
  border-radius: var(--r-pill);
  padding: .3em .5em .3em .9em;
  gap: .4rem;
  transition: background var(--t-fast), border-color var(--t-fast);
  min-height: 40px;
}

.search-field:focus-within {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.7);
}

.search-field .icon svg { width: 16px; height: 16px; }
.search-field .icon { color: var(--mint); opacity: .8; }

#site-search-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--ff-ui);
  font-size: .82rem;
  color: #fff;
  width: 160px;
  min-height: 36px;
}

#site-search-input::placeholder { color: rgba(193,209,199,.6); }

.search-kbd {
  font-family: var(--ff-ui);
  font-size: .65rem;
  color: rgba(193,209,199,.5);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  padding: .15em .4em;
  white-space: nowrap;
  /* Nur auf Geräten mit Tastatur anzeigen */
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .search-kbd { display: inline-block; }
}

/* Ergebnis-Dropdown */
#site-search-results {
  display: none;
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  width: min(420px, 95vw);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  border: 1px solid var(--mint);
  overflow: hidden;
  z-index: 500;
  max-height: 70vh;
  overflow-y: auto;
}

#site-search-results.is-visible { display: block; }

.search-result-item {
  display: block;
  padding: .85rem 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--mint-light);
  transition: background var(--t-fast);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--mint-light); }

.sri-title {
  display: block;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: .9rem;
  color: var(--gruen);
  margin-bottom: .25rem;
}

.sri-snip {
  display: block;
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.55;
}

.sri-snip mark {
  background: var(--sand);
  color: var(--gruen);
  font-weight: 700;
  border-radius: 2px;
  padding: 0 2px;
}

.search-empty {
  padding: 1.25rem 1.1rem;
  font-family: var(--ff-ui);
  font-size: .88rem;
  color: var(--text-light);
}

/* Overlay hinter Suchergebnissen */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 499;
}

#search-overlay.is-visible { display: block; }

/* Mobil: Suchfeld ausblenden, nur Icon zeigen */
@media (max-width: 860px) {
  .search-wrap { display: none; }
}
