/* =========================================================
   Heimatverein „Zesummen fär Roalingen“ – Stylesheet
   Farben aus dem Logo. Schriften lokal (DSGVO).
   ========================================================= */

@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/nunito-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  --gruen: #5D7869;          /* Hauptfarbe Logo */
  --gruen-dunkel: #4A6154;   /* Hover, Text auf Hellbeige */
  --gruen-tief: #2F3D35;     /* Fließtext, Fußbereich */
  --terrakotta: #BE7D5D;     /* Akzent – nur Deko/große Schrift */
  --terrakotta-text: #9A5A3B;/* Akzent für Text (Kontrast ok) */
  --creme: #F6F3EE;
  --linie: #E3DDD3;
  --weiss: #FFFFFF;
  --radius: 14px;
  --schatten: 0 2px 12px rgba(47, 61, 53, .08);
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.125rem;          /* 18px – gut lesbar */
  line-height: 1.65;
  color: var(--gruen-tief);
  background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terrakotta-text); text-underline-offset: 3px; }
a:hover { color: var(--gruen-dunkel); }
:focus-visible { outline: 3px solid var(--terrakotta); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; color: var(--gruen-dunkel); line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 700; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

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

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gruen-tief); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- Kopfbereich ---------- */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 50; }
.kopf .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--gruen-dunkel); }
.marke img { width: 76px; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.05rem; }
.marke-zusatz { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--terrakotta-text); }

.nav-knopf { display: none; background: none; border: 2px solid var(--gruen); color: var(--gruen-dunkel); border-radius: 10px; padding: .45rem .8rem; font: 700 1rem "Nunito", sans-serif; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { display: block; padding: .5rem .75rem; border-radius: 10px; text-decoration: none; color: var(--gruen-tief); font-weight: 700; font-size: 1rem; }
.nav a:hover { background: var(--creme); color: var(--gruen-dunkel); }
.nav a[aria-current="page"] { color: var(--gruen-dunkel); box-shadow: inset 0 -3px 0 var(--terrakotta); border-radius: 0; }

@media (max-width: 960px) {
  .nav-knopf { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie); display: none; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .nav a { padding: .8rem .5rem; font-size: 1.1rem; }
  .no-js .nav { display: block; position: static; }
  .no-js .nav-knopf { display: none; }
}

/* ---------- Schaltflächen ---------- */
.knopf { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font: 700 1.05rem "Nunito", sans-serif; text-decoration: none; border: 2px solid var(--gruen); background: var(--gruen); color: #fff; cursor: pointer; transition: background .15s, color .15s; }
.knopf:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: #fff; }
.knopf-hell { background: transparent; color: var(--gruen-dunkel); }
.knopf-hell:hover { background: var(--gruen-dunkel); color: #fff; }
.knopf-akzent { background: var(--terrakotta-text); border-color: var(--terrakotta-text); }
.knopf-akzent:hover { background: #7f4a30; border-color: #7f4a30; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(3rem, 7vw, 5rem) 0; }
.abschnitt-creme { background: var(--creme); }
.abschnitt-creme h2, .abschnitt-creme h3 { color: var(--gruen-dunkel); }
.ueberzeile { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--terrakotta-text); margin-bottom: .6rem; display: flex; align-items: center; gap: .8rem; }
.ueberzeile::before { content: ""; width: 2.2rem; height: 2px; background: var(--terrakotta); }

/* Seitenkopf (Unterseiten) */
.seitenkopf { background: var(--creme); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); position: relative; overflow: hidden; }
.seitenkopf p { font-size: 1.2rem; max-width: 46ch; margin: 0; }
.seitenkopf::after, .held::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px;
  background: url("../img/welle.svg") bottom / 100% 100% no-repeat;
}

/* Startseite */
.held { background: var(--creme); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); position: relative; overflow: hidden; }
.held .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.held-text p { font-size: 1.25rem; }
.held-logo { background: var(--weiss); border-radius: 24px; padding: 1.5rem; box-shadow: var(--schatten); }
@media (max-width: 800px) {
  .held .container { grid-template-columns: 1fr; }
  .held-logo { order: -1; max-width: 340px; }
}

