/* Persönliche Website – Gemeinderat. Gestaltung nach CDU-Corporate-Design (Stand Mai 2026).
   Schriften lokal eingebunden (Inter, IBM Plex Serif, SIL OFL). Keine externen Verbindungen.

   Aufbau:
   1. Basis        Schriften, Farben, Grundelemente, Buttons
   2. Kopfzeile    Navigation, Mobilmenü, Verhalten beim Scrollen
   3. Startseite   Titelbereich, Einleitung, Themen, Funktionen, Instagram, Termine
   4. Fuß          Footer, soziale Netzwerke
   5. Unterseiten  Seitenkopf, Impressum/Datenschutz, Beitrag
   6. Blog         Beitragsliste, Rubriken, Filter, Vorschaubilder
   7. Bewegung     Animationen und Hover-Effekte (alles abschaltbar)
   Breakpoint: 820px (darunter mobil). */


/* ============ 1. Basis ============ */

@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/ibm-plex-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-serif-latin-700-normal.woff2") format("woff2"); }

:root {
  --tuerkis: #52b7c1;
  --rhoendorf: #2d3c4b;
  --gold: #ffa600;
  --schwarz: #1b191d;
  --tuerkis-10: #f2f8fa;
  --tuerkis-25: #ddeef1;
  --tuerkis-60: #a7d5dc;
  --rh-10: #e5e5e9;
  --rh-25: #bec1c7;
  --rh-60: #737986;
  --gutter: 20px;
  --maxw: 1080px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
}
@media (min-width: 820px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { margin: 0; background: #fff; color: var(--rhoendorf); font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; }

h1, h2, h3, .btn, .topbar, footer .links { font-family: var(--sans); }
h2 { margin: 0 0 26px; font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
h2::after { content: ""; display: block; width: 64px; height: 6px; background: var(--tuerkis); margin-top: 12px; }

/* Fließtext: im Titelbereich begrenzte Zeilenlänge, sonst volle Spaltenbreite */
p { margin: 0 0 1em; max-width: 64ch; }
section p, .intro .lead, footer p, .legal p, .article p { max-width: none; }

a { color: var(--rhoendorf); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { background: var(--tuerkis-25); }
:focus-visible { outline: 3px solid var(--rhoendorf); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 64px 0; }
section.alt { background: var(--tuerkis-10); }
@media (min-width: 820px) { section { padding: 88px 0; } }

/* Hervorhebungs-Blöcke (Stoß an Stoß) */
.hl { display: inline; font-family: var(--sans); font-weight: 800; letter-spacing: -0.01em; line-height: 1.21;
  padding: 0.04em 0.28em 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-dark { background: var(--rhoendorf); color: #fff; }
.hl-white { background: #fff; color: var(--rhoendorf); }
.hl-gold { background: var(--gold); color: var(--rhoendorf); }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; font-weight: 800; font-size: 1.02rem; text-decoration: none; border: 2px solid var(--rhoendorf); }
.btn-primary { background: var(--rhoendorf); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--rhoendorf); }
.btn-secondary { background: #fff; color: var(--rhoendorf); }
.btn-secondary:hover { background: var(--tuerkis-25); }

/* Platzhalter (gelb markiert, vor Veröffentlichung ersetzen) */
.ph { background: #fff3bf; outline: 1px dashed #c9a400; padding: 0 4px; color: #3b3200; }


/* ============ 2. Kopfzeile ============ */

.topbar { background: var(--rhoendorf); color: #fff; transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.topbar .name { display: inline-flex; align-items: center; line-height: 0; font-weight: 800; color: #fff; text-decoration: none; }
.topbar .name .logo { display: block; height: 44px; width: auto; }
.topbar .logo .welle { stroke: var(--tuerkis); }
.topbar nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.topbar nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem; }
.topbar a:hover { background: transparent; text-decoration: underline; text-decoration-color: var(--tuerkis); }
.topbar :focus-visible, footer :focus-visible { outline-color: #fff; }

/* Blendet sich beim Runterscrollen aus und beim Hochscrollen wieder ein */
.topbar.verborgen:not(.menu-offen) { transform: translateY(-100%); }

/* Startseite: transparent über dem Banner, nach dem Scrollen weiß */
.topbar-over { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: linear-gradient(rgba(27,36,46,0.6), rgba(27,36,46,0)); }
.topbar-over.scrolled, .topbar-over.menu-offen { background: #fff; box-shadow: 0 1px 0 rgba(45,60,75,0.12); }
.topbar-over.scrolled .name, .topbar-over.scrolled nav a, .topbar-over.menu-offen .name, .topbar-over.menu-offen nav a { color: var(--rhoendorf); }
.topbar-over.scrolled :focus-visible, .topbar-over.menu-offen :focus-visible { outline-color: var(--rhoendorf); }
.topbar-over a:hover { text-decoration-color: var(--tuerkis); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Unterseiten: immer weiß, bleibt oben haften */
.topbar-light { position: sticky; top: 0; z-index: 10; background: #fff; color: var(--rhoendorf); box-shadow: 0 1px 0 rgba(45,60,75,0.12); }
.topbar-light .name, .topbar-light nav a { color: var(--rhoendorf); }
.topbar-light a:hover { text-decoration-color: var(--rhoendorf); }
.topbar-light :focus-visible { outline-color: var(--rhoendorf); }

/* Mobil: Logo links, Menü-Knopf rechts, Navigation klappt darunter auf */
.menubtn { display: none; }
@media (max-width: 819px) {
  .topbar .wrap { padding-top: 10px; padding-bottom: 10px; }
  .topbar .name { order: 1; font-size: 1.1rem; }
  .topbar .name .logo { height: 38px; }
  .menubtn { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px 0 8px 8px; margin: 0 0 0 auto; font: 500 1.1rem var(--sans); color: #fff; cursor: pointer; order: 2; }
  .menubtn[hidden] { display: none; }
  .menubtn svg { display: block; width: 28px; height: 28px; }
  .menubtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar-light .menubtn { color: var(--rhoendorf); }
  .topbar-over.scrolled .menubtn, .topbar-over.menu-offen .menubtn { color: var(--rhoendorf); }
  .topbar nav { flex-basis: 100%; order: 3; flex-direction: column; gap: 0; }
  .topbar nav a { font-size: 1.15rem; font-weight: 800; font-family: var(--sans); padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.3); }
  .topbar-light nav a { border-top-color: rgba(45,60,75,0.18); }
  .topbar-over.scrolled nav a, .topbar-over.menu-offen nav a { border-top-color: rgba(45,60,75,0.18); }
  .js .topbar nav { display: none; }
  .js .topbar nav.offen { display: flex; padding-bottom: 8px; }
}


/* ============ 3. Startseite ============ */

/* Titelbereich mit Banner */
.hero { position: relative; padding-top: 72px; color: #fff; min-height: clamp(580px, 60vw, 800px); display: flex; flex-direction: column;
  background: linear-gradient(to bottom, rgba(27,36,46,0.35) 0%, rgba(27,36,46,0) 25%), url("bilder/banner.jpg") 50% 32% / cover no-repeat, #f1f1f1; }
.hero > .wrap { width: 100%; }
.hero .body { padding-top: 32px; padding-bottom: 56px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 6.4vw, 4.2rem); line-height: 1.21; font-weight: 800; letter-spacing: -0.01em; }
.hero .claim { margin: 0 0 20px; font-size: clamp(1.2rem, 3.2vw, 1.9rem); line-height: 1.21; }
.hero .claim .hl { padding-top: 0.12em; padding-bottom: 0.16em; }
.hero .sub { margin: 0; color: #fff; font-family: var(--sans); font-weight: 800; font-size: 1.1rem; }
.hero .lead { margin: 0 0 28px; max-width: 52ch; color: #fff; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (min-width: 820px) { .hero .body { padding-bottom: 72px; } }
@media (max-width: 819px) {
  .hero { min-height: 640px; background-position: 0 0, 82% 0; }
  .hero .body { margin-top: auto; padding-bottom: 32px; }
}

/* Einleitung unter dem Banner */
.intro { padding: 56px 0 8px; }
.intro .lead { margin: 0 0 24px; font-size: 1.25rem; }
.intro .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Themen (Liste mit Trennlinien) – gemeinsame Basis mit der Beitragsliste, siehe auch Blog */
.themen, .posts { margin: 0; padding: 0; list-style: none; }
.themen li, .posts li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 24px 0; border-top: 2px solid var(--rhoendorf); }
.themen li:last-child, .posts li:last-child { border-bottom: 2px solid var(--rhoendorf); }
.themen h3, .posts h3 { margin: 0; font-size: 1.45rem; line-height: 1.25; font-weight: 800; }
.themen p, .posts p { margin: 0; }
@media (min-width: 820px) { .themen li { grid-template-columns: 0.9fr 1.4fr; gap: 40px; align-items: start; } }
.themen .ziele { margin: 12px 0 0; padding-left: 1.2em; list-style: disc; }
.themen .ziele li { display: list-item; padding: 0; border: 0; margin-bottom: .4em; }
.mehr { margin-top: 24px; }

/* Funktionen: Logo-Banner oben in der Farbe des Logos, Text auf Weiß */
.unter { margin: 40px 0 16px; font-size: 1.35rem; line-height: 1.25; font-weight: 800; }
.funktionen { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0; padding: 0; list-style: none; }
.funktionen li { background: #fff; border: 1px solid var(--rh-25); display: flex; flex-direction: column; }
.funktionen .text { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.funktionen h3 { margin: 0; font-size: 1.35rem; line-height: 1.25; font-weight: 800; }
.funktionen p { margin: 0 0 10px; }
.funktionen .extern { margin-top: auto; align-self: flex-start; font-family: var(--sans); font-weight: 800; font-size: 1rem; }
.funktionen .extern:hover { background: transparent; text-decoration-color: var(--tuerkis); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.kopf { display: flex; align-items: center; min-height: 148px; padding: 22px 24px; }
.kopf-cdu { background: var(--tuerkis); }
.kopf-ju { background: #033776; }
.kopf-fv { background: #0b645c; }
.kopf-ju img { display: block; width: 100%; max-width: 300px; height: auto; }
.cdulogo { width: 100%; max-width: 220px; }
.cdulogo img { display: block; width: 100%; height: auto; }
.cdulogo span { display: block; padding: 10px 0 0 4%; font-family: var(--sans); font-weight: 500; font-size: 0.8rem; line-height: 1.2; text-transform: uppercase; color: #fff; }
.fvlogo { display: flex; align-items: center; gap: 18px; color: #fff; }
.fvlogo img { display: block; width: 84px; height: 84px; flex: none; }
.fvlogo span { font-family: var(--sans); font-weight: 500; font-size: 0.8rem; line-height: 1.3; }
@media (min-width: 820px) { .funktionen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 819px) {
  /* Mobil: Karten zum Wischen */
  .funktionen { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; scrollbar-width: none; }
  .funktionen::-webkit-scrollbar { display: none; }
  .funktionen li { flex: 0 0 82%; scroll-snap-align: start; }
  .funktionen li:last-child { margin-right: var(--gutter); }
}

/* Instagram: eigene Bilder als Links (aktuell ausgeblendet) */
.insta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.insta a { display: block; text-decoration: none; }
.insta a:hover { background: transparent; }
.insta .bild { aspect-ratio: 1; background: var(--rh-10) center / cover no-repeat; border: 2px dashed var(--rh-60);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 0.95rem; }
.insta .unterschrift { display: block; margin-top: 8px; font-size: 1rem; }
.insta a:hover .unterschrift { text-decoration: underline; }
@media (min-width: 820px) { .insta { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Termine (aktuell ausgeblendet) */
.termine { margin: 0; display: grid; }
.termine div { display: grid; grid-template-columns: 1fr; padding: 16px 0; border-top: 1px solid var(--rh-25); }
.termine div:last-child { border-bottom: 1px solid var(--rh-25); }
.termine dt { font-family: var(--sans); font-weight: 800; }
#termine h3 { margin: 32px 0 12px; font-size: 1.3rem; font-weight: 800; }
#termine h3:first-of-type { margin-top: 24px; }
.termine-alt { opacity: 0.8; }
.termine-alt details { margin-top: 16px; }
.termine-alt summary { cursor: pointer; font-family: var(--sans); font-weight: 800; }
.termine-alt details .termine { margin-top: 12px; }
.termine dd { margin: 0; font-family: var(--sans); font-weight: 800; }
.termine .uhr, .termine .ort { font-family: var(--sans); font-weight: 400; font-size: 0.95rem; }
.termine dd a { font-family: var(--sans); font-weight: 800; }
.termine .kal { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 0.9rem; }
.termine .kal a { font-weight: 700; }
@media (min-width: 820px) { .termine div { grid-template-columns: 0.9fr 1.4fr; gap: 40px; } }


/* ============ 4. Fuß ============ */

footer { background: var(--rhoendorf); color: #fff; padding: 40px 0; font-size: 1rem; }
footer a { color: #fff; }
footer a:hover { background: transparent; text-decoration-color: var(--tuerkis); }
footer .fussleiste { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.25); }
footer .copyright { margin: 0; font-family: var(--sans); font-size: 0.9rem; }
footer .copyright { font-size: 0.8rem; opacity: .85; }
footer .rechtliches { margin: 4px 0 0; font-family: var(--sans); font-size: 0.8rem; font-weight: 400; }
footer .rechtliches a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
footer .zeichen-link { display: block; line-height: 0; }
footer .zeichen-link:hover { background: transparent; }
footer .zeichen { display: block; height: 44px; width: auto; }
footer .links { display: flex; gap: 22px; margin-bottom: 14px; flex-wrap: wrap; font-weight: 500; }

/* Soziale Netzwerke */
footer .social { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; padding: 0; list-style: none; }
.btn-social { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border: 2px solid #fff; color: #fff; font-family: var(--sans); font-weight: 800; font-size: 1rem; text-decoration: none; }
.btn-social:hover { background: #fff; color: var(--rhoendorf); text-decoration: none; }
@media (max-width: 819px) {
  /* Mobil: Buttons in einer Reihe */
  footer .social { flex-wrap: nowrap; gap: 8px; }
  footer .social li { flex: 1 1 0; min-width: 0; }
  .btn-social { width: 100%; justify-content: center; gap: 6px; padding: 11px 6px; font-size: 0.85rem; }
  .btn-social svg { width: 18px; height: 18px; flex: none; }
}
@media (max-width: 359px) { .btn-social { font-size: 0.74rem; gap: 4px; padding: 11px 3px; } .btn-social svg { width: 15px; height: 15px; } }


/* ============ 5. Unterseiten ============ */

.pagehead { background: var(--tuerkis); }
.pagehead .titel { padding-top: 36px; padding-bottom: 44px; }
.pagehead h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.21; font-weight: 800; letter-spacing: -0.01em; }

/* Impressum, Datenschutz (.legal) und Beitrag (.article) */
.legal, .article { padding: 48px 0 72px; }
.legal h2, .article h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.legal h2::after, .article h2::after { display: none; }

/* Beitrag */
.article .datum { margin: 0 0 20px; font-family: var(--sans); font-weight: 800; }
.article p { line-height: 1.7; }
.article .zurueck { margin-top: 40px; }
.article .sources { margin-top: 32px; font-size: 0.95rem; color: var(--rh-60); }

.article blockquote.statement { margin: 1.6em 0; padding: 1.1em 1.3em; background: var(--tuerkis-10); border-left: 6px solid var(--tuerkis); }
.article blockquote.statement p { margin: 0 0 .7em; font-style: italic; font-size: 1.12em; line-height: 1.55; color: var(--rhoendorf); }
.article blockquote.statement footer { background: none; padding: 0; margin: 0; display: block; font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--rhoendorf); }
.article blockquote.statement footer a { color: var(--rhoendorf); }

.article figure.titelbild { margin: 0 0 1.6em; }
.article figure.titelbild img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; object-position: 50% 20%; }
.article figure.foto { margin: 1.6em 0; }
.article figure.foto img { display: block; width: 100%; height: auto; }
.article figure.foto figcaption { font-family: var(--sans); font-size: .875rem; color: var(--rhoendorf); margin-top: .6em; }

.article ul.vorstand { margin: 0 0 1.2em; padding-left: 1.2em; }
.article ul.vorstand li { margin-bottom: .3em; }


/* ============ 6. Blog ============ */

/* Beitragsliste (Basis gemeinsam mit .themen, siehe oben) */
@media (min-width: 820px) { .posts li { gap: 6px 0; align-items: start; } }
.posts .datum { margin: 0; font-family: var(--sans); font-weight: 800; font-size: 0.95rem; line-height: 1.3; }
.posts li[hidden] { display: none; }
.posts li.letzter { border-bottom: 2px solid var(--rhoendorf); }
.posts p.rubriken { margin-top: 12px; }
/* Startseite zeigt höchstens die 5 neuesten Beiträge (oben = neuester) */
.posts-start > li:nth-child(n+6) { display: none; }

/* Fremde Meldungen (CDU Baden-Württemberg) als Kacheln unter der Beitragsliste */
.article h2.fremd-titel { margin: 56px 0 20px; }
.fremd { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0; padding: 0; list-style: none; }
.fremd li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; background: var(--tuerkis-10); border: 1px solid var(--tuerkis-60); border-top: 6px solid var(--tuerkis); }
.fremd .datum { font-family: var(--sans); font-weight: 800; font-size: 0.9rem; line-height: 1.3; margin: 0; }
.fremd h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 800; }
.fremd h3 a { text-decoration: none; }
.fremd h3 a::after { content: ""; position: absolute; inset: 0; }
.fremd h3 a:hover { background: transparent; text-decoration: underline; text-decoration-color: var(--tuerkis); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.fremd p { margin: 0; font-size: 1rem; line-height: 1.55; }
.fremd li > div { display: flex; flex-direction: column; gap: 8px; }
.fremd .weiter { margin-top: auto; padding-top: 6px; font-family: var(--sans); font-weight: 800; font-size: 0.95rem; }
.fremd li:focus-within { outline: 3px solid var(--rhoendorf); outline-offset: 3px; }
.fremd :focus-visible { outline: none; }
@media (min-width: 900px) { .fremd { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) {
  /* Mobil und Tablet: Kacheln zum Wischen */
  .fremd { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; scrollbar-width: none; }
  .fremd::-webkit-scrollbar { display: none; }
  .fremd li { flex: 0 0 82%; max-width: 380px; scroll-snap-align: start; }
  .fremd li:last-child { margin-right: var(--gutter); }
}
.article .quelle { margin-top: 16px; font-size: 0.95rem; color: var(--rh-60); }

/* Rubriken (Tags) und Filter */
.rubriken { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); }
.article .rubriken { margin: -4px 0 20px; }
.rubriken a, .filter a { display: inline-block; font: 800 0.85rem/1 var(--sans); color: var(--rhoendorf); text-decoration: none; border: 2px solid var(--rhoendorf); padding: 7px 12px; }
.rubriken a:hover, .filter a:hover { background: var(--tuerkis); }
.suche { margin: 8px 0 16px; }
.suche[hidden], .keine-treffer[hidden] { display: none; }
.suche label { display: block; margin-bottom: 6px; font: 800 0.85rem/1.2 var(--sans); color: var(--rhoendorf); }
.suche input { width: 100%; max-width: 420px; box-sizing: border-box; padding: 12px 14px; border: 2px solid var(--rhoendorf); border-radius: 0; background: #fff; color: var(--rhoendorf); font: 400 1rem/1.2 var(--sans); }
.suche input:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }
.keine-treffer { margin: 24px 0; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.filter[hidden] { display: none; }
.filter a[aria-current="true"] { background: var(--rhoendorf); color: #fff; }

/* Vorschaubild: erstes Bild des Beitrags, ab 820px links neben dem Text */
.posts .vorschau { display: block; margin-top: 4px; overflow: hidden; }
.posts .vorschau img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--tuerkis-10); }
@media (min-width: 820px) {
  .posts li:has(> .vorschau) { grid-template-columns: 280px 1fr; column-gap: 32px; grid-template-rows: auto 1fr; }
  .posts li:has(> .vorschau) > .vorschau { grid-column: 1; grid-row: 1 / span 2; margin-top: 2px; }
  .posts li:has(> .vorschau) > .datum { grid-column: 2; grid-row: 1; }
  .posts li:has(> .vorschau) > div { grid-column: 2; grid-row: 2; }
}


/* ============ 7. Bewegung ============ */
/* Dezent, ohne Zwang. Bei "weniger Bewegung" wird alles abgeschaltet (Block am Ende). */

@keyframes aufblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes welle-zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Titel blenden weich ein (nur Deckkraft, damit mehrzeilige Überschriften nie abgeschnitten werden) */
.hero h1 .hl, .pagehead h1 .hl { animation: aufblenden .7s ease .1s both; }
.hero .claim .hl { animation: aufblenden .7s ease .45s both; }

/* Logo: Neckar-Welle zeichnet sich beim Laden */
.logo .welle { stroke-dasharray: 1; stroke-dashoffset: 0; animation: welle-zeichnen 1.3s ease-out .25s both; }

/* Abschnitte erscheinen beim Scrollen (nur mit JavaScript) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.sichtbar { opacity: 1; transform: none; }
.js h2.reveal::after { width: 0; transition: width .6s ease .25s; }
.js h2.reveal.sichtbar::after { width: 64px; }

/* Hover: Buttons, Karten, Beitragsliste */
.btn, .btn-social, .rubriken a, .filter a { transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.btn:hover, .btn-social:hover { transform: translateY(-2px); }
.funktionen > li, .fremd li { transition: transform .25s ease, box-shadow .25s ease; }
/* Anheben beim Darüberfahren nur mit Maus: Auf dem Handy blieb der Hover-Zustand nach dem Tippen hängen und die Kacheln ruckelten */
@media (hover: hover) and (pointer: fine) {
  .fremd li:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(45,60,75,.14); }
  .funktionen > li:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(45,60,75,.14); }
}
.posts .vorschau img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.posts li:hover .vorschau img { transform: scale(1.05); }
.posts h3 a { text-decoration: none; background: linear-gradient(var(--tuerkis), var(--tuerkis)) 0 100% / 0 3px no-repeat; transition: background-size .3s ease; }
.posts li:hover h3 a { background-size: 100% 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar { transition: none; }
  .hero h1 .hl, .pagehead h1 .hl, .hero .claim .hl, .logo .welle { animation: none; stroke-dasharray: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js h2.reveal::after { width: 64px; transition: none; }
  .funktionen > li:hover, .fremd li:hover, .btn:hover, .btn-social:hover { transform: none; }
  .posts li:hover .vorschau img { transform: none; }
}

/* ============ 8. Formular, Teilen, Fragen ============ */
.formular { max-width: 40rem; margin-top: 24px; }
.formular p { margin: 0 0 18px; }
.formular label { display: block; margin-bottom: 6px; font: 800 0.9rem/1.2 var(--sans); color: var(--rhoendorf); }
.formular .optional { font-weight: 400; }
.formular input[type="text"], .formular input[type="email"], .formular textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid var(--rhoendorf); border-radius: 0; background: #fff; color: var(--rhoendorf); font: 400 1rem/1.4 var(--sans); }
.formular textarea { resize: vertical; min-height: 9rem; }
.formular input:focus-visible, .formular textarea:focus-visible, .formular button:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }
.formular .zustimmung { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.formular .zustimmung input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rhoendorf); }
.formular .zustimmung label { margin: 0; font: 400 0.95rem/1.45 var(--sans); }
.formular .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; }
.fragen { margin-top: 24px; border-bottom: 2px solid var(--rhoendorf); }
.fragen details { border-top: 2px solid var(--rhoendorf); }
.fragen summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 800 1.1rem/1.35 var(--sans); color: var(--rhoendorf); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 800 1.6rem/1 var(--sans); color: var(--tuerkis-dunkel, var(--rhoendorf)); }
.fragen details[open] summary::after { content: "–"; }
.fragen summary:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }
.fragen details p { margin: 0 0 18px; }
.teilen { margin: 40px 0 8px; padding-top: 8px; border-top: 2px solid var(--rhoendorf); }
.article .teilen h2 { margin: 20px 0 12px; font-size: 1.1rem; }
.article .teilen ul, .teilen ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.teilen .btn { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 46px; padding: 0 16px; font-family: var(--sans); font-weight: 800; font-size: 0.95rem; line-height: 1; cursor: pointer; }
.teilen .btn svg { flex: none; }
.teilen [hidden] { display: none; }
.article .teilen ul { padding-left: 0; margin-left: 0; }
.article .teilen li { padding: 0; margin: 0; }
.teilen li:has(> [hidden]) { display: none; }


/* Funktionen: Kurztext, Unterseiten; Mitmachen: Organisationen; Blog-Werkzeugleiste; Autor */
.funktionen .beschr { margin: 0 0 14px; }
.funktionen .beschr .ph { display: inline; }
.funktionskopf { max-width: 460px; margin: 0 0 8px; }
.orgs { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.orgs li { background: #fff; border: 1px solid var(--rh-25); display: flex; flex-direction: column; margin: 0; padding: 0; }
.orgs .kopf { min-height: 110px; padding: 16px 20px; }
.orgs .text { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.orgs h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; font-weight: 800; }
.orgs .extern { margin-top: auto; align-self: flex-start; font-family: var(--sans); font-weight: 800; }
@media (min-width: 820px) { .orgs { grid-template-columns: 1fr 1fr; } }
.pagehead .untertitel { margin: 18px 0 0; max-width: 40rem; font-family: var(--sans); font-size: 1.15rem; line-height: 1.45; color: var(--rhoendorf); }
.werkzeug { background: var(--tuerkis-10); padding: 20px 22px; margin: 0 0 28px; display: grid; gap: 18px; }
.werkzeug .zeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.werkzeug .suche { margin: 0; flex: 1 1 320px; }
.werkzeug .filter { margin: 0; }
.filter-label { flex-basis: 100%; font: 800 0.85rem/1.2 var(--sans); color: var(--rhoendorf); }
.feedlink { margin: 0; }
.feedlink a { display: inline-flex; align-items: center; gap: 8px; font: 800 0.9rem/1.2 var(--sans); }
.article h3 { font-size: 1.15rem; line-height: 1.3; margin: 28px 0 8px; }
.article .datum .autor { font-weight: 400; }
.termine .kal .pdf { display: inline-flex; align-items: center; gap: 6px; }

/* Beitragslisten (Startseite und Blog) einheitlich: Datum direkt über der Überschrift */
.article .posts .datum { margin: 0; }
.posts p { line-height: 1.6; }
.article .posts p { line-height: 1.6; }
.article .posts h3 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.article .fremd h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.article .teilen h3 { margin-top: 0; }

/* Themen: Zeichen im Stil des Logos (eckige Umrisse, türkise Linie wie der Neckar) */
.thema-kopf { display: flex; flex-direction: column; gap: 16px; }
.thema-icon { display: block; width: 120px; height: auto; }
@media (min-width: 820px) { .thema-icon { width: 190px; margin-top: 10px; } }

.newsletter { margin: 2.4em 0 0; padding-top: 1.6em; border-top: 2px solid var(--rhoendorf); }
.newsletter h2 { margin-top: 0; }
.newsletter .formular { margin-top: 12px; }
.newsletter form p:last-child { margin-bottom: 0; }
#newsletter-block { margin-bottom: 2.4em; scroll-margin-top: 90px; }
.feedlinks { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 600px) { .feedlinks { align-items: flex-start; } }
#newsletter-block .newsletter { border-top: 0; margin-top: 2em; padding-top: 0; }
#newsletter-block { border-bottom: 2px solid var(--rhoendorf); padding-bottom: 2em; }
.blog-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.blog-kopf .feedlink { margin: 0 0 26px; }
.blog-kopf .feedlinks { margin: 0 0 26px; }
.blog-kopf .feedlinks { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 28px; margin: 0 0 40px; }
@media (max-width: 700px) { .blog-kopf .feedlinks { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 26px; } }
.blog-kopf .feedlinks .feedlink { margin: 0; }
.blog-kopf .feedlinks { margin-bottom: 14px; }
@media (max-width: 700px) { .blog-kopf .feedlinks { margin-bottom: 26px; } }
.blog-kopf .feedlinks { flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 14px; margin-bottom: 26px; }
@media (max-width: 700px) { .blog-kopf .feedlinks { align-items: flex-start; } }
.formular .cf-turnstile { margin: 0 0 12px; }
.formular .schutzhinweis { margin: 0 0 18px; font: 400 0.85rem/1.45 var(--sans); color: var(--grau, #5b6b7a); }
