/*
Theme Name: Thorben testet
Theme URI: https://thorbentestet.com/
Author: Thorben testet
Description: Schlankes Review-Theme für thorbentestet.com – ehrliche Produkttests mit klar gekennzeichneten Affiliate-Links (ACF: affiliate_button_url), SEO-Textbox (ACF: seo-textbox), datenschutzfreundlichen YouTube-Einbettungen und Review-Schema.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thorbentestet
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, one-column, two-columns
*/

/* ---------- Design-Tokens ---------- */
:root {
	--tt-accent: #6d28d9;          /* Lila – per Customizer änderbar */
	--tt-accent-strong: #5b21b6;
	--tt-accent-soft: #f1eafe;
	--tt-ink: #1b1530;
	--tt-ink-2: #4a4462;
	--tt-muted: #77718c;
	--tt-line: #e7e2f2;
	--tt-bg: #fbfaff;
	--tt-surface: #ffffff;
	--tt-deep: #1e1036;            /* dunkle Bänder */
	--tt-buy: #ffb400;             /* Affiliate-Button */
	--tt-buy-strong: #f29d00;
	--tt-good: #1f9d55;
	--tt-bad: #d64545;
	--tt-radius: 14px;
	--tt-radius-sm: 9px;
	--tt-shadow: 0 1px 2px rgba(27,21,48,.06), 0 8px 24px -12px rgba(27,21,48,.18);
	--tt-shadow-lg: 0 2px 4px rgba(27,21,48,.06), 0 24px 48px -20px rgba(45,20,90,.35);
	--tt-max: 1180px;
	--tt-prose: 720px;
	--tt-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tt-font-head: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--tt-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--tt-ink);
	background: var(--tt-bg);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--tt-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tt-accent-strong); }
h1, h2, h3, h4 { font-family: var(--tt-font-head); line-height: 1.2; letter-spacing: -0.02em; color: var(--tt-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--tt-accent); outline-offset: 2px; border-radius: 4px; }

.tt-container { width: 100%; max-width: var(--tt-max); margin: 0 auto; padding: 0 20px; }
.tt-section { padding: 64px 0; }
.tt-section--tight { padding: 40px 0; }
.tt-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.tt-section__head h2 { margin: 0; }
.tt-section__head p { margin: 6px 0 0; color: var(--tt-muted); }
.tt-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tt-accent); }
.tt-eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.tt-link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.tt-link-more::after { content: " →"; }

/* ---------- Buttons ---------- */
.tt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
	text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.tt-btn:hover { transform: translateY(-1px); }
.tt-btn--primary { background: var(--tt-accent); color: #fff; box-shadow: 0 8px 20px -10px var(--tt-accent); }
.tt-btn--primary:hover { background: var(--tt-accent-strong); color: #fff; }
.tt-btn--ghost { border-color: var(--tt-line); color: var(--tt-ink); background: var(--tt-surface); }
.tt-btn--ghost:hover { border-color: var(--tt-accent); color: var(--tt-accent); }
.tt-btn--light { background: #fff; color: var(--tt-deep); }
.tt-btn--light:hover { color: var(--tt-accent); }
.tt-btn--yt { background: #ff0033; color: #fff; }
.tt-btn--yt:hover { background: #d9002b; color: #fff; }
.tt-btn--buy { background: var(--tt-buy); color: #1b1300; box-shadow: 0 8px 18px -10px rgba(242,157,0,.9); }
.tt-btn--buy:hover { background: var(--tt-buy-strong); color: #1b1300; }
.tt-btn--sm { padding: 9px 14px; font-size: .86rem; }
.tt-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.tt-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--tt-line); }
.admin-bar .tt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tt-header { top: 46px; } }
.tt-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.tt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tt-ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; }
.tt-brand img { max-height: 44px; width: auto; }
.tt-brand__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--tt-accent); color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 800; }
.tt-brand__name span { color: var(--tt-accent); }
.tt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.tt-nav li { position: relative; }
.tt-nav a { display: block; white-space: nowrap; padding: 9px 11px; border-radius: 9px; color: var(--tt-ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; }
.tt-nav a:hover, .tt-nav .current-menu-item > a, .tt-nav .current-menu-ancestor > a { color: var(--tt-accent); background: var(--tt-accent-soft); }
.tt-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); box-shadow: var(--tt-shadow-lg); flex-direction: column; align-items: stretch; }
.tt-nav li:hover > .sub-menu, .tt-nav li:focus-within > .sub-menu { display: flex; }
.tt-header__actions { display: flex; align-items: center; gap: 8px; }
.tt-search-toggle, .tt-menu-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--tt-line); background: var(--tt-surface); color: var(--tt-ink); cursor: pointer; }
.tt-search-toggle svg, .tt-menu-toggle svg { width: 20px; height: 20px; }
.tt-menu-toggle { display: none; }
.tt-searchbar { display: none; border-top: 1px solid var(--tt-line); padding: 14px 0; }
.tt-searchbar.is-open { display: block; }
.tt-searchform { display: flex; gap: 8px; }
.tt-searchform input[type=search] { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--tt-line); font: inherit; background: #fff; }

