/*
Theme Name: Beziehungs-ABC
Theme URI: https://beziehungs-abc.de
Author: Peter Michalik
Description: Eigenes Block-Theme für das Beziehungs-ABC. Weisser Grund, Schriften Manrope und Figtree (lokal), Akzente in den Logofarben. Bausteine für Ratgeber, Lexikon, Vergleich, Anbieter-Porträt und Videokurs.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: beziehungs-abc
*/

:root {
	--bab-tinte: #1E2640;
	--bab-grau: #5B6275;
	--bab-linie: #E7E9F0;
	--bab-feld: #F3F4F8;
	--bab-orange: #FF9500;
	--bab-rot: #960A00;
	--bab-blau: #005496;
	--bab-pfirsich: #FFF1DC;
	--bab-hellblau: #E6EFF8;
	--bab-sonne: #FFF4D9;
	--bab-rosa: #FBEDEC;
	--bab-nacht: #2A2142;
	--bab-titel: Manrope, system-ui, sans-serif;
	--bab-radius: 20px;
	--bab-schatten: 0 18px 44px #1E26401a;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
h1 em, h2 em { font-style: normal; color: var(--bab-blau); }
:target { scroll-margin-top: 24px; }
.screen-reader-text:focus { clip: auto; }

/* ---------- Kopf ---------- */
.bab-transparenz { background: var(--bab-nacht); color: #E9E3F7; font-size: 13px; text-align: center; padding: 7px 16px; margin: 0; }
.bab-transparenz a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.bab-kopf { border-bottom: 1px solid var(--bab-linie); background: #fff; }
.bab-kopf > .wp-block-group { min-height: 76px; }
.bab-logo.wp-block-site-title a,
.bab-logo .wp-block-site-title a { display: inline-block; padding-left: 88px; background: url(assets/abc-kacheln.svg) left center / 78px 24px no-repeat; text-decoration: none; color: var(--bab-tinte); white-space: nowrap; line-height: 28px; }
.bab-kopf .wp-block-navigation { white-space: nowrap; }
.bab-kopf .wp-block-navigation a { text-decoration: none; }
.bab-kopf .wp-block-navigation a:hover { color: var(--bab-blau); }
.bab-kopf .wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--bab-linie) !important; border-radius: 14px; padding: 8px !important; box-shadow: var(--bab-schatten); min-width: 260px !important; }
.bab-kopf .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 8px 12px !important; border-radius: 8px; }
.bab-kopf .wp-block-navigation .wp-block-navigation__submenu-container a:hover { background: var(--bab-feld); }
.bab-kopf .current-menu-item > a, .bab-kopf .current-menu-ancestor > a { color: var(--bab-blau); }
.bab-kopf .wp-block-search__button { border-radius: 50% !important; width: 40px; height: 40px; padding: 0 !important; background: #fff !important; border: 1.5px solid var(--bab-linie) !important; color: var(--bab-tinte) !important; display: grid; place-items: center; }
.bab-kopf .wp-block-search.wp-block-search__searchfield-hidden .wp-block-search__input { display: none; }
.bab-kopf .wp-block-search__input { border-radius: 12px !important; border: 1.5px solid var(--bab-linie) !important; }
@media (max-width: 1100px) {
	.bab-kopf .bab-kopf-suche { display: none; }
}
@media (max-width: 600px) {
	.bab-kopf .bab-kopf-check { display: none; }
	.bab-logo.wp-block-site-title { font-size: 1.15rem !important; }
	.bab-logo.wp-block-site-title a { padding-left: 74px; background-size: 64px 20px; }
	.bab-transparenz { font-size: 11px; }
}

/* ---------- Fuss ---------- */
.bab-fuss { background: var(--bab-feld); border-top: 1px solid var(--bab-linie); }
.bab-fuss a { color: var(--bab-tinte); text-decoration: none; }
.bab-fuss a:hover { color: var(--bab-blau); text-decoration: underline; }
.bab-fuss ul { list-style: none; padding: 0; margin: 0; }
.bab-fuss li { padding: 4px 0; }
.bab-fuss h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bab-grau); }

