/* ==========================================================================
   BauernlandEnergie – Stylesheet im Original-Design (Stand der Live-Seite 2025)
   Farben aus der bisherigen Website übernommen. Schrift: Inter, lokal eingebunden.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #16a249;        /* Grün der bisherigen Website (Buttons, Icons, Links) */
  --primary-dark: #128a3e;
  --primary-soft: #dcf0e3;   /* Icon-Kreise */
  --blue: #0e4193;           /* Logo-Blau */
  --sky: #0080ff;            /* Verlauf „Warum jetzt?" */
  --heading: #1b3223;
  --text: #62846e;
  --border: #dae7df;
  --card: #e7f5ec;
  --card-2: #e1f1e7;
  --bg-soft: #f8fbf9;
  --bg-mint: #f4f9f6;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(27, 50, 35, .08), 0 10px 24px -6px rgba(27, 50, 35, .12);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.section { padding: clamp(56px, 8vw, 88px) 0; }
.lead { font-size: 1.125rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--primary-dark); }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { color: var(--primary); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--primary-dark); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 6px; font: inherit; font-weight: 500; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: #eef3fb; color: var(--blue); }
.btn--sm { padding: 8px 14px; font-size: .9rem; }
.btn--lg { padding: 13px 28px; }

/* ---------- Icon-Kreis ---------- */
.icon-badge {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin: 0 auto 18px;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--sm { width: 40px; height: 40px; margin: 0 0 14px; }
.icon-badge--sm svg { width: 20px; height: 20px; }
.icon-badge--glass { background: rgba(255,255,255,.12); }

/* ---------- Listen mit grünem Punkt ---------- */
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding-left: 20px; margin: 0 0 .7em; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.dots li:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.hero__logo { width: min(420px, 86%); margin: 0 auto clamp(32px, 5vw, 48px); }
.hero__intro { font-size: 1.15rem; margin-bottom: 1.1em; }
.hero p { max-width: 820px; margin-left: auto; margin-right: auto; }
.hero .btn { margin-top: 16px; }

/* ---------- Vision ---------- */
.vision { background: linear-gradient(180deg, var(--bg-mint) 0%, var(--card-2) 100%); }
.vision h2 { text-align: center; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 14px; }
.vision .card { background: #dff1e5; }

/* ---------- Agri-PV ---------- */
.agri { background: var(--bg-soft); text-align: center; }
.agri .box { background: var(--card-2); border-radius: var(--radius); padding: 24px 28px; text-align: left; margin-top: 28px; box-shadow: 0 1px 2px rgba(27,50,35,.05); }
.cta-hint { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.cta-hint__note { display: flex; align-items: flex-start; gap: 6px; max-width: 250px; font-size: .85rem; line-height: 1.45; text-align: left; }
.cta-hint__note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--primary); }

/* ---------- Leistungen ---------- */
.leistungen { text-align: center; }
.leistungen .cards { margin-top: 36px; text-align: left; }
.leistungen .card { background: var(--card); }
.leistungen .btn { margin-top: 36px; }

/* ---------- Warum jetzt ---------- */
.warum {
  position: relative; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--sky) 48%, #cfe6ff 56%, #f3f8ff 78%, #ffffff 100%);
}
.warum h2 { margin-bottom: 36px; }
.glass {
  max-width: 900px; margin: 0 auto; padding: clamp(28px, 4vw, 44px) clamp(22px, 5vw, 56px);
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.6); border-radius: 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  font-size: 1.1rem;
}
.glass p { color: #557a62; }
.glass .claim { color: var(--primary); font-weight: 500; margin: 1.4em 0 0; }

/* ---------- Termin & Kontakt ---------- */
.termin { background: linear-gradient(180deg, #edf4f0 0%, #ffffff 100%); text-align: center; }
.termin .btn { margin: 8px 0 40px; }
.contact-card {
  max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; text-align: left; box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.35rem; margin-bottom: 2px; }
.contact-card > p { font-size: .9rem; margin-bottom: 22px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item svg { width: 20px; height: 20px; flex: none; color: var(--primary); margin-top: 2px; }
.contact-item strong { display: block; color: var(--heading); font-weight: 500; }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--primary); text-decoration: underline; }
.contact-item address { font-style: normal; }
.small-note { font-size: .8rem; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 32px; font-size: .9rem; }
.site-footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.site-footer p { margin: 0 0 .55em; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 22px; text-align: center; font-size: .85rem; }
.footer__bottom p { margin: 0 0 .35em; }
.footer__legal a { color: var(--primary); margin: 0 8px; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 72px; }
.legal .container { max-width: 900px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: .3em; }
.legal h2 { font-size: 1.2rem; font-weight: 600; margin: 2em 0 .5em; }
.legal__meta { font-size: .9rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal address { font-style: normal; }
.legal .box { background: var(--bg-mint); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 1em 0; }
.legal .box p:last-child { margin-bottom: 0; }
.legal strong { color: var(--heading); font-weight: 600; }
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; margin: 1.5em 0; }
.toc ol { margin: .5em 0 0; padding-left: 1.3em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound img { width: 240px; margin: 0 auto 28px; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .nav__links { gap: 14px; }
  .nav__links .nav__home { display: none; }
  .brand { font-size: 1.1rem; }
  .cta-hint { flex-direction: column; }
  .cta-hint__note { max-width: 300px; }
  .cta-hint__note svg { transform: rotate(90deg); }
  .warum { background: linear-gradient(160deg, var(--primary) 0%, var(--sky) 40%, #cfe6ff 50%, #ffffff 90%); }
}
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .nav__links .btn { padding: 7px 10px; font-size: .85rem; }
}

@media print {
  .site-header { position: static; }
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}
