/* IBO TV Smarters: das Wohnzimmer um 20:15.
   Nachtblaue Wand, der Bildschirm als Lichtquelle, warmes Lampenlicht für Aktionen. */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	--night-950: #0a0d13;
	--night-900: #0f131b;
	--night-850: #141a24;
	--night-800: #1a212d;
	--night-700: #252e3d;
	--line: #2b3546;
	--line-soft: #1e2633;
	--text: #eef1f6;
	--text-2: #b6bdcb;
	--text-3: #8b95a7;
	--screen: #07090d;
	--osd-line: #2c3646;
	--light: 217 230 247;
	--lamp: #f3ab3e;
	--lamp-hover: #f7bd5f;
	--lamp-ink: #1b1204;
	--lamp-rgb: 243 171 62;
	--radius: 6px;
	--wrap: 1240px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--head-h: 68px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--font: "Archivo", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
	color-scheme: dark;
}

/* ---------- Grundlagen ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--head-h) + 1rem);
	scrollbar-color: var(--night-700) var(--night-950);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--night-900);
	color: var(--text-2);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.62;
	font-stretch: 100%;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
	caret-color: var(--lamp);
}

::selection { background: var(--lamp); color: var(--lamp-ink); }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	color: var(--text);
	font-stretch: 78%;
	font-weight: 760;
	line-height: 1.08;
	letter-spacing: -0.012em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.55rem + 3.1vw, 4.1rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.7rem); }
h3 { font-size: 1.28rem; font-stretch: 88%; font-weight: 700; line-height: 1.2; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--text); text-decoration-color: rgb(var(--lamp-rgb) / 0.55); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--lamp); }

:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.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;
}

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--lamp); color: var(--lamp-ink);
	padding: 0.75rem 1rem; border-radius: var(--radius);
	font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-main:focus { outline: none; }

.ibo-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Knöpfe ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
	min-height: 48px; padding: 0.75rem 1.3rem;
	border-radius: var(--radius); border: 1px solid transparent;
	font: inherit; font-weight: 680; font-stretch: 92%; font-size: 1.02rem; line-height: 1.1;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.985); }

.btn-lamp { background: var(--lamp); color: var(--lamp-ink); }
.btn-lamp:hover { background: var(--lamp-hover); color: var(--lamp-ink); }

.btn-screen { background: var(--text); color: var(--screen); }
.btn-screen:hover { background: #ffffff; color: var(--screen); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--night-850); }

.btn-compact { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-label-short { display: none; }

/* ---------- Kopfbereich ---------- */

.head-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; }

.site-head {
	position: sticky; top: 0; z-index: 50;
	height: var(--head-h);
	background: rgb(10 13 19 / 0);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-head[data-scrolled="true"] {
	background: rgb(10 13 19 / 0.88);
	border-bottom-color: var(--line-soft);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }

.head-row { height: 100%; display: flex; align-items: center; gap: 2rem; }
.head-brand { flex: none; }
.head-nav { margin-left: auto; }
.head-actions { display: flex; align-items: center; gap: 0.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand-mark {
	display: grid; place-items: center;
	width: 2.6rem; height: 1.75rem;
	border: 1.5px solid var(--text); border-radius: 4px;
	font-size: 0.68rem; font-weight: 800; font-stretch: 75%; letter-spacing: 0.04em;
	position: relative;
}
.brand-mark::after {
	content: ""; position: absolute; left: 50%; bottom: -6px;
	width: 0.9rem; height: 2px; translate: -50% 0; background: var(--text-3); border-radius: 1px;
}
.brand-name { font-size: 1.12rem; font-weight: 620; font-stretch: 85%; letter-spacing: 0.005em; }
.brand-name b { font-weight: 800; }
.custom-logo { max-height: 44px; width: auto; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; }
.nav-list a {
	color: var(--text-2); text-decoration: none; font-weight: 560; font-stretch: 90%;
	padding: 0.4rem 0; border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-list a:hover { color: var(--text); }
.nav-list [aria-current="page"],
.nav-list .current-menu-item > a { color: var(--text); border-bottom-color: var(--lamp); }

.nav-toggle {
	display: none; width: 44px; height: 44px;
	align-items: center; justify-content: center;
	background: transparent; color: var(--text);
	border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.head-nav {
		position: absolute; left: 0; right: 0; top: var(--head-h);
		background: var(--night-950); border-bottom: 1px solid var(--line-soft);
		padding: 0.5rem var(--gutter) 1.25rem;
		display: none;
	}
	.head-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 0.9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line-soft); }
	.nav-list [aria-current="page"], .nav-list .current-menu-item > a { border-bottom-color: var(--line-soft); color: var(--lamp); }
	.head-actions { margin-left: auto; }
}

@media (max-width: 520px) {
	.btn-label-long { display: none; }
	.btn-label-short { display: inline; }
	.brand-name { font-size: 1rem; }
}

/* ---------- Das Zimmer (Hero) ---------- */

.room {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--night-950);
	margin-top: calc(var(--head-h) * -1);
	padding: calc(var(--head-h) + clamp(1.5rem, 4vh, 3.5rem)) 0 0;
}

