/* FDP Lichtenfels – Gestaltung angelehnt an den Web-Auftritt der FDP Niedersachsen
   Dunkelblau = Hauptfarbe, Gelb = Highlight, Cyan = Linien/Balken. */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Black.woff") format("woff"); font-weight: 800 900; font-display: swap; }

:root {
  --blau: #032d67;
  --blau-dunkel: #021f48;
  --gelb: #ffe000;
  --cyan: #00a7e7;
  --grau: #f4f5f6;
  --linie: #dddddd;
  --text: #111;
  --text-leise: #4a4a4a;
  --max: 1260px;
  --head: "Inter Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.55; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 2.75rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; color: var(--blau); line-height: 1.15; margin: 0 0 .5em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 3vw, 1.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--blau); color: var(--gelb); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Abschnittsüberschrift mit kurzer Cyan-Linie */
.titel { display: inline-block; margin-bottom: 2rem; }
.titel::after { content: ""; display: block; width: 50px; height: 4px; background: var(--cyan); margin-top: .45rem; }

/* Links & Buttons */
.mehr { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--blau); text-decoration: none; }
.mehr span { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mehr::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin-left: .1em; }
.mehr:hover span { text-decoration-color: var(--blau); }
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; padding: .7em 1.3em; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn--blau { background: var(--blau); color: var(--gelb); }
.btn--blau:hover { background: var(--blau-dunkel); }
.btn--gelb { background: var(--gelb); color: var(--blau); }
.btn--gelb:hover { background: #fff; }
.btn--rahmen { border-color: #fff; color: #fff; }
.btn--rahmen:hover { background: #fff; color: var(--blau); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--linie); }
.header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 84px; }
.logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex-shrink: 0; color: var(--blau); }
.logo img { height: 44px; width: auto; }
.logo span { font-weight: 700; font-size: .82rem; line-height: 1.15; text-align: right; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav a { font-weight: 700; font-size: 1.05rem; color: var(--blau); text-decoration: none; padding: .3rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.aktiv { border-bottom-color: var(--cyan); }
.nav .btn { padding: .4em .8em; border: 0; color: var(--gelb); }
.nav .btn:hover { color: var(--gelb); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--blau); margin: 5px 0; transition: .2s; }

/* Bühne (Hero) */
.buehne { background: var(--blau); color: #fff; }
.buehne .wrap { padding-block: clamp(4rem, 10vw, 7.5rem); }
.buehne .balken { display: block; width: clamp(140px, 22vw, 350px); height: 14px; background: var(--cyan); margin-bottom: 1.4rem; }
.buehne h1 { color: var(--gelb); text-transform: uppercase; font-weight: 900; font-size: clamp(1.9rem, 5.6vw, 4.2rem); line-height: 1.08; letter-spacing: .005em; margin-bottom: 1.4rem; hyphens: manual; -webkit-hyphens: manual; }
.buehne .lead { font-size: 1.25rem; max-width: 46ch; margin-bottom: 2rem; color: #e8eef7; }
.buehne .aktionen { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Leitbild */
.leitbild { background: var(--grau); }
.leitbild .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 2.5rem; }
.leitbild strong { display: block; font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: var(--blau); margin-bottom: .2rem; }
.leitbild strong::before { content: ""; display: block; width: 36px; height: 4px; background: var(--cyan); margin-bottom: .7rem; }
.leitbild p { margin: 0; color: var(--text-leise); }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--grau { background: var(--grau); }

/* Aktuelles */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
.teaser { text-decoration: none; display: flex; flex-direction: column; color: var(--text); }
.teaser .meta { margin-bottom: .4rem; }
.teaser h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: .7rem; }
.teaser p { color: var(--text); }
.teaser:hover h3 { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.teaser .mehr { margin-top: auto; }
.meta { font-size: .88rem; color: var(--text); }

.news-liste { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.news-liste li { border-top: 1px solid var(--linie); }
.news-liste a { display: block; padding: 1rem 0; text-decoration: none; }
.news-liste h3 { font-family: var(--body); font-weight: 700; font-size: 1.1rem; line-height: 1.35; margin: .2rem 0 0; }
.news-liste a:hover h3 { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }

.termin-zeile { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.5rem; }
.kreis { width: 76px; height: 76px; border-radius: 50%; background: var(--gelb); color: var(--blau); display: grid; place-content: center; text-align: center; line-height: 1; flex-shrink: 0; }
.kreis b { font-size: 1.7rem; font-weight: 400; }
.kreis small { font-size: .75rem; text-transform: uppercase; margin-top: .2rem; }
.termin-zeile h3 { font-size: 1.2rem; margin: .15rem 0 0; }
.links-zeile { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--linie); margin-top: 1.5rem; padding-top: 1.2rem; }

.archiv { width: 100%; }
.archiv summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--blau); }
.archiv summary::-webkit-details-marker { display: none; }
.archiv summary span { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.archiv summary::after { content: " +"; }
.archiv[open] summary::after { content: " –"; }
.archiv .news-liste { margin-top: 1.5rem; }

/* Team / Mandate */
.hinweis { background: #fff; border-left: 4px solid var(--cyan); padding: 1rem 1.3rem; margin-bottom: 2.5rem; font-size: 1rem; }
.hinweis p { margin: 0; }
.gruppe-titel { font-weight: 700; color: var(--blau); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem; }
.gruppe + .gruppe { margin-top: 2.5rem; }
.personen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.5rem; }
.person .foto { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--blau); width: 150px; margin-bottom: 1rem; display: grid; place-items: center; }
.person .foto img { width: 100%; height: 100%; object-fit: cover; }
.person .initialen { font-family: var(--head); font-weight: 900; font-size: 2.6rem; color: var(--gelb); }
.person h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.person .rolle { font-size: 1rem; margin: 0 0 .4rem; }
.person .mail { font-size: .92rem; color: var(--blau); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; word-break: break-all; }

/* Ziele / Themen */
.ziele { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.ziel { display: flex; flex-direction: column; }
.ziel .bild { aspect-ratio: 3 / 4; background: var(--blau); display: flex; align-items: flex-end; padding: 1.2rem; position: relative; overflow: hidden; }
.ziel:nth-child(2) .bild { background: var(--cyan); }
.ziel:nth-child(3) .bild { background: var(--blau-dunkel); }
.ziel:nth-child(4) .bild { background: #0a4c9e; }
.ziel .bild::before { content: attr(data-nr); position: absolute; top: .9rem; left: 1.2rem; font-family: var(--head); font-weight: 900; font-size: 1.1rem; line-height: 1; color: rgba(255,255,255,.55); }
.ziel .symbol { position: absolute; left: 50%; top: 42%; width: 72%; max-width: 230px; transform: translate(-50%, -50%); transition: transform .25s; }
.ziel:hover .symbol { transform: translate(-50%, -50%) scale(1.05); }
.ziel .bild h3 { position: relative; }
.ziel .bild h3 { margin: 0; font-size: 1.5rem; line-height: 1.32; color: var(--blau); }
.ziel .bild h3 span { background: var(--gelb); padding: .05em .25em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ziel p { margin: 1rem 0 0; font-size: 1rem; color: var(--text-leise); }

/* Ortsverband / Kontakt */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.zweispaltig > * { min-width: 0; }
.vorstand { list-style: none; padding: 0; margin: 0; }
.vorstand li { padding: 1rem 0; border-top: 1px solid var(--linie); }
.vorstand li:last-child { border-bottom: 1px solid var(--linie); }
.vorstand strong { display: block; color: var(--blau); font-size: 1.15rem; }
.vorstand a { color: var(--blau); font-weight: 600; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }

/* Mitmachen-Kästen */
.mitmachen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mitmach-kasten { background: var(--grau); display: flex; flex-direction: column; text-decoration: none; }
.mitmach-kasten .inhalt { padding: 2rem 2rem 2.5rem; flex: 1; }
.mitmach-kasten h3 { margin-bottom: .5rem; }
.mitmach-kasten p { margin: 0; color: var(--text-leise); }
.mitmach-kasten .leiste { padding: .75rem 1.5rem; text-align: right; font-family: var(--head); font-weight: 900; font-size: 1.45rem; text-transform: uppercase; }
.mitmach-kasten--gelb .leiste { background: var(--gelb); color: var(--blau); }
.mitmach-kasten--blau .leiste { background: var(--blau); color: var(--gelb); }
.mitmach-kasten:hover .leiste { filter: brightness(1.06); }
.kontakt-box { background: var(--blau); color: #fff; padding: clamp(2rem, 4vw, 2.75rem); }
.kontakt-box h2 { color: var(--gelb); }
.kontakt-box .btn { margin: .3rem .4rem .3rem 0; }

/* Rechtliches */
.recht .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.recht h3 { font-family: var(--body); font-weight: 700; font-size: 1.02rem; margin: 1.3em 0 .3em; }
.recht p { font-size: .95rem; color: #333; }

/* Footer */
.footer { border-top: 1px solid var(--linie); font-size: .95rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: 2rem; }
.footer strong { color: var(--blau); }
.footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0; }
.footer a { color: var(--blau); font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--cyan); }

/* Responsive */
@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header.offen .nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 4px solid var(--cyan); }
  .header.offen .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.4rem 1.2rem; }
  .header.offen .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid #eee; }
  .header.offen .nav .btn { margin-top: .8rem; text-align: center; padding: .8rem; }
  .header.offen .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header.offen .menu-toggle span:nth-child(2) { opacity: 0; }
  .header.offen .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .ziele { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .teaser-grid, .news-liste, .zweispaltig, .mitmachen-grid, .recht .wrap, .leitbild .wrap { grid-template-columns: 1fr; }
  .leitbild .wrap { gap: 1.5rem; }
  .ziele { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .ziel .bild h3 { font-size: 1.15rem; }
  .ziel .bild::before { font-size: .95rem; }
}
@media (max-width: 480px) {
  .ziele { grid-template-columns: 1fr; }
  .ziel .bild { aspect-ratio: 4 / 3; }
  .ziel .symbol { width: 52%; top: 40%; }
  .person .foto { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
