/* ==========================================================================
   GRÜNE FÜRTH – Design-System
   Leitidee: eine moderne Produktseite (à la Apple) im Grünen-Look:
   klare Sektionen mit echter Tiefe (Schatten, Kanten, Layering),
   die Sonnenblume als wiederkehrendes Ordnungs- und Erkennungszeichen,
   die Markenfarbwelt der Grünen (Tanne, Klee, Sonnengelb, Sand).
   ========================================================================== */

:root {
  /* --- Farbwelt "Grüne Fürth" ------------------------------------------ */
  --tanne:        #0B3D2E;   /* dunkles Markengrün – Haupt-/Nachtflächen */
  --tanne-800:    #12503C;
  --klee:         #1E8E5A;   /* frisches Mittelgrün – Interaktion/Links */
  --klee-light:   #E4F3EA;   /* helles Grün für Flächen/Badges */
  --sonne:        #FFC72C;   /* Sonnenblumengelb – Akzent- & Signalfarbe */
  --sonne-deep:   #F2A900;
  --sand:         #F6F2E7;   /* warmer Off-White – Seitenhintergrund */
  --sand-100:     #FCFAF4;
  --magenta:      #E5007D;   /* grüne Störfarbe – sparsam für Hinweise/CTA-Punkte */
  --ink:          #14201B;   /* Fließtext, fast Schwarz mit Grünstich */
  --ink-soft:     #4B5A53;
  --line:         #DDD6C4;   /* Trennlinien auf Sand */
  --line-dark:    rgba(255,255,255,.14);
  --white:        #FFFFFF;

/* --- Typografie -------------------------------------------------------
     Corporate Design BÜNDNIS 90/DIE GRÜNEN:
     GrueneType für Headlines und Zwischenzeilen, PT Sans für Fließtext.
     Beide Schriften liegen lokal in assets/fonts/ (kein Google-CDN).    */
  --font-display: "GrueneType", "Arial Narrow", sans-serif;
  --font-text: "PT Sans", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(20,32,27,.06), 0 12px 32px -12px rgba(20,32,27,.18);
  --shadow-lift: 0 24px 60px -20px rgba(11,61,46,.35);
  --container: 1160px;
}