/* Grundlicht im Raum. */
.room::before {
	content: ""; position: absolute; z-index: -2; inset: 0;
	background: radial-gradient(80% 90% at 70% 55%, rgb(var(--light) / 0.035), transparent 70%);
}

/* Warmes Licht einer Stehlampe links unten. */
.room::after {
	content: ""; position: absolute; z-index: -1;
	left: -10%; bottom: -20%; width: 55%; height: 80%;
	background: radial-gradient(closest-side, rgb(var(--lamp-rgb) / 0.13), rgb(var(--lamp-rgb) / 0.04) 55%, transparent);
	pointer-events: none;
}

.room-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: end;
	padding-top: clamp(1rem, 3vh, 2.5rem);
}
.room-copy { align-self: center; padding-bottom: 2rem; }

.room-copy h1 { font-size: clamp(2.4rem, 1.3rem + 2.7vw, 3.75rem); font-stretch: 70%; }
.room-copy h1 span { display: block; color: var(--text-2); font-weight: 560; }
.room-lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); color: var(--text-2); max-width: 36ch; margin-bottom: 1.75rem; }
.room-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.room-copy .crumbs { margin-bottom: 1.25rem; }
.room-copy .updated { margin-top: 1.5rem; }

/* Sideboard, auf dem der Fernseher steht. */
.sideboard {
	position: relative; z-index: 0;
	height: clamp(2.5rem, 5vw, 4rem);
	margin-top: -1px;
	background: linear-gradient(#121823, var(--night-950));
	border-top: 1px solid rgb(var(--light) / 0.14);
}

.room-tv { position: relative; z-index: 0; }

/* Licht vom Bildschirm auf der Wand: geht vom Fernseher aus. */
.room-tv::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	inset: -38% -28% -6% -28%;
	background: radial-gradient(closest-side, rgb(var(--light) / 0.24), rgb(var(--light) / 0.08) 50%, transparent);
	animation: wall-on 1.6s var(--ease-out) 0.15s backwards;
}

/* ---------- Fernseher ---------- */