@media (max-width: 1140px) {
	.tt-menu-toggle { display: inline-grid; }
	.tt-header__yt { display: none; }
	.tt-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--tt-surface); border-bottom: 1px solid var(--tt-line); box-shadow: var(--tt-shadow-lg); padding: 10px 20px 20px; max-height: calc(100vh - 68px); overflow: auto; }
	.tt-nav.is-open { display: block; }
	.tt-nav ul { flex-direction: column; align-items: stretch; }
	.tt-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
}

/* ---------- Hero ---------- */
.tt-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background:
	radial-gradient(900px 400px at 85% -10%, rgba(109,40,217,.16), transparent 60%),
	radial-gradient(600px 300px at -10% 110%, rgba(255,180,0,.12), transparent 60%); }
.tt-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tt-hero h1 { margin: 14px 0 16px; }
.tt-hero h1 em { font-style: normal; color: var(--tt-accent); }
.tt-hero__lead { font-size: 1.15rem; color: var(--tt-ink-2); max-width: 34em; }
.tt-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tt-hero__proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; color: var(--tt-ink-2); font-size: .92rem; font-weight: 600; }
.tt-hero__proof li { display: flex; align-items: center; gap: 8px; }
.tt-hero__proof svg { width: 18px; height: 18px; color: var(--tt-good); flex: none; }
.tt-hero__media { position: relative; }
.tt-hero__media .tt-video { box-shadow: var(--tt-shadow-lg); }
.tt-hero__badge { position: absolute; left: -14px; top: -20px; background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--tt-shadow); font-size: .85rem; font-weight: 700; display: flex; gap: 10px; align-items: center; max-width: 80%; }
.tt-hero__badge small { display: block; color: var(--tt-muted); font-weight: 600; }
.tt-hero__badge a { color: var(--tt-ink); text-decoration: none; }
.tt-hero__dot { width: 10px; height: 10px; border-radius: 50%; background: #ff0033; box-shadow: 0 0 0 4px rgba(255,0,51,.15); flex: none; }
@media (max-width: 900px) {
	.tt-hero { padding: 36px 0 48px; }
	.tt-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.tt-hero__badge { position: relative; left: auto; top: auto; margin: 0 0 12px; max-width: 100%; }
	.tt-hero__media { display: flex; flex-direction: column-reverse; }
}

/* ---------- YouTube (2-Klick, datenschutzfreundlich) ---------- */
.tt-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tt-radius); overflow: hidden; background: #000; }
.tt-video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.tt-video__btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); color: #fff; cursor: pointer; font: inherit; }
.tt-video__play { width: 74px; height: 52px; border-radius: 14px; background: #ff0033; display: grid; place-items: center; transition: transform .15s ease; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.tt-video__play svg { width: 26px; height: 26px; fill: #fff; }
.tt-video__btn:hover .tt-video__play { transform: scale(1.06); }
.tt-video__note { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: .74rem; line-height: 1.35; color: rgba(255,255,255,.85); text-align: center; }
.tt-video__note a { color: #fff; }
.tt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Vertrauensleiste ---------- */
.tt-trust { background: var(--tt-surface); border-block: 1px solid var(--tt-line); }
.tt-trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.tt-trust__item { display: flex; gap: 14px; align-items: flex-start; }
.tt-trust__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tt-accent-soft); color: var(--tt-accent); display: grid; place-items: center; flex: none; }
.tt-trust__icon svg { width: 22px; height: 22px; }
.tt-trust__item strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.tt-trust__item span { color: var(--tt-muted); font-size: .92rem; line-height: 1.5; }
@media (max-width: 800px) { .tt-trust__grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Karten ---------- */
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tt-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .tt-grid, .tt-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tt-grid, .tt-grid--2, .tt-grid--4 { grid-template-columns: 1fr; } }