/* ---------- Allgemeine Bausteine ---------- */
.is-style-kicker, .bab-kicker { font-size: 14px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bab-rot); }
.bab-chip, .is-style-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bab-hellblau); color: var(--bab-blau); text-decoration: none; width: fit-content; }
.bab-chip a { color: inherit; text-decoration: none; }
.wp-block-post-terms.bab-chip a { color: inherit; text-decoration: none; }
.bab-lead { font-size: 1.25rem; color: var(--bab-grau); }
.has-grau-color a { color: inherit; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid var(--bab-tinte); color: var(--bab-tinte); background: transparent; }
.wp-block-button__link { white-space: nowrap; text-decoration: none; }
.wp-block-image img { border-radius: 18px; }

/* Suchfeld gross */
.bab-suche .wp-block-search__inside-wrapper { background: #fff; border: 1.5px solid var(--bab-linie) !important; border-radius: 16px; padding: 7px 7px 7px 16px !important; box-shadow: 0 8px 24px #1E264014; max-width: 580px; }
.bab-suche .wp-block-search__input { border: 0 !important; font-size: 17px; background: transparent; outline: none; }
.bab-suche .wp-block-search__button { background: var(--bab-orange); color: var(--bab-tinte); border: 0; border-radius: 12px; font-weight: 600; padding: 10px 20px; margin-left: 8px; }

/* Oft gesucht */
.bab-oft { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--bab-grau); }
.bab-oft a { background: #fff; border: 1px solid var(--bab-linie); padding: 4px 12px; border-radius: 999px; color: var(--bab-tinte); text-decoration: none; }
.bab-oft a:hover { border-color: var(--bab-blau); color: var(--bab-blau); }

/* Startseite: Karten rechts */
.bab-kartenstapel { position: relative; min-height: 430px; }
.bab-lexkarte { position: absolute; background: #fff; border-radius: 22px; box-shadow: 0 20px 50px #1E26401f; border: 1px solid var(--bab-linie); padding: 26px 30px; width: min(380px, 90%); }
.bab-lexkarte .bab-gross { font-family: var(--bab-titel); font-size: 84px; line-height: 1; color: var(--bab-orange); font-weight: 700; margin: 0; }
.bab-lexkarte h3 { margin: 8px 0 6px; }
.bab-lexkarte p { color: var(--bab-grau); margin: 0; }
.bab-lexkarte .bab-mehr a { font-weight: 600; color: var(--bab-blau); text-decoration: none; }
.bab-lexkarte.k1 { right: 0; top: 0; transform: rotate(3deg); background: var(--bab-hellblau); border: 0; width: min(330px, 85%); }
.bab-lexkarte.k2 { left: 10px; top: 215px; transform: rotate(-3deg); }
.bab-lexkarte.k2 .bab-gross { font-size: 70px; }
@media (max-width: 781px) {
	.bab-kartenstapel { min-height: 0; display: grid; gap: 16px; }
	.bab-lexkarte, .bab-lexkarte.k1, .bab-lexkarte.k2 { position: static; transform: none; width: auto; }
}

/* A-Z-Leiste */
.bab-az { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.bab-az a, .bab-az span { min-width: 33px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--bab-feld); color: var(--bab-tinte); text-decoration: none; padding: 0 6px; }
.bab-az a:hover { background: var(--bab-orange); }
.bab-az span { color: #B9BECC; }
.bab-az-leiste { background: #fff; border: 1px solid var(--bab-linie); border-radius: 18px; padding: 18px 26px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bab-az-leiste .bab-az-titel { font-family: var(--bab-titel); font-weight: 700; font-size: 18px; white-space: nowrap; margin: 0; }
.bab-az-gross a, .bab-az-gross span { width: 42px; height: 50px; border-radius: 12px; background: #fff; border: 1px solid var(--bab-linie); font-family: var(--bab-titel); font-size: 22px; }
.bab-az-gross a:hover { background: var(--bab-orange); border-color: var(--bab-orange); }
.bab-lexgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 26px; }
.bab-lexspalte { background: #fff; border: 1px solid var(--bab-linie); border-radius: 20px; padding: 20px 24px; }
.bab-lexspalte .bab-L { font-family: var(--bab-titel); font-size: 44px; font-weight: 700; color: var(--bab-orange); line-height: 1; margin-bottom: 8px; }
.bab-lexspalte a { display: block; padding: 6px 0; border-top: 1px solid var(--bab-linie); color: var(--bab-tinte); text-decoration: none; font-size: 15.5px; }
.bab-lexspalte a:hover { color: var(--bab-blau); }
.bab-lexspalte a small { color: var(--bab-grau); }
.bab-leer { color: var(--bab-grau); }

/* Einstiege (vier Kacheln) */
.bab-welten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bab-welt { border-radius: 22px; padding: 28px 26px !important; min-height: 300px; }
.bab-welt .bab-ico { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: grid; place-items: center; font-size: 26px; margin: 0 0 18px; }
.bab-welt h3 { font-size: 1.5rem; margin: 0 0 8px; }
.bab-welt p { font-size: 15px; color: var(--bab-grau); }
.bab-welt ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 15px; font-weight: 500; }
.bab-welt li { padding: 7px 0; border-top: 1px solid #0000000f; }
.bab-welt li a { color: var(--bab-tinte); text-decoration: none; }
.bab-welt li a::after { content: " →"; color: var(--bab-blau); }
.bab-welt li a:hover { color: var(--bab-blau); }
.bab-w1 { background: var(--bab-pfirsich); } .bab-w2 { background: var(--bab-hellblau); } .bab-w3 { background: #EEF0F4; } .bab-w4 { background: var(--bab-rosa); }
@media (max-width: 1000px) { .bab-welten { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bab-welten { grid-template-columns: 1fr; } .bab-welt { min-height: 0; } }

/* Beliebte Vergleiche */
.bab-vergleiche { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bab-vergleich { background: #fff; border: 1px solid var(--bab-linie); border-radius: 18px; padding: 20px 22px; }
.bab-vergleich a { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--bab-tinte); text-decoration: none; }
.bab-vergleich b { font-family: var(--bab-titel); font-size: 19px; display: block; }
.bab-vergleich span { font-size: 13px; color: var(--bab-grau); }
.bab-vergleich i { font-style: normal; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bab-feld); display: grid; place-items: center; color: var(--bab-blau); font-weight: 700; }
.bab-vergleich:hover { border-color: var(--bab-blau); }
@media (max-width: 1000px) { .bab-vergleiche { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bab-vergleiche { grid-template-columns: 1fr; } }

/* Dunkles Band (Gratis-Check, Kurs) */
.is-style-dunkles-band, .bab-band { background: var(--bab-nacht); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 46px) clamp(22px, 4.5vw, 56px) !important; }
.is-style-dunkles-band :is(h2, h3), .bab-band :is(h2, h3) { color: #fff; }
.is-style-dunkles-band p, .bab-band p { color: #D7D0E8; }
.is-style-dunkles-band .is-style-kicker, .bab-band .is-style-kicker { color: #FFB547; }
.is-style-dunkles-band a:not(.wp-block-button__link), .bab-band a:not(.wp-block-button__link) { color: #fff; }
.bab-band .is-style-outline > .wp-block-button__link { color: #fff; border-color: #ffffff88; }
.bab-weisskarte { background: #fff; color: var(--bab-tinte); border-radius: 20px; padding: 26px !important; }
.bab-weisskarte p { color: var(--bab-grau) !important; }
.bab-weisskarte .wp-block-button { width: 100%; }
.bab-weisskarte .wp-block-button__link { width: 100%; justify-content: center; }
.bab-weisskarte .is-style-outline > .wp-block-button__link { color: var(--bab-tinte) !important; border-color: var(--bab-tinte) !important; }

/* Beitragskarten */
.bab-karten .wp-block-post { list-style: none; }
.bab-karten .wp-block-post-featured-image { margin: 0 0 14px; }
.bab-karten .wp-block-post-featured-image img { border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; }
.bab-karten .bab-ohnebild { height: 170px; border-radius: 18px; background: linear-gradient(135deg, #FFD9A0, #FF9500); margin-bottom: 14px; }
.bab-karten .wp-block-post:nth-child(3n+2) .bab-ohnebild { background: linear-gradient(135deg, #BFD6EC, #005496); }
.bab-karten .wp-block-post:nth-child(3n+3) .bab-ohnebild { background: linear-gradient(135deg, #F2C4BF, #960A00); }
.bab-karten .wp-block-post-terms { font-size: 13px; font-weight: 600; }
.bab-karten .wp-block-post-terms a { color: var(--bab-rot); text-decoration: none; }
.bab-karten .wp-block-post-title { font-size: 1.375rem; margin-top: 4px; }
.bab-karten .wp-block-post-title a { color: var(--bab-tinte); text-decoration: none; }
.bab-karten .wp-block-post-title a:hover { color: var(--bab-blau); }
.bab-karten .wp-block-post-excerpt { color: var(--bab-grau); font-size: 15px; }

/* Autorbox */
.bab-autor { display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--bab-linie); border-radius: 22px; padding: 22px 28px !important; }
.bab-avatar { width: 78px; height: 78px; border-radius: 50%; background: linear-gradient(135deg, var(--bab-hellblau), var(--bab-pfirsich)); display: grid; place-items: center; font-family: var(--bab-titel); font-size: 26px; font-weight: 700; color: var(--bab-blau); flex: none; overflow: hidden; }
.bab-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bab-autor p { color: var(--bab-grau); margin: 4px 0 0; }
.bab-autor b, .bab-autor strong { font-family: var(--bab-titel); font-size: 20px; color: var(--bab-tinte); }

/* ---------- Artikel (Ratgeber, Lexikon) ---------- */
.bab-brotkrumen { font-size: 14px; color: var(--bab-grau); }
.bab-brotkrumen a { color: var(--bab-grau); text-decoration: none; }
.bab-brotkrumen a:hover { color: var(--bab-blau); text-decoration: underline; }
.bab-brotkrumen span[aria-hidden] { margin: 0 6px; }
.bab-artikel { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.bab-artikel > * { margin-block-start: 0 !important; }
.bab-seitenleiste { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1000px) {
	.bab-artikel { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.bab-seitenleiste { position: static; order: -1; }
	.bab-seitenleiste .bab-nur-gross { display: none; }
}
.bab-autorzeile { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--bab-grau); }
.bab-autorzeile .bab-avatar { width: 46px; height: 46px; font-size: 16px; }
.bab-autorzeile b { color: var(--bab-tinte); }

.bab-inhalt { background: #fff; border: 1px solid var(--bab-linie); border-radius: 20px; padding: 22px 24px; }
.bab-inhalt h4, .bab-kasten-titel { font-family: inherit; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bab-grau); margin: 0 0 10px; font-weight: 600; }
.bab-inhalt ol { margin: 0 0 0 18px; padding: 0; font-size: 15px; }
.bab-inhalt li { padding: 7px 0; border-bottom: 1px solid var(--bab-linie); }
.bab-inhalt li:last-child { border-bottom: 0; }
.bab-inhalt a { color: var(--bab-tinte); text-decoration: none; }
.bab-inhalt a:hover, .bab-inhalt li.ist-aktiv a { color: var(--bab-blau); font-weight: 600; }
.bab-inhalt details summary { cursor: pointer; font-weight: 600; list-style: none; }
.bab-hinweisbox { background: var(--bab-hellblau); border-radius: 16px; padding: 16px 18px !important; font-size: 14.5px; }
.bab-hinweisbox b, .bab-hinweisbox strong { font-family: var(--bab-titel); font-size: 17px; display: block; margin-bottom: 4px; }
.bab-hinweisbox a { color: var(--bab-blau); font-weight: 600; }

/* Fliesstext */
.bab-text { font-size: var(--wp--preset--font-size--lesen); line-height: 1.72; }
.bab-text > h2 { margin-top: 2.6rem; margin-bottom: .9rem; }
.bab-text > h3 { margin-top: 2rem; }
.bab-text > p, .bab-text > ul, .bab-text > ol { margin-bottom: 1.1rem; }
.bab-text a { text-underline-offset: 3px; }
.is-style-szene { font-family: var(--bab-titel); font-size: 1.375rem !important; line-height: 1.55 !important; font-weight: 500; color: #3A4058; }

/* Das Wichtigste in Kürze */
.is-style-kurzfassung { background: var(--bab-pfirsich); border-radius: var(--bab-radius); padding: 24px 28px !important; border-left: 6px solid var(--bab-orange); }
.is-style-kurzfassung :is(h2, h3, h4) { font-size: 1.3rem; margin: 0 0 10px; letter-spacing: -.01em; }
.is-style-kurzfassung ul { margin: 0; padding-left: 20px; }
.is-style-kurzfassung li { margin: 7px 0; font-size: 1.03rem; line-height: 1.6; }

/* Studienbox */
.is-style-studie { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; background: #fff; border: 1px solid var(--bab-linie); border-radius: 18px; padding: 20px 24px !important; }
.is-style-studie::before { content: "§"; width: 46px; height: 46px; border-radius: 12px; background: var(--bab-hellblau); color: var(--bab-blau); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 20px; grid-row: 1 / span 6; }
.is-style-studie > * { margin: 0 !important; grid-column: 2; }
.is-style-studie p { font-size: 1rem; line-height: 1.6; }
.is-style-studie p + p { margin-top: 6px !important; font-size: 13px; font-weight: 600; color: var(--bab-blau); }
.is-style-studie p + p a { color: var(--bab-blau); }
.is-style-studie > div, .is-style-studie > .wp-block-group__inner-container { display: block; }

/* Schritte */
ol.is-style-schritte { list-style: none; counter-reset: schritt; padding: 0 !important; margin: 0; background: #fff; border-radius: var(--bab-radius); border: 1px solid var(--bab-linie); overflow: hidden; }
ol.is-style-schritte > li { counter-increment: schritt; display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--bab-linie); font-size: 1rem; line-height: 1.55; color: var(--bab-grau); }
ol.is-style-schritte > li:last-child { border-bottom: 0; }
ol.is-style-schritte > li::before { content: counter(schritt); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--bab-tinte); color: #fff; display: grid; place-items: center; font-weight: 700; }
ol.is-style-schritte > li strong:first-child { display: block; font-family: var(--bab-titel); font-size: 1.1875rem; color: var(--bab-tinte); letter-spacing: -.01em; }

/* Warnbox */
.is-style-warnung { background: #FCEBEA; border: 2px solid var(--bab-rot); border-radius: var(--bab-radius); padding: 22px 26px !important; }
.is-style-warnung :is(h2, h3, h4) { font-family: inherit; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--bab-rot); margin: 0 0 6px; }
.is-style-warnung p { margin: 0; font-size: 1.0625rem; }

/* Profi-Tipp */
.is-style-tipp { background: var(--bab-sonne); border-radius: var(--bab-radius); padding: 22px 26px 22px 70px !important; position: relative; }
.is-style-tipp::before { content: "💡"; position: absolute; left: 24px; top: 20px; font-size: 26px; }
.is-style-tipp :is(h2, h3, h4) { font-size: 1.25rem; margin: 0 0 4px; }
.is-style-tipp p { margin: 0; font-size: 1.03rem; }

/* Vorher-Nachher-Tabelle */
.wp-block-table.is-style-vorher-nachher { margin: 0; }
.wp-block-table.is-style-vorher-nachher table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--bab-linie) !important; border-radius: 18px; overflow: hidden; font-size: 1rem; }
.wp-block-table.is-style-vorher-nachher :is(th, td) { border: 0; padding: 14px 20px; text-align: left; vertical-align: top; }
.wp-block-table.is-style-vorher-nachher thead { border: 0; }
.wp-block-table.is-style-vorher-nachher th { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.wp-block-table.is-style-vorher-nachher th:first-child { background: var(--bab-feld); color: var(--bab-grau); }
.wp-block-table.is-style-vorher-nachher th:last-child { background: var(--bab-tinte); color: #fff; }
.wp-block-table.is-style-vorher-nachher td { border-top: 1px solid var(--bab-linie); }
.wp-block-table.is-style-vorher-nachher td:first-child { color: var(--bab-grau); text-decoration: line-through; text-decoration-color: #960A0066; }
.wp-block-table.is-style-vorher-nachher td:last-child { font-weight: 500; }
@media (max-width: 600px) { .wp-block-table.is-style-vorher-nachher :is(th, td) { padding: 10px 12px; font-size: 14px; } }

/* Selbsttest */
.is-style-selbsttest { background: #fff; border: 1px solid var(--bab-linie); border-radius: 22px; padding: 26px 30px !important; }
.is-style-selbsttest :is(h2, h3) { font-size: 1.5rem; margin: 0; }
.is-style-selbsttest > p:first-of-type { color: var(--bab-grau); font-size: 15px; margin: 4px 0 6px; }
.is-style-selbsttest ul { list-style: none; padding: 0; margin: 0; }
.is-style-selbsttest ul li { display: flex; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--bab-linie); font-size: 1rem; cursor: pointer; user-select: none; }
.is-style-selbsttest ul li::before { content: ""; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #C9CEDA; flex: none; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.is-style-selbsttest ul li.ist-an::before { content: "✓"; background: var(--bab-orange); border-color: var(--bab-orange); color: var(--bab-tinte); }
.is-style-selbsttest .bab-auswertung { display: none; margin-top: 12px; background: var(--bab-hellblau); border-radius: 14px; padding: 12px 16px; font-size: 15px; color: var(--bab-blau); font-weight: 500; }
.is-style-selbsttest .bab-auswertung.ist-sichtbar { display: block; }
.is-style-selbsttest .bab-zaehler { font-size: 13px; color: var(--bab-grau); margin-top: 10px; }

/* Nächster Schritt */
.is-style-naechster-schritt { background: var(--bab-nacht); color: #fff; border-radius: 22px; padding: 26px 30px !important; }
.is-style-naechster-schritt :is(h2, h3) { color: #fff; font-size: 1.5rem; margin: 6px 0; }
.is-style-naechster-schritt p { color: #D7D0E8; font-size: 15.5px; margin: 0; }
.is-style-naechster-schritt .is-style-kicker { color: #FFB547; font-size: 12px !important; }
.is-style-naechster-schritt .wp-block-buttons { margin-top: 14px; }

/* Begriffe als Chips */
ul.is-style-begriffe { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.is-style-begriffe li a, ul.is-style-begriffe li { font-size: 14px; font-weight: 600; }
ul.is-style-begriffe li a { display: inline-block; background: var(--bab-hellblau); color: var(--bab-blau); padding: 6px 14px; border-radius: 10px; text-decoration: none; }
ul.is-style-begriffe li a::before { content: "→ "; }
ul.is-style-begriffe li a:hover { background: var(--bab-blau); color: #fff; }

/* Anzeichen (zweispaltig) */
ul.is-style-anzeichen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
ul.is-style-anzeichen li { background: #fff; border: 1px solid var(--bab-linie); border-radius: 14px; padding: 14px 16px; font-size: 15.5px; display: flex; gap: 10px; line-height: 1.5; }
ul.is-style-anzeichen li::before { content: "!"; width: 24px; height: 24px; border-radius: 50%; background: var(--bab-pfirsich); color: var(--bab-rot); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 14px; }
@media (max-width: 600px) { ul.is-style-anzeichen { grid-template-columns: 1fr; } }

/* Häkchen-Liste */
ul.is-style-haekchen { list-style: none; padding: 0; }
ul.is-style-haekchen li { padding: 3px 0 3px 26px; position: relative; }
ul.is-style-haekchen li::before { content: "✓"; position: absolute; left: 0; color: var(--bab-blau); font-weight: 700; }

/* Kurz erklärt (Lexikon-Definition) */
.is-style-kurz-erklaert { background: #fff; border-radius: 22px; border: 1px solid var(--bab-linie); padding: 30px 30px 26px !important; position: relative; margin-top: 2rem !important; }
.is-style-kurz-erklaert::before { content: "Kurz erklärt"; position: absolute; top: -13px; left: 26px; background: var(--bab-tinte); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 7px; }
.is-style-kurz-erklaert p { font-family: var(--bab-titel); font-size: 1.4rem; line-height: 1.45; font-weight: 500; margin: 0; }

/* Häufige Fragen */
.wp-block-details { border-bottom: 1px solid var(--bab-linie); padding: 14px 0; }
.wp-block-details summary { font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--bab-orange); font-size: 24px; line-height: 1; font-weight: 600; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { color: var(--bab-grau); margin-top: 10px; font-size: 1rem; }
.bab-faq { border-top: 1px solid var(--bab-linie); }

.bab-quellen { font-size: 14px; color: var(--bab-grau); }
.bab-quellen :is(h2, h3, h4) { font-size: 1rem; color: var(--bab-tinte); margin: 0 0 6px; }
.bab-quellen ol, .bab-quellen ul { padding-left: 18px; margin: 0; }

/* ---------- Vergleich und Porträt ---------- */
.is-style-anzeige-hinweis, .bab-anzeige { font-size: 13px !important; color: var(--bab-grau); background: var(--bab-feld); border-radius: 10px; padding: 8px 14px !important; display: inline-block; }
.bab-haekchen-reihe { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 500; list-style: none; padding: 0; margin: 0; }
.bab-haekchen-reihe li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bab-pfirsich); color: var(--bab-rot); font-size: 12px; margin-right: 6px; font-weight: 700; }
.bab-pruefer { display: inline-flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--bab-linie); border-radius: 14px; padding: 8px 16px 8px 8px !important; font-size: 14px; }
.bab-pruefer .bab-avatar { width: 38px; height: 38px; font-size: 13px; }
.bab-pruefer p { margin: 0; }

.bab-anbieter { display: grid; grid-template-columns: 150px 1fr 230px; gap: 28px; background: #fff; border: 1px solid var(--bab-linie); border-radius: 22px; padding: 26px !important; position: relative; }
.bab-anbieter.ist-top { border: 2px solid var(--bab-orange); }
.bab-rang { position: absolute; top: -12px; left: 22px; background: var(--bab-orange); color: var(--bab-tinte); font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 8px; margin: 0 !important; }
.bab-marke { border-radius: 14px; background: var(--bab-feld); display: grid; place-items: center; font-family: var(--bab-titel); font-size: 22px; font-weight: 700; min-height: 84px; margin: 0; text-align: center; padding: 8px; }
.bab-marke img { max-height: 60px; width: auto; }
.bab-note { text-align: center; margin: 10px 0 0 !important; }
.bab-note b, .bab-note strong { font-family: var(--bab-titel); font-size: 30px; display: block; line-height: 1.1; }
.bab-note small { font-size: 12px; color: var(--bab-grau); }
.bab-anbieter h3 { font-size: 1.5rem; margin: 0; }
.bab-anbieter p { color: var(--bab-grau); font-size: 15.5px; margin: 6px 0 10px; }
.bab-fakten { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; list-style: none; padding: 0; margin: 0; }
.bab-fakten li { background: var(--bab-hellblau); color: var(--bab-blau); padding: 4px 10px; border-radius: 8px; }
.bab-preis { border-left: 1px solid var(--bab-linie); padding-left: 24px !important; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bab-preis > * { margin: 0 !important; }
.bab-preis small, .bab-preis .bab-klein { font-size: 12px; color: var(--bab-grau); text-transform: uppercase; letter-spacing: .08em; }
.bab-preis b, .bab-preis strong { font-family: var(--bab-titel); font-size: 30px; }
.bab-preis .wp-block-button, .bab-preis .wp-block-button__link { width: 100%; justify-content: center; text-align: center; }
.bab-preis .bab-anzeige-wort { font-size: 11px !important; color: var(--bab-grau); text-align: center; }
@media (max-width: 860px) {
	.bab-anbieter { grid-template-columns: 1fr; gap: 14px; }
	.bab-preis { border-left: 0; border-top: 1px solid var(--bab-linie); padding: 16px 0 0 !important; }
}
.bab-passt { background: var(--bab-hellblau); border-radius: var(--bab-radius); padding: 22px 26px !important; }
.bab-passt h3 { font-size: 1.375rem; margin: 0 0 8px; }
.bab-balken { list-style: none; padding: 0; margin: 0; }
.bab-balken li { display: grid; grid-template-columns: 160px 1fr 40px; gap: 12px; align-items: center; font-size: 15px; padding: 6px 0; }
.bab-balken .bab-bar { height: 10px; border-radius: 5px; background: #ECEEF3; overflow: hidden; }
.bab-balken .bab-bar i { display: block; height: 100%; background: var(--bab-blau); border-radius: 5px; }
.bab-hinweis-grundlage { font-size: 14px; color: var(--bab-grau); border-top: 1px solid var(--bab-linie); padding-top: 14px; }

/* ---------- Kurs ---------- */
.bab-kurskopf { background: var(--bab-nacht); color: #fff; }
.bab-kurskopf h1 { color: #fff; }
.bab-kurskopf p { color: #D7D0E8; }
.bab-kurskopf .is-style-kicker { color: #FFB547; }
.bab-kurskopf .is-style-outline > .wp-block-button__link { color: #fff; border-color: #ffffff88; }
.bab-video { aspect-ratio: 16 / 10; border-radius: 24px; background: linear-gradient(135deg, #FF9500, #005496); display: grid; place-items: center; }
.bab-video::before { content: "▶"; width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 28px; color: var(--bab-blau); }
.bab-module { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bab-modul { background: #fff; border-radius: 20px; padding: 22px !important; box-shadow: 0 14px 36px #1E26401a; }
.bab-modul .bab-nr { font-family: var(--bab-titel); font-size: 38px; color: var(--bab-orange); line-height: 1; font-weight: 700; margin: 0; }
.bab-modul h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.bab-modul p { font-size: 14.5px; color: var(--bab-grau); margin: 0; }
.bab-modul .bab-dauer { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--bab-blau); }
@media (max-width: 1000px) { .bab-module { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bab-module { grid-template-columns: 1fr; } }

/* Seitenkopf für Übersichten */
.bab-seitenkopf h1 { margin: 12px 0 8px; }
.bab-seitenkopf p { color: var(--bab-grau); font-size: 1.125rem; max-width: 640px; }
.wp-block-query-pagination { font-weight: 600; }
.wp-block-query-pagination a { text-decoration: none; }

/* Suche / 404 */
.bab-zentriert { text-align: center; }

/* Bearbeiter: Selbsttest-Auswertungen sichtbar machen */
.editor-styles-wrapper .is-style-selbsttest .bab-auswertung { display: block; opacity: .7; }
.editor-styles-wrapper .is-style-selbsttest ul li { cursor: text; }

/* Raster: Abstände der Kinder vom Raster, nicht vom Blockabstand */
:is(.bab-welten, .bab-vergleiche, .bab-module, .bab-lexgitter, .bab-anbieter, .bab-kartenstapel) > * { margin-block: 0 !important; }
.bab-welt > *, .bab-lexkarte > * { margin-block-start: 0; }
.bab-welt > * + *, .bab-lexkarte > * + * { margin-block-start: 6px; }
.bab-autor > .bab-avatar, .bab-pruefer > .bab-avatar { margin: 0; }
.bab-klein { font-size: 12px !important; color: var(--bab-grau); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 0; }
.bab-autor .has-titel-m-font-size { margin: 0; font-family: var(--bab-titel); }
.bab-welt h3 a { color: var(--bab-tinte); text-decoration: none; }
.bab-welt h3 a:hover { color: var(--bab-blau); }
.bab-az-block { margin: 0; }
.bab-hinweisbox p { margin: 0; }
.bab-seitenleiste .bab-az a, .bab-seitenleiste .bab-az span { min-width: 30px; height: 32px; font-size: 14px; }
.bab-text > .is-style-kurzfassung:first-child { margin-top: 0; }
.bab-text > :is(.is-style-studie, .is-style-schritte, .is-style-warnung, .wp-block-table, .is-style-tipp, .is-style-selbsttest, .is-style-naechster-schritt) { margin-top: 1.4rem; margin-bottom: 1.6rem; }

/* Korrekturen nach der ersten Probe */
.bab-az a, .bab-az span { box-sizing: border-box; }
.bab-az li { margin: 0; padding: 0; border: 0 !important; }
.bab-az-leiste { flex-wrap: nowrap; }
.bab-az-leiste .bab-az-block { flex: 1; min-width: 0; }
@media (max-width: 1100px) { .bab-az-leiste { flex-wrap: wrap; } }
.bab-pruefer { width: fit-content; max-width: 100%; }
.bab-anbieter .bab-rang { color: var(--bab-tinte); }
.bab-anbieter :is(.bab-preis, .bab-note) strong, .bab-anbieter .bab-marke { color: var(--bab-tinte); }
.bab-module { position: relative; z-index: 2; }
.bab-lexkarte h3 { font-size: 1.75rem; }
.bab-kartenstapel { min-height: 470px; }
.bab-lexkarte.k2 { top: 210px; }
@media (max-width: 1100px) { .bab-az-leiste .bab-az-block { flex-basis: 100%; } }
.bab-kurskopf { padding-bottom: 130px !important; }
.bab-autor > .wp-block-group:first-child { flex: 1 1 460px; }
.bab-autor > .wp-block-group:last-child:not(:first-child) { border-left: 1px solid var(--bab-linie); padding-left: 30px; }
@media (max-width: 781px) { .bab-autor > .wp-block-group:last-child:not(:first-child) { border-left: 0; padding-left: 0; } }