.tv { position: relative; }
.tv-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	padding: clamp(6px, 0.9%, 11px);
	border-radius: 14px;
	background: linear-gradient(180deg, #1c222c, #10141b);
	box-shadow:
		inset 0 0 0 1px #2c3443,
		inset 0 1px 0 rgb(255 255 255 / 0.06),
		0 40px 80px -30px rgb(3 5 9 / 0.9),
		0 12px 24px -12px rgb(3 5 9 / 0.8);
}
.tv-screen {
	position: relative; height: 100%;
	border-radius: 6px; overflow: hidden;
	background:
		radial-gradient(110% 80% at 18% 0%, rgb(var(--light) / 0.07), transparent 60%),
		linear-gradient(160deg, #10151e, var(--screen) 65%);
	container-type: inline-size;
	animation: tv-on 1.15s var(--ease-out) 0.1s backwards;
}
.tv-stand {
	width: 22%; height: 18px; margin: 0 auto;
	background: linear-gradient(180deg, #161c26, #0d1118);
	clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

@keyframes tv-on {
	0% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(2.2); }
	35% { clip-path: inset(0 0 0 0); filter: brightness(1.6); }
	100% { clip-path: inset(0 0 0 0); filter: brightness(1); }
}
@keyframes wall-on {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

/* ---------- Bildschirmmenü (OSD) ---------- */

.osd {
	height: 100%;
	display: grid; grid-template-rows: auto auto 1fr auto;
	gap: 2cqi;
	padding: 2.5cqi 3cqi 2.6cqi;
	font-size: max(13px, 2.3cqi);
	line-height: 1.25;
	color: var(--text);
}
.osd fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.osd legend {
	padding: 0; margin-bottom: 0.45em;
	font-size: 0.82em; font-weight: 560; color: var(--text-3); font-stretch: 92%;
}
.osd-bar {
	display: flex; align-items: baseline; justify-content: space-between;
	padding-bottom: 0.55em; border-bottom: 1px solid var(--osd-line);
}
.osd-title { margin: 0; font-size: 1.05em; font-stretch: 82%; font-weight: 720; letter-spacing: 0; line-height: 1.1; }
.osd-clock { font-size: 1.05em; font-weight: 520; font-stretch: 85%; color: var(--text-2); letter-spacing: 0.02em; }

.keys { display: flex; gap: 0.5em; }
.key { position: relative; cursor: pointer; }
.key input, .tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.key > span {
	display: grid; place-items: center;
	min-width: 2.7em; height: 2.1em; padding: 0 0.7em;
	border: 1px solid var(--osd-line); border-radius: var(--radius);
	font-size: 1.1em; font-weight: 700; font-stretch: 85%;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.key:hover > span { border-color: var(--text-3); }
.key input:checked + span { background: var(--text); color: var(--screen); border-color: var(--text); }
.key input:focus-visible + span,
.tile input:focus-visible + .tile-body { outline: 2px solid var(--lamp); outline-offset: 2px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55em; }
.tile { position: relative; cursor: pointer; display: block; }
.tile-body {
	display: grid; gap: 0.15em; height: 100%;
	padding: 0.55em 0.7em 0.6em;
	border: 1px solid var(--osd-line); border-radius: var(--radius);
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.25s var(--ease-out);
}
.tile:hover .tile-body { border-color: var(--text-3); }
.tile-months { font-size: 0.86em; color: var(--text-2); font-weight: 560; }
.tile-price { font-size: 1.6em; font-weight: 760; font-stretch: 80%; line-height: 1.05; }
.tile-per { font-size: 0.78em; color: var(--text-3); }
.tile input:checked + .tile-body { background: var(--text); border-color: var(--text); color: var(--screen); transform: translateY(-2px); }
.tile input:checked + .tile-body .tile-months,
.tile input:checked + .tile-body .tile-per { color: #3a4352; }

.osd-total {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 1em;
	padding-top: 0.65em; border-top: 1px solid var(--osd-line);
}
.osd-sum { margin: 0; display: grid; gap: 0.1em; min-width: 0; }
.osd-sum-label { font-size: 0.86em; color: var(--text-2); }
.osd-sum-price { font-size: 2em; font-weight: 780; font-stretch: 78%; line-height: 1; color: var(--text); }
.osd-sum-note { font-size: 0.8em; color: var(--text-3); }
.osd-sum.is-switching .osd-sum-price { animation: channel 0.32s var(--ease-out); }
.osd .btn-screen { min-height: 2.6em; padding: 0.6em 1.05em; font-size: 0.98em; }
.osd .btn-screen .ibo-icon { width: 1.1em; height: 1.1em; }

@keyframes channel {
	0% { opacity: 0.25; transform: translateY(0.25em); }
	100% { opacity: 1; transform: none; }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section-lead { max-width: 60ch; font-size: 1.12rem; margin-bottom: 2rem; }
.fine { font-size: 0.9rem; color: var(--text-3); margin-top: 1.25rem; }
.fine a { color: var(--text-2); }

/* Was ist IPTV */
.define { background: var(--night-950); padding-top: clamp(3.5rem, 6vw, 5rem); }
.define-inner > * { max-width: 62ch; }
.define-text { font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem); line-height: 1.5; color: var(--text); font-stretch: 96%; font-weight: 420; }

/* Erster Abend: Zeitleiste */
.evening { background: var(--night-900); }
.timeline {
	list-style: none; margin: 2.5rem 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
	position: relative;
}
.timeline::before {
	content: ""; position: absolute; left: 0; right: 0; top: 3.1rem; height: 1px;
	background: linear-gradient(90deg, var(--line), var(--line) 70%, rgb(var(--lamp-rgb) / 0.7));
}
.stop { position: relative; padding-right: clamp(1rem, 3vw, 3rem); }
.stop::before {
	content: ""; position: absolute; left: 0; top: calc(3.1rem - 5px);
	width: 11px; height: 11px; border-radius: 50%;
	background: var(--night-900); border: 1.5px solid var(--text-3);
}
.stop-prime::before { background: var(--lamp); border-color: var(--lamp); }
.stop-time {
	display: block; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
	font-weight: 300; font-stretch: 70%; color: var(--text); line-height: 1; margin-bottom: 2.4rem;
}
.stop-prime .stop-time { color: var(--lamp); font-weight: 520; }
.stop h3 { margin-bottom: 0.4em; }
.stop p { max-width: 32ch; margin: 0; }

/* Was Sie schauen können: Bento */
.lineup { background: var(--night-950); }
.bento {
	margin-top: 2.5rem;
	display: grid; gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-areas:
		"sport sport film"
		"sport sport news"
		"kids world catch";
}
.cell {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 13rem; padding: 1.6rem;
	border-radius: var(--radius); border: 1px solid var(--line-soft);
	background: var(--night-850);
}
.cell h3 { margin-bottom: 0.35em; }
.cell p { margin: 0; max-width: 40ch; }
.cell-icon { width: 1.9rem; height: 1.9rem; color: var(--text-2); margin-bottom: auto; }
.cell-mark { position: absolute; top: 1.4rem; right: 1.4rem; width: 5.5rem; height: 5.5rem; color: rgb(var(--light) / 0.16); }

.cell-sport {
	grid-area: sport; min-height: 28rem;
	background:
		radial-gradient(90% 70% at 85% 10%, rgb(var(--light) / 0.16), transparent 60%),
		linear-gradient(200deg, #1b2433, #0f141c 70%);
	border-color: #263044;
}
.cell-sport .cell-mark { width: 11rem; height: 11rem; top: 2rem; right: 2rem; color: rgb(var(--light) / 0.2); }
.cell-sport h3 { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.6rem); font-stretch: 76%; }
.cell-sport p { font-size: 1.08rem; color: var(--text); opacity: 0.86; }
.cell-film { grid-area: film; background: var(--night-800); }
.cell-figure { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 780; font-stretch: 70%; color: var(--text); line-height: 1; margin: 0 0 auto !important; }
.cell-news { grid-area: news; background: transparent; border-color: var(--line); }
.cell-kids { grid-area: kids; background: rgb(var(--lamp-rgb) / 0.09); border-color: rgb(var(--lamp-rgb) / 0.22); }
.cell-kids .cell-icon { color: var(--lamp); }
.cell-world { grid-area: world; }
.cell-catch { grid-area: catch; background: var(--night-800); }
.ruler {
	display: block; height: 2.2rem; margin-bottom: auto;
	background:
		linear-gradient(90deg, transparent calc(100% - 2px), var(--lamp) calc(100% - 2px)) right / 32% 100% no-repeat,
		repeating-linear-gradient(90deg, var(--text-3) 0 1px, transparent 1px 12.5%) bottom / 100% 40% no-repeat,
		repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 3.125%) bottom / 100% 20% no-repeat;
	opacity: 0.9;
}

/* Geräte */
.devices { background: var(--night-900); }
.devices-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.devices-intro p { max-width: 38ch; }
.device-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1.5rem; }
.device {
	display: flex; align-items: center; gap: 1rem;
	padding: 1rem 0.9rem; margin-inline: -0.9rem;
	border-radius: var(--radius); text-decoration: none;
	transition: background-color 0.2s ease;
}
.device:hover { background: var(--night-850); }
.device-icon { width: 2rem; height: 2rem; color: var(--text-2); }
.device-text { display: grid; gap: 0.1rem; min-width: 0; }
.device-name { color: var(--text); font-weight: 650; font-stretch: 92%; }
.device-apps { font-size: 0.9rem; color: var(--text-3); }
.device-go { margin-left: auto; width: 1.1rem; height: 1.1rem; color: var(--text-3); transition: transform 0.25s var(--ease-out), color 0.2s; }
.device:hover .device-go { transform: translateX(3px); color: var(--lamp); }

/* Tarifmatrix */
.plans { background: var(--night-950); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.plan-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.plan-table th, .plan-table td { text-align: left; padding: 0; }
.plan-table thead th {
	padding: 1rem 1.1rem; font-size: 0.92rem; font-weight: 600; color: var(--text-3);
	font-stretch: 90%; background: var(--night-900); border-bottom: 1px solid var(--line-soft);
}
.plan-table tbody th {
	padding: 1.1rem; color: var(--text); font-weight: 650; font-stretch: 90%; white-space: nowrap; vertical-align: middle;
}
.plan-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
.plan-table tr.is-best { background: rgb(var(--light) / 0.035); }
.row-tag { display: block; font-size: 0.78rem; font-weight: 500; color: var(--lamp); margin-top: 0.2rem; }
.cell-link {
	display: grid; gap: 0.1rem; padding: 1rem 1.1rem;
	text-decoration: none; height: 100%;
	transition: background-color 0.2s ease;
}
.cell-link:hover { background: var(--night-850); }
.cell-price { font-size: 1.35rem; font-weight: 760; font-stretch: 80%; color: var(--text); }
.cell-per { font-size: 0.82rem; color: var(--text-3); }

/* Kundenstimmen */
.voices { background: var(--night-900); }
.voice-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 2.5rem; }
.voice { margin: 0; }
.voice blockquote { margin: 0 0 1rem; }
.voice blockquote p {
	color: var(--text); font-size: 1.12rem; line-height: 1.5; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.voice blockquote p::before { content: "„"; }
.voice blockquote p::after { content: "“"; }
.voice figcaption { display: grid; font-size: 0.92rem; }
.voice-name { color: var(--text); font-weight: 650; }
.voice-meta { color: var(--text-3); }

/* Häufige Fragen */
.faq { background: var(--night-900); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line-soft); }
.qa { border-bottom: 1px solid var(--line-soft); }
.qa summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.2rem 0;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font-size: 1.12rem; font-stretch: 95%; font-weight: 620; line-height: 1.35; }
.qa-caret { width: 1.15rem; height: 1.15rem; color: var(--text-3); transition: transform 0.3s var(--ease-out); }
.qa[open] .qa-caret { transform: rotate(180deg); color: var(--lamp); }
.qa p { margin: 0 0 1.3rem; max-width: 62ch; }
.faq-more { margin: 1.4rem 0 0; }

/* Lesetext */
.reading { background: var(--night-950); }
.prose { max-width: 70ch; }
.prose > * + h2 { margin-top: 2.2em; }
.prose > * + h3 { margin-top: 1.6em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); font-weight: 650; }
.prose em { font-style: normal; color: var(--text); }
.prose .lead { font-size: 1.22rem; color: var(--text); }
.prose .note {
	background: rgb(var(--lamp-rgb) / 0.08);
	border: 1px solid rgb(var(--lamp-rgb) / 0.25);
	border-radius: var(--radius);
	padding: 1rem 1.2rem; color: var(--text);
}
.prose ol {
	list-style: none; padding-left: 0; counter-reset: step;
}
.prose ol > li {
	counter-increment: step; position: relative;
	padding-left: 3rem; margin-bottom: 1rem; min-height: 2rem;
}
.prose ol > li::before {
	content: counter(step);
	position: absolute; left: 0; top: -0.1rem;
	width: 2rem; height: 2rem; display: grid; place-items: center;
	border: 1px solid var(--line); border-radius: 50%;
	font-size: 0.95rem; font-weight: 700; color: var(--text);
}
.prose details {
	border-bottom: 1px solid var(--line-soft); padding: 0;
}
.prose details:first-child { border-top: 1px solid var(--line-soft); }
.prose summary {
	cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; position: relative;
	color: var(--text); font-weight: 620; font-size: 1.12rem; list-style: none;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after {
	content: ""; position: absolute; right: 0.25rem; top: 50%;
	width: 0.6rem; height: 0.6rem; margin-top: -0.4rem;
	border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3);
	rotate: 45deg; transition: rotate 0.3s var(--ease-out);
}
.prose details[open] summary::after { rotate: 225deg; border-color: var(--lamp); }
.prose details > p { margin: 0 0 1.2rem; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line-soft); }

