/*
Theme Name: TTBWM Bezirk
Description: Schlankes Theme für den WTTV-Bezirk Westfalen-Mitte. Ohne Page-Builder, ohne Block-Editor, Schriften lokal eingebunden.
Author: Marcus Beeske
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: ttbwm
*/

/* ==========================================================================
   Schriften (lokal, DSGVO-freundlich)
   ========================================================================== */

@font-face {
    font-family: "Barlow";
    src: url("assets/fonts/barlow-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("assets/fonts/barlow-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("assets/fonts/barlow-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Barlow Condensed";
    src: url("assets/fonts/barlow-condensed-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Barlow Condensed";
    src: url("assets/fonts/barlow-condensed-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Grundwerte
   ========================================================================== */

:root {
    --platte: #3da91f;       /* Logo-Grün: Startseite (Platte), Flächen mit weißer Schrift */
    --platte-tief: #143f29;  /* Footer */
    --gruen: #2a7a25;        /* Links und Buttons auf Weiß (WTTV-Grün, abgedunkelt) */
    --gruen-wttv: #3da91f;   /* Logo-Grün, als Linie/Fläche */
    --rot: #c2361f;          /* WTTV-Rot: Fristen, offene Anmeldungen */
    --tinte: #1f2723;
    --grau: #59655f;
    --linie: #d7dfda;
    --flaeche: #f0f4f1;
    --weiss: #ffffff;

    --font-text: "Barlow", "Segoe UI", Arial, sans-serif;
    --font-titel: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

    --breite: 74rem;
    --rand: clamp(1rem, 4vw, 2.5rem);
    --abstand: clamp(3rem, 7vw, 5.5rem);
    --radius: 4px;
}

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

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

body {
    margin: 0;
    background: var(--weiss);
    color: var(--tinte);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

img {
    max-width: 100%;
    height: auto;
}

/* Leaflet-Kacheln dürfen nicht skaliert werden (Vereinskarte) */
.leaflet-container img {
    max-width: none !important;
}

a {
    color: var(--gruen);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}
a:hover {
    color: var(--tinte);
}

:focus-visible {
    outline: 3px solid var(--rot);
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-titel);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.5em;
    color: var(--tinte);
}
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

.wrap {
    width: 100%;
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: var(--rand);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--tinte);
    color: var(--weiss);
}
.skip-link:focus {
    top: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    border: 2px solid var(--gruen);
    border-radius: var(--radius);
    background: var(--gruen);
    color: var(--weiss);
    font-family: var(--font-titel);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.button:hover {
    background: var(--tinte);
    border-color: var(--tinte);
    color: var(--weiss);
}

.button--hell {
    background: var(--weiss);
    border-color: var(--weiss);
    color: var(--platte);
}
.button--hell:hover {
    background: var(--flaeche);
    border-color: var(--flaeche);
    color: var(--platte);
}

.button--linie {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--weiss);
}
.button--linie:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--weiss);
}

/* ==========================================================================
   Kopfbereich
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
}
.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .site-header { top: 0; position: relative; }
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.75rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-right: auto;
    color: var(--tinte);
    text-decoration: none;
}
.site-logo:hover {
    color: var(--tinte);
}
.site-logo__img {
    display: block;
    width: auto;
    height: 3.1rem;
}
.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    padding-left: 0.85rem;
    border-left: 1px solid var(--linie);
}
.site-logo__name {
    font-family: var(--font-titel);
    font-size: 1.3rem;
    font-weight: 700;
}
.site-logo__sub {
    font-size: 0.85rem;
    color: var(--grau);
}

/* Navigation: Desktop */
.nav__list,
.nav__list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-toggle {
    display: none;
}

@media (min-width: 64em) {
    .nav__list {
        display: flex;
        gap: 0.25rem;
    }
    .nav__list > li {
        position: relative;
    }
    .nav__list a {
        display: block;
        padding: 0.55rem 0.75rem;
        color: var(--tinte);
        font-family: var(--font-titel);
        font-size: 1.15rem;
        font-weight: 600;
        text-decoration: none;
        border-radius: var(--radius);
    }
    .nav__list a:hover {
        background: var(--flaeche);
        color: var(--tinte);
    }
    .nav__list > .current-menu-item > a,
    .nav__list > .current-menu-ancestor > a,
    .nav__list > .current_page_item > a,
    .nav__list > .current_page_ancestor > a {
        box-shadow: inset 0 -3px 0 var(--gruen-wttv);
        border-radius: 0;
    }

    /* Untermenü */
    .nav__list ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 13rem;
        padding: 0.4rem;
        background: var(--weiss);
        border: 1px solid var(--linie);
        border-radius: var(--radius);
        box-shadow: 0 10px 24px rgba(20, 63, 41, 0.12);
        visibility: hidden;
        opacity: 0;
        transform: translateY(4px);
        transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    }
    .nav__list li:hover > ul,
    .nav__list li:focus-within > ul {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    .nav__list .menu-item-has-children > a::after,
    .nav__list .page_item_has_children > a::after {
        content: "";
        display: inline-block;
        width: 0.4em;
        height: 0.4em;
        margin-left: 0.45em;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-0.2em) rotate(45deg);
    }
}

/* Navigation: Mobil */
@media (max-width: 63.99em) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.55rem 0.8rem;
        border: 1px solid var(--linie);
        border-radius: var(--radius);
        background: var(--weiss);
        color: var(--tinte);
        font: 600 1.05rem var(--font-titel);
        cursor: pointer;
    }
    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        display: block;
        width: 1.15rem;
        height: 2px;
        background: currentColor;
        transition: transform 0.2s;
    }
    .nav-toggle__bars {
        position: relative;
    }
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        content: "";
        position: absolute;
        left: 0;
    }
    .nav-toggle__bars::before { top: -6px; }
    .nav-toggle__bars::after { top: 6px; }
    .nav-offen .nav-toggle__bars { background: transparent; }
    .nav-offen .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-offen .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 4.75rem);
        overflow-y: auto;
        background: var(--weiss);
        border-bottom: 1px solid var(--linie);
        box-shadow: 0 16px 24px rgba(20, 63, 41, 0.1);
    }
    .nav-offen .nav {
        display: block;
    }
    .nav__list {
        padding: 0.5rem var(--rand) 1rem;
    }
    .nav__list a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--linie);
        color: var(--tinte);
        font-family: var(--font-titel);
        font-size: 1.3rem;
        font-weight: 600;
        text-decoration: none;
    }
    .nav__list ul a {
        padding-left: 1rem;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--grau);
    }
    .nav__list .current-menu-item > a,
    .nav__list .current_page_item > a {
        color: var(--gruen);
    }
    .site-logo__sub {
        display: none;
    }
}

@media (max-width: 22em) {
    .site-logo__text { display: none; }
}
@media (max-width: 30em) {
    .site-logo__img { height: 2.6rem; }
    .site-logo__name { font-size: 1.15rem; }
    .news,
    .projekt--kompakt { grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0.9rem; }
    .news__tag { font-size: 1.8rem; }
}

/* ==========================================================================
   Startseite: die Platte
   ========================================================================== */

.platte {
    position: relative;
    background: var(--platte);
    color: var(--weiss);
    padding-block: clamp(1rem, 3vw, 2rem);
}

/* Weiße Randlinie wie auf einer Tischtennisplatte */
.platte__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.platte__inner::before {
    content: "";
    position: absolute;
    inset: 0 max(0.5rem, calc(var(--rand) - 1rem));
    border: 3px solid rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

.platte__intro {
    padding-inline: clamp(1rem, 3vw, 2.5rem);
    padding-right: clamp(1.5rem, 4vw, 3.5rem);
}

.platte__titel {
    margin: 0 0 0.2em;
    color: var(--weiss);
    font-size: clamp(2.6rem, 6.4vw, 4.9rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.platte__titel .wort {
    white-space: nowrap;
}
.platte__motto {
    margin: 0 0 1.4rem;
    font-family: var(--font-titel);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 600;
    color: var(--weiss);
}
.platte__text {
    max-width: 34em;
    margin: 0 0 2rem;
    font-size: 1.125rem;
    color: var(--weiss);
}
.platte__aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
}

/* Mittellinie: trennt Begrüßung und Schnellzugriff */
.platte__links {
    border-left: 2px solid rgba(255, 255, 255, 0.92);
    padding-inline: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
    align-self: stretch;
    display: flex;
    align-items: center;
}
.platte__links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.platte__links li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.platte__links a {
    display: block;
    padding: 0.85rem 0;
    color: var(--weiss);
    text-decoration: none;
}
.platte__link-titel {
    display: block;
    font-family: var(--font-titel);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}
.platte__link-text {
    display: block;
    font-size: 0.95rem;
    color: var(--weiss);
}
.platte__links a:hover .platte__link-titel {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

@media (max-width: 52em) {
    .platte__inner {
        grid-template-columns: 1fr;
    }
    .platte__links {
        border-left: 0;
        border-top: 2px solid rgba(255, 255, 255, 0.92);
        margin-top: 2.5rem;
        padding-top: 1rem;
        padding-inline: clamp(1rem, 3vw, 2.5rem);
    }
}

/* ==========================================================================
   Startseite: Aktuelles & Projekte
   ========================================================================== */

.start-raster {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    padding-block: var(--abstand);
}
.start-raster > :only-child {
    grid-column: 1 / -1;
}
@media (max-width: 52em) {
    .start-raster { grid-template-columns: 1fr; }
}

.block-kopf {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.6rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--tinte);
}
.block-kopf h2 {
    margin: 0;
}
.block-kopf__mehr {
    font-weight: 600;
    white-space: nowrap;
}

/* Nachrichtenliste */
.news-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1.25rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--linie);
}
.news__datum {
    display: flex;
    flex-direction: column;
    font-family: var(--font-titel);
    line-height: 1;
    color: var(--grau);
}
.news__tag {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--tinte);
}
.news__monat {
    margin-top: 0.3rem;
    font-size: 0.95rem;
    font-weight: 600;
}
.news__titel {
    margin: 0 0 0.3rem;
    font-size: 1.45rem;
}
.news__titel a {
    color: var(--tinte);
    text-decoration: none;
}
.news__titel a:hover {
    color: var(--gruen);
    text-decoration: underline;
}
.news__auszug {
    margin: 0;
    color: var(--grau);
}
.news-liste--gross .news__titel {
    font-size: 1.65rem;
}

/* Projekte */
.projekt-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 2.5rem 2rem;
}
.projekt__bild {
    display: block;
    margin-bottom: 0.9rem;
    background: var(--flaeche);
}
.projekt__bild img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain; /* Logos nicht abschneiden */
    padding: 1rem;
}
.projekt__titel {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
}
.projekt__titel a {
    color: var(--tinte);
    text-decoration: none;
}
.projekt__titel a:hover {
    color: var(--gruen);
    text-decoration: underline;
}
.projekt__auszug {
    margin: 0.5rem 0 0;
    color: var(--grau);
}

.projekt-liste--kompakt {
    display: block;
}
.projekt--kompakt {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--linie);
}
.projekt--kompakt:not(:has(.projekt__bild)) {
    grid-template-columns: 1fr;
}
.projekt--kompakt .projekt__bild {
    margin: 0;
}
.projekt--kompakt .projekt__bild img {
    aspect-ratio: 1;
    padding: 0.35rem;
    border-radius: var(--radius);
}
.projekt--kompakt .projekt__titel {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

/* Status-Kennzeichnung (Projekte) */
.status {
    display: inline-block;
    margin: 0;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.6;
    background: var(--flaeche);
    color: var(--grau);
}
.status--laufend {
    background: #e2f1df;
    color: #1f5f1b;
}
.status--abgeschlossen {
    background: var(--weiss);
    border: 1px solid var(--linie);
}

/* Startseite: Inhalt aus dem Editor (Karte, Charts) */
.start-vereine {
    padding-block: var(--abstand);
    background: var(--flaeche);
    border-top: 1px solid var(--linie);
}
.start-vereine .inhalt > h2:first-child {
    margin-top: 0;
}
/* Sprungziele nicht unter dem festen Kopfbereich verstecken */
#vereine,
#vereinssuche {
    scroll-margin-top: 6rem;
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */

.seite {
    padding-block: clamp(2rem, 5vw, 3.5rem) var(--abstand);
}

.page-head {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--tinte);
}
.page-head__parent {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-decoration: none;
}
.page-head__parent::before {
    content: "";
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    margin-right: 0.45em;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.1em) rotate(45deg);
}
.page-head__parent:hover {
    text-decoration: underline;
}
.page-head__titel {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1;
}
.page-head__meta {
    margin: 0.7rem 0 0;
    color: var(--grau);
}

.leer {
    padding: 2rem;
    background: var(--flaeche);
    color: var(--grau);
    text-align: center;
}

.beitragsbild {
    margin: 0 0 2rem;
}
.beitragsbild img {
    display: block;
    width: auto;      /* kleine Bilder nicht über ihre Originalgröße ziehen */
    max-width: 100%;
    height: auto;
}

/* Fließtext aus dem Editor: lesbare Zeilenlänge, Plugins volle Breite */
.inhalt {
    max-width: 100%;
}
.inhalt > p,
.inhalt > ul,
.inhalt > ol,
.inhalt > h2,
.inhalt > h3,
.inhalt > h4,
.inhalt > blockquote,
.inhalt > dl {
    max-width: 44rem;
}
.inhalt > h2 { margin-top: 2em; }
.inhalt > h3 { margin-top: 1.6em; }
.inhalt > :first-child { margin-top: 0; }
.inhalt--intro {
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
}

.inhalt blockquote {
    margin: 1.5rem 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--gruen-wttv);
    font-style: italic;
}

.inhalt > table,
.inhalt .tabelle-scroll table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.inhalt > table th,
.inhalt > table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--linie);
    text-align: left;
}
.inhalt > table th {
    border-bottom: 2px solid var(--tinte);
    font-weight: 600;
}

.inhalt .alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.inhalt .alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.inhalt .aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: 0.9rem; color: var(--grau); }

/* Beitrag: blättern */
.blaettern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 44rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--linie);
}
.blaettern__link {
    font-weight: 600;
    text-decoration: none;
}
.blaettern__link--next {
    grid-column: 2;
    text-align: right;
}
.blaettern__hinweis {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--grau);
}

/* Projekt: Detail mit Eckdaten */
.projekt-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.eckdaten {
    position: sticky;
    top: 6.5rem;
    padding: 1.5rem;
    background: var(--flaeche);
    border-top: 3px solid var(--gruen-wttv);
}
.eckdaten dl {
    margin: 0;
}
.eckdaten dt {
    font-size: 0.9rem;
    color: var(--grau);
}
.eckdaten dd {
    margin: 0 0 1rem;
    font-weight: 600;
}
.eckdaten dd:last-child {
    margin-bottom: 0;
}
.eckdaten__link {
    margin: 1.25rem 0 0;
}
.eckdaten__link .button {
    display: block;
    text-align: center;
}
@media (max-width: 52em) {
    .projekt-detail { grid-template-columns: 1fr; }
    .eckdaten { position: static; order: -1; }
}

/* Beitragskarten (Aktuelles) */
.karten {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}
.karte {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.karte:hover {
    border-color: var(--gruen-wttv);
    box-shadow: 0 10px 28px -14px rgba(20, 63, 41, 0.45);
    transform: translateY(-3px);
}
.karte:focus-within {
    outline: 3px solid var(--gruen-wttv);
    outline-offset: 2px;
}
.karte__titel a:focus-visible {
    outline: none; /* Rahmen zeigt die ganze Karte */
}

.karte__bild {
    position: relative;
    aspect-ratio: 3 / 2; /* Format der Beitragsbilder */
    overflow: hidden;
    background: var(--flaeche);
}
.karte__bild img {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.4s;
}
.karte__bild--foto img {
    object-fit: cover;
}
.karte:hover .karte__bild--foto img {
    transform: scale(1.04);
}
.karte__bild--logo img {
    object-fit: contain; /* Logos nicht abschneiden */
    padding: 1.25rem;
}

/* Kein Bild: eine kleine Platte mit Datum */
.karte__bild--leer {
    background: var(--platte);
}
.karte__platzhalter {
    position: absolute;
    inset: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--weiss);
    font-family: var(--font-titel);
    line-height: 1;
}
.karte__platzhalter::before {
    content: "";
    position: absolute;
    inset: 0 50%;
    border-left: 1px solid rgba(255, 255, 255, 0.55);
}
.karte__platzhalter-tag,
.karte__platzhalter-monat {
    position: relative;
    padding: 0.1em 0.4em;
    background: var(--platte);
}
.karte__platzhalter-tag {
    font-size: 3.4rem;
    font-weight: 700;
}
.karte__platzhalter-monat {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--weiss);
}

.karte__kategorie {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--rot);
    color: var(--weiss);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.karte__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem 1.25rem 1.25rem;
}
.karte__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.9rem;
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--grau);
}
.karte__lesezeit::before {
    content: "·";
    margin-right: 0.9rem;
}
.karte__titel {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.1;
    text-wrap: balance;
}
.karte__titel a {
    color: var(--tinte);
    text-decoration: none;
}
/* Titellink über die ganze Karte ziehen */
.karte__titel a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.karte:hover .karte__titel a {
    color: var(--gruen);
}
.karte__auszug {
    margin: 0 0 1rem;
    color: var(--grau);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.karte__mehr {
    margin-top: auto;
    font-weight: 600;
    color: var(--gruen);
}
.karte__mehr::after {
    content: "→";
    display: inline-block;
    margin-left: 0.35em;
    transition: transform 0.2s;
}
.karte:hover .karte__mehr::after {
    transform: translateX(4px);
}

/* Aufmacher: der neueste Beitrag über die volle Breite */
.karte--aufmacher {
    grid-column: 1 / -1;
}
.karte--aufmacher .karte__titel {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}
.karte--aufmacher .karte__auszug {
    font-size: 1.1rem;
    -webkit-line-clamp: 6;
}
@media (min-width: 52em) {
    .karte--aufmacher {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }
    .karte--aufmacher .karte__bild {
        align-self: center;
    }
    .karte--aufmacher .karte__body {
        justify-content: center;
        padding: clamp(1.5rem, 3vw, 2.5rem);
    }
    .karte--aufmacher .karte__mehr {
        margin-top: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .karte,
    .karte__bild img,
    .karte__mehr::after {
        transition: none;
    }
    .karte:hover,
    .karte:hover .karte__bild--foto img {
        transform: none;
    }
}

/* Seitennavigation (Aktuelles) */
.seiten-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.5rem;
}
.seiten-nav .page-numbers {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    text-decoration: none;
}
.seiten-nav .current {
    background: var(--tinte);
    border-color: var(--tinte);
    color: var(--weiss);
}

/* ==========================================================================
   Formulare (Kontakt, Suche)
   ========================================================================== */

.form {
    max-width: 38rem;
}
.form__zeile {
    margin-bottom: 1.1rem;
}
.form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.form input[type="text"],
.form input[type="email"],
.form textarea,
.search-form input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #a9b6ae;
    border-radius: var(--radius);
    background: var(--weiss);
    color: var(--tinte);
    font: inherit;
}
.form input:focus,
.form textarea:focus {
    border-color: var(--gruen);
    outline: 2px solid var(--gruen);
    outline-offset: 0;
}
.form__check {
    display: flex !important;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 1.25rem 0 1.5rem;
    font-weight: 400 !important;
    font-size: 0.95rem;
    color: var(--grau);
}
.form__check input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    flex: none;
    accent-color: var(--gruen);
}
.form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form__meldung {
    padding: 0.9rem 1.1rem;
    border-left: 4px solid;
    font-weight: 600;
}
.form__meldung--ok {
    background: #e2f1df;
    border-color: var(--gruen);
}
.form__meldung--fehler {
    background: #fbe9e5;
    border-color: var(--rot);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 30rem;
}
.search-form label {
    flex: 1;
}
.search-form .search-submit {
    padding: 0.7rem 1.1rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--gruen);
    color: var(--weiss);
    font: 600 1.05rem var(--font-titel);
    cursor: pointer;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--platte-tief);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
}
.site-footer a {
    color: var(--weiss);
}
.site-footer a:hover {
    color: #cfe8cf;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    padding-block: 3.5rem 2.5rem;
}
@media (max-width: 52em) {
    .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}
.site-footer__name {
    margin: 0 0 0.4rem;
    font-family: var(--font-titel);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--weiss);
}
.site-footer__about p:last-child {
    margin: 0;
}
.site-footer__title {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--weiss);
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li + li {
    margin-top: 0.35rem;
}
.site-footer__address {
    font-style: normal;
    line-height: 1.7;
}
.site-footer__base {
    padding-block: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}
.site-footer__base p {
    margin: 0;
}

/* ==========================================================================
   Druck
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .platte__links,
    .platte__aktionen,
    .blaettern {
        display: none !important;
    }
    .platte {
        background: none;
        color: var(--tinte);
    }
    .platte__titel { color: var(--tinte); }
}
