/*
Theme Name: Tagesordnungspunkt 14
Theme URI: https://top14.de
Author: Dirk Eickhoff
Description: Theme für das Buch „Tagesordnungspunkt 14 – Kommunalpolitik-Deutsch“. Beim Aktivieren werden alle Seiten, Bilder, Menüs und die Startseite automatisch angelegt. Jeder Abschnitt ist im Block-Editor bearbeitbar. DSGVO-freundlich: lokale Schriften, keine Cookies, YouTube erst nach Klick, Kontaktformular mit Spam-Schutz ohne Drittanbieter.
Version: 1.18.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: top14
*/

/* ==========================================================================
   Schriften (lokal, keine Verbindung zu Google)
   ========================================================================== */
@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/lilita/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair/PlayfairDisplay-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0f2142;
  --navy-deep: #0a1730;
  --blue: #1d4b8f;
  --blue-light: #e8eef8;
  --gold: #e2b24a;
  --gold-dark: #c9952b;
  --white: #ffffff;
  --ink: #1b2233;
  --muted: #55607a;
  --line: #dde3ee;
  --font-display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --narrow: 780px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 8px;
  --header-h: 72px;
}

/* ==========================================================================
   Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); font-weight: 700; }
@media (max-width: 420px) { h1 { font-size: 1.95rem; hyphens: auto; } }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[id] { scroll-margin-top: 90px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 200; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Abstände zwischen Blöcken selbst steuern */
.entry-content > * + *, .wp-block-group > * + * { margin-top: 0; }
.wp-block-group :where(p, h1, h2, h3, ul, figure, .wp-block-buttons, .wp-block-columns) { margin-block-end: 1.1em; }
.wp-block-group :where(p, h1, h2, h3, ul, figure, .wp-block-buttons, .wp-block-columns):last-child { margin-block-end: 0; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-deep); color: var(--white); box-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); flex-wrap: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.logo { font-family: var(--font-display); font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem); letter-spacing: .3px; color: var(--white); text-decoration: none; line-height: 1.1; white-space: nowrap; }
.logo span { color: var(--gold); }
.logo:hover { color: var(--white); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; flex-wrap: nowrap; }
.main-nav a { display: block; color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .7rem; border-radius: 6px; white-space: nowrap; }
.main-nav a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.main-nav .current-menu-item > a, .main-nav a[aria-current="page"] { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-cta { padding: .6rem 1.1rem !important; font-size: .95rem !important; }
.header-cta small { font-weight: 600; opacity: .8; margin-left: .35rem; }

.nav-toggle { display: none; background: none; border: 2px solid rgba(255, 255, 255, .35); border-radius: 10px; color: var(--white); width: 46px; height: 46px; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, .1); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav-open .main-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav ul { flex-direction: column; padding: .5rem var(--gutter) 1.25rem; }
  .main-nav a { padding: .8rem .5rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .header-actions { order: 3; }
}
@media (max-width: 420px) {
  .header-cta small { display: none; }
  .site-header .wrap { gap: .5rem; }
  .header-actions { gap: .4rem; }
  .header-cta { padding: .55rem .9rem !important; font-size: .9rem !important; }
  .nav-toggle { width: 42px; height: 42px; }
  .logo { font-size: .95rem; }
}
@media (max-width: 380px) { .cta-long { display: none; } }
@media (max-width: 360px) {
  .logo { font-size: .85rem; }
  .header-cta { padding: .5rem .75rem !important; font-size: .85rem !important; }
}

/* ==========================================================================
   Buttons (Block-Stile: Gold, Umriss, Blau)
   ========================================================================== */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.wp-block-button__link, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.5rem; border-radius: 6px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-sans); line-height: 1.2; text-align: center; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
  background: var(--blue); color: var(--white);
}
.wp-block-button__link:hover { color: var(--white); }
.is-style-gold .wp-block-button__link, .btn-gold { background: var(--gold); color: var(--navy-deep); }
.is-style-gold .wp-block-button__link:hover, .btn-gold:hover { background: var(--gold-dark); color: var(--navy-deep); }
.is-style-blau .wp-block-button__link { background: var(--blue); color: var(--white); }
.is-style-blau .wp-block-button__link:hover { background: var(--navy); }
.is-style-umriss .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--white); }
.is-style-umriss .wp-block-button__link:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
@media (max-width: 480px) {
  .wp-block-button__link { padding: .85rem 1.2rem; font-size: .95rem; }
  .hero .wp-block-button { flex: 1 1 auto; }
  .hero .wp-block-button__link { width: 100%; }
}

/* ==========================================================================
   Hero (immer linksbündig)
   ========================================================================== */
.hero { background: var(--navy); color: var(--white); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero h1 { color: var(--white); }
.hero .wp-block-columns.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin: 0; }
.hero .wp-block-column { min-width: 0; }
.hero-bild { margin: 0; }
.hero-bild img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); margin-left: auto; max-height: 560px; width: auto; }
.hero-bild figcaption { font-size: .85rem; color: rgba(255, 255, 255, .75); margin-top: .75rem; text-align: right; }
.hero-bild figcaption a { color: var(--gold); }
@media (max-width: 820px) {
  .hero .wp-block-columns.hero-grid { grid-template-columns: 1fr; }
  .hero-bild img { margin: 0 auto; max-height: 340px; }
  .hero-bild figcaption { text-align: center; }
}

/* Absatz-Stile */
.is-style-einleitung { font-family: var(--font-serif); font-size: clamp(1.15rem, 1rem + .8vw, 1.55rem); line-height: 1.5; max-width: 46ch; }
.hero .is-style-einleitung { color: rgba(255, 255, 255, .92); }
.is-style-unterzeile { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); letter-spacing: .3px; line-height: 1.3; }
.hero .is-style-unterzeile { color: var(--gold); }
.is-style-autor { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; letter-spacing: .3px; margin-top: -.2rem !important; }
.is-style-gross { font-family: var(--font-serif); font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); line-height: 1.5; }
.is-style-leitsatz { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); line-height: 1.25; text-wrap: balance; color: var(--gold); margin-bottom: .75rem !important; }
.is-style-zitat {
  position: relative; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.35;
  padding: clamp(3rem, 6vw, 3.75rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--blue-light); color: var(--navy); border-radius: var(--radius); margin: 1.5rem auto !important;
}
.is-style-zitat::before { content: "“"; position: absolute; top: .35rem; left: clamp(1.25rem, 3.5vw, 2.25rem); font-style: normal; font-weight: 800; font-size: 4rem; line-height: 1; color: var(--gold); }
.preis { margin-top: 1.5rem !important; color: rgba(255, 255, 255, .85); }
.preis strong { font-family: var(--font-serif); font-size: 2rem; color: var(--white); margin-right: .4rem; }

/* ==========================================================================
   Abschnitte: Hero – Weiß – Blau – Weiß – Blau …
   ========================================================================== */
.sec { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--white); }
.site-main > .sec:nth-child(odd) { background: var(--blue); color: var(--white); }
.site-main > .sec:nth-child(odd) a:not(.wp-block-button__link) { color: var(--white); }
.site-main > .sec:nth-child(even) h2, .site-main > .sec:nth-child(even) h3 { color: var(--navy); }
.site-main > .sec:nth-child(even) .is-style-umriss .wp-block-button__link { color: var(--blue); }
.site-main > .sec:nth-child(even) .is-style-umriss .wp-block-button__link:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.site-main > .sec:nth-child(odd) .is-style-zitat { background: var(--white); }
.site-main > .sec:nth-child(even) .is-style-leitsatz { color: var(--navy); }

/* Inhaltsbreite: schmale Abschnitte */
.wrap.narrow > * { max-width: var(--narrow); }

/* Ausrichtung: alle Abschnitte zentriert … */
.site-main > .sec { text-align: center; }
.site-main > .sec .wrap > * { margin-left: auto; margin-right: auto; }
.site-main > .sec .wp-block-buttons { justify-content: center; }
/* … außer Abschnitte mit Bild auf einer Seite und Rechtstexte */
.site-main > .sec:has(.split) { text-align: left; }
.site-main > .sec:has(.split) .wp-block-buttons { justify-content: flex-start; }
.site-main > .sec:has(.legal) { text-align: left; }
.legal > * { margin-left: 0 !important; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-top: 2.2rem; }
.legal ul { padding-left: 1.25rem; }

/* Zweispaltig mit Bild */
.wp-block-columns.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.wp-block-columns.split.autor { grid-template-columns: 260px 1fr; }
.split .wp-block-image img { border-radius: var(--radius); width: 100%; }
.split.autor .wp-block-image img { aspect-ratio: 1; object-fit: cover; }
@media (max-width: 820px) {
  .wp-block-columns.split, .wp-block-columns.split.autor { grid-template-columns: 1fr; }
  .split.autor .wp-block-image img { max-width: 220px; }
}

/* ==========================================================================
   Bausteine
   ========================================================================== */
/* Zahlen */
.wp-block-columns.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; margin-bottom: 3rem !important; }
.stats .wp-block-column { min-width: 0; }
.stat-zahl { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--blue); line-height: 1.1; margin: 0 0 .35rem !important; }
.site-main > .sec:nth-child(odd) .stat-zahl { color: var(--gold); }
.stat-text { font-size: .95rem; margin: 0 !important; }
@media (max-width: 720px) { .wp-block-columns.stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; } }
@media (max-width: 400px) { .stat-zahl { font-size: 1.7rem; } .stat-text { font-size: .85rem; } }

/* Karten */
.wp-block-columns.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.25rem; margin-top: 2rem; max-width: none !important; }
.card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.site-main > .sec:nth-child(even) .card { background: var(--blue-light); border-color: transparent; }
.site-main > .sec:nth-child(odd) .card { border-color: transparent; }
.card h3 { color: var(--navy) !important; }
.card a:not(.wp-block-button__link) { color: var(--blue) !important; }
.card .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.card .meta { color: var(--muted); font-weight: 600; margin-bottom: .6rem; }
.card .wp-block-image img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.pdf-zeichen { font-family: var(--font-display); font-size: 3rem; color: var(--blue); aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--white); border-radius: 6px; }
.infokarte { margin-top: 2rem !important; text-align: left; }

/* Faktenliste */
.wp-block-list.fakten { list-style: none; padding: 0; width: fit-content; max-width: 100%; text-align: left; margin-left: auto; margin-right: auto; }
.fakten li { padding: .25rem 0; }
.fakten strong { display: inline-block; min-width: 9.5rem; color: var(--navy); }
.site-main > .sec:nth-child(odd) .fakten strong { color: var(--gold); }
.card .fakten strong { color: var(--navy) !important; }
@media (max-width: 480px) { .fakten strong { display: block; min-width: 0; } }
.highlight { background: var(--blue-light); color: var(--navy); border-radius: var(--radius); padding: 1.5rem 1.75rem; font-weight: 600; margin-top: 2rem !important; }

/* Fragenliste */
.wp-block-list.questions { list-style: none; padding: 0; margin: 1.5rem auto !important; }
.questions li { padding: .8rem 0; border-bottom: 1px solid rgba(127, 140, 170, .35); }

/* Durchlaufender Satz mit Stichworten */
.groups-line { font-family: var(--font-serif); font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.1rem); line-height: 1.55; margin: 1.5rem auto 2rem !important; text-wrap: balance; }
.groups-line strong { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-main > .sec:nth-child(odd) .groups-line strong { color: var(--white); }

/* Shops */
.wp-block-group.shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-top: 1.5rem; max-width: 820px; }
.shops .wp-block-image { margin: 0 !important; }
.shops .wp-block-image a { background: var(--white); border-radius: var(--radius); display: grid; place-items: center; padding: .9rem; aspect-ratio: 3 / 2; border: 1px solid var(--line); }
.shops .wp-block-image a:hover { outline: 2px solid var(--gold); }
.shops img { max-height: 60px; width: auto; object-fit: contain; }
.hinweis { font-size: .9rem; margin-top: 1rem !important; opacity: .85; }

/* ISBN-Zeile */
.isbn-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin: 1rem 0; }
.hero .isbn-line { justify-content: flex-start; }
.copy-btn { font: inherit; font-size: .85rem; font-weight: 700; padding: .35rem .8rem; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; white-space: nowrap; }

/* Laufband (Presseberichte, Leserstimmen) */
.laufband { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: auto; cursor: grab; margin: 2rem calc(var(--gutter) * -1) 0 !important; max-width: none !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); text-align: center; }
.laufband::-webkit-scrollbar { display: none; }
.laufband.ziehen { cursor: grabbing; user-select: none; }
.laufband-spur { display: flex; gap: 1.25rem; width: max-content; padding: .5rem 0; }
/* Bewegung, Wischen und Pausen steuert assets/js/main.js (läuft nach Antippen/Wischen automatisch weiter) */
.laufband-spur > * { flex: 0 0 auto; margin: 0 !important; }
.laufband.presse .wp-block-image { width: clamp(240px, 70vw, 340px); background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.laufband.presse .wp-block-image img { width: 100%; height: 240px; object-fit: contain; background: #f3f5f9; cursor: zoom-in; }
.laufband.presse figcaption { padding: .9rem 1.1rem; font-size: .88rem; line-height: 1.45; margin: 0; color: var(--ink); }
.laufband.stimmen .stimme { position: relative; width: clamp(240px, 70vw, 320px); background: var(--blue-light); color: var(--ink); border-radius: var(--radius); padding: 3rem 1.5rem 1.5rem; }
.site-main > .sec:nth-child(odd) .laufband.stimmen .stimme { background: var(--white); }
.stimme::before { content: "“"; position: absolute; top: .25rem; left: 1.4rem; font-family: var(--font-serif); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--gold); }
.stimme-text { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; line-height: 1.4; margin-bottom: .9rem !important; }
.stimme-quelle { font-size: .9rem; color: var(--muted); margin: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .laufband { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .laufband-spur > [aria-hidden="true"] { display: none; }
}

/* Galerie */
.wp-block-gallery.galerie { max-width: none !important; margin-top: 2rem !important; gap: .75rem; }
.wp-block-gallery.galerie img { border-radius: 8px; cursor: zoom-in; }

/* Bildansicht */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
.lightbox::backdrop { background: rgba(5, 12, 26, .9); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 8px; margin: 0 auto; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Video (2-Klick-Lösung) */
.video-consent { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); color: var(--white); margin-top: 2rem; }
.video-consent > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.video-consent .consent-box { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; gap: 1rem; font-size: .95rem; }
.video-consent .consent-box p { max-width: 52ch; margin: 0; }
.video-consent .consent-box a { color: var(--gold) !important; }
.video-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) {
  .video-consent { aspect-ratio: auto; min-height: 320px; }
  .video-consent.loaded { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Social Media */
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.social a { display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .35); color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.social a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.site-main > .sec:nth-child(even) .social a { color: var(--navy) !important; border-color: #b9c3d6; }
.site-main > .sec:nth-child(even) .social a:hover { background: var(--blue-light); }

/* ==========================================================================
   Kontaktformular
   ========================================================================== */
.contact-form { text-align: left; margin-top: 2rem; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); display: grid; gap: 1.1rem; }
.site-main > .sec:nth-child(even) .contact-form { background: var(--blue-light); border-color: transparent; }
.contact-form a { color: var(--blue) !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: .35rem; }
.form-field label { font-weight: 700; font-size: .95rem; color: var(--navy); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #b9c3d6; border-radius: 6px; padding: .75rem .9rem; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.form-check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .92rem; line-height: 1.5; }
.form-check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--blue); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 700; min-height: 1.5em; }
.form-status.is-ok { color: #1d6b3a; }
.form-status.is-error { color: #a32020; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .85); padding: 3rem 0 2rem; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-cols h2 { font-family: var(--font-sans); font-size: 1rem; color: var(--white); margin-bottom: .75rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: .4rem; }
.footer-cols a:not(.logo):not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-cols a:not(.logo):not(.btn):hover { color: var(--gold); text-decoration: underline; }
.footer-cols .btn { margin-top: 1rem; }
.site-footer .logo { font-size: 1.2rem; }
.site-footer p { margin-top: .5rem; }
.site-footer .social { margin-top: 2rem; justify-content: flex-start; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-legal a { color: var(--white); }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* Beiträge / Fallback */
.entry-plain { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.entry-plain .wrap > * { max-width: var(--narrow); }

/* Kauf-Button: Desktop im Header, Handy/Tablet im Menü */
.main-nav .menu-cta { display: none; }
@media (max-width: 1200px) {
  .header-cta { display: none !important; }
  .main-nav .menu-cta { display: block; padding-top: 1rem; }
  .main-nav .menu-cta a { display: flex; width: 100%; border-bottom: 0; border-radius: 6px; padding: .9rem 1.2rem; color: var(--navy-deep); }
  .main-nav .menu-cta a:hover { background: var(--gold-dark); color: var(--navy-deep); }
}

/* Überschrift über dem Stichwort-Satz */
.groups-titel { margin-top: 2rem !important; margin-bottom: 0 !important; font-family: var(--font-display); font-weight: 400; letter-spacing: .3px; color: var(--blue) !important; }
.site-main > .sec:nth-child(odd) .groups-titel { color: var(--gold) !important; }

/* Shortcode-Ausgaben (Social Media) immer mittig im zentrierten Abschnitt */
.site-main > .sec:not(:has(.split)) .social { justify-content: center; }

/* Häufige Fragen (Akkordeon) */
.faq-liste { max-width: var(--narrow); margin: 2rem auto 0 !important; text-align: left; display: grid; gap: .75rem; }
.faq-liste .wp-block-details { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin: 0 !important; }
.site-main > .sec:nth-child(even) .faq-liste .wp-block-details { background: var(--blue-light); border-color: transparent; }
.faq-liste summary { cursor: pointer; list-style: none; padding: 1.1rem 3.25rem 1.1rem 1.25rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; line-height: 1.4; color: var(--navy); position: relative; }
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-family: var(--font-sans); font-weight: 800; display: grid; place-items: center; line-height: 1; }
.faq-liste details[open] summary::after { content: "–"; }
.faq-liste details > p { padding: 0 1.25rem 1.2rem; margin: 0 !important; }
.faq-liste a { color: var(--blue) !important; }

/* ==========================================================================
   Zitatkarten & Leserstimmen: zentriert, große blasse Anführungszeichen im Hintergrund
   ========================================================================== */
.is-style-zitat,
.laufband.stimmen .stimme {
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.is-style-zitat { padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem) !important; }
.laufband.stimmen .stimme { padding: 2.75rem 1.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.is-style-zitat::before,
.stimme::before {
  content: "“";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  transform: translate(-50%, -6%);
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
  opacity: .13;
  pointer-events: none;
}
.is-style-zitat::before { font-size: clamp(14rem, 26vw, 22rem); }
.stimme::before { font-size: 12rem; }
.stimme-text, .stimme-quelle { text-align: center; }

/* ==========================================================================
   Freigestelltes Hero-Foto (Startseite)
   ========================================================================== */
.hero-bild.freigestellt img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
  max-height: 600px;
}
@media (max-width: 820px) { .hero-bild.freigestellt img { max-height: 420px; } }

/* Schule: Fragen mit unterstrichenen Schlagwörtern */
.groups-line.fragen { font-weight: 400; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.8rem); }
.laufband.stimmen .stimme::before { opacity: .2; }

/* Freigestelltes Autorenfoto im Abschnitt „Der Autor“ (nicht beschneiden) */
.split.autor .autor-bild.freigestellt img {
  aspect-ratio: auto;
  object-fit: contain;
  width: auto;
  max-height: 440px;
  margin: 0 auto;
  border-radius: 0;
  filter: drop-shadow(0 14px 24px rgba(10, 23, 48, .25));
}
@media (max-width: 820px) { .split.autor .autor-bild.freigestellt img { max-width: 260px; max-height: 360px; } }

/* ==========================================================================
   Hero mit freigestelltem Foto: etwas niedriger, Person steht unten bündig auf der Abschnittskante
   ========================================================================== */
.hero:has(.freigestellt) { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 0; }
/* WordPress erzwingt bei Spalten „align-items: normal !important“ – daher direkt an den Spalten ausrichten */
.hero:has(.freigestellt) .wp-block-columns.hero-grid { align-items: end !important; }
.hero:has(.freigestellt) .hero-grid > .hero-text { align-self: center !important; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero:has(.freigestellt) .hero-grid > .hero-media { align-self: end !important; }
.hero-bild.freigestellt { margin: 0 !important; line-height: 0; display: flex; justify-content: flex-end; }
.hero-bild.freigestellt img { display: block; max-height: 520px; filter: none; margin: 0 0 0 auto; }
@media (max-width: 820px) {
  .hero:has(.freigestellt) .hero-text { padding-bottom: .5rem; }
  .hero-bild.freigestellt { justify-content: center; }
  .hero-bild.freigestellt img { max-height: 380px; margin: 0 auto; }
}

/* ==========================================================================
   Startseiten-Hero: Text etwas kleiner, Textblock auf gleicher Höhe wie das Foto
   ========================================================================== */
@media (min-width: 821px) {
  .home .hero:has(.freigestellt) .hero-grid > .hero-text { align-self: end !important; padding-bottom: 2.5rem; }
  .home .hero:has(.freigestellt) h1 { font-size: clamp(2rem, 1.2rem + 1.9vw, 2.75rem); margin-bottom: .45em !important; }
  .home .hero:has(.freigestellt) .is-style-autor { font-size: 1.1rem; margin-bottom: .6rem !important; }
  .home .hero:has(.freigestellt) .is-style-unterzeile { font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); margin-bottom: .8rem !important; }
  .home .hero:has(.freigestellt) .is-style-einleitung { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); margin-bottom: .6rem !important; }
  .home .hero:has(.freigestellt) .preis { margin-top: 1rem !important; margin-bottom: 0 !important; }
  .home .hero:has(.freigestellt) .preis strong { font-size: 1.7rem; }
  .home .hero:has(.freigestellt) .wp-block-buttons { margin-top: 1.25rem; }
  .home .hero-bild.freigestellt img { max-height: 500px; }
}

/* Footer: Hinweis zur Umsetzung */
.footer-credit { width: 100%; margin: .75rem 0 0; font-size: .75rem; color: rgba(255, 255, 255, .55); text-align: left; }
.footer-credit a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-credit a:hover { color: var(--gold); text-decoration: underline; }

/* ==========================================================================
   Einheitliche Fließtexte: Einleitungssatz und folgende Absätze in gleicher Schrift und Größe
   (Sonderelemente wie Zitatkarte, Leitsatz, Karten, FAQ, Formular, Rechtstexte behalten ihr Aussehen)
   ========================================================================== */
.site-main > .sec .wrap:not(.legal) > p:not([class*="is-style-"]):not(.groups-line):not(.stat-zahl):not(.stat-text):not(.hinweis):not(.highlight):not(.preis):not(.meta):not(.pdf-zeichen),
.site-main > .sec .wrap:not(.legal) > p.is-style-gross,
.site-main > .sec .split .wp-block-column > p:not([class*="is-style-"]):not(.groups-line):not(.stat-zahl):not(.stat-text):not(.hinweis):not(.highlight):not(.preis):not(.meta):not(.pdf-zeichen),
.site-main > .sec .split .wp-block-column > p.is-style-gross {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
}

/* Startseiten-Hero: Unterzeile, darunter der Autorname */
.hero .is-style-unterzeile + .is-style-autor { margin-top: -.35rem !important; margin-bottom: .9rem !important; }

/* „Für alle, die sich engagieren“: gleiche Schrift und Größe wie der Satz darunter */
.site-main > .sec .groups-titel,
.site-main > .sec:nth-child(odd) .groups-titel {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.1rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  color: inherit !important;
  margin: 1.5rem auto 0 !important;
}
.site-main > .sec .groups-titel + .groups-line { margin-top: 0 !important; }
