@font-face{
  font-family:"Space Grotesk";
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"),
      url("fonts/space-grotesk-latin-500-normal.woff") format("woff");
}
@font-face{
  font-family:"Space Grotesk";
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"),
      url("fonts/space-grotesk-latin-700-normal.woff") format("woff");
}

:root{
  --bg:#FAFAF7;
  --surface:#FFFFFF;
  --text:#1A1A1A;
  --text-muted:#555555;
  --text-faint:#999999;
  --line:#BBBBBB;
  --accent-soft:#D9EAD3;
  --accent:#31672E;
  --accent-deep:#204A1D;
  --font-body:"Segoe UI", "Segoe UI Web", system-ui, -apple-system, sans-serif;
  --font-display:"Space Grotesk", var(--font-body);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; scroll-padding-top:130px;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--accent-deep); color:#fff; padding:12px 20px;
  border-radius:0 0 6px 0; font-size:14px; font-weight:600;
}
.skip-link:focus{left:0;}

.location-row label{font-size:11.5px; font-weight:600; color:var(--text-muted); margin-bottom:3px; display:block;}
.location-field{display:flex; flex-direction:column;}
.location-field.plz-field{flex:0 0 90px;}
.location-field.ort-field{flex:1;}

.funding-note{font-size:13px; color:var(--text-muted); font-style:italic; margin-top:28px; max-width:70ch;}
body{
  font-family:var(--font-body); color:var(--text); background:var(--bg); line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent); text-decoration:none;}
a:hover{text-decoration:underline;}
img{display:block; max-width:100%;}
.wrap{max-width:1040px; margin:0 auto; padding:0 24px;}

/* Header: eigene, dauerhaft fixierte schwebende Karte */
header{
  position:sticky; top:0; z-index:100;
  background:var(--accent-soft);
  padding:14px 16px;
}
.header-card{
  max-width:1040px; margin:0 auto;
  background:var(--surface);
  border-radius:16px;
  box-shadow:0 14px 32px -12px rgba(32,74,29,0.32), 0 4px 12px rgba(32,74,29,0.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
}
.brand{display:flex; align-items:center; gap:16px; text-decoration:none; color:inherit;}
.brand:hover{text-decoration:none; opacity:0.85;}
.brand img{height:56px; width:auto;}
.brand-icon{flex-shrink:0; height:44px; width:auto; display:block; object-fit:contain;}
.brand-text{display:flex; flex-direction:column; gap:3px;}
.brand-name{font-family:var(--font-display); font-weight:700; font-size:23px; color:var(--accent-deep); letter-spacing:.01em;}
.brand-sub{font-size:13px; color:var(--text-muted);}
nav{display:flex; align-items:center; gap:30px; font-size:15px; font-weight:600;}
nav a{color:var(--accent-deep); padding:6px 2px; border-bottom:2px solid transparent;}
nav a:hover{color:var(--accent); border-bottom-color:var(--accent); text-decoration:none;}
nav a.active{color:var(--accent); border-bottom-color:var(--accent);}

/* Oberer Inhalts-Bereich (Hero bzw. Seitentitel): eigene schwebende Karte unterhalb des fixierten Headers */
.top-shell{
  background:var(--accent-soft);
  padding:0 16px 52px;
}
.top-card{
  max-width:1040px;
  margin:0 auto;
  background:var(--surface);
  border-radius:20px;
  box-shadow:0 28px 56px -18px rgba(32,74,29,0.35), 0 6px 16px rgba(32,74,29,0.08);
  overflow:hidden;
}

.nav-dropdown{position:relative;}
.nav-dropdown summary{
  cursor:pointer; list-style:none; color:var(--accent-deep); font-weight:600;
  padding:6px 2px; border-bottom:2px solid transparent;
  display:flex; align-items:center; gap:5px;
}
.nav-dropdown summary::-webkit-details-marker{display:none;}
.nav-dropdown summary::after{content:"▾"; font-size:10px; margin-top:1px;}
.nav-dropdown summary:hover{color:var(--accent);}
.nav-dropdown[open] summary{color:var(--accent); border-bottom-color:var(--accent);}
.nav-dropdown.active summary{color:var(--accent); border-bottom-color:var(--accent);}
.dropdown-panel{
  position:absolute; top:calc(100% + 12px); left:0;
  background:var(--surface); border:1px solid var(--line); border-radius:10px;
  box-shadow:0 16px 32px rgba(32,74,29,0.18);
  padding:8px; display:flex; flex-direction:column; min-width:230px; z-index:50;
}
.dropdown-panel a{
  color:var(--text); font-size:14px; font-weight:500; padding:9px 12px;
  border-radius:6px; border-bottom:none; white-space:nowrap;
}
.dropdown-panel a:hover{background:var(--accent-soft); text-decoration:none; color:var(--accent-deep);}

/* Hero (Startseite, innerhalb der Karte) */
.hero{padding:40px 0 0;}
.hero-inner{
  display:flex; align-items:flex-end; justify-content:space-between; gap:32px;
  padding:0 32px;
}
.hero-copy{flex:1; padding-bottom:40px; max-width:52ch;}
.eyebrow{
  font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent-deep); font-weight:600; display:block; margin-bottom:12px;
}
.hero h1{font-family:var(--font-display); font-size:31px; font-weight:700; line-height:1.3; margin-bottom:14px;}
.hero p{font-size:15.5px; color:var(--text-muted); max-width:48ch;}
.hero-cta{margin-top:24px; display:flex; gap:14px; flex-wrap:wrap;}
.btn{
  display:inline-block; padding:11px 22px; font-size:14px; font-weight:600;
  border-radius:2px; text-decoration:none;
}
.btn-primary{background:var(--accent); color:#fff;}
.btn-primary:hover{background:var(--accent-deep); text-decoration:none;}
.btn-ghost{border:1px solid var(--accent-deep); color:var(--accent-deep);}
.btn-ghost:hover{background:rgba(49,103,46,0.08); text-decoration:none;}

.hero-mascot{
  flex-shrink:0; align-self:flex-end;
  width:230px;
}
.hero-mascot img{width:100%; height:auto;}

/* Page header (Unterseiten, innerhalb der Karte) */
.page-header{padding:40px 32px 44px;}
.page-header h1{font-family:var(--font-display); font-size:29px; font-weight:700; margin-top:8px;}
.page-header p{font-size:15px; color:var(--text-muted); max-width:60ch; margin-top:12px;}

/* Sections */
section{padding:52px 0; border-bottom:1px solid var(--line);}
.section-title{font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); font-weight:600; margin-bottom:8px;}
section h2{font-family:var(--font-display); font-size:23px; font-weight:700; margin-bottom:22px;}

