/* FV Unterfranken – Stylesheet
   Farben angelehnt an den bisherigen Kopf (Olivgrün) und an die gelben
   Nummernplättchen, mit denen Stämme auf dem Submissionsplatz markiert werden. */

:root {
  --band: #29432f;
  --band-dunkel: #1a2f20;
  --moos: #4a6a2c;
  --text: #1b211c;
  --grau: #566055;
  --linie: #d4d9cd;
  --flaeche: #eff2eb;
  --plakette: #f2c21b;
  --breite: 1120px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 1.0625rem/1.55 var(--schrift);
}

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: var(--moos); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--band-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--plakette); color: var(--text);
  padding: .5rem .9rem; font-weight: 700; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Kopf ---------------------------------------------------------------- */

.kopf {
  background: var(--band) url(/assets/waldrand.svg) repeat-x left bottom / auto 90px;
  color: #fff;
  padding: 30px 0 96px;
}
.kopf :focus-visible { outline-color: var(--plakette); }

.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
.marke:hover { color: #fff; }
.marke img { width: 34px; height: 68px; flex: none; }

.kopf-kontakt {
  margin: 4px 0 0;
  font-size: .9375rem;
  line-height: 1.5;
  text-align: right;
  color: #d9e3d3;
}
.kopf-kontakt a { color: #fff; text-decoration: none; }
.kopf-kontakt a:hover { text-decoration: underline; }

/* Hauptnavigation ------------------------------------------------------ */

.hauptnav {
  background: #fff;
  border-bottom: 1px solid var(--linie);
}
.hauptnav ul {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;
}
.hauptnav a {
  display: block;
  padding: 15px 0 12px;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.hauptnav a:hover { border-bottom-color: var(--linie); color: var(--text); }
.hauptnav a[aria-current] { border-bottom-color: var(--moos); color: var(--moos); }

/* Startseite: Haus-Symbol, grün, durch einen Strich von den übrigen Reitern getrennt */
.hauptnav .nav-start { position: relative; padding-right: 26px; }
.hauptnav .nav-start::after {
  content: ""; position: absolute; right: 0; top: 15px; bottom: 13px;
  width: 1px; background: var(--linie);
}
.hauptnav .nav-start a { display: flex; align-items: center; gap: 7px; color: var(--moos); font-weight: 700; }
.hauptnav .nav-start a:hover { color: var(--band-dunkel); }
.hauptnav .nav-start svg { flex: none; margin-top: -2px; }

@media (min-width: 721px) { .hauptnav ul { gap: 0 22px; } .hauptnav .nav-start { padding-right: 22px; } }
@media (max-width: 1100px) and (min-width: 721px) {
  .hauptnav ul { gap: 0 16px; }
  .hauptnav .nav-start { padding-right: 16px; }
  .hauptnav a { font-size: .9375rem; }
}

/* Inhalt ---------------------------------------------------------------- */

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.raster { display: grid; gap: 56px; }
@media (min-width: 960px) {
  .raster { grid-template-columns: minmax(0, 1fr) 300px; }
}

.schmal { max-width: 760px; }

h1, h2, h3 { color: var(--band-dunkel); line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); margin: 0 0 .6em; letter-spacing: -0.012em; }
h2 { font-size: 1.375rem; margin: 2.2em 0 .7em; }
h3 { font-size: 1.125rem; margin: 1.8em 0 .5em; }
h1 + h2, h1 + .fliesstext > h2:first-child { margin-top: 1em; }

p, li, dd, address { max-width: 68ch; }
p { margin: 0 0 1em; }
address { font-style: normal; margin: 0 0 1em; }
ul { padding-left: 1.25em; }
li { margin-bottom: .35em; }

.lead { font-size: 1.1875rem; line-height: 1.5; color: #2a332c; }
.quelle, .stand { font-size: .9375rem; color: var(--grau); }
.hinweis { font-size: .9375rem; color: var(--grau); }

blockquote {
  margin: 1.5em 0;
  padding: 0 0 0 1.25em;
  border-left: 3px solid var(--linie);
}

.brotkrume { margin: 0 0 .75em; font-size: .9375rem; }
.datum { color: var(--grau); font-size: .9375rem; margin: 0 0 .35em; font-variant-numeric: tabular-nums; }
h1 + .datum { margin-top: -.6em; margin-bottom: 1.5em; }

/* Bilder */

.bild { margin: 1.5em 0 2em; }
.bild img { display: block; }
.bild figcaption { margin-top: .6em; font-size: .875rem; line-height: 1.45; color: var(--grau); max-width: 60ch; }
.bild-klein { float: right; margin: 0 0 1em 1.5em; width: 120px; }
.bild-breit img { width: 100%; }
@media (max-width: 560px) { .bild-klein { width: 88px; } }

/* Startseite ------------------------------------------------------------ */

.einstieg { margin-bottom: 2.5em; }
.einstieg h1 { margin-bottom: .4em; }
.einstieg .lead { margin-bottom: 0; }

.naechster-termin { margin: 0 0 2.75em; }
.naechster-termin h2 { margin-top: 0; }

/* Termin mit Plakette (gelbes Nummernplättchen) */

.termin {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 1.5em;
}
.plakette {
  position: relative;
  background: var(--plakette);
  color: var(--text);
  text-align: center;
  border-radius: 3px;
  padding: 16px 0 8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plakette::before {
  content: "";
  position: absolute;
  top: 5px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .25);
}
.plakette .tag { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.plakette .monat { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 600; }
.termin-titel { font-weight: 700; font-size: 1.125rem; margin: 2px 0 .25em; color: var(--band-dunkel); }
.termin p { margin-bottom: .2em; }

/* Meldungen */

.meldungen { list-style: none; padding: 0; margin: 0; }
.meldung {
  display: grid;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--linie);
  max-width: none;
  margin: 0;
}
.meldung:last-child { border-bottom: 1px solid var(--linie); }
.meldung.mit-bild { grid-template-columns: 200px minmax(0, 1fr); }
.meldung img { display: block; width: 200px; height: 150px; object-fit: cover; background: var(--flaeche); }
.meldung img.oben { object-position: top; }
.meldung h3 { margin: 0 0 .35em; font-size: 1.1875rem; }
.meldung h3 a { color: var(--band-dunkel); text-decoration: none; }
.meldung h3 a:hover { text-decoration: underline; }
.meldung p { margin-bottom: 0; }
.meldung .datum { margin-bottom: .3em; }
@media (max-width: 560px) {
  .meldung { padding: 16px 0; }
  .meldung.mit-bild { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .meldung img { width: 96px; height: 96px; }
  .meldung h3 { font-size: 1.0625rem; }
  .meldung p:last-child { font-size: .9375rem; }
}

.zeilen { list-style: none; padding: 0; margin: 0 0 1.25em; }
.zeilen li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--linie);
  margin: 0;
  max-width: none;
}
.zeilen time { color: var(--grau); font-variant-numeric: tabular-nums; font-size: .9375rem; padding-top: 1px; }
.zeilen .teaser { display: block; color: var(--grau); font-size: .9375rem; margin-top: .15em; }
@media (max-width: 480px) {
  .zeilen li { grid-template-columns: 1fr; gap: 0; }
}

/* Seitenleiste */

.seitenleiste section { border-top: 3px solid var(--band); padding-top: 12px; margin-bottom: 34px; }
.seitenleiste h2 { font-size: 1rem; margin: 0 0 .6em; }
.seitenleiste ul { list-style: none; padding: 0; margin: 0; }
.seitenleiste li { margin-bottom: .45em; }
.seitenleiste li a, .zeilen a, .dateien a, .landkreise a { text-decoration: none; }
.seitenleiste li a:hover, .zeilen a:hover, .dateien a:hover, .landkreise a:hover { text-decoration: underline; }
.seitenleiste p { font-size: .9375rem; }
.seitenleiste .karte-klein { display: block; margin-bottom: .5em; }
.seitenleiste .gruppe { margin: .9em 0 .4em; color: var(--grau); font-size: .9375rem; }
.seitenleiste h2 + .gruppe, .seitenleiste h2 + .fliesstext > .gruppe:first-child { margin-top: 0; }

/* Downloads */

.dateien { list-style: none; padding: 0; margin: 0 0 1.5em; }
.dateien li {
  padding: 8px 0;
  border-bottom: 1px solid var(--linie);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  max-width: 44rem;
}
.dateien li:first-child { border-top: 1px solid var(--linie); }
.dateiinfo { color: var(--grau); font-size: .875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Submission */

.sprungmarken { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 1.75em 0 0; padding: 12px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.sprungmarken a { font-weight: 600; }
.submission { padding-top: 8px; }
.submission h2 { margin-top: 1.8em; }
.eckdaten { font-weight: 600; }
.fristen { border-collapse: collapse; width: 100%; max-width: 44rem; font-variant-numeric: tabular-nums; }
.fristen th, .fristen td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.fristen thead th { font-size: .9375rem; border-bottom: 2px solid var(--band); }
.fristen thead span { font-weight: 400; color: var(--grau); }
.fristen tbody th { font-weight: 400; }
.fristen td { white-space: nowrap; }

/* Listen mit Begriffen */

.liste { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0 0 1.5em; }
.liste dt { font-weight: 700; }
.liste dd { margin: 0; }
@media (max-width: 520px) {
  .liste { grid-template-columns: 1fr; gap: 0; }
  .liste dd { margin-bottom: .6em; }
}
.punkte dt { font-weight: 700; margin-top: .6em; }
.punkte dd { margin: 0; }

.vorstand { display: grid; gap: 8px 40px; align-items: start; }
@media (min-width: 860px) { .vorstand { grid-template-columns: minmax(0, 1fr) 400px; } .vorstand .bild { margin-top: 0; } }

.spalten { display: grid; gap: 0 48px; }
@media (min-width: 760px) { .spalten { grid-template-columns: 1fr 1fr; } }
.spalten h2:first-child { margin-top: .4em; }

/* Mitglieder */

.karte-bereich { display: grid; gap: 28px 48px; align-items: start; margin: 1.5em 0 1em; }
@media (min-width: 820px) { .karte-bereich { grid-template-columns: 421px minmax(0, 1fr); } }
.karte { display: block; width: 100%; max-width: 421px; height: auto; }
.karte a { outline: none; }
.karte polygon { fill: transparent; stroke: transparent; stroke-width: 2; cursor: pointer; }
.karte a:hover polygon { fill: rgba(26, 47, 32, .22); }
.karte a:focus-visible polygon { fill: rgba(26, 47, 32, .22); stroke: var(--text); stroke-width: 3; }
.landkreise { list-style: none; padding: 0; margin: 0; columns: 2 12rem; column-gap: 32px; }
.landkreise li { break-inside: avoid; margin-bottom: .5em; }
.landkreise span { color: var(--grau); font-size: .9375rem; }

.landkreis { scroll-margin-top: 16px; }
.landkreis h2 { border-top: 3px solid var(--band); padding-top: 14px; margin-top: 2.4em; }
.fbg-raster { display: grid; gap: 4px 48px; }
@media (min-width: 760px) { .fbg-raster { grid-template-columns: 1fr 1fr; } }
.fbg { scroll-margin-top: 16px; padding-bottom: 8px; }
.fbg h3 { margin-top: 1em; }
.fbg p { margin-bottom: .6em; }
.fbg:target h3 { background: var(--plakette); display: inline; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Formular ------------------------------------------------------------ */

.formular { margin-top: 2.5em; border-top: 3px solid var(--band); padding-top: 4px; }
.formular h2 { margin-top: .8em; }
.feld { margin: 0 0 1.1em; max-width: 36rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .3em; }
.feld .optional { font-weight: 400; color: var(--grau); }
.feld input, .feld textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #8d978c;
  border-radius: 3px;
  padding: .55em .7em;
}
.feld textarea { resize: vertical; min-height: 9em; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--text); outline-offset: 1px; }
.feld-aufgabe input { max-width: 8em; }
.feld-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular button, .hinweis-leiste button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--band);
  border: 0;
  border-radius: 3px;
  padding: .65em 1.25em;
  cursor: pointer;
}
.formular button:hover, .hinweis-leiste button:hover { background: var(--band-dunkel); }
.formular button:disabled { opacity: .6; cursor: wait; }
.formular-status { min-height: 1.5em; }
.formular-status.erfolg { color: var(--moos); font-weight: 700; }
.formular-status.fehler { color: #a3261b; font-weight: 700; }

/* Hinweis keine Cookies */

.hinweis-leiste {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 34rem;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--linie);
  border-top: 3px solid var(--band);
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(26, 47, 32, .18);
}
.hinweis-leiste p { margin: 0; font-size: .9375rem; line-height: 1.45; }
.hinweis-leiste button { flex: none; padding: .55em 1em; }
@media (max-width: 480px) {
  .hinweis-leiste { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Fuß ------------------------------------------------------------------- */

.fuss {
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  font-size: .9375rem;
}
.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 48px;
}
.fuss address { margin: 0; }
.fuss strong { color: var(--band-dunkel); }
.fuss ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; align-self: flex-end; }
.fuss-credit {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--linie);
  font-size: .8125rem;
  color: var(--grau);
  text-align: right;
}
.fuss-credit a { color: inherit; }

/* Klein ----------------------------------------------------------------- */

@media (max-width: 720px) {
  .kopf { padding: 20px 0 64px; background-size: auto 62px; }
  .kopf-innen { flex-direction: column; gap: 14px; }
  .kopf-kontakt { text-align: left; margin: 0; }
  .marke { font-size: 1.25rem; gap: 12px; }
  .marke img { width: 28px; height: 56px; }
  .hauptnav ul { gap: 0 18px; padding-top: 4px; padding-bottom: 4px; }
  .hauptnav a { padding: 7px 0 5px; }
  .hauptnav .nav-start { padding-right: 18px; }
  .hauptnav .nav-start::after { top: 9px; bottom: 8px; }
  main { padding-top: 32px; }
  body { font-size: 1rem; }
}

@media print {
  .kopf { background: none; color: var(--text); padding: 0 0 12px; }
  .marke, .kopf-kontakt, .kopf-kontakt a { color: var(--text); }
  .marke img, .hauptnav, .seitenleiste, .skip, .hinweis-leiste, .formular { display: none; }
  .fuss { background: none; }
  a { color: var(--text); }
}