.raster { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--schatten); }
.karte p:last-child { margin-bottom: 0; }
.symbol { width: 56px; height: 56px; border-radius: 50%; background: var(--creme); display: grid; place-items: center; margin-bottom: 1rem; }
.symbol svg { width: 30px; height: 30px; stroke: var(--gruen); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.karte-akzent { border-top: 4px solid var(--terrakotta); }

.meldung { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; background: var(--weiss); border-radius: var(--radius); padding: 1.8rem; border-left: 5px solid var(--terrakotta); box-shadow: var(--schatten); }
.meldung-zahl { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 3rem; line-height: 1; color: var(--gruen); text-align: center; }
.meldung-zahl small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terrakotta-text); margin-top: .3rem; }
.meldung time { font-weight: 700; color: var(--terrakotta-text); font-size: .95rem; }
@media (max-width: 560px) { .meldung { grid-template-columns: 1fr; } }

/* Termine */
.terminliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.termin { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1.2rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem; }
.termin-datum { background: var(--gruen); color: #fff; border-radius: 10px; text-align: center; padding: .6rem .3rem; font-family: "Montserrat", sans-serif; line-height: 1.1; align-self: start; }
.termin-datum .tag { font-size: 1.9rem; font-weight: 700; display: block; }
.termin-datum .monat { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.termin h3 { margin-bottom: .2rem; }
.termin-meta { font-size: .98rem; color: var(--gruen-dunkel); font-weight: 700; margin-bottom: .3rem; }
.termin p { margin: 0; overflow-wrap: anywhere; }
[data-termine] { margin-bottom: 1.2rem; }
.hinweisbox { background: var(--creme); border-radius: var(--radius); padding: 1.5rem; border: 1px dashed var(--gruen); }

/* Vorstand */
.vorstand { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.vorstand li { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.3rem; }
.vorstand .funktion { display: block; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--terrakotta-text); margin-bottom: .3rem; }
.vorstand .name { font-weight: 700; font-size: 1.15rem; }

/* Beitragstabelle */
.tabelle { width: 100%; border-collapse: collapse; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.tabelle th, .tabelle td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { background: var(--gruen); color: #fff; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .95rem; }
.tabelle tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .tabelle { font-size: .95rem; }
  .tabelle th, .tabelle td { padding: .7rem .55rem; }
  .tabelle th { font-size: .82rem; }
}

.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.schritte li { counter-increment: schritt; position: relative; padding: 1.1rem 1.2rem 1.1rem 4.2rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); }
.schritte li::before { content: counter(schritt); position: absolute; left: 1.1rem; top: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--terrakotta-text); color: #fff; font: 700 1.1rem "Montserrat", sans-serif; display: grid; place-items: center; }

.liste-haken { list-style: none; padding: 0; }
.liste-haken li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; }
.liste-haken li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .7rem; height: .4rem; border-left: 3px solid var(--gruen); border-bottom: 3px solid var(--gruen); transform: rotate(-45deg); }

/* Mitmach-Streifen */
.streifen { background: var(--gruen); color: #fff; padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.streifen h2 { color: #fff; }
.streifen .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.streifen p { margin: 0; font-size: 1.15rem; max-width: 52ch; }
.streifen .knopf { background: #fff; color: var(--gruen-tief); border-color: #fff; }
.streifen .knopf:hover { background: var(--creme); border-color: var(--creme); }

/* Formular */
.formular { display: grid; gap: 1.1rem; }
.feld label { display: block; font-weight: 700; margin-bottom: .35rem; }
.feld input, .feld select, .feld textarea { width: 100%; padding: .8rem .9rem; font: inherit; font-size: 1.05rem; color: var(--gruen-tief); border: 2px solid #c9c2b6; border-radius: 10px; background: #fff; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--gruen); outline: none; box-shadow: 0 0 0 3px rgba(93,120,105,.25); }
.feld textarea { min-height: 170px; resize: vertical; }
.pflicht { color: var(--terrakotta-text); }
.honig { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.klein { font-size: .95rem; }
.status { padding: 1rem 1.2rem; border-radius: 10px; font-weight: 700; margin-bottom: 1.2rem; }
.status-ok { background: #e6efe9; color: var(--gruen-tief); border-left: 5px solid var(--gruen); }
.status-fehler { background: #f7e9e2; color: #6e3a22; border-left: 5px solid var(--terrakotta-text); }
[hidden] { display: none !important; }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 800px) { .zwei-spalten { grid-template-columns: 1fr; } }

.rechtstext h2 { font-size: 1.35rem; margin-top: 2rem; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.4rem; }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--gruen-tief); color: #e9efe9; padding: 3rem 0 1.5rem; font-size: 1rem; }
.fuss a { color: #fff; }
.fuss a:hover { color: #f1d3c3; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.fuss h2 { color: #fff; font-size: 1rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .8rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .92rem; color: #c9d4cc; }
@media (max-width: 800px) { .fuss-raster { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .kopf, .fuss, .streifen, .nav-knopf { display: none; } body { font-size: 12pt; } }
