/*
Theme Name: tb-boulevard
Theme URI: https://testosteronbooster.org/
Author: testosteronbooster.org
Description: Block-Theme für testosteronbooster.org nach dem Klick-Entwurf v2 (Stand 25.11.2026). Schriften Archivo und Source Sans 3 (SIL OFL 1.1) liegen im Theme, keine externen Anfragen.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 0.1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tb-boulevard
*/

/* ---------- Grundlagen ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4, h5, h6) { font-stretch: 75%; }
h1, .tb-h1 { font-stretch: 62%; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #0B4A8B; outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tb-wrap { box-sizing: content-box; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.tb-archivo { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; }
.tb-nur-handy { display: none; }
@media (max-width: 781px) {
	:root { --wp--style--root--padding-left: 16px; --wp--style--root--padding-right: 16px; }
	.tb-wrap { padding-inline: 16px; }
	.tb-nur-desktop { display: none !important; }
	.tb-nur-handy { display: inline; }
}

/* ---------- Newsletter-Kopfleiste (K01/K02, ohne Formular bis Brevo + Datenschutz stehen) ---------- */
.tb-kopfleiste { background: #E7F0FA; color: #14171C; }
.tb-kopfleiste-innen { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 8px; }
.tb-kopfleiste-text { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.3; }
.tb-kopfleiste-text svg { flex-shrink: 0; }
.tb-kopfleiste-text strong { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 75%; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.tb-bald { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #14171C; border-radius: 999px; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-stretch: 87.5%; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
@media (max-width: 781px) {
	.tb-kopfleiste-innen { min-height: 44px; padding-block: 0; }
	.tb-kopfleiste-text { gap: 8px; font-size: 14px; }
	.tb-kopfleiste-text strong { font-size: 13px; }
}

/* ---------- Kopf (K03/K04) ---------- */
.tb-kopf { background: #FFFFFF; border-bottom: 1px solid #D6DAE0; }
.tb-kopf-innen { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tb-logo { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #14171C; text-decoration: none; }
.tb-logo svg { display: block; flex-shrink: 0; }
.tb-wortmarke { display: flex; flex-direction: column; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-stretch: 62%; font-size: 22px; line-height: 0.9; letter-spacing: 0.01em; }
.tb-wortmarke b { font-weight: 900; color: #14171C; }
.tb-wortmarke i { font-style: normal; font-weight: 800; color: #C8102E; }
.tb-claim { margin-left: 4px; padding-left: 12px; border-left: 1px solid #D6DAE0; font-weight: 600; font-size: 15px; line-height: 1.2; color: #5B6472; }
.tb-service { display: flex; align-items: center; gap: 4px; }
.tb-service a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: #14171C; text-decoration: none; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-stretch: 87.5%; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }
@media (max-width: 781px) {
	.tb-kopf-innen { height: 56px; gap: 8px; }
	.tb-logo { gap: 8px; }
	.tb-logo svg { width: 32px; height: 32px; }
	.tb-wortmarke { font-size: 18px; }
	.tb-claim { display: none; }
	.tb-service a { font-size: 14px; }
}

/* ---------- Ressort-Leiste (K05/K05a), sticky ---------- */
.tb-ressortleiste { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 10; }
.tb-ressorts { background: #14171C; }
.tb-ressorts-nav { height: 48px; overflow-x: auto; scrollbar-width: none; }
.tb-ressorts-nav::-webkit-scrollbar { display: none; }
.tb-ressorts-nav .wp-block-navigation__container { gap: 0; flex-wrap: nowrap; height: 100%; }
.tb-ressorts-nav .wp-block-navigation-item { height: 100%; }
.tb-ressorts-nav .wp-block-navigation-item__content { display: flex; align-items: center; height: 100%; box-sizing: border-box; padding: 0 16px !important; border-top: 4px solid transparent; border-bottom: 4px solid transparent; color: #FFFFFF; text-decoration: none; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-stretch: 75%; font-size: 14px; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.tb-ressorts-nav .current-menu-item > .wp-block-navigation-item__content,
.tb-ressorts-nav .wp-block-navigation-item__content[aria-current] { border-bottom-color: #C8102E; font-weight: 800; }
.tb-ressorts-nav .wp-block-navigation-item__content:hover { border-bottom-color: #FFFFFF; }
@media (max-width: 781px) { .tb-ressorts-nav { height: 44px; } }

/* ---------- Dachzeile, H1, Unterzeile, Meta (K07, K54, K55, K25) ---------- */
.tb-dachzeile, .tb-dachzeile a { margin: 0; color: #C8102E; text-decoration: none; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 75%; font-size: 14px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
.tb-dachzeile .wp-block-post-terms__separator { color: #C8102E; }
.tb-h1 { margin: 0; max-width: 24ch; }
.wp-block-post-title.tb-h1 { font-size: var(--wp--preset--font-size--schlagzeile); }
.tb-unterzeile, .tb-unterzeile p { margin: 0; font-size: var(--wp--preset--font-size--lead); font-weight: 600; line-height: 1.4; }
.tb-metazeile { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 500; font-size: 14px; line-height: 1.45; color: #5B6472; }
.tb-metazeile > * { margin: 0 !important; }
.tb-stand::before { content: "Stand: "; }
.tb-brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 500; font-size: 14px; color: #5B6472; }
.tb-brotkrumen > * { margin: 0 !important; }
.tb-brotkrumen a { color: #5B6472; }

/* ---------- Artikel-Raster: Lesespalte 720 + Seitenleiste 300 ---------- */
.tb-artikel { padding-block: 32px 64px; }
.tb-artikel-raster { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 40px 24px; }
.tb-lesespalte { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tb-lesespalte > * { margin-block: 0; }
.tb-artikelbild { margin-top: 8px !important; position: relative; }
.tb-artikelbild img { display: block; width: 100%; height: auto; }
.tb-seitenleiste { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1023px) { .tb-artikel-raster { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 781px) { .tb-artikel { padding-block: 24px 40px; } }

/* ---------- Text im Artikel (K28, K29) ---------- */
.tb-inhalt { margin-top: 16px !important; }
.tb-inhalt p, .tb-inhalt li { hyphens: auto; }
.tb-inhalt > * + * { margin-block-start: 20px; }
.tb-inhalt h2 { margin-block-start: 40px; }
.tb-inhalt h2::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: 12px; background: #C8102E; }
.tb-inhalt mark, .tb-inhalt .has-marker-gelb-background-color { background: #FFE14A; color: #14171C; padding: 0 2px; }
.tb-inhalt sup a { color: #C8102E; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: 12px; text-decoration: none; padding: 8px 4px; }

/* ---------- Kästen als Block-Stile der Gruppe (K30, K31, K35, K36, K37) ---------- */
.wp-block-group[class*="is-style-tb-"] { border-radius: 4px; padding: 20px 24px; font-size: 18px; line-height: 1.5; }
.wp-block-group[class*="is-style-tb-"] > * { margin-block: 0; }
.wp-block-group[class*="is-style-tb-"] > * + * { margin-block-start: 12px; }
.wp-block-group[class*="is-style-tb-"]::before { display: block; margin-bottom: 12px; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 75%; font-size: 13px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
.is-style-tb-kurz-knapp { background: #F2F4F7; font-weight: 600; }
.is-style-tb-kurz-knapp::before { content: "Kurz & knapp"; display: inline-block !important; padding: 4px 10px; border-radius: 999px; background: #FFE14A; color: #14171C; }
.is-style-tb-forschung { background: #E7F0FA; }
.is-style-tb-forschung::before { content: "Das sagt die Forschung"; color: #0B4A8B; }
.is-style-tb-mythos { border: 2px solid #14171C; }
.is-style-tb-mythos::before { content: "Mythos oder Wahrheit?"; }
.is-style-tb-hilft { border: 1px solid #7D8693; }
.is-style-tb-hilft::before { content: "Was jetzt hilft"; }
.is-style-tb-arzt { border: 2px solid #C8102E; }
.is-style-tb-arzt::before { content: "Wann zum Arzt?"; color: #C8102E; }

/* ---------- KI-Plakette (K10 mit Hinweis per details, K10m mini) ---------- */
.tb-hat-ki { position: relative; }
.tb-ki { position: absolute; top: 0; right: 0; z-index: 5; }
.tb-ki summary { display: flex; justify-content: flex-end; min-width: 44px; min-height: 44px; box-sizing: border-box; padding: 8px; list-style: none; cursor: pointer; }
.tb-ki summary::-webkit-details-marker { display: none; }
.tb-ki-plakette, .tb-ki-mini { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(20, 23, 28, 0.78); color: #FFFFFF; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; line-height: 1; }
.tb-ki-plakette { height: 26px; padding: 0 10px; font-weight: 800; font-stretch: 87.5%; font-size: 13px; letter-spacing: 0.02em; }
.tb-ki-mini { position: absolute; top: 4px; right: 4px; z-index: 5; height: 18px; padding: 0 8px; font-weight: 700; font-size: 11px; }
.tb-ki-popover { position: absolute; top: 44px; right: 8px; width: min(280px, calc(100vw - 48px)); padding: 12px 16px; border-radius: 4px; background: #14171C; color: #FFFFFF; font-size: 15px; line-height: 1.4; box-shadow: 0 4px 16px rgba(20, 23, 28, 0.25); }
.tb-ki-popover p { margin: 0; }
.tb-ki-popover .tb-ki-titel { margin-bottom: 4px; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 87.5%; }
.tb-bildzeile { margin-top: 8px; font-size: 15px; line-height: 1.4; color: #5B6472; }
.tb-ki-popover .tb-ki-mehr { margin-top: 8px; }
.tb-ki-popover .tb-ki-mehr a { color: #FFFFFF; text-decoration: underline; }

/* ---------- KI-Zeile unter der Artikel-Überschrift, Tabellen im Text ---------- */
.tb-ki-zeile { margin: 0; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 500; font-size: 14px; line-height: 1.45; color: #5B6472; }
.tb-ki-zeile a { color: #5B6472; }
.tb-inhalt .wp-block-table { margin-inline: 0; }
.tb-inhalt .wp-block-table th, .tb-inhalt .wp-block-table td { padding: 8px 12px; border: 1px solid #D6DAE0; vertical-align: top; font-size: 17px; line-height: 1.45; text-align: left; hyphens: auto; }
.tb-inhalt .wp-block-table th { background: #F2F4F7; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 87.5%; font-size: 15px; }

/* ---------- Newsletter-Platzhalter (K44, K46), ohne Formular ---------- */
.tb-nl-kasten { margin: 0; padding: 20px 24px; border-radius: 4px; background: #FFE14A; color: #14171C; }
.tb-nl-kasten > * { margin: 0; }
.tb-nl-kasten > * + * { margin-top: 8px; }
.tb-nl-titel { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 75%; font-size: 24px; line-height: 1.15; }
.tb-nl-text { font-size: 17px; line-height: 1.45; }
.tb-nl-hinweis { font-size: 14px; line-height: 1.4; color: #14171C; }
.tb-nl-band { margin-top: 64px; padding: 40px 0; background: #F2F4F7; }
.tb-label-gelb { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #FFE14A; color: #14171C; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 75%; font-size: 13px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Teaser-Listen (K18), Band-Kopf (K20) ---------- */
.tb-bandkopf { margin: 0 0 24px; padding-top: 12px; border-top: 4px solid #14171C; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 75%; font-size: 20px; line-height: 1.15; letter-spacing: 0.03em; text-transform: uppercase; }
.tb-bandkopf::before { content: "● "; color: #C8102E; }
.tb-teaserliste .wp-block-post-template { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.tb-teaser { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid #D6DAE0; }
.tb-teaser:not(:has(.tb-teaserbild)) { grid-template-columns: minmax(0, 1fr); }
.tb-teaserbild { margin: 0 !important; position: relative; }
.tb-teaserbild img { display: block; width: 100%; height: auto; }
.tb-teasertext { display: flex; flex-direction: column; gap: 8px; }
.tb-teasertext > * { margin: 0 !important; }
.tb-teaser-titel { font-size: 20px; font-weight: 800; line-height: 1.15; }
.tb-teaser-titel a { color: #14171C; text-decoration: none; }
.tb-teaser-titel a:hover { text-decoration: underline; }
.tb-teaser-auszug, .tb-teaser-auszug p { margin: 0; font-size: 17px; line-height: 1.45; }
.tb-teaser-auszug .wp-block-post-excerpt__more-text { display: none; }
.tb-teaser-meta { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 500; font-size: 14px; color: #5B6472; }
.tb-leer { color: #5B6472; }
@media (max-width: 781px) {
	.tb-teaser { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
	.tb-teaser-titel { font-size: 18px; }
	.tb-teaser-auszug { display: none; }
}

/* ---------- Seiten, Suche, 404 ---------- */
.tb-seite { padding-block: 32px 64px; }
.tb-seite-inhalt { max-width: 720px; }
.tb-seite-inhalt > * + * { margin-block-start: 20px; }

/* ---------- Fuß (K49/K50) ---------- */
.tb-fuss { background: #14171C; color: #FFFFFF; border-top: 4px solid #C8102E; }
.tb-fuss-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding-block: 48px 32px; }
.tb-fuss-spalte { display: flex; flex-direction: column; gap: 12px; }
.tb-fuss p { margin: 0; }
.tb-fuss-kopf { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 75%; font-size: 13px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; color: #C9CED6; }
.tb-fuss-grau { font-size: 15px; line-height: 1.45; color: #C9CED6; }
.tb-fuss-claim { font-weight: 600; font-size: 16px; line-height: 1.4; color: #C9CED6; }
.tb-fuss ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tb-fuss li a { display: flex; align-items: center; min-height: 44px; color: #FFFFFF; text-decoration: none; font-size: 16px; line-height: 1.3; }
.tb-fuss li a:hover { text-decoration: underline; }
.tb-fuss-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: #FFFFFF; text-decoration: none; }
.tb-fuss-logo .tb-wortmarke { font-size: 26px; }
.tb-fuss-logo .tb-wortmarke b, .tb-fuss-logo .tb-wortmarke i { color: #FFFFFF; }
.tb-fuss-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px 32px; border-top: 1px solid #5B6472; font-size: 14px; line-height: 1.4; color: #C9CED6; }
.tb-fuss-unten ul { flex-direction: row; flex-wrap: wrap; gap: 0 16px; }
.tb-fuss-unten li a { display: inline-flex; min-height: 44px; font-size: 14px; text-decoration: underline; }
.tb-fuss-hinweis { font-weight: 600; color: #FFFFFF; }
@media (max-width: 1023px) { .tb-fuss-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 781px) {
	.tb-fuss-raster { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 24px; }
	.tb-fuss-unten { flex-direction: column; align-items: flex-start; }
}

/* ---------- Ergänzungen: Abstände, Kopf, Archiv, Suche ---------- */
.wp-site-blocks > * { margin-block: 0; }
/* Der Navigationsblock erbt sonst die Tinte-Farbe (schwarz auf schwarz). */
.tb-ressorts, .tb-ressorts .tb-ressorts-nav .wp-block-navigation-item__content { color: #FFFFFF; }
@media (max-width: 781px) {
	.tb-metazeile p[aria-hidden="true"] { display: none; }
}
@media (max-width: 480px) {
	.tb-service a { padding: 0 10px; }
	.tb-service a svg { width: 24px; height: 24px; }
	.tb-service a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
.tb-logo-gruppe { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-logo-gruppe .tb-claim { margin: 0; }
.tb-artikel-raster.tb-artikel-raster > *, .tb-lesespalte.tb-lesespalte > *, .tb-teaser.tb-teaser > * { margin-block: 0; }
.tb-archivkopf { font-size: var(--wp--preset--font-size--zwischentitel); }
.tb-archiv-intro { max-width: 720px; color: #5B6472; }
.tb-fuss-spalte .tb-bald { align-self: flex-start; }
.tb-bald-hell { border-color: #FFFFFF; color: #FFFFFF; }
.wp-block-query-pagination { margin-top: 32px; gap: 8px 16px; font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-stretch: 87.5%; font-size: 15px; text-transform: uppercase; }
.wp-block-query-pagination a { color: #14171C; }
.tb-suche { max-width: 720px; margin-block: 24px 8px !important; }
.tb-suche .wp-block-search__input { min-height: 48px; padding: 0 16px; border: 1px solid #7D8693; border-radius: 4px; font-size: 18px; }

/* ---------- Startseite: erster Teaser als Aufmacher ---------- */
.tb-start { padding-top: 24px; }
.tb-start-liste .wp-block-post:first-child .tb-teaser { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; padding-top: 0; }
.tb-start-liste .wp-block-post:first-child .tb-teaser-titel { font-size: var(--wp--preset--font-size--aufmacher); font-weight: 900; font-stretch: 62%; line-height: 1.05; }
.tb-start-leer { max-width: 720px; padding: 48px 0 64px; }
.tb-start-leer > * { margin-block: 0 !important; }
.tb-start-leer > * + * { margin-top: 16px !important; }
.tb-start-titel { font-family: Archivo, 'Arial Narrow', Arial, sans-serif; font-size: var(--wp--preset--font-size--schlagzeile); font-weight: 900; font-stretch: 62%; line-height: 1.08; }
@media (max-width: 781px) {
	.tb-teaserbild img { aspect-ratio: 1 / 1 !important; }
	.tb-start-liste .wp-block-post:first-child .tb-teaser { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.tb-start-liste .wp-block-post:first-child .tb-teaserbild img { aspect-ratio: 16 / 9 !important; }
	.tb-start-liste .wp-block-post:first-child .tb-teaser-auszug { display: block; }
}