@font-face {
  font-family: "GrueneType";
  src: url("/wp-content/uploads/fonts/GrueneTypeNeue-Regular.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/wp-content/uploads/fonts/PTSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/wp-content/uploads/fonts/PTSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* --- Reset / Basics ------------------------------------------------------ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* verhindert, dass Sprungziele hinter dem fixen Header verschwinden */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.section, .hero { scroll-margin-top: 88px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0 0 .4em;
  color: var(--tanne);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  color: var(--klee);
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  width: 16px; height: 16px;
  background: url("../img/logo-sonnenblume.png") center/contain no-repeat;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 6vw;
}
@media (min-width: 1300px) { .container { padding: 0 2rem; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  padding: .95em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--sonne); color: var(--tanne); box-shadow: var(--shadow-card); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost-dark { border-color: var(--tanne); color: var(--tanne); }
.btn-ghost-dark:hover { background: var(--tanne); color: var(--white); }
.btn-outline-black { border-color: #000; color: #000; background: transparent; }
.btn-outline-black:hover { border-color: var(--klee); background: var(--klee); color: var(--white); }

/* ==========================================================================
   HEADER – transparent über dem Hero, wird beim Scrollen fest & solide
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.is-solid {
  background: var(--sand-100);
  box-shadow: 0 1px 0 var(--line);
  padding: .7rem 0;
}
.site-branding { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.site-branding img.custom-logo { height: 34px; width: auto; }
.site-branding .sonnenblume-icon { width: 32px; height: 32px; object-fit: contain; }
.site-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--white);
}
.site-header.is-solid .site-title { color: var(--tanne); }

.primary-menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.primary-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  opacity: .9;
  transition: opacity .15s;
}
.site-header.is-solid .primary-menu a { color: var(--tanne); }
.primary-menu a:hover { opacity: 1; }
.header-cta { margin-left: 1rem; }
.menu-toggle { display: none; }

@media (max-width: 1240px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.15); color: var(--white); cursor: pointer;
  }
  .site-header.is-solid .menu-toggle { background: var(--klee-light); color: var(--tanne); }
  .primary-menu {
    position: fixed; inset: 0 0 auto 0; top: 0;
    background: var(--tanne); flex-direction: column; padding: 6.5rem 6vw 3rem;
    transform: translateY(-100%); transition: transform .3s ease;
    height: 100vh; overflow-y: auto;
  }
  .primary-menu.is-open { transform: translateY(0); }
  .primary-menu a { color: var(--white); font-size: 1.4rem; }
  .header-cta { margin: 1.5rem 0 0; }
}

/* ==========================================================================
   HERO – die These der Seite, wie bei einer Produktseite
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, var(--tanne) 0%, var(--tanne-800) 100%);
  color: var(--white);
  overflow: hidden;
  padding-bottom: 5rem;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,61,46,.25) 0%, rgba(11,61,46,.92) 85%);
}
.hero .sonnenblume-giant {
  position: absolute; right: -6%; top: 8%;
  width: min(46vw, 620px);
  opacity: .16;
  transform: rotate(8deg);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .14em; font-size: .9rem; color: var(--sonne);
  margin-bottom: 1rem; display: block;
}
.hero h1 { color: var(--white); }
.hero .lede { font-size: 1.25rem; max-width: 620px; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.hero-scroll-cue .line { width: 1px; height: 26px; background: rgba(255,255,255,.5); animation: pulse-line 1.8s ease-in-out infinite; }
@keyframes pulse-line { 0%,100% { opacity:.3 } 50% { opacity:1 } }

/* ==========================================================================
   STRUKTURIERTE SEKTIONEN – jede mit eigener Bühne, Tiefe statt Fläche
   ========================================================================== */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.section-tanne { background: var(--tanne); color: var(--white); }
.section-tanne h2, .section-tanne h3 { color: var(--white); }
.section-tanne .section-intro { color: rgba(255,255,255,.8); }

.section-head { max-width: 680px; margin-bottom: 3.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-intro { font-size: 1.1rem; color: var(--ink-soft); }

/* Sektionen bekommen echte Kanten: Karte-auf-Fläche statt Vollflächenfarbe */
.stage {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

/* --- Themen-/Schwerpunkte-Karten (Grid mit Tiefe) --- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .theme-grid { grid-template-columns: 1fr; } }

.theme-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column; gap: 1rem;
  text-decoration: none; color: inherit;
}
.theme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.theme-card .icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--klee-light); display: flex; align-items: center; justify-content: center;
}
.theme-card .icon img { width: 24px; height: 24px; }
.theme-card h3 { text-transform: none; letter-spacing: 0; }
.theme-card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* --- Featured / großes Ratsarbeit-Panel im Apple-"Feature"-Stil --- */
.feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.feature-panel .fp-media { background: var(--klee-light); background-size: cover; background-position: center; min-height: 340px; }
.feature-panel .fp-text { background: var(--tanne); color: var(--white); padding: clamp(2rem,4vw,3.4rem); display: flex; flex-direction: column; justify-content: center; }
.feature-panel .fp-text h3 { color: var(--sonne); }
@media (max-width: 780px) { .feature-panel { grid-template-columns: 1fr; } }

/* --- News / Aktuelles Liste --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.news-card .thumb { aspect-ratio: 4/3; background: var(--klee-light) center/cover no-repeat; }
.news-card .body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .6rem; }
.news-card .tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--klee); font-weight: 700; }
.news-card h3 { text-transform: none; letter-spacing: 0; font-size: 1.15rem; }
.news-card .excerpt { color: var(--ink-soft); font-size: .95rem; }
.news-card .read-more { margin-top: auto; font-weight: 700; color: var(--tanne); text-decoration: none; }

/* --- Team / Kreisvorstand --- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-card .avatar {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--klee-light); margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; margin-bottom: .1rem; }
.team-card .role { color: var(--klee); font-weight: 600; font-size: .88rem; }

/* --- Sonnenblumen-Trenner: Signatur-Element der Seite --- */
.sun-divider {
  display: flex; align-items: center; gap: 1.2rem;
  margin: 0 auto; max-width: var(--container); padding: 3rem 6vw 0;
}
.sun-divider .line { flex: 1; height: 1px; background: var(--line); }
.sun-divider img { width: 30px; height: 30px; }
.section-tanne .sun-divider .line { background: var(--line-dark); }

/* --- CTA-Band mit Sonnenblumenmuster --- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sonne);
  color: var(--tanne);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/logo-sonnenblume.png") repeat;
  background-size: 90px; opacity: .14;
  filter: brightness(0) saturate(100%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--tanne); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--tanne); color: rgba(255,255,255,.82); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: .95rem; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,.78); font-size: .95rem; }
.footer-grid a:hover { color: var(--sonne); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--sonne); }

/* ==========================================================================
   Scroll-Reveal (dezent, kein Overkill – siehe main.js)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-scroll-cue .line { animation: none; }
}

/* ==========================================================================
   Akkordeon – für die Übersichts-Unterseiten (Schwerpunkte, Aktuelles)
   ========================================================================== */
.accordion-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: 100px;
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 1.7rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .a-title { display: flex; align-items: center; gap: .9rem; }
.accordion-item summary .a-title img { width: 26px; height: 26px; flex-shrink: 0; }
.accordion-item summary .a-title h3 { margin: 0; text-transform: none; letter-spacing: 0; font-size: 1.15rem; }
.accordion-item summary .a-meta { color: var(--ink-soft); font-size: .85rem; }
.accordion-item summary .plus {
  width: 30px; height: 30px; border-radius: 50%; background: var(--klee-light);
  color: var(--tanne); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; transition: transform .2s ease;
}
.accordion-item[open] summary .plus { transform: rotate(45deg); }
.accordion-item .a-body { padding: 0 1.7rem 1.7rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.2rem; }
.accordion-item .a-body img { border-radius: var(--radius-sm); margin-bottom: 1rem; }
.accordion-item .a-body a { color: var(--klee); }

/* Sitzungstermine – schlichte Terminliste im Kalender-Look */
.sitzung-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.sitzung-row {
  display: flex; align-items: center; gap: 1.3rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-card);
}
.sitzung-row .sitzung-date {
  font-family: var(--font-display); text-align: center; flex-shrink: 0; width: 64px;
  background: var(--klee-light); border-radius: var(--radius-sm); padding: .5rem 0; color: var(--tanne);
}
.sitzung-row .sitzung-date .day { display: block; font-size: 1.5rem; line-height: 1; font-weight: 700; }
.sitzung-row .sitzung-date .month { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.sitzung-row .sitzung-info h3 { margin: 0 0 .2rem; text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.sitzung-row .sitzung-info p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.sitzung-row.is-past { opacity: .55; }
/* ==========================================================================
   Standard-Inhaltsseiten (page.php / single.php / archive.php)
   ========================================================================== */
.page-hero {
  background: var(--tanne); color: var(--white);
  padding: 9rem 0 3.5rem;
}
.page-hero h1 { color: var(--white); }
.entry-content { max-width: 760px; margin: 0 auto; padding: 3.5rem 6vw; font-size: 1.08rem; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; text-transform: none; letter-spacing: 0; }
.entry-content img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.entry-content blockquote {
  border-left: 4px solid var(--sonne); margin: 1.6em 0; padding: .4em 0 .4em 1.4em;
  font-style: italic; color: var(--ink-soft);
}
.entry-content a { color: var(--klee); text-decoration-thickness: 2px; }

.archive-grid { max-width: var(--container); margin: 0 auto; padding: 3rem 6vw 5rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
@media (max-width: 900px) { .archive-grid { grid-template-columns: 1fr; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--sonne); color: var(--tanne); padding: 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--sonne); outline-offset: 2px; }

/* --- Archiv (Shortcode [gf_archiv]) --- */
.archiv-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.archiv-filter a, .archiv-pagination a {
  padding: .5em 1.1em; border-radius: 999px; border: 2px solid var(--tanne);
  color: var(--tanne); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.archiv-filter a:hover, .archiv-filter a.is-active,
.archiv-pagination a:hover, .archiv-pagination a.is-active { background: var(--tanne); color: var(--white); }
.archiv-item { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.archiv-item:last-child { border-bottom: 1px solid var(--line); }
.archiv-meta { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .3rem; }
.archiv-cat { color: var(--klee); font-weight: 700; }
.archiv-item h3 { margin: 0 0 .4rem; text-transform: none; letter-spacing: 0; font-size: 1.3rem; }
.archiv-item h3 a { color: var(--tanne); text-decoration: none; }
.archiv-item h3 a:hover { text-decoration: underline; }
.archiv-item p { margin: 0; color: var(--ink-soft); }
.archiv-pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }

.archiv-filters { margin: 0 0 2rem; }
.archiv-filter { margin: 0 0 .7rem; }
.archiv-filter.is-sub { padding-left: 1rem; border-left: 3px solid var(--sonne); }
.archiv-filter.is-sub a { font-size: .8rem; padding: .35em .9em; border-width: 1.5px; }

/* Archiv-Seite: so breit wie Kopfzeile und Titel */
.is-archiv .entry-content { max-width: var(--container); padding: 3.5rem 6vw 5rem; }
@media (min-width: 1300px) { .is-archiv .entry-content { padding-left: 2rem; padding-right: 2rem; } }

/* Beitragsliste mit Bild links */
.archiv-item { display: grid; gap: 1.6rem; align-items: start; }
.archiv-item.has-thumb { grid-template-columns: 240px 1fr; }
.archiv-thumb { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.archiv-thumb img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; box-shadow: none; }
@media (max-width: 620px) { .archiv-item.has-thumb { grid-template-columns: 1fr; } }

/* Zwei weiße Feature-Panels hintereinander: kein doppelter Abstand */
.section-white + .section-white { padding-top: 0; }

/* Feature-Panel gespiegelt: Text links, Bild rechts */
.feature-panel.is-reversed .fp-media { order: 2; }
.feature-panel.is-reversed .fp-text  { order: 1; }
@media (max-width: 780px) {
  .feature-panel.is-reversed .fp-media { order: 0; }
  .feature-panel.is-reversed .fp-text  { order: 0; }
}

/* Mit sieben Menüpunkten: Menü bei mittleren Breiten etwas enger */
@media (min-width: 861px) and (max-width: 1120px) {
  .primary-menu { gap: 1.2rem; }
  .primary-menu a { font-size: .88rem; }
}

.fp-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

/* ==========================================================================
   Personenkarten, Reiter und breites Layout für Seiten mit Personenlisten
   (ganz ans Ende der main.css einfügen)
   ========================================================================== */

/* Breites Layout wie beim Archiv; Fließtext bleibt gut lesbar schmal */
.is-wide .entry-content { max-width: var(--container); padding: 3.5rem 6vw 5rem; }
@media (min-width: 1300px) { .is-wide .entry-content { padding-left: 2rem; padding-right: 2rem; } }
.is-wide .entry-content > p,
.is-wide .entry-content > h2,
.is-wide .entry-content > h3,
.is-wide .entry-content > h4,
.is-wide .entry-content > ul,
.is-wide .entry-content > ol,
.is-wide .entry-content > blockquote,
.is-wide .gf-tab-inhalt > p,
.is-wide .gf-tab-inhalt > h2,
.is-wide .gf-tab-inhalt > h3,
.is-wide .gf-tab-inhalt > h4,
.is-wide .gf-tab-inhalt > ul,
.is-wide .gf-tab-inhalt > ol { max-width: 760px; }

/* Raster der Personenkarten */
.personen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6rem;
  margin: 1.5rem 0 2.5rem;
}
.person-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.4rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.person-foto {
  width: 130px; height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--klee-light);
  margin-bottom: .6rem;
  flex-shrink: 0;
}
.person-foto img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.person-text { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; width: 100%; }
.person-card h3 { margin: 0; text-transform: none; letter-spacing: 0; font-size: 1.25rem; }
.person-amt { color: var(--klee); font-weight: 700; font-size: .9rem; }
.person-kurz { list-style: none; margin: .3rem 0 0; padding: 0; color: var(--ink-soft); font-size: .9rem; }
.person-zeile { font-size: .92rem; color: var(--ink-soft); }
.person-zeile a { color: var(--klee); text-decoration: none; font-weight: 600; }
.person-zeile a:hover { text-decoration: underline; }
.person-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; margin-top: .5rem; font-size: .88rem; }
.person-links a, .person-details { color: var(--klee); font-weight: 700; text-decoration: none; }
.person-links a:hover, .person-details:hover { text-decoration: underline; }
.person-details { margin-top: auto; padding-top: .8rem; }

/* Kontaktkarten: kompakt, Foto links */
.personen-grid--kontakt { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.personen-grid--kontakt .person-card { flex-direction: row; text-align: left; align-items: center; gap: 1.2rem; padding: 1.2rem 1.4rem; }
.personen-grid--kontakt .person-foto { width: 84px; height: 84px; margin: 0; }
.personen-grid--kontakt .person-text { align-items: flex-start; }

/* Einzelseite einer Person */
.person-detail { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: flex-start; margin: 0 0 2rem; }
.person-foto--gross { width: 200px; height: 200px; }
.person-detail .person-text { align-items: flex-start; flex: 1; min-width: 240px; }
.person-detail .person-links { justify-content: flex-start; }

/* Reiter [tabs] */
.gf-tabs-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; border-bottom: 2px solid var(--line); }
.gf-tabs-nav button {
  font: inherit;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1rem;
  padding: .7em 1.4em;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--tanne);
  cursor: pointer;
  margin-bottom: -2px;
}
.gf-tabs-nav button:hover { background: var(--klee-light); }
.gf-tabs-nav button.is-active { border-bottom-color: var(--sonne); background: var(--white); }
.gf-tab[hidden] { display: none; }
.gf-tab-titel { margin-top: 1.6rem; }
.gf-tabs.is-js .gf-tab-titel { display: none; }

/* Kopfzeile: bei großen Bildschirmen etwas kompakter */
@media (min-width: 1241px) {
  .primary-menu { gap: 1.3rem; }
  .primary-menu a { font-size: .9rem; }
}

/* --- Vorstand: Kreise, die sich per Klick umdrehen --- */
.flip { perspective: 1000px; aspect-ratio: 1; margin-bottom: 1rem; cursor: pointer; }
.flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .7s ease;
  transform-style: preserve-3d;
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0;
  border-radius: 50%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-front { background: var(--klee-light); box-shadow: var(--shadow-card); }
.flip-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-front::after {
  content: "↻";
  position: absolute; right: 9%; bottom: 9%;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--sonne); color: var(--tanne);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
}
.flip-front:focus-visible { outline: 3px solid var(--sonne); outline-offset: 4px; }
.flip-back {
  transform: rotateY(180deg);
  background: var(--sonne); color: var(--tanne);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 13%;
}
.flip-text { max-height: 100%; overflow: auto; }
.flip-text p { margin: 0 0 .9rem; font-size: clamp(.82rem, 1.05vw, 1rem); line-height: 1.4; }
.flip-text .btn { font-size: .85rem; padding: .6em 1.3em; }
.team-card .avatar { margin-bottom: 1rem; }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

/* Zwei Feature-Panels untereinander: Buttons nebeneinander */
.fp-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

/* --- Termin-Kacheln (ähnlich den Schwerpunkt-Kacheln, aber mit Datum und gelber Kante) --- */
.termin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .termin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .termin-grid { grid-template-columns: 1fr; } }
.termin-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sonne);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.termin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.termin-datum {
  flex-shrink: 0; width: 64px;
  background: var(--tanne);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: .6rem 0 .5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.termin-datum .tag-nr { display: block; font-size: 1.9rem; line-height: 1; color: var(--white); }
.termin-datum .monat { display: block; font-size: .8rem; letter-spacing: .08em; color: var(--sonne); margin-top: .25rem; }
.termin-info { min-width: 0; }
.termin-zeit { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--klee); font-weight: 700; margin-bottom: .3rem; }
.termin-card h3 { margin: 0 0 .4rem; text-transform: none; letter-spacing: 0; font-size: 1.25rem; }
.termin-ort {
  margin: 0; color: var(--ink-soft); font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.termin-link { display: inline-block; margin-top: .6rem; font-weight: 700; font-size: .9rem; color: var(--tanne); text-decoration: none; }
.termin-link:hover { text-decoration: underline; }
.termin-hinweis { margin-top: 1.2rem; font-size: .85rem; color: var(--ink-soft); }

/* ==========================================================================
   Ergänzung 3 für die main.css (ganz ans Ende einfügen)
   ========================================================================== */

/* --- Footer --- */
.footer-links { margin-top: 1.2rem; }
.footer-social {
  display: inline-flex; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem;
  margin-bottom: .8rem;
}
.footer-social:hover { color: var(--sonne); }
.footer-social svg { flex-shrink: 0; }

/* --- Termin-Kacheln: "Im Kalender speichern" --- */
.termin-add {
  margin-top: .9rem; display: flex; flex-wrap: wrap; align-items: center;
  gap: .4rem .6rem; font-size: .82rem; color: var(--ink-soft);
}
.termin-add a {
  color: var(--tanne); font-weight: 700; text-decoration: none;
  padding: .3em .9em; border: 1.5px solid var(--tanne); border-radius: 999px;
}
.termin-add a:hover { background: var(--tanne); color: var(--white); }

/* --- Handy-Menü: Die drei Balken bleiben sichtbar und schließen das Menü wieder --- */
@media (max-width: 1240px) {
  .menu-toggle { position: relative; z-index: 5; }
  .primary-menu { z-index: 1; height: 100vh; height: 100dvh; }
}

/* --- Anpassungen für kleine Bildschirme --- */
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
.page-hero h1 { font-size: clamp(1.9rem, 9vw, 5.2rem); }
.entry-content { overflow-wrap: break-word; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.hero { min-height: 100vh; min-height: 100svh; }

/* Raster dürfen auf schmalen Geräten nie breiter als der Bildschirm werden */
.personen-grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.personen-grid--kontakt { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }

@media (max-width: 700px) {
  .hero-scroll-cue { display: none; }
  .hero { padding-bottom: 3rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 2.2rem; }
  .btn { padding: .85em 1.4em; }
  .hero-actions { gap: .7rem; }
}
@media (max-width: 420px) {
  .termin-card { padding: 1.2rem 1rem; gap: .9rem; }
  .termin-datum { width: 56px; }
  .person-card { padding: 1.4rem 1rem; }
  .theme-card { padding: 1.8rem 1.4rem; }
}

/* Normale Seiten: Inhalt so breit wie Kopfzeile und Titel, linksbündig mit dem Titel */
body.page .entry-content { max-width: var(--container); padding: 3.5rem 6vw 5rem; }
@media (min-width: 1300px) { body.page .entry-content { padding-left: 2rem; padding-right: 2rem; } }

/* Einzelseite einer Person: volle Inhaltsbreite, links Karte, rechts Text */
body.single-person .entry-content { max-width: var(--container); padding: 3.5rem 6vw 5rem; }
@media (min-width: 1300px) { body.single-person .entry-content { padding-left: 2rem; padding-right: 2rem; } }

.person-seite { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 3rem; align-items: start; }
.person-seite .person-detail {
  flex-direction: column; flex-wrap: nowrap; align-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 2rem 1.6rem; margin: 0; gap: 1.2rem;
}
.person-seite .person-foto--gross { width: 200px; height: 200px; margin: 0; }
.person-seite .person-detail .person-text { align-items: center; min-width: 0; }
.person-seite .person-detail .person-links { justify-content: center; }
.person-bio { min-width: 0; }
.person-bio > :first-child { margin-top: 0; }
@media (max-width: 860px) { .person-seite { grid-template-columns: 1fr; gap: 2rem; } }

/* Footer: so breit wie die Kopfzeile, mehr Luft zwischen den Spalten */
.site-footer .container { max-width: 1320px; }
@media (min-width: 1300px) { .site-footer .container { padding-left: 2rem; padding-right: 2rem; } }
.footer-grid { gap: 3rem; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; }
.footer-grid a { overflow-wrap: anywhere; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { margin-bottom: 1.8rem; }
.footer-title { margin: 0 0 1rem; font-weight: 700; color: var(--white); font-size: 1.05rem; line-height: 1.3; max-width: 26ch; }

.footer-title { max-width: none; }
@media (min-width: 781px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.1fr 1fr; } }
@media (min-width: 1250px) { .footer-title { white-space: nowrap; } }

.archiv-dots { display: inline-flex; align-items: center; padding: .5em .35em; color: var(--ink-soft); font-weight: 700; }

@media (max-width: 1240px) {
  /* Menüfläche immer am Bildschirm festhalten, nicht an der Seite */
  .site-header, .site-header .container {
    transform: none; filter: none; perspective: none; will-change: auto;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .primary-menu {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    height: auto; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
body.menu-offen { overflow: hidden; }