/*
 * Startseite: Varianten der Abschnitte (#244) – nur auf der Startseite geladen (inc/startseite.php).
 *
 * Jede Variante (startseite/<abschnitt>-<variante>.php) bekommt hier ihren Aufbau. Farben nur über die
 * Variablen aus style.css, damit jede Variante mit jedem Stil und jeder Vereinsfarbe funktioniert – die
 * Stil-Dateien (css/stil-*.css) setzen danach Schrift, Grundton und Feinheiten.
 * Die klassischen Varianten (Kopf Foto/Schlicht, Zahlen-Karte, Karten, Agenda, dunkles Band) stehen in style.css.
 */

/* Die allgemeine article-Regel aus style.css (weiß, Rand, Schatten) gilt hier nicht. */
.ak-haupt, .ak-klein, .ak-kachel, .tm-blatt, .tm-naechster-gross, .tm-naechster-liste article {
    padding: 0; margin: 0; background: none; border-radius: 0; box-shadow: none;
}

/* ===== KOPF „GETEILT“: Text links, Foto im Bogen rechts ===== */
.st-geteilt {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 5rem); align-items: center;
    max-width: var(--inhalt-breit); margin: 0 auto; text-align: left;
    padding: clamp(2.5rem, 4vw, 4.5rem) var(--rand) clamp(3rem, 5vw, 5.5rem);
}
.st-geteilt .band-dach { color: var(--gruen); }
.st-geteilt h1 { font-size: var(--fs-h1); line-height: 1.04; }
.st-geteilt .st-hero-text { font-size: var(--fs-lead); color: var(--text-gedaempft); max-width: 36ch; margin: 1.3rem 0 2rem; }
.st-geteilt .st-hero-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.8rem; }
.st-geteilt .btn, .st-geteilt .btn-glas { padding: 0.85rem 1.7rem; }
.st-bogen {
    margin: 0; aspect-ratio: 4 / 4.6; overflow: hidden;
    border-radius: 999px 999px 18px 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}
.st-bogen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-bogen--wappen { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gruen-zart), var(--gruen-kante)); }
.st-bogen--wappen img { width: 46%; height: auto; object-fit: contain; }

/* ===== ZAHLEN „ZEILE“: im geteilten Kopf oder als schmales Band ===== */
.st-zahlen-zeile { display: flex; margin: 2.6rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rahmen); text-align: left; }
.st-zahlen-zeile div { flex: 1; padding-right: 1rem; }
.st-zahlen-zeile div + div { padding-left: 1.4rem; border-left: 1px solid var(--rahmen); }
.st-zahlen-zeile dt { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 700; line-height: 1; color: var(--gruen); }
.st-zahlen-zeile dd { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--karte-label); }
.st-zahlen-band { padding: 2rem 0; }
.st-zahlen-band .st-zahlen-zeile { max-width: 900px; margin: 0 auto; padding-top: 0; border-top: 0; }

/* ===== KOPF „VOLLBILD“: Foto über die ganze Höhe, Schrift unten links, schräge Kante ===== */
.st-vollbild {
    position: relative; isolation: isolate; display: flex; align-items: flex-end;
    min-height: clamp(36rem, 26rem + 26vw, 48rem); text-align: left; color: var(--hell); background: var(--dunkel);
    padding: 9rem clamp(1.25rem, 6vw, 6rem) 7rem; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
.st-vollbild .kopfbild { z-index: -2; }
.st-vollbild::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.86) 100%);
}
.st-vollbild--ohne-bild { background: linear-gradient(160deg, var(--gruen) 0%, var(--gruen-dunkel) 100%); }
.st-vollbild--ohne-bild::before { display: none; }
.st-vollbild-inhalt { position: relative; max-width: 980px; }
.st-schild {
    display: inline-block; margin-bottom: 1rem; padding: 0.35rem 0.8rem; background: var(--gruen); color: var(--hell);
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.st-vollbild h1 { font-size: clamp(3rem, 1.5rem + 6.5vw, 7.6rem); font-weight: 800; line-height: 0.92; }
.st-vollbild .st-hero-text { max-width: 42ch; margin: 1.3rem 0 2rem; font-size: var(--fs-lead); opacity: 0.92; }
.st-vollbild .st-hero-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.8rem; }
.st-vollbild .btn { padding: 0.9rem 2rem; }
.st-vollbild .btn-glas { border-color: rgba(255, 255, 255, 0.75); color: var(--hell); }
.st-vollbild .btn-glas:hover { background: rgba(255, 255, 255, 0.12); }

/* Kopfleiste liegt durchsichtig auf dem Vollbild (body.kopf-vollbild, nur Startseite) */
.kopf-vollbild .site-header {
    position: absolute; top: 0; left: 0; right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); border-bottom: 0; box-shadow: none;
}
@media (min-width: 783px) { .admin-bar.kopf-vollbild .site-header { top: 32px; } }
@media (min-width: 601px) and (max-width: 782px) { .admin-bar.kopf-vollbild .site-header { top: 46px; } }
.kopf-vollbild .kopf-name .site-titel, .kopf-vollbild .kopf-name small { color: var(--hell); }
.kopf-vollbild .hamburger-icon, .kopf-vollbild .hamburger-icon::before, .kopf-vollbild .hamburger-icon::after { background: var(--hell); }
.kopf-vollbild .menu-toggle { border-color: rgba(255, 255, 255, 0.6); }
@media (min-width: 769px) {
    .kopf-vollbild .hauptnavigation .menu > li > a { color: var(--hell); }
}

/* ===== KOPF „WAPPEN GROSS MIT FOTOS“ ===== */
.st-wappenkopf {
    position: relative; isolation: isolate; overflow: hidden; text-align: center;
    padding: 3.5rem 1.25rem; background: var(--gruen-zart); border-radius: 0 0 48px 48px;
}
.st-blase { position: absolute; z-index: -1; border-radius: 50%; background: var(--gruen-kante); }
.st-blase--1 { width: 420px; height: 420px; left: -140px; top: -120px; opacity: 0.6; }
.st-blase--2 { width: 300px; height: 300px; right: -80px; top: 120px; opacity: 0.45; }
.st-wappenkopf-wappen {
    display: block; width: 120px; height: 120px; margin: 0 auto 1.2rem; padding: 14px; object-fit: contain;
    background: var(--hell); border-radius: 50%; box-shadow: 0 0 0 8px var(--gruen-kante);
}
.st-hand { margin-bottom: 0.3rem; font-size: 1.1rem; font-weight: 600; color: var(--gruen); }
.st-wappenkopf h1 { font-size: var(--fs-h1); line-height: 1.05; }
.st-wappenkopf .st-hero-text { max-width: 40ch; margin: 1rem auto 1.8rem; font-size: var(--fs-lead); color: var(--text-gedaempft); }
.st-wappenkopf .st-hero-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.st-polaroids { display: flex; justify-content: center; gap: 1.6rem; margin-top: 3rem; }
.st-polaroids figure {
    width: 290px; margin: 0; padding: 12px 12px 10px; background: var(--hell); border-radius: 6px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45); transform: rotate(var(--drehung));
}
.st-polaroids .st-polaroid-mitte { width: 330px; transform: rotate(var(--drehung)) translateY(-18px); }
.st-polaroids img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.st-polaroids figcaption { padding-top: 0.5rem; font-size: 1rem; color: var(--dunkel); }

/* ===== ZAHLEN „ANZEIGETAFEL“ ===== */
.st-tafel {
    position: relative; z-index: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    max-width: 1180px; margin: -3rem auto 0; background: var(--dunkel); color: var(--hell); border-top: 4px solid var(--gruen);
}
.st-tafel div { padding: 1.6rem 1rem 1.4rem; text-align: center; }
.st-tafel div + div { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.st-tafel strong { display: block; font-size: clamp(2.6rem, 1.8rem + 3.6vw, 5.4rem); font-weight: 800; line-height: 0.95; color: color-mix(in srgb, var(--gruen) 55%, #fff); }
.st-tafel span { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }

/* ===== ZAHLEN „PLAKETTEN“ ===== */
.st-plaketten { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 4rem); padding: 3.5rem 1.25rem 1rem; }
.st-plaketten div {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 170px; aspect-ratio: 1; background: var(--hell); border-radius: 50%;
    box-shadow: 0 0 0 10px var(--gruen-zart), 0 0 0 11px var(--gruen-kante);
}
.st-plaketten strong { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--gruen); }
.st-plaketten span { margin-top: 0.3rem; font-size: 1rem; color: var(--karte-label); }

/* ===== AKTUELLES „MAGAZIN“: eine groß, die übrigen klein daneben ===== */
.ak-magazin { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); text-align: left; }
.ak-bild { display: block; overflow: hidden; background: linear-gradient(135deg, var(--gruen-zart), var(--gruen-kante)); }
.ak-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ak-bild:has(.st-ersatz-wappen) { display: flex; align-items: center; justify-content: center; }
.ak-bild .st-ersatz-wappen { width: auto; height: 58%; object-fit: contain; opacity: 0.9; }
.ak-haupt .ak-bild { aspect-ratio: 16 / 10; margin-bottom: 1.1rem; border-radius: 6px; }
.ak-meta { font-size: 0.85rem; color: var(--karte-label); }
.ak-haupt h3 { margin: 0.3rem 0 0.6rem; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.15; }
.ak-magazin h3 a, .ak-kachel h3 a, .tm-blatt h3 a, .tm-naechster h3 a, .tm-zeitstrahl h3 a { color: inherit; }
.ak-auszug { margin-bottom: 0.8rem; color: var(--text-gedaempft); }
.ak-neben { display: grid; align-content: start; gap: 1.5rem; }
.ak-klein { display: grid; grid-template-columns: 140px 1fr; gap: 1.1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rahmen); }
.ak-klein:last-child { padding-bottom: 0; border-bottom: 0; }
.ak-klein .ak-bild { width: 140px; height: 140px; border-radius: 6px; }
.ak-klein h3 { margin: 0.2rem 0 0.35rem; font-size: 1.2rem; line-height: 1.2; }
.ak-klein .ak-auszug { margin: 0; font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== AKTUELLES „BILDKACHELN“: Text auf dem Foto ===== */
.ak-kacheln { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 250px 250px; gap: 14px; text-align: left; }
.ak-kacheln--1 { grid-template-columns: 1fr; grid-template-rows: 380px; }
.ak-kacheln--2 { grid-template-rows: 380px; }
.ak-kacheln--3 .ak-kachel--gross { grid-row: span 2; }
.ak-kachel {
    position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden;
    color: var(--hell); background: var(--gruen-dunkel); border-radius: 6px;
}
.ak-kachel > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ak-kachel > img.st-ersatz-wappen { padding: 18%; object-fit: contain; opacity: 0.5; }
.ak-kachel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.88) 100%); }
.ak-kachel-text { padding: 1.3rem 1.5rem; }
.ak-kachel .ak-meta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.ak-kachel .ak-meta b { color: color-mix(in srgb, var(--gruen) 45%, #fff); }
.ak-kachel h3 { margin-top: 0.3rem; font-size: 1.5rem; line-height: 1.05; }
.ak-kachel--gross h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
.ak-kachel h3 a::after { content: ''; position: absolute; inset: 0; }   /* ganze Kachel anklickbar */
.ak-kachel h3 a:hover { text-decoration: none; }
.ak-kachel .ak-auszug { max-width: 52ch; margin: 0.6rem 0 0; color: rgba(255, 255, 255, 0.85); }

/* ===== TERMINE „KALENDERBLÄTTER“ ===== */
.tm-blaetter { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; max-width: 1100px; margin: 0 auto; }
.tm-blaetter + .st-agenda-fuss { max-width: 1100px; }
.tm-blatt { padding-bottom: 1.3rem; overflow: hidden; text-align: center; background: var(--hell); border: 1px solid var(--rahmen); border-radius: 8px; box-shadow: var(--karte-schatten); }
.tm-blatt-monat { padding: 0.55rem; background: var(--gruen); color: var(--hell); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.tm-blatt-tag { margin-top: 1rem; font-size: 4.2rem; font-weight: 700; line-height: 1; }
.tm-blatt-wtag { margin-bottom: 0.9rem; font-size: 0.85rem; color: var(--karte-label); }
.tm-blatt h3 { padding: 0 1.1rem; font-size: 1.15rem; hyphens: auto; overflow-wrap: break-word; }
.tm-blatt p { margin-top: 0.35rem; padding: 0 1rem; font-size: 0.9rem; color: var(--karte-label); }

/* ===== TERMINE „NÄCHSTER TERMIN GROSS“ ===== */
.tm-naechster { display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px; max-width: 1100px; margin: 0 auto; text-align: left; }
.tm-naechster + .st-agenda-fuss { max-width: 1100px; }
.tm-naechster--allein { grid-template-columns: minmax(0, 520px); justify-content: center; }
.tm-naechster-gross { padding: 2rem 2rem 1.8rem; background: var(--gruen); color: var(--hell); border-radius: 6px; }
.tm-naechster-dach { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.tm-naechster-datum { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.4rem 0 0.6rem; }
.tm-naechster-datum strong { font-size: 5.5rem; font-weight: 800; line-height: 0.9; }
.tm-naechster-datum span { font-size: 1.9rem; font-weight: 800; text-transform: uppercase; }
.tm-naechster-gross h3 { font-size: 1.8rem; line-height: 1.1; }
.tm-naechster-gross p:last-child { margin-top: 0.5rem; opacity: 0.9; }
.tm-naechster-liste { display: grid; align-content: start; gap: 14px; }
.tm-naechster-liste article {
    display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 1.1rem;
    padding: 1.1rem 1.4rem; background: var(--hell); border: 1px solid var(--rahmen); border-radius: 6px;
}
.tm-naechster-datum--klein { margin: 0; color: var(--gruen); }
.tm-naechster-datum--klein strong { font-size: 3rem; }
.tm-naechster-datum--klein span { font-size: 1.15rem; }
.tm-naechster-liste h3 { font-size: 1.3rem; line-height: 1.1; }
.tm-naechster-liste p { margin-top: 0.3rem; font-size: 0.95rem; color: var(--karte-label); }
.tm-naechster-art { padding: 0.25rem 0.6rem; background: var(--pille-grund); color: var(--pille-text); border-radius: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== TERMINE „ZEITSTRAHL“ ===== */
.tm-zeitstrahl-raster { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; text-align: left; }
.tm-zeitstrahl-kopf .band-kopf { max-width: none; margin: 0 0 1.6rem; text-align: left; }
.tm-zeitstrahl { position: relative; margin: 0; padding: 0; list-style: none; }
.tm-zeitstrahl::before { content: ''; position: absolute; left: 41px; top: 20px; bottom: 20px; width: 4px; background: var(--gruen-kante); border-radius: 4px; }
.tm-zeitstrahl li { position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 1.2rem; align-items: center; margin-bottom: 1.3rem; }
.tm-zeitstrahl-punkt {
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px;
    background: var(--gruen); color: var(--hell); border-radius: 50%; box-shadow: 0 0 0 6px var(--hell);
}
.tm-zeitstrahl-punkt strong { font-size: 2rem; line-height: 1; }
.tm-zeitstrahl-punkt span { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tm-zeitstrahl-karte { padding: 1.1rem 1.4rem; background: var(--hell); border-radius: 20px; box-shadow: var(--karte-schatten); }
.tm-zeitstrahl-karte h3 { font-size: 1.25rem; }
.tm-zeitstrahl-karte p { margin-top: 0.2rem; color: var(--karte-label); }

/* ===== MITGLIED WERDEN „MIT FOTO“ ===== */
.mg-foto { padding: var(--band) 0; background: var(--hell); }
.mg-foto-raster { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; text-align: left; }
.mg-foto-bild { margin: 0 14px 14px 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 6px; box-shadow: 14px 14px 0 var(--gruen-zart); }
.mg-foto-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-foto-bild--wappen { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gruen-zart), var(--gruen-kante)); }
.mg-foto-bild--wappen img { width: 40%; height: auto; object-fit: contain; }
.mg-foto-text .band-dach { color: var(--gruen); }
.mg-foto-text h2 { font-size: var(--fs-h2); line-height: 1.08; }
.mg-foto-text p:not(.band-dach) { max-width: 42ch; margin: 1rem 0 1.8rem; font-size: var(--fs-lead); color: var(--text-gedaempft); }

/* ===== MITGLIED WERDEN „GROSSE SCHRIFT“ ===== */
.mg-gross {
    position: relative; margin-top: -2rem; padding: clamp(4rem, 3rem + 4vw, 7rem) 0;
    background: var(--gruen); color: var(--hell); clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}
.mg-gross-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; text-align: left; }
.mg-gross h2 { font-size: clamp(3rem, 1.8rem + 5vw, 6.6rem); font-weight: 800; line-height: 0.9; }
.mg-gross p { margin-bottom: 1.6rem; font-size: var(--fs-lead); }

/* ===== MITGLIED WERDEN „MIT WAPPEN“ ===== */
.mg-wappen { padding: var(--band) 0; }
.mg-wappen-karte {
    display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; max-width: 1100px; margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.5rem); text-align: left; background: var(--gruen); color: var(--hell); border-radius: 40px;
}
.mg-wappen-karte--ohne { grid-template-columns: 1fr; }
.mg-wappen-bild { width: 220px; height: 220px; padding: 26px; object-fit: contain; background: var(--hell); border-radius: 50%; }
.mg-wappen .st-hand { color: var(--hell); opacity: 0.9; }
.mg-wappen h2 { font-size: var(--fs-h2); }
.mg-wappen-karte p:not(.st-hand) { max-width: 46ch; margin: 0.8rem 0 1.6rem; font-size: var(--fs-lead); opacity: 0.95; }

/* ===== HANDY ===== */
@media (max-width: 768px) {
    .st-geteilt, .ak-magazin, .tm-naechster, .tm-zeitstrahl-raster, .mg-foto-raster, .mg-gross-raster, .mg-wappen-karte { grid-template-columns: 1fr; }
    .st-geteilt { padding-top: 1.5rem; }
    .st-bogen { order: -1; aspect-ratio: 4 / 3.4; }
    .st-zahlen-zeile dt { font-size: 1.8rem; }
    .st-vollbild { min-height: 34rem; padding-bottom: 5.5rem; }
    .st-tafel { margin-top: -1.5rem; }
    .st-tafel strong { font-size: 2.4rem; }
    .st-tafel span { font-size: 0.7rem; letter-spacing: 0.08em; }
    .st-polaroids { gap: 0.6rem; }
    .st-polaroids figure { width: 31%; padding: 6px 6px 4px; }
    .st-polaroids .st-polaroid-mitte { width: 34%; }
    .st-polaroids figcaption { font-size: 0.8rem; }
    .st-plaketten div { width: 100px; box-shadow: 0 0 0 6px var(--gruen-zart), 0 0 0 7px var(--gruen-kante); }
    .st-plaketten strong { font-size: 1.7rem; }
    .st-plaketten span { font-size: 0.8rem; }
    .ak-klein { grid-template-columns: 96px 1fr; }
    .ak-klein .ak-bild { width: 96px; height: 96px; }
    .ak-kacheln, .ak-kacheln--2 { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: minmax(210px, auto); }
    .ak-kacheln .ak-kachel--gross { grid-row: auto; min-height: 300px; }
    .tm-naechster-liste article { grid-template-columns: 80px 1fr; }
    .tm-naechster-art { display: none; }
    .mg-wappen-bild { width: 120px; height: 120px; padding: 14px; }
}