/* Trust-Leiste */
.trust-bar{padding:22px 0; border-bottom:1px solid var(--line); background:var(--surface);}
.trust-list{display:flex; flex-wrap:wrap; gap:10px 28px; justify-content:center; font-size:13.5px; color:var(--text-muted); font-weight:600;}
.trust-list li{list-style:none; display:flex; align-items:center; gap:8px;}
.trust-list li::before{content:"✓"; color:var(--accent); font-weight:700;}

/* Teaser-Karten (Startseite) */
.teaser-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:28px;}
.teaser-card{border:1px solid var(--line); border-radius:3px; padding:24px; display:flex; flex-direction:column; background:var(--surface);}
.teaser-card h3{font-size:16.5px; font-weight:700; margin-bottom:10px;}
.teaser-card ul{margin:0 0 16px 0; padding-left:18px; color:var(--text-muted); font-size:13.5px;}
.teaser-card li{margin-bottom:4px;}
.teaser-card .teaser-link{margin-top:auto; font-size:13.5px; font-weight:600;}

/* Prozess-Schritte */
.process-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:28px;}
.process-step{border-top:2px solid var(--accent-soft); padding-top:14px;}
.process-step .step-num{font-family:var(--font-body); font-size:12px; font-weight:700; color:var(--accent); display:block; margin-bottom:6px;}
.process-step h3{font-size:15.5px; font-weight:700; margin-bottom:6px;}
.process-step p{font-size:14px; color:var(--text-muted);}

/* CTA-Band */
.cta-band{background:var(--accent-deep); border-bottom:none; text-align:center;}
.cta-band h2{font-family:var(--font-display); color:#fff; margin-bottom:12px;}
.cta-band p{color:var(--accent-soft); font-size:15px; margin-bottom:24px; max-width:56ch; margin-left:auto; margin-right:auto;}
.cta-band .btn-primary{background:#fff; color:var(--accent-deep);}
.cta-band .btn-primary:hover{background:var(--accent-soft);}

/* Einzugsgebiet-Teaser auf der Startseite */
.area-teaser{display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;}
.area-teaser-copy{flex:1; min-width:260px;}
.area-teaser-copy p{font-size:14.5px; color:var(--text-muted); max-width:48ch; margin-bottom:18px;}

/* Leistungen */
.services-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:28px 40px;}
.service{border-top:2px solid var(--accent-soft); padding-top:12px;}
.service h3{font-size:15.5px; font-weight:700; margin-bottom:6px;}
.service p{font-size:14px; color:var(--text-muted);}
.service-category{margin-bottom:20px;}
.service-category:last-child{margin-bottom:0;}

/* Einzugsgebiet / Karte */
.map-section p.intro{font-size:14.5px; color:var(--text-muted); max-width:56ch; margin-bottom:28px;}
.map-wrap{max-width:460px; margin:0 auto;}
.map-wrap svg{width:100%; height:auto;}
.map-caption{font-size:13.5px; color:var(--text-muted); text-align:center; max-width:56ch; margin:20px auto 0;}
.map-caption strong{color:var(--text); font-weight:600;}

/* Kontakt */
.contact-grid{display:flex; gap:48px; flex-wrap:wrap; align-items:flex-start;}
.contact-info{flex:1; min-width:220px; font-size:14.5px;}
.contact-info p{margin-bottom:6px; color:var(--text-muted);}
.contact-info strong{color:var(--text); font-weight:600;}

form{flex:1.4; min-width:280px; display:flex; flex-direction:column; gap:12px;}
label{font-size:13px; font-weight:600; color:var(--text-muted); margin-bottom:2px; display:block;}
input, textarea{
  width:100%; padding:10px 12px; font-family:inherit; font-size:14px;
  border:1px solid var(--line); border-radius:2px; background:var(--surface); color:var(--text);
}
input:focus, textarea:focus{outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent);}
textarea{resize:vertical; min-height:110px;}
form .btn-primary{align-self:flex-start; border:none; cursor:pointer;}

.location-row{display:flex; gap:10px;}

.honeypot{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}

.form-error{
  background:#FBEAEA; border:1px solid #E3A9A9; color:#8A2C2C;
  padding:12px 14px; border-radius:4px; font-size:13.5px; line-height:1.5;
}

fieldset{border:none; padding:0; margin:0;}
legend{font-size:13px; font-weight:600; color:var(--text); margin-bottom:8px; padding:0; width:100%;}
.subgroup-label{
  display:block; font-size:11px; text-transform:uppercase; letter-spacing:.05em;
  color:var(--accent); font-weight:600; margin:12px 0 4px;
}
.subgroup-label:first-of-type{margin-top:0;}
.checkbox-group{display:flex; flex-direction:column; gap:1px; margin-bottom:2px;}
.checkbox-row{
  display:flex; align-items:flex-start; gap:9px; font-size:13.5px;
  padding:5px 2px; cursor:pointer; color:var(--text); line-height:1.4;
}
.checkbox-row input{margin-top:3px; accent-color:var(--accent); width:16px; height:16px; flex-shrink:0; cursor:pointer;}

.radio-group{display:flex; flex-direction:column; gap:8px;}
.radio-row{
  display:flex; align-items:center; gap:10px; font-size:13.5px;
  padding:9px 12px; border:1px solid var(--line); border-radius:2px; cursor:pointer;
}
.radio-row input{accent-color:var(--accent); width:16px; height:16px; flex-shrink:0; cursor:pointer;}
.radio-row:has(input:checked){border-color:var(--accent); background:rgba(49,103,46,0.07);}

footer{padding:28px 0; text-align:center; font-size:12.5px; color:var(--text-muted);}
footer a{color:var(--text-muted);}
.footer-badge{
  display:inline-flex; align-items:center; gap:5px;
  margin-top:10px; font-size:11.5px; color:var(--accent);
}
.footer-badge svg{width:13px; height:13px; flex-shrink:0;}

/* Rechtstexte (Impressum, Datenschutz) */
.legal-block{margin-bottom:34px; padding-bottom:34px; border-bottom:1px solid var(--line);}
.legal-block:last-child{margin-bottom:0; padding-bottom:0; border-bottom:none;}
.legal-block h2{font-family:var(--font-display); font-size:18px; font-weight:700; margin-bottom:10px;}
.legal-block p{font-size:14.5px; color:var(--text-muted); line-height:1.7; max-width:70ch;}
.legal-block p + p{margin-top:10px;}

/* Aktuelles / Meldungen */
.news-entry{border-top:2px solid var(--accent-soft); padding-top:18px; margin-bottom:36px; max-width:70ch;}
.news-entry:last-child{margin-bottom:0;}
.news-entry time{
  display:block; font-size:12px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--accent); font-weight:600; margin-bottom:8px;
}
.news-entry h2{font-family:var(--font-display); font-size:19px; font-weight:700; margin-bottom:8px;}
.news-entry p{font-size:14.5px; color:var(--text-muted); line-height:1.65; margin-bottom:10px;}
.news-entry .source-link{font-size:13px; font-weight:600;}