.tt-card { position: relative; display: flex; flex-direction: column; background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tt-card:hover { transform: translateY(-3px); box-shadow: var(--tt-shadow-lg); border-color: transparent; }
.tt-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--tt-accent-soft); overflow: hidden; }
.tt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tt-card:hover .tt-card__media img { transform: scale(1.04); }
.tt-card__media--empty { display: grid; place-items: center; color: var(--tt-accent); font-weight: 800; }
.tt-card__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.tt-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; background: rgba(255,255,255,.94); color: var(--tt-ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.tt-pill--video { background: #ff0033; color: #fff; }
.tt-pill--video svg { width: 11px; height: 11px; fill: currentColor; }
.tt-score { display: inline-flex; align-items: baseline; gap: 1px; padding: 5px 9px; border-radius: 10px; background: var(--tt-deep); color: #fff; font-weight: 800; font-size: .95rem; line-height: 1; }
.tt-score small { font-size: .68rem; opacity: .7; font-weight: 700; }
.tt-score--lg { font-size: 1.6rem; padding: 10px 14px; border-radius: 14px; }
.tt-score--lg small { font-size: .85rem; }
.tt-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.tt-card__cat { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tt-accent); margin-bottom: 6px; }
.tt-card__title { font-size: 1.08rem; line-height: 1.3; margin: 0 0 8px; }
.tt-card__title a { color: var(--tt-ink); text-decoration: none; }
.tt-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* ganze Karte klickbar */
.tt-card__excerpt { color: var(--tt-ink-2); font-size: .93rem; line-height: 1.55; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--tt-line); font-size: .82rem; color: var(--tt-muted); }
.tt-card__foot .tt-aff-cta { position: relative; z-index: 2; text-align: right; }
.tt-card__foot .tt-aff-note { display: block; font-size: .68rem; margin-top: 3px; color: var(--tt-muted); }

/* Feature-Karte (groß, erste Position) */
.tt-card--feature { grid-column: span 2; flex-direction: row; }
.tt-card--feature .tt-card__media { flex: 1.25; aspect-ratio: auto; min-height: 300px; }
.tt-card--feature .tt-card__body { flex: 1; padding: 26px; }
.tt-card--feature .tt-card__title { font-size: 1.45rem; }
@media (max-width: 980px) { .tt-card--feature { grid-column: 1 / -1; } }
@media (max-width: 700px) { .tt-card--feature { flex-direction: column; } .tt-card--feature .tt-card__media { aspect-ratio: 16/9; min-height: 0; } }

/* ---------- Themen-Kacheln ---------- */
.tt-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .tt-topics { grid-template-columns: repeat(2, 1fr); } }
.tt-topic { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px; border-radius: var(--tt-radius); background: var(--tt-surface); border: 1px solid var(--tt-line); text-decoration: none; color: var(--tt-ink); font-weight: 700; transition: all .15s ease; }
.tt-topic:hover { border-color: var(--tt-accent); color: var(--tt-accent); box-shadow: var(--tt-shadow); }
.tt-topic small { display: block; color: var(--tt-muted); font-weight: 600; font-size: .8rem; }
.tt-topic__arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--tt-accent-soft); color: var(--tt-accent); display: grid; place-items: center; flex: none; }

/* ---------- Über-mich-Band ---------- */
.tt-about { background: var(--tt-deep); color: #e9e4f7; border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.tt-about::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.45), transparent 70%); }
.tt-about h2 { color: #fff; }
.tt-about p { color: #cfc6e8; }
.tt-about__img { width: 100%; aspect-ratio: 1; border-radius: 20px; object-fit: cover; background: rgba(255,255,255,.08); border: 4px solid rgba(255,255,255,.12); display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: #fff; }
.tt-about__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; position: relative; z-index: 1; }
.tt-about__facts li { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .86rem; font-weight: 600; color: #fff; }
.tt-about > * { position: relative; z-index: 1; }
@media (max-width: 800px) { .tt-about { grid-template-columns: 1fr; padding: 28px; gap: 24px; } .tt-about__img { max-width: 180px; } }

/* ---------- YouTube-CTA ---------- */
.tt-cta { text-align: center; padding: 56px 24px; border-radius: 24px; background: linear-gradient(135deg, var(--tt-accent), #8b5cf6 60%, #a78bfa); color: #fff; }
.tt-cta h2 { color: #fff; margin-bottom: 8px; }
.tt-cta p { color: rgba(255,255,255,.88); max-width: 36em; margin: 0 auto 22px; }
.tt-cta__links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Archiv-Kopf ---------- */
.tt-archive-head { padding: 48px 0 32px; background: radial-gradient(700px 260px at 90% 0%, rgba(109,40,217,.12), transparent 60%); border-bottom: 1px solid var(--tt-line); margin-bottom: 40px; }
.tt-archive-head p { color: var(--tt-ink-2); max-width: 46em; margin: 0; }
.tt-archive-head .tt-searchform { max-width: 520px; margin-top: 18px; }
.tt-pagination { margin-top: 44px; display: flex; justify-content: center; }
.tt-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.tt-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tt-line); background: var(--tt-surface); color: var(--tt-ink); text-decoration: none; font-weight: 700; }
.tt-pagination .page-numbers.current, .tt-pagination .page-numbers:hover { background: var(--tt-accent); border-color: var(--tt-accent); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.tt-breadcrumbs { font-size: .85rem; color: var(--tt-muted); margin-bottom: 18px; }
.tt-breadcrumbs a { color: var(--tt-muted); text-decoration: none; }
.tt-breadcrumbs a:hover { color: var(--tt-accent); }
.tt-breadcrumbs .sep { margin: 0 6px; opacity: .6; }

/* ---------- Einzelbeitrag ---------- */
.tt-article-head { padding: 40px 0 8px; }
.tt-article-head__inner { max-width: 860px; }
.tt-article-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin: 10px 0 16px; }
.tt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--tt-muted); font-size: .9rem; }
.tt-meta__author { display: flex; align-items: center; gap: 10px; color: var(--tt-ink); font-weight: 700; }
.tt-meta__author img { width: 36px; height: 36px; border-radius: 50%; }
.tt-meta a { color: inherit; }
.tt-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-cats a { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tt-accent); background: var(--tt-accent-soft); padding: 5px 10px; border-radius: 999px; text-decoration: none; }

.tt-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-bottom: 64px; }
@media (max-width: 1000px) { .tt-article-layout { grid-template-columns: 1fr; } .tt-sidebar { display: none; } }
.tt-article-hero-img { border-radius: var(--tt-radius); overflow: hidden; margin: 24px 0 28px; box-shadow: var(--tt-shadow); }
.tt-article-hero-img img { width: 100%; }

/* Transparenz-Hinweis */
.tt-disclosure { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--tt-radius-sm); background: #fff8e6; border: 1px solid #ffe2a3; color: #5c4400; font-size: .88rem; line-height: 1.5; margin: 0 0 26px; }
.tt-disclosure svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #c98400; }
.tt-disclosure strong { color: #3d2d00; }

/* Angebots-Box */
.tt-offer { display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--tt-radius); background: var(--tt-surface); border: 2px solid var(--tt-line); box-shadow: var(--tt-shadow); margin: 0 0 30px; }
.tt-offer--end { border-color: var(--tt-buy); background: linear-gradient(180deg, #fffdf6, #fff); margin: 36px 0; }
.tt-offer__info { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.tt-offer__title { font-weight: 800; line-height: 1.3; }
.tt-offer__sub { font-size: .85rem; color: var(--tt-muted); }
.tt-offer__cta { text-align: center; }
.tt-aff-note { display: block; font-size: .72rem; color: var(--tt-muted); margin-top: 5px; }

/* Fließtext */
.tt-prose { font-size: 1.06rem; color: #2a2440; }
.tt-prose > * { max-width: var(--tt-prose); }
.tt-prose h2 { margin-top: 2em; padding-top: .2em; scroll-margin-top: 90px; }
.tt-prose h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.tt-prose ul, .tt-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.tt-prose li { margin-bottom: .4em; }
.tt-prose li::marker { color: var(--tt-accent); }
.tt-prose blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--tt-accent); background: var(--tt-accent-soft); border-radius: 0 var(--tt-radius-sm) var(--tt-radius-sm) 0; font-weight: 600; }
.tt-prose blockquote p:last-child { margin: 0; }
.tt-prose hr { border: 0; height: 1px; background: var(--tt-line); margin: 2.2em 0; }
.tt-prose img { border-radius: var(--tt-radius-sm); }
.tt-prose figure { margin: 1.6em 0; }
.tt-prose figcaption { font-size: .85rem; color: var(--tt-muted); margin-top: 8px; text-align: center; }
.tt-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.tt-prose th, .tt-prose td { padding: 10px 12px; border-bottom: 1px solid var(--tt-line); text-align: left; }
.tt-prose th { background: var(--tt-accent-soft); }
.tt-prose .wp-block-embed, .tt-prose .tt-video { max-width: var(--tt-prose); margin: 1.6em 0; }
.tt-prose .wp-block-button__link { border-radius: 999px; font-weight: 700; }

/* Affiliate-Links im Text */
.tt-prose a.tt-aff-link { font-weight: 700; color: var(--tt-accent); background: linear-gradient(transparent 62%, rgba(255,180,0,.32) 0); text-decoration: none; border-radius: 2px; }
.tt-prose a.tt-aff-link:hover { background: rgba(255,180,0,.32); }
.tt-aff-star { font-weight: 800; color: #c98400; text-decoration: none; margin-left: 1px; }
.tt-prose .tt-btn { text-decoration: none; }

/* SEO-Textbox */
.tt-seobox { margin: 44px 0 0; padding: 26px 28px; border-radius: var(--tt-radius); background: var(--tt-surface); border: 1px solid var(--tt-line); font-size: .97rem; color: var(--tt-ink-2); max-width: var(--tt-prose); }
.tt-seobox h2, .tt-seobox h3 { font-size: 1.15rem; margin-top: 1.2em; }
.tt-seobox > :first-child { margin-top: 0; }
.tt-seobox > :last-child { margin-bottom: 0; }

/* Autor */
.tt-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 22px; border-radius: var(--tt-radius); background: var(--tt-accent-soft); max-width: var(--tt-prose); }
.tt-author img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.tt-author strong { font-size: 1.05rem; }
.tt-author p { margin: 4px 0 10px; font-size: .94rem; color: var(--tt-ink-2); }
.tt-author__links { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; font-weight: 700; }

/* Sidebar */
.tt-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.tt-side-box { background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 20px; }
.tt-side-box h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tt-muted); margin-bottom: 12px; }
.tt-side-box--buy { border: 2px solid var(--tt-buy); text-align: center; }
.tt-side-box--buy .tt-score { margin-bottom: 10px; }
.tt-side-box--buy .tt-btn { width: 100%; }
.tt-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.tt-toc li { counter-increment: toc; margin: 0; }
.tt-toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--tt-ink-2); text-decoration: none; font-size: .9rem; line-height: 1.4; border-bottom: 1px solid var(--tt-line); }
.tt-toc li:last-child a { border-bottom: 0; }
.tt-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--tt-accent); font-weight: 800; font-size: .78rem; padding-top: 2px; }
.tt-toc a:hover, .tt-toc a.is-active { color: var(--tt-accent); }

/* Mobile Kaufleiste */
.tt-buybar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--tt-deep); color: #fff; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .3s ease; }
.tt-buybar.is-visible { transform: none; }
.tt-buybar__text { font-size: .82rem; line-height: 1.3; min-width: 0; }
.tt-buybar__text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.tt-buybar__text span { opacity: .7; font-size: .72rem; }
@media (max-width: 1000px) { .tt-buybar { display: flex; } }

/* Kommentare */
.tt-comments { max-width: var(--tt-prose); margin-top: 48px; }
.tt-comments ol { list-style: none; padding: 0; }
.tt-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--tt-line); }
.tt-comments textarea, .tt-comments input[type=text], .tt-comments input[type=email], .tt-comments input[type=url] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--tt-line); font: inherit; background: #fff; }
.tt-comments .submit { background: var(--tt-accent); color: #fff; border: 0; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }

/* Seiten */
.tt-page { padding: 48px 0 72px; }
.tt-page .tt-prose { margin: 0 auto; max-width: var(--tt-prose); }
.tt-page h1 { margin-bottom: 28px; }

/* ---------- Footer ---------- */
.tt-footer { background: var(--tt-deep); color: #bdb3d9; padding: 56px 0 28px; margin-top: 40px; font-size: .93rem; }
.tt-footer a { color: #e6dffa; text-decoration: none; }
.tt-footer a:hover { color: #fff; text-decoration: underline; }
.tt-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.tt-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.tt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tt-footer .tt-brand { color: #fff; margin-bottom: 12px; }
.tt-footer__note { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #9a90bb; }
.tt-socials { display: flex; gap: 8px; margin-top: 16px; }
.tt-socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.tt-socials a:hover { background: var(--tt-accent); text-decoration: none; }
.tt-socials svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 900px) { .tt-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tt-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 404 / leer ---------- */
.tt-empty { text-align: center; padding: 80px 20px; }
.tt-empty h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.tt-empty .tt-searchform { max-width: 480px; margin: 22px auto 0; }

/* WordPress-Kernklassen */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--tt-muted); }
.sticky .tt-card__cat::after { content: " · Angepinnt"; }
.bypostauthor { }
.gallery-caption { }

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

/* WordPress reserviert bei YouTube-Embeds Platz per ::before – die 2-Klick-Vorschau bringt ihr eigenes Format mit */
.wp-block-embed-youtube .wp-block-embed__wrapper::before,
.wp-block-embed__wrapper:has(> .tt-video)::before { content: none !important; display: none !important; padding: 0 !important; }
.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed__wrapper:has(> .tt-video) { position: static; }
.wp-block-embed .tt-video { margin: 0; max-width: 100%; }
.tt-prose .wp-block-embed { margin: 1.6em 0; }
