/*
 * Korbball Thurgau – Theme-CSS nach Mockup B2 (Entwurf B2, Werkstatt-Archiv).
 * Die Spielbetriebs-Bausteine (Runden, Ranglisten, Teams) gestaltet das Plugin korbball-core (assets/bloecke.css).
 * Farben aus theme.json; Grau #5a6878 statt #677788 (TGTV), damit kleine Schrift den Kontrast WCAG AA (4.5:1) erreicht.
 */
:root{--kb-wrap:1200px;--kb-r:var(--wp--custom--mass--rundung)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:12px;scrollbar-gutter:stable}/* Platz für den Rollbalken immer reserviert: Filter, die die Seite kürzer machen, verschieben nichts */
body{font-feature-settings:"tnum" 1;margin:0}
img{max-width:100%;height:auto}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--wp--preset--color--gelb);outline-offset:2px;box-shadow:0 0 0 5px var(--wp--preset--color--text)}
.wp-site-blocks{padding-left:0!important;padding-right:0!important}
.wrap{max-width:var(--kb-wrap);margin-left:auto!important;margin-right:auto!important;padding-left:20px;padding-right:20px;width:100%}
/* Fuss immer unten: Seite mindestens bildschirmhoch, der Inhalt füllt den Rest (auch kurze Seiten auf grossen Bildschirmen) */
.wp-site-blocks{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.admin-bar .wp-site-blocks{min-height:calc(100dvh - var(--wp-admin--admin-bar--height,0px))}
main.haupt{padding-bottom:20px;flex:1 0 auto}
.wp-site-blocks>*+*{margin-block-start:0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip-link:focus{position:fixed!important;left:12px;top:12px;width:auto;height:auto;clip:auto;z-index:100;background:#fff;color:var(--wp--preset--color--text);padding:12px 16px;border-radius:var(--kb-r);font-weight:600}

/*
 * Kopf: weiss, damit das Korbball-Logo frei steht. Marke zweizeilig: «Korbball Thurgau» / «Ein Angebot des [TGTV]».
 * Hauptmenü als Reiter auf der dunkelgrünen Linie, fünfter Reiter «Mehr» (Block korbball/mehr-menue) öffnet Ausschreibungen,
 * Schiedsrichter, Fachtest, Service und Instagram (Entscheid Betreiber 08.10.2026, Mock C; auf dem Handy «Mehr» unten).
 * Links im Kopf werden beim Darüberfahren nie unterstrichen (Wunsch Betreiber), sie färben sich.
 */
.head{background:#fff;border-bottom:3px solid var(--wp--preset--color--gruen-dunkel)}
.head a,.head a:hover{text-decoration:none!important}
.kopf{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"brand nav";align-items:end;column-gap:40px;min-height:84px}
.kopf>*{margin:0!important}
.brand{grid-area:brand;align-self:center;display:grid;grid-template-columns:auto auto;grid-template-areas:"logo name" "logo tgtv";column-gap:12px;align-items:center;justify-content:start}
.brand-home{display:contents;color:var(--wp--preset--color--text)}
.brand-home img{grid-area:logo;height:52px;width:auto}
.brand-name{grid-area:name;align-self:end;font-weight:700;font-size:20px;line-height:1.15;letter-spacing:-.01em;white-space:nowrap;color:var(--wp--preset--color--text)}
.brand-tgtv{grid-area:tgtv;align-self:start;display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:1.2;color:var(--wp--preset--color--grau);white-space:nowrap;margin-top:2px}
.brand-tgtv img{height:17px;width:auto;display:block}
.brand-home:hover .brand-name,.brand-tgtv:hover{color:var(--wp--preset--color--gruen-dunkel)}
.navzeile{grid-area:nav;align-self:end;justify-self:start;display:flex;align-items:flex-end;gap:4px}
.navzeile>*{margin:0!important}
.head .nav .wp-block-navigation__container{gap:4px}
.head .nav .wp-block-navigation-item{margin:0}
.head .nav .wp-block-navigation-item__content{white-space:nowrap;color:var(--wp--preset--color--text);font-weight:600;font-size:17px;padding:0 18px;height:50px;display:flex;align-items:center;border-radius:var(--kb-r) var(--kb-r) 0 0;transition:background-color .15s}
.head .nav .wp-block-navigation-item__content:hover{background:var(--wp--custom--farbe--gruen-hell);color:var(--wp--preset--color--gruen-dunkel)}
.head .nav .wp-block-navigation-item__content[aria-current],.head .nav .wp-block-navigation-item__content[aria-current]:hover{background:var(--wp--preset--color--gruen-dunkel);color:#fff}
@media (max-width:900px){
	.kopf{column-gap:16px}
	.head .nav .wp-block-navigation-item__content{padding:0 9px;font-size:15px;height:46px}
	.brand-name{font-size:18px}
	.brand-home img{height:44px}
}
@media (max-width:640px){
	.navzeile{display:none}
	.kopf{grid-template-columns:1fr;grid-template-areas:"brand";min-height:64px}
}


/* Seitenkopf der Unterseiten */
.ph{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:24px 0 12px}
.ph h1,.ph .wp-block-post-title,.ph .wp-block-query-title{margin:0;font-size:34px;letter-spacing:-.02em}
.seiten-intro:empty{display:none}
.seiten-intro{margin-bottom:12px}
.seiten-titel{margin:28px auto 16px!important}

/* Startseite: nächste Runde + News nebeneinander */
.top{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;padding:18px 0 8px}
.top>*{margin:0!important}

/* Teamseite */
.t-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;padding-top:28px}
.t-grid>*{margin:0!important}
.t-seite{display:grid;gap:28px;align-content:start}
.t-seite>*{margin:0!important}
.auto{font-size:14px;color:var(--wp--preset--color--grau);margin:24px 0 0}

/* Inhaltsseiten und News */
.inhalt-schmal{padding-bottom:20px}
.beitrag .wp-block-post-date{margin-top:28px}
.beitrag .wp-block-post-featured-image img{border-radius:var(--kb-r)}
.newsliste .wp-block-post-template{gap:20px}
.newsliste .wp-block-post{background:#fff;border:1px solid var(--wp--preset--color--linie);border-radius:var(--kb-r);overflow:hidden;padding:0 0 14px;display:flex;flex-direction:column}
.newsliste .wp-block-post>*{margin:0 14px!important}
.newsliste .wp-block-post-featured-image{margin:0 0 10px!important}
.newsliste .wp-block-post-featured-image img{width:100%;object-fit:cover}
.newsliste .wp-block-post-title a{color:var(--wp--preset--color--text);text-decoration:none}
.newsliste .wp-block-post-title a:hover{color:var(--wp--preset--color--gruen-dunkel)}
.wp-block-query-pagination{margin-top:24px}
.entry-content table,.wp-block-post-content table{border-collapse:collapse;width:100%}
.wp-block-post-content :where(figure,table){max-width:100%;overflow-x:auto}

/* SportsPress-Ausgaben in Einzelseiten (Spiel, Kalender, Spieler): ruhige Tabellen im Stil der Seite */
.sp-inhalt,.wp-block-post-content{overflow-wrap:anywhere}
.sp-template,.sp-data-table{font-size:15px}
.sp-data-table{width:100%;border-collapse:collapse;background:#fff}
.sp-data-table th{font-size:14px;font-weight:600;color:var(--wp--preset--color--grau);text-align:left;padding:8px 6px;border-bottom:2px solid var(--wp--preset--color--linie)}
.sp-data-table td{padding:8px 6px;border-bottom:1px solid var(--wp--preset--color--linie)}
.sp-table-caption,.sp-template h4.sp-table-caption{font-size:18px;font-weight:700;margin:24px 0 8px;background:none;color:var(--wp--preset--color--text);padding:0}
.sp-table-wrapper{overflow-x:auto}
.sp-inhalt .sp-event-logos,.sp-inhalt .sp-template-event-logos,.sp-inhalt .sp-template-event-venue,.sp-inhalt .sp-event-details{display:none}
.sp-inhalt .sp-template-event-results{margin-top:8px}

/* Fuss */
.foot{background:var(--wp--preset--color--text);color:var(--wp--preset--color--linie);margin-top:40px;padding:28px 0 20px}
.foot a{color:#fff}
.fuss-oben{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}
.fuss-oben>*{margin:0!important}
.flinks .wp-block-navigation__container{gap:6px 16px}
.flinks .wp-block-navigation-item__content{color:#fff;min-height:32px;display:flex;align-items:center}
.fuss-alle{margin-top:24px!important;border-top:1px solid rgba(255,255,255,.18);padding-top:16px}
.fuss-h{font-size:16px;margin:0 0 8px;color:#fff}
.fuss-alle .kb-verzeichnis summary{color:#fff}
.fuss-alle .kb-verzeichnis a{color:var(--wp--preset--color--linie)}
.fuss-unten{margin-top:16px!important;font-size:14px;color:var(--wp--custom--farbe--grau-zart)}
.fuss-unten p{margin:0}

/* Cookie-Banner (Cookie Notice): auf dem Handy über der unteren Leiste */
@media (max-width:640px){
	#cookie-notice,.cookie-notice-container,#cn-notice-bar,.cn-position-bottom{bottom:calc(64px + env(safe-area-inset-bottom))!important}
}

@media (max-width:900px){
	.top,.t-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
	body{padding-bottom:72px}
	.wrap{padding-left:16px;padding-right:16px}
	.ph h1,.ph .wp-block-post-title,.ph .wp-block-query-title{font-size:28px}
	.newsliste .wp-block-post-template{grid-template-columns:1fr!important}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.navzeile,.foot{display:none}}
/* Teamseite und Startseite: Spalten nie breiter als der Bildschirm (breite Tabellen scrollen in sich) */
.t-grid>*,.top>*{min-width:0}
.t-seite{grid-template-columns:minmax(0,1fr)}
.t-seite>*,.t-haupt>*{min-width:0;max-width:100%}

/*
 * Dokument-Seiten (inc/dokumente.php): Abschnitte als Karten, Dokumente und Links als ganze klickbare Zeilen.
 * Das Typ-Abzeichen trägt die Information (PDF, ZIP …), daher eigene, ruhige Farben je Typ.
 */
.dok-seite{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:8px}
.dok-intro>*:first-child{margin-top:0}
.dok-gruppe{background:#fff;border:1px solid var(--wp--preset--color--linie);border-radius:var(--kb-r);padding:18px 20px 12px}
.dok-gruppe>h2,.dok-gruppe>h3,.dok-gruppe>h4{margin:0 0 10px;font-size:19px;letter-spacing:-.01em}
.dok-gruppe>p{margin:6px 0 10px}
.dok-gruppe>.wp-block-group{margin:0}
.dok-gruppe ul:has(.dok-li){list-style:none;margin:0;padding:0}
.dok-li{margin:0}
.dok{display:grid;grid-template-columns:44px minmax(0,1fr) 36px;align-items:center;gap:14px;padding:10px 10px;margin:0 -10px;border-radius:var(--kb-r);color:var(--wp--preset--color--text)!important;text-decoration:none!important}
.dok+.dok,.dok-li+.dok-li,.dok-gruppe>.dok~.dok{border-top:1px solid var(--wp--preset--color--linie)}
.dok:hover{background:var(--wp--preset--color--hintergrund)}
.dok:hover .dok-aktion{background:var(--wp--preset--color--gruen-dunkel);color:#fff}
.dok-typ{width:44px;height:52px;border-radius:6px 14px 6px 6px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:7px;font-size:11px;font-weight:800;letter-spacing:.02em;color:#fff;background:var(--wp--preset--color--grau)}
.dok-pdf{background:var(--wp--custom--farbe--datei-pdf)}.dok-zip{background:var(--wp--custom--farbe--datei-zip)}.dok-doc{background:var(--wp--custom--farbe--datei-word)}.dok-xls{background:var(--wp--custom--farbe--datei-excel)}.dok-ppt{background:var(--wp--custom--farbe--datei-ppt)}
.dok-web{background:var(--wp--custom--farbe--gruen-hell);color:var(--wp--preset--color--gruen-dunkel);align-items:center;padding:0;border-radius:var(--kb-r);height:44px}
.dok-web svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dok-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.dok-titel{font-weight:600;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.dok-meta{font-size:13px;color:var(--wp--preset--color--grau)}
.dok-aktion{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--wp--custom--farbe--gruen-hell);color:var(--wp--preset--color--gruen-dunkel);transition:background-color .15s}
.dok-aktion svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.dok-leer{color:var(--wp--preset--color--grau);font-size:15px;margin:2px 0 8px!important}
/* Ausschreibung: Teile (Halle, Feld) als Band über die ganze Kartenbreite mit Symbol */
.dok-gruppe{--dg-x:20px}
.as-teil{margin:0 calc(-1 * var(--dg-x)) 6px;padding:0 var(--dg-x)}
.as-teil-t{display:flex;align-items:center;gap:10px;margin:8px calc(-1 * var(--dg-x)) 4px!important;padding:10px var(--dg-x);background:var(--wp--custom--farbe--gruen-hell);border-top:1px solid var(--wp--custom--farbe--gruen-zart);border-bottom:1px solid var(--wp--custom--farbe--gruen-zart);font-size:17px!important;font-weight:700;color:var(--wp--preset--color--gruen-dunkel)}
.as-teil-t svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.as-feld .as-teil-t{background:var(--wp--custom--farbe--gelb-hell);border-color:var(--wp--custom--farbe--gelb-rand);color:var(--wp--custom--farbe--gelb-text)}
.as-teil>.as-teil-t+.dok{border-top:0}
.as-teil+.as-teil .as-teil-t{margin-top:14px!important}
/* Anmeldeformular (Link auf eine Seite mit Ninja-Formular): Zeile mit Knopf «Anmelden», geschlossen grau ohne Link */
.dok-form{grid-template-columns:44px minmax(0,1fr) auto}
.dok-formular{background:var(--wp--preset--color--gruen-dunkel);color:#fff;align-items:center;padding:0;border-radius:var(--kb-r);height:44px}
.dok-formular svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Anmelde-Knopf = Bauteil Knopf (gestaltung.md), als span in der klickbaren Zeile */
.dok-knopf{display:inline-flex;align-items:center;min-height:var(--wp--custom--mass--hoehe);padding:0 16px;border:1px solid transparent;border-radius:var(--kb-r);background:var(--wp--preset--color--gruen-dunkel);color:#fff;font-weight:600;font-size:15px;white-space:nowrap}
.dok-form:hover .dok-knopf{background:var(--wp--custom--farbe--gruen-tief)}
.dok-zu .dok-formular{background:var(--wp--preset--color--linie);color:var(--wp--preset--color--grau)}
.dok-zu .dok-knopf{background:transparent;color:var(--wp--preset--color--grau);border:1px solid var(--wp--preset--color--linie);font-weight:600}
.dok-zu:hover{background:transparent}
.kbc-anmeldung-zu p{margin:0}.kbc-anmeldung-zu p+p{margin-top:8px}

/* Übersichtsseiten mit Unterseiten (z. B. Service): Kacheln statt Aufzählung */
.wp-block-post-content>.wp-block-page-list,.wp-block-post-content .wp-block-page-list{list-style:none;padding:0;margin:8px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.wp-block-page-list .wp-block-pages-list__item{margin:0}
.wp-block-page-list .wp-block-pages-list__item__link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:14px 16px;background:#fff;border:1px solid var(--wp--preset--color--linie);border-radius:var(--kb-r);color:var(--wp--preset--color--text)!important;font-weight:600;text-decoration:none!important}
.wp-block-page-list .wp-block-pages-list__item__link::after{content:"";flex:none;width:9px;height:9px;border-top:2px solid var(--wp--preset--color--gruen-dunkel);border-right:2px solid var(--wp--preset--color--gruen-dunkel);transform:rotate(45deg)}
.wp-block-page-list .wp-block-pages-list__item__link:hover{border-color:var(--wp--preset--color--gruen-dunkel);color:var(--wp--preset--color--gruen-dunkel)!important}
.wp-block-page-list .wp-block-navigation__submenu-container,.wp-block-page-list ul{display:none}
@media (max-width:640px){
	.dok-gruppe{padding:14px 14px 8px;--dg-x:14px}
	.dok{grid-template-columns:38px minmax(0,1fr) 32px;gap:12px}
	.dok-typ{width:38px;height:46px;font-size:10px}
	.dok-web,.dok-formular{height:38px}
	.dok-form{grid-template-columns:38px minmax(0,1fr) auto}
	.dok-knopf{padding:0 12px;font-size:14px}
}

/* Inhaltsseiten: Titel mittig über der (mittigen) Inhaltsspalte */
.seiten-titel{text-align:center}
.dok-intro.kurz{text-align:center;max-width:640px;margin:0 auto}

/* Service: Kacheln mit Beschreibung */
.service-kacheln{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.service-kacheln li{margin:0}
.service-kacheln a{position:relative;display:flex;flex-direction:column;gap:4px;height:100%;padding:16px 40px 16px 18px;background:#fff;border:1px solid var(--wp--preset--color--linie);border-radius:var(--kb-r);color:var(--wp--preset--color--text)!important;text-decoration:none!important}
.service-kacheln a::after{content:"";position:absolute;right:18px;top:50%;width:9px;height:9px;margin-top:-5px;border-top:2px solid var(--wp--preset--color--gruen-dunkel);border-right:2px solid var(--wp--preset--color--gruen-dunkel);transform:rotate(45deg)}
.service-kacheln a:hover{border-color:var(--wp--preset--color--gruen-dunkel)}
.sk-t{font-weight:700;font-size:17px}
.sk-d{font-size:14px;color:var(--wp--preset--color--grau);line-height:1.4}

/* Kontakte: jede Person als Karte */
.kontakte{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;margin-top:8px}
.kontakte>*{margin:0!important}
.kontakte>hr,.kontakte>p:empty{display:none}
.kontakte>.wp-block-columns{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:16px;background:#fff;border:1px solid var(--wp--preset--color--linie);border-radius:var(--kb-r);padding:16px 18px}
.kontakte .wp-block-column{flex:1 1 auto!important;min-width:0;margin:0!important}
.kontakte .wp-block-column:first-child{flex:0 0 84px!important}
.kontakte figure{margin:0!important}
.kontakte .wp-block-column img{width:84px!important;height:84px!important;object-fit:cover;border-radius:50%;display:block}
.kontakte h2{font-size:13px;font-weight:700;color:var(--wp--preset--color--gruen-dunkel);margin:0;letter-spacing:.01em}
.kontakte h3{font-size:18px;margin:2px 0 2px}
.kontakte h4{font-size:14px;font-weight:400;color:var(--wp--preset--color--grau);margin:0 0 4px;line-height:1.35}
.kontakte .wp-block-column p{margin:0;font-size:14px}
.kontakte .wp-block-buttons{margin-top:8px!important}
/* Kontakt-Knöpfe = Zweitknopf (gestaltung.md) */
.kontakte .wp-block-button__link{display:inline-flex;align-items:center;min-height:var(--wp--custom--mass--hoehe);background:#fff!important;color:var(--wp--preset--color--gruen-dunkel)!important;border:1px solid var(--wp--preset--color--gruen-dunkel)!important;border-radius:var(--kb-r)!important;padding:0 16px!important;font-size:15px;font-weight:600}
.kontakte .wp-block-button__link:hover{background:var(--wp--custom--farbe--gruen-hell)!important}
@media (max-width:640px){.kontakte{grid-template-columns:minmax(0,1fr)}.kontakte .wp-block-column:first-child{flex-basis:64px!important}.kontakte .wp-block-column img{width:64px!important;height:64px!important}}
/* Knöpfe im Seiteninhalt einheitlich (alte Inhalte haben eigene Farben wie #00a69c) */
/* = Bauteil Knopf (gestaltung.md) */
.wp-block-post-content .wp-block-button__link{display:inline-flex;align-items:center;min-height:var(--wp--custom--mass--hoehe);padding:0 16px!important;background:var(--wp--preset--color--gruen-dunkel)!important;color:#fff!important;border-radius:var(--kb-r)!important;font-size:15px;font-weight:600}
.wp-block-post-content .wp-block-button__link:hover{background:var(--wp--custom--farbe--gruen-tief)!important}
/* Anleitungen (Bildanleitungen nach Rolle): Rolle = Kartenkopf mit gelbem Strich wie die Rundenkarten, Kapitel = heller Balken mit grünem Strich */
.dok-seite:has(.anleitung-bild){gap:34px}
.dok-gruppe:has(.anleitung-bild){--ax:20px;padding-top:0;overflow:hidden}
.dok-gruppe:has(.anleitung-bild)>h2{margin:0 calc(-1 * var(--ax)) 16px;padding:18px var(--ax) 14px;color:var(--wp--preset--color--text);border-bottom:3px solid var(--wp--preset--color--gelb);font-size:24px}
.dok-gruppe:has(.anleitung-bild)>h3{margin:38px calc(-1 * var(--ax)) 14px;padding:13px var(--ax) 13px calc(var(--ax) - 4px);background:var(--wp--preset--color--hintergrund);border-top:1px solid var(--wp--preset--color--linie);border-bottom:1px solid var(--wp--preset--color--linie);border-left:4px solid var(--wp--preset--color--gruen-dunkel);font-size:20px}
.dok-gruppe:has(.anleitung-bild)>h2+h3{margin-top:-16px;border-top:0}
@media (max-width:640px){.dok-gruppe:has(.anleitung-bild){--ax:14px}.dok-gruppe:has(.anleitung-bild)>h2{font-size:22px}.dok-gruppe:has(.anleitung-bild)>h3{font-size:18px}}
.anleitung-bild{margin:14px 0 22px}
.anleitung-bild img{border:1px solid var(--wp--preset--color--linie);border-radius:var(--kb-r)}
.anleitung-bild figcaption{font-size:14px;color:var(--wp--preset--color--grau);margin-top:8px}
.anleitung-tabelle{overflow-x:auto;max-width:100%;margin:10px 0 14px}
/* = Bauteil Tabelle (gestaltung.md) */
.anleitung-tabelle table{border-collapse:collapse;font-size:15px;min-width:560px;width:100%}
.anleitung-tabelle th,.anleitung-tabelle td{border-bottom:1px solid var(--wp--preset--color--linie);padding:8px 6px;text-align:left;white-space:nowrap}
.anleitung-tabelle th{font-size:14px;font-weight:600;color:var(--wp--preset--color--grau);border-bottom-width:2px}
.dok-gruppe code{font-size:.9em;background:var(--wp--custom--farbe--flaeche);border-radius:4px;padding:1px 5px}
.anleitung-inhalt{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;text-align:left;margin:4px 0 6px}
.ai-rolle{background:#fff;border:1px solid var(--wp--preset--color--linie);border-radius:var(--kb-r);padding:16px 18px 12px}
.ai-titel{display:block;font-size:19px;font-weight:700;padding-bottom:8px;color:var(--wp--preset--color--gruen-dunkel)!important;text-decoration:none!important}
.ai-titel:hover,.ai-rolle li a:hover{color:var(--wp--preset--color--text)!important}
.ai-rolle ul{list-style:none;margin:0;padding:0}
.ai-rolle li{border-top:1px solid var(--wp--preset--color--linie)}
.ai-rolle li a{display:block;padding:8px 0;font-size:15px;text-decoration:none!important;color:var(--wp--preset--color--gruen-dunkel)!important}

.dok-gruppe:has(.anleitung-bild) h2,.dok-gruppe:has(.anleitung-bild) h3{scroll-margin-top:16px}
@media (max-width:900px){.anleitung-inhalt{grid-template-columns:minmax(0,1fr)}}

/* Anmeldeformulare (Ninja Forms): Felder wie der Rest der Seite, 16 px Schrift (kein Zoom auf dem iPhone) */
.nf-form-cont{--nf-r:var(--kb-r);max-width:640px}
.nf-form-cont .nf-field-container{margin-bottom:18px}
.nf-form-cont .nf-field-label label{font-weight:600;color:var(--wp--preset--color--text)}
.nf-form-cont .nf-field-description,.nf-form-cont .nf-before-form-content{color:var(--wp--preset--color--grau);font-size:.95rem}
.nf-form-cont input[type=text],.nf-form-cont input[type=email],.nf-form-cont input[type=tel],.nf-form-cont input[type=number],.nf-form-cont select,.nf-form-cont textarea{
 width:100%;min-height:var(--wp--custom--mass--hoehe);padding:10px 12px;font:inherit;font-size:16px;color:var(--wp--preset--color--text);background:var(--wp--preset--color--weiss);
 border:1px solid var(--wp--custom--farbe--grau-hell);border-radius:var(--nf-r);box-sizing:border-box}
.nf-form-cont textarea{min-height:120px}
.nf-form-cont input:focus,.nf-form-cont select:focus,.nf-form-cont textarea:focus{outline:2px solid var(--wp--preset--color--gruen);outline-offset:1px;border-color:var(--wp--preset--color--gruen)}
.nf-form-cont .list-radio-wrap li,.nf-form-cont .list-checkbox-wrap li{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.nf-form-cont input[type=radio],.nf-form-cont input[type=checkbox]{width:20px;height:20px;accent-color:var(--wp--preset--color--gruen);margin:0}
.nf-form-cont .list-radio-wrap li label,.nf-form-cont .list-checkbox-wrap li label{margin:0}
.nf-form-cont hr{border:0;border-top:1px solid var(--wp--preset--color--linie);margin:28px 0 8px}
/* = Bauteil Knopf (gestaltung.md) */
.nf-form-cont input[type=submit],.nf-form-cont input[type=button]{min-height:var(--wp--custom--mass--hoehe);padding:0 16px;font:inherit;font-size:15px;font-weight:600;color:var(--wp--preset--color--weiss);
 background:var(--wp--preset--color--gruen-dunkel);border:0;border-radius:var(--nf-r);cursor:pointer}
.nf-form-cont input[type=submit]:hover,.nf-form-cont input[type=button]:hover{background:var(--wp--custom--farbe--gruen-tief)}
.nf-form-cont .nf-error-msg,.nf-form-cont .ninja-forms-req-symbol{color:var(--wp--custom--farbe--rot)}
.nf-form-cont .nf-error .ninja-forms-field{border-color:var(--wp--custom--farbe--rot)}
/* = Bauteil Hinweis, grün (gestaltung.md) */
.nf-form-cont .nf-response-msg{padding:14px 16px;border-radius:var(--nf-r);background:#fff;border:1px solid var(--wp--preset--color--linie);border-left:4px solid var(--wp--preset--color--gruen)}

/* Cookie-Banner (Cookie Notice): Ja und Nein gleich gross, Datenschutz als Link. «html body» schlägt das spätere CSS des Plugins. */
html body #cookie-notice .cookie-notice-container,html body #cookie-notice .cookie-revoke-container{padding:14px 44px 14px 16px;font:inherit;font-size:.95rem;line-height:1.45}
html body #cookie-notice .cn-buttons-container{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
/* Ja = Knopf, Nein = Zweitknopf auf dunkler Fläche (gestaltung.md) */
html body #cookie-notice .cn-button{font:inherit;font-size:15px;font-weight:600;min-height:var(--wp--custom--mass--hoehe);padding:0 16px;margin:0;border-radius:var(--kb-r);border:1px solid transparent;letter-spacing:0;text-transform:none;box-shadow:none}
html body #cookie-notice #cn-accept-cookie{background:var(--wp--preset--color--gruen-dunkel)!important;color:var(--wp--preset--color--weiss)!important}
html body #cookie-notice #cn-refuse-cookie,html body #cookie-notice #cn-revoke-cookie{background:transparent!important;color:var(--wp--preset--color--weiss)!important;border-color:currentColor}
html body #cookie-notice #cn-more-info{background:none!important;color:var(--wp--preset--color--weiss)!important;font-weight:400;text-decoration:underline;padding:0 6px}
/* = Zweitknopf (gestaltung.md) */
.cn-revoke-inline{display:inline-block;min-height:var(--wp--custom--mass--hoehe);padding:0 16px;font:inherit;font-size:15px;font-weight:600;color:var(--wp--preset--color--gruen-dunkel);background:var(--wp--preset--color--weiss);border:1px solid var(--wp--preset--color--gruen-dunkel);border-radius:var(--kb-r);cursor:pointer}
.cn-revoke-inline:hover{background:var(--wp--custom--farbe--gruen-hell)}

/* Offline (Service Worker): Hinweis oben, mit Stand der gespeicherten Seite */
.kbc-offline{position:sticky;top:0;z-index:1000;padding:8px 16px;text-align:center;font-weight:700;font-size:.9rem;color:var(--wp--preset--color--text);background:var(--wp--custom--farbe--gelb-hell);border-bottom:2px solid var(--wp--preset--color--gelb)}
/* Platz für das Formular reservieren, bis Ninja Forms es aufgebaut hat (sonst springt die Seite) */
.nf-form-cont{min-height:100vh}

/* Frage «Mitteilungen bei neuen News» (korbball-core/assets/news.js): unten, über der Leiste auf dem Handy */
/* Frage «News-Mitteilungen» (korbball-core/assets/news.js): weisse Karte wie die Seite, grüne Glocke */
.kbc-news{position:fixed;z-index:990;left:12px;right:12px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:440px;margin:0 auto;padding:18px;display:grid;grid-template-columns:44px 1fr;gap:14px 14px;align-items:start;background:var(--wp--preset--color--weiss);color:var(--wp--preset--color--text);border:1px solid var(--wp--preset--color--linie);border-radius:var(--wp--custom--mass--rundung-schwebend);box-shadow:var(--wp--custom--mass--schatten);animation:kbc-news-ein .35s cubic-bezier(.2,.9,.3,1.2)}
.kbc-news-ico{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--wp--custom--farbe--gruen-hell);color:var(--wp--preset--color--gruen-dunkel);transform-origin:50% 10%;animation:kbc-glocke .9s .35s ease-in-out 1}
.kbc-news-txt p{margin:0}
.kbc-news-t{font-size:17px;font-weight:700;line-height:1.3}
.kbc-news-s{margin-top:4px!important;font-size:14px;line-height:1.4;color:var(--wp--preset--color--grau)}
.kbc-news-k{grid-column:1/-1;display:flex;gap:8px}
/* = Knopf und Zweitknopf (gestaltung.md) */
.kbc-news-k button{flex:1;min-height:var(--wp--custom--mass--hoehe);padding:0 16px;font:inherit;font-size:15px;font-weight:600;border-radius:var(--kb-r);border:1px solid transparent;background:var(--wp--preset--color--gruen-dunkel);color:var(--wp--preset--color--weiss);cursor:pointer}
.kbc-news-k button:hover{background:var(--wp--custom--farbe--gruen-tief)}
.kbc-news-k button:only-child{flex:0 1 auto}
.kbc-news-k button.zweit{background:var(--wp--preset--color--weiss);border-color:var(--wp--preset--color--gruen-dunkel);color:var(--wp--preset--color--gruen-dunkel)}
.kbc-news-k button.zweit:hover{background:var(--wp--custom--farbe--gruen-hell)}
@keyframes kbc-news-ein{from{opacity:0;transform:translateY(24px)}}
@keyframes kbc-glocke{20%{transform:rotate(14deg)}40%{transform:rotate(-12deg)}60%{transform:rotate(8deg)}80%{transform:rotate(-4deg)}}
.kbc-app .kbc-news-ico{animation:none} /* «App installieren»: gleiche Karte, Handy statt Glocke, ohne Schwingen */
@media (prefers-reduced-motion:reduce){.kbc-news,.kbc-news-ico{animation:none}}
@media (max-width:640px){.kbc-news{bottom:calc(80px + env(safe-area-inset-bottom))}}
/* Einwilligung (Cookies) im gleichen Kartenstil; Text etwas leichter, weil länger */
.kbc-news[hidden]{display:none}
.kbc-einwilligung .kbc-news-t{font-size:16px;font-weight:600;line-height:1.4}
.kbc-einwilligung .kbc-news-s a{color:var(--wp--preset--color--gruen-dunkel)}
/* Vorherige / nächste News unter dem Beitrag: zwei Karten, ganze Fläche klickbar */
.beitrag-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:32px;padding-top:24px;border-top:1px solid var(--wp--preset--color--linie)}
.beitrag-nav .wp-block-post-navigation-link{margin:0;min-width:0}
.beitrag-nav .post-navigation-link-next{grid-column:2;text-align:right}
.beitrag-nav a{display:flex;flex-direction:column;gap:4px;height:100%;box-sizing:border-box;padding:14px 16px;border:1px solid var(--wp--preset--color--linie);border-radius:var(--kb-r);background:var(--wp--preset--color--weiss);color:var(--wp--preset--color--text);text-decoration:none;transition:border-color .15s}
.beitrag-nav a:hover{border-color:var(--wp--preset--color--gruen-dunkel)}
.beitrag-nav .post-navigation-link__label{font-size:14px;color:var(--wp--preset--color--grau)}
.beitrag-nav .post-navigation-link-previous .post-navigation-link__label::before{content:"← "}
.beitrag-nav .post-navigation-link-next .post-navigation-link__label::after{content:" →"}
.beitrag-nav .post-navigation-link__title{font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.beitrag-nav a:hover .post-navigation-link__title{color:var(--wp--preset--color--gruen-dunkel)}
@media (max-width:640px){.beitrag-nav{grid-template-columns:1fr}.beitrag-nav .post-navigation-link-next{grid-column:1}}
/* Kategorien unter dem Beitrag = Bauteil Etikett .pille (gestaltung.md), Ausgabe von WordPress */
.kategorien{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.kategorien .wp-block-post-terms__separator{display:none}
.kategorien a{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:var(--wp--custom--mass--rundung-pille);background:var(--wp--custom--farbe--gruen-hell);color:var(--wp--preset--color--gruen-dunkel);font-size:14px;font-weight:600;text-decoration:none;transition:background-color .15s,color .15s}
.kategorien a:hover{background:var(--wp--preset--color--gruen-dunkel);color:var(--wp--preset--color--weiss)}