.guide .prose h2 { scroll-margin-top: calc(var(--head-h) + 1.5rem); }

/* Gerätesprung in der Anleitung */
.jump { background: var(--night-950); }
.jump-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
@media (max-width: 860px) { .jump-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .jump-list { grid-template-columns: 1fr; } }
.jump-list a {
	display: flex; align-items: center; gap: 0.75rem;
	padding: 0.9rem 1rem; min-height: 48px;
	border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--text); text-decoration: none; font-weight: 600; font-stretch: 92%;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.jump-list a:hover { border-color: var(--text-3); background: var(--night-850); }
.jump-list .ibo-icon { color: var(--text-2); }

/* Abschluss */
.close {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--night-950);
	padding-block: clamp(5rem, 10vw, 8.5rem);
	border-top: 1px solid var(--line-soft);
}
.close::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(50% 75% at 50% 0%, rgb(var(--light) / 0.1), transparent 70%);
}
.close-inner { text-align: center; }
.close h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.close p { max-width: 52ch; margin: 0 auto 2rem; font-size: 1.12rem; }
.close-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; align-items: center; }
.close-number { color: var(--text-3); font-size: 0.95rem; }

/* Unterseiten-Kopf */
.page-head + .section, .page-head + .section-tight + .section, .page-head + .section-tight { padding-top: clamp(1rem, 2.5vw, 2rem); }
.page-head { background: var(--night-950); padding-top: clamp(2rem, 5vw, 4rem); }
.page-head .wrap { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 20ch; }
.page-lead { font-size: 1.2rem; max-width: 56ch; }
.updated, .article-meta { font-size: 0.88rem; color: var(--text-3); margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.article-figure { margin: 0 auto 0; }
.article-figure img { border-radius: var(--radius); width: 100%; }

.crumbs ol, .crumbs .rank-math-breadcrumb p { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.88rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.room-compact .room-grid { min-height: 0; padding-block: clamp(1rem, 3vw, 2rem); }
.room-compact { padding-top: calc(var(--head-h) + clamp(1rem, 3vw, 2rem)); }

/* Ratgeber-Liste */
.posts { background: var(--night-950); padding-top: 1rem; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.post-item { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line-soft); }
.post-item.has-post-thumbnail { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); align-items: center; }
.post-thumb img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-date { font-size: 0.88rem; color: var(--text-3); margin-bottom: 0.4rem; }
.post-title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin-bottom: 0.5rem; }
.post-title a { text-decoration: none; }
.post-title a:hover { text-decoration: underline; text-decoration-color: var(--lamp); }
.post-excerpt { margin: 0; max-width: 62ch; }
.pagination .nav-links { display: flex; gap: 0.5rem; margin-top: 2rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pagination .page-numbers.current { background: var(--text); color: var(--screen); border-color: var(--text); }

.empty { max-width: 46ch; padding: 2rem 0 1rem; }
.empty-icon { width: 2.4rem; height: 2.4rem; color: var(--text-3); margin-bottom: 1.25rem; }
.empty-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Suche und 404 */
.search-form { margin-top: 2rem; max-width: 30rem; }
.search-form label { display: block; margin-bottom: 0.5rem; color: var(--text); font-weight: 600; }
.search-row { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem;
	background: var(--night-850); color: var(--text);
	border: 1px solid var(--line); border-radius: var(--radius); font: inherit;
}
.search-form input[type="search"]:focus-visible { border-color: var(--lamp); outline-offset: 1px; }
.room-404 { padding-bottom: clamp(4rem, 8vw, 7rem); }
.nf > * { max-width: 46rem; }
.nf-code { font-size: clamp(3rem, 2rem + 5vw, 6rem); font-weight: 300; font-stretch: 62%; color: rgb(var(--light) / 0.35); line-height: 1; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.nf-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Fußbereich */
.site-foot { background: var(--night-950); border-top: 1px solid var(--line-soft); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot-brand p { margin-top: 1rem; max-width: 30ch; color: var(--text-3); }
.foot-title { font-size: 0.95rem; font-stretch: 90%; font-weight: 650; color: var(--text); margin-bottom: 0.9rem; letter-spacing: 0; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.foot-col a { color: var(--text-2); text-decoration: none; }
.foot-col a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--lamp); }
.foot-extra { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.foot-base { margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line-soft); display: grid; gap: 0.5rem; color: var(--text-3); font-size: 0.85rem; }
.foot-base p { margin: 0; }
.foot-disclaimer { max-width: 90ch; }

/* WordPress-Kernklassen */
.alignwide { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: 0.88rem; color: var(--text-3); }
.wp-block-button__link { background: var(--lamp); color: var(--lamp-ink); border-radius: var(--radius); padding: 0.75rem 1.3rem; text-decoration: none; font-weight: 680; }

/* ---------- Anpassungen ---------- */

@media (max-width: 1080px) {
	.room-grid { grid-template-columns: 1fr; min-height: 0; gap: 2.25rem; }
	.room-copy h1 { max-width: 16ch; }
	.room-tv { max-width: 860px; width: 100%; }
	.faq-wrap, .devices-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"sport sport"
			"film news"
			"kids world"
			"catch catch";
	}
	.cell-sport { min-height: 20rem; }
	.timeline { grid-template-columns: 1fr; gap: 2.25rem; }
	.timeline::before { left: 5px; right: auto; top: 0.5rem; bottom: 0.5rem; width: 1px; height: auto; background: linear-gradient(180deg, var(--line), var(--line) 70%, rgb(var(--lamp-rgb) / 0.7)); }
	.stop { padding-left: 2.25rem; padding-right: 0; }
	.stop::before { top: 0.65rem; }
	.stop-time { margin-bottom: 0.6rem; }
	.device-list { grid-template-columns: 1fr; }
	.post-item.has-post-thumbnail { grid-template-columns: 1fr; }
}

/* Auf dem Handy ist das Handy der Bildschirm: Rahmen weg, Menü bleibt. */
@media (max-width: 640px) {
	.room { padding-top: calc(var(--head-h) + 1.25rem); }
	.tv-frame { aspect-ratio: auto; padding: 0; background: none; box-shadow: none; border-radius: 10px; }
	.tv-screen { border: 1px solid var(--osd-line); border-radius: 10px; }
	.tv-stand { display: none; }
	.osd { font-size: 15px; gap: 1.1rem; padding: 1.1rem; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.osd-total { flex-direction: column; align-items: stretch; }
	.osd .btn-screen { width: 100%; min-height: 50px; }
	.key > span { min-width: 3.1em; height: 2.6em; }
	.room-actions .btn { width: 100%; }
	.sideboard { height: 1.5rem; }
	.bento { grid-template-columns: 1fr; grid-template-areas: "sport" "film" "news" "kids" "world" "catch"; }
	.cell, .cell-sport { min-height: 0; }
	.cell-sport { padding-top: 9rem; }
	.cell-sport .cell-mark { width: 6.5rem; height: 6.5rem; top: 1.4rem; right: 1.4rem; }
	.cell-figure { margin-bottom: 1rem !important; }
	.cell-icon, .ruler { margin-bottom: 1rem; }
	.foot-grid { grid-template-columns: 1fr; }
	.close-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
	.tile input:checked + .tile-body { transform: none; }
}

@media (forced-colors: active) {
	.key input:checked + span, .tile input:checked + .tile-body { outline: 3px solid CanvasText; }
}