.news-teaser-entry{border-top:2px solid var(--accent-soft); padding-top:14px; margin-bottom:16px;}
.news-teaser-entry time{
  display:block; font-size:11.5px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--accent); font-weight:600; margin-bottom:6px;
}
.news-teaser-entry h3{font-size:15.5px; font-weight:700; margin-bottom:6px;}
.news-teaser-entry p{font-size:14px; color:var(--text-muted);}

/* ===== Mobile: eigene, großzügigere Schriftgrößen statt nur Verkleinerung ===== */
@media (max-width:720px){
  html{scroll-padding-top:210px;}
  .wrap{padding:0 18px;}

  header{padding:10px 10px;}
  .header-card{border-radius:12px; box-shadow:0 10px 22px -12px rgba(32,74,29,0.35), 0 3px 8px rgba(32,74,29,0.08);}
  .top-shell{padding:16px 10px 36px;}
  .top-card{border-radius:14px; box-shadow:0 16px 32px -14px rgba(32,74,29,0.35), 0 3px 8px rgba(32,74,29,0.08);}

  .header-inner{flex-direction:column; align-items:flex-start; gap:14px; padding:16px 18px;}
  .brand-name{font-size:19px;}
  .brand-sub{font-size:12.5px;}
  nav{
    display:flex; gap:0; width:100%;
    border-top:1px solid rgba(32,74,29,0.15); padding-top:12px;
    justify-content:space-between; flex-wrap:wrap; row-gap:8px;
  }
  nav a{font-size:13.5px; padding:6px 0;}
  .nav-dropdown{width:100%; order:1;}
  .nav-dropdown summary{font-size:13.5px; padding:6px 0;}
  .dropdown-panel{
    position:static; box-shadow:none; border:none; border-radius:0;
    padding:2px 0 2px 14px; margin-top:2px; min-width:0;
  }
  .dropdown-panel a{padding:8px 0; font-size:13.5px;}

  .hero{padding-top:8px;}
  .hero-inner{flex-direction:column-reverse; align-items:center; text-align:center; gap:8px; padding:0 20px;}
  .hero-mascot{width:190px; align-self:center; margin-bottom:8px;}
  .hero-copy{padding-bottom:32px; max-width:100%;}
  .eyebrow{font-size:12.5px;}
  .hero h1{font-size:26px; line-height:1.3;}
  .hero p{font-size:16.5px; margin:0 auto; max-width:38ch;}
  .hero-cta{justify-content:center; margin-top:22px;}
  .btn{padding:14px 24px; font-size:15.5px; min-height:44px; display:flex; align-items:center;}

  .page-header{padding:28px 20px 34px;}
  .page-header h1{font-size:23px;}
  .page-header p{font-size:15px;}

  section{padding:40px 0;}
  section h2{font-size:20px;}
  .section-title{font-size:12.5px;}

  .trust-list{font-size:14px; gap:10px 18px;}

  .teaser-grid{grid-template-columns:1fr; gap:20px;}
  .process-grid{grid-template-columns:1fr; gap:24px;}

  .area-teaser{text-align:center; justify-content:center;}
  .area-teaser-copy p{margin-left:auto; margin-right:auto;}

  .services-grid{grid-template-columns:1fr; gap:24px;}
  .service h3{font-size:16px;}
  .service p{font-size:15px;}

  .contact-grid{gap:32px;}
  .contact-info{font-size:15.5px;}
  label{font-size:14px;}
  input, textarea{font-size:16px; padding:12px 14px;}
  form .btn-primary{width:100%; justify-content:center;}

  legend{font-size:14px;}
  .subgroup-label{font-size:12px;}
  .checkbox-row{font-size:15px; padding:8px 2px;}
  .checkbox-row input{width:19px; height:19px;}
  .radio-row{font-size:15px; padding:12px 14px;}
  .radio-row input{width:19px; height:19px;}

  footer{font-size:12.5px; padding:22px 0;}

  .map-section p.intro{font-size:15.5px;}
  .map-wrap{max-width:320px;}
  .map-caption{font-size:14px;}

  .legal-block h2{font-size:17px;}
  .legal-block p{font-size:15px;}

  .news-entry h2{font-size:17px;}
  .news-entry p{font-size:15px;}
  .news-teaser-entry h3{font-size:16px;}
  .news-teaser-entry p{font-size:15px;}
}
