/**
 * Tandem-Digital Verein — Frontend
 *
 * Farben, Schriften und Abstände stammen aus dem Markenbuch (tokens.json).
 * Zielvorgabe: WCAG 2.1 AA nach eCH-0059.
 *
 * Kontraste (Text auf Grund):
 *   Tinte      #17262B auf Papier  #FAF7F2   14.6:1
 *   Tinte-weich #475A61 auf Papier           6.8:1
 *   Petrol     #0B4F5C auf Weiss              9.2:1
 *   Weiss auf Petrol                          9.2:1
 *   Koralle-Tinte #B23A14 auf Weiss           6.0:1
 *   Tinte auf Sonne #F5B82E                   8.7:1
 *   Sonne auf Petrol-tief #083A44             6.9:1
 * Koralle #E2552D wird nie für Text verwendet (3.8:1 auf Weiss).
 *
 * Mobile first. Die Schriftgrösse wird über --step (1 / 1.15 / 1.32)
 * skaliert; Fliesstext bleibt bei Stufe 1 mindestens 18 px gross.
 */

@font-face {
	font-family: "Fraunces";
	src: url("../fonts/Fraunces-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("../fonts/AtkinsonHyperlegibleNext-Variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--petrol: #0B4F5C;
	--petrol-tief: #083A44;
	--koralle: #E2552D;
	--koralle-tinte: #B23A14;
	--sonne: #F5B82E;
	--papier: #FAF7F2;
	--tinte: #17262B;
	--tinte-weich: #475A61;
	--petrol-dunst: #E3EFF0;
	--koralle-dunst: #FDECE6;
	--sonne-dunst: #FEF4D8;
	--weiss: #FFFFFF;
	--linie: #D9E2E3;
	--linie-steuerung: #5B7A80;
	--fehler: #A8261B;
	--ok: #17603A;

	--abstand-1: 4px;
	--abstand-2: 8px;
	--abstand-3: 12px;
	--abstand-4: 16px;
	--abstand-6: 24px;
	--abstand-8: 32px;
	--abstand-12: 48px;
	--abstand-16: 64px;

	--radius-s: 8px;
	--radius-m: 14px;
	--radius-l: 24px;

	--step: 1;
	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
	--menu-width: 60%;
	--gutter: clamp(20px, 4vw, 48px);
}

.tdv * { box-sizing: border-box; }
.tdv {
	margin: 0;
	font-family: var(--body);
	font-size: calc(18px * var(--step));
	line-height: 1.6;
	color: var(--tinte);
	background: var(--papier);
}
.tdv img, .tdv svg { max-width: 100%; }
.tdv a { color: var(--petrol); text-underline-offset: 4px; }
.tdv h1, .tdv h2, .tdv h3, .tdv h4 {
	font-family: var(--display);
	font-variation-settings: "SOFT" 100;
	margin: 0;
	color: var(--tinte);
}
.tdv h1 { font-weight: 650; font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; }
.tdv h2 { font-weight: 620; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; color: var(--petrol); }
.tdv h3 { font-weight: 600; font-size: 1.33em; line-height: 1.2; }
.tdv p { margin: 0 0 1rem; }
.tdv ul, .tdv ol { margin: 0 0 1rem; padding-left: 1.3em; }

.tdv-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.tdv-eyebrow {
	display: block; font-size: 14px; line-height: 20px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--koralle-tinte); margin-bottom: 14px;
}
.tdv-lead { font-size: 1.15em; line-height: 1.55; color: var(--tinte-weich); max-width: 34em; }
.tdv-small { font-size: .889em; line-height: 1.5; color: var(--tinte-weich); }
.tdv-head { max-width: 40em; margin-bottom: 40px; }
.tdv-head h2 { margin-bottom: 18px; }
.tdv-head p { font-size: 1.1em; margin: 0; }

.tdv :focus-visible, .tdv-menu :focus-visible { outline: 3px solid var(--koralle-tinte); outline-offset: 3px; border-radius: 4px; }
.tdv-dark :focus-visible { outline-color: var(--sonne); }

.tdv .tdv-skip { position: absolute; left: -9999px; background: var(--tinte); color: #fff; padding: 12px 18px; z-index: 200; }
.tdv .tdv-skip:focus { left: 12px; top: 12px; }
.tdv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Abschnitte ---------- */
.tdv-sec { padding: clamp(56px, 7vw, 96px) 0; }
.tdv-sec.is-paper { background: var(--papier); }
.tdv-sec.is-dunst { background: var(--petrol-dunst); }
.tdv-sec.is-sun { background: var(--sonne-dunst); }
.tdv-sec.is-white { background: var(--weiss); }
.tdv-sec.is-deep { background: var(--petrol-tief); color: var(--papier); }
.tdv-sec.is-deep h2, .tdv-sec.is-deep h3 { color: var(--papier); }
.tdv-sec.is-deep .tdv-eyebrow { color: var(--sonne); }
.tdv-sec.is-deep a:not(.tdv-btn) { color: #fff; }

/* ---------- Kopfleiste ---------- */
.tdv-topbar { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 60; }
.tdv-topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; min-height: 72px; padding: 10px var(--gutter); max-width: 1200px; margin: 0 auto; }
.tdv-brand { display: block; line-height: 0; text-decoration: none; margin-right: auto; }
.tdv-brand img { height: 36px; width: auto; display: block; }
.tdv-tools { display: flex; align-items: center; gap: 8px; }
.tdv-ctrl { display: flex; align-items: center; gap: 6px; }
.tdv-ctrl button {
	font-family: var(--body); font-weight: 700; background: var(--weiss);
	border: 1.5px solid var(--linie-steuerung); color: var(--tinte);
	height: 44px; min-width: 44px; padding: 0 10px; border-radius: 10px; cursor: pointer; line-height: 1;
}
.tdv-ctrl button[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.tdv-lang button { font-size: 16px; }
.tdv-ts-a { font-size: 15px; }
.tdv-ts-b { font-size: 18px; }
.tdv-ts-c { font-size: 22px; }

.tdv-burger {
	display: flex; align-items: center; gap: 8px;
	height: 48px; padding: 0 16px 0 12px;
	background: var(--tinte); color: #fff; border: 0; border-radius: 10px;
	font-family: var(--body); font-size: 17px; font-weight: 700; cursor: pointer;
}
.tdv-burger svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.tdv-burger-text { display: none; }

/* ---------- Schubladen-Menü ---------- */
.tdv-scrim {
	position: fixed; inset: 0; background: rgba(8, 58, 68, .6);
	opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; z-index: 80;
}
.tdv-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.tdv-menu {
	position: fixed; top: 0; left: 0; bottom: 0;
	width: var(--menu-width); min-width: 280px; max-width: 460px;
	background: var(--weiss); z-index: 90;
	transform: translateX(-100%); transition: transform .28s ease, visibility 0s linear .28s;
	display: flex; flex-direction: column;
	box-shadow: 0 0 40px rgba(8, 58, 68, .3);
	overflow-y: auto; visibility: hidden;
}
.tdv-menu.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.tdv-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--linie); }
.tdv-menu-head strong { font-family: var(--display); font-size: 1.25rem; font-weight: 650; }
.tdv-menu-close {
	width: 48px; height: 48px; border: 1.5px solid var(--linie-steuerung); background: var(--weiss);
	border-radius: 10px; cursor: pointer; display: grid; place-items: center;
}
.tdv-menu-close svg { width: 22px; height: 22px; stroke: var(--tinte); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.tdv-menu nav { padding: 8px 12px 20px; }
.tdv-menu nav a {
	display: block; padding: 15px 12px; text-decoration: none; color: var(--tinte);
	font-weight: 700; font-size: 1.15rem; border-radius: 9px; border-bottom: 1px solid var(--linie);
}
.tdv-menu nav a:last-child { border-bottom: 0; }
.tdv-menu nav a:hover, .tdv-menu nav a[aria-current="page"] { background: var(--petrol-dunst); }
.tdv-menu-foot { margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--linie); font-size: 16px; color: var(--tinte-weich); }

/* ---------- Schaltflächen ---------- */
.tdv .tdv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 10px 26px; border-radius: var(--radius-m);
	font-family: var(--body); font-size: 1em; font-weight: 700; line-height: 1.2;
	text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center;
}
.tdv .tdv-btn-primary { background: var(--petrol); color: #fff; }
.tdv .tdv-btn-primary:hover { background: var(--petrol-tief); }
.tdv .tdv-btn-ghost { background: transparent; color: var(--tinte); border-color: var(--linie-steuerung); }
.tdv .tdv-btn-ghost:hover { background: var(--petrol-dunst); }
.tdv .tdv-btn-sun { background: var(--sonne); color: var(--tinte); }
.tdv .tdv-btn-sun:hover { background: #ffc94d; }
.tdv .tdv-btn-accent { background: var(--koralle-tinte); color: #fff; }
.tdv .tdv-btn[disabled], .tdv .tdv-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.tdv-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tdv-textlink {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font-weight: 700; color: var(--petrol); text-decoration: underline; text-underline-offset: 4px;
}
.tdv-textlink svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.tdv-hero { background: var(--papier); }
.tdv-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.tdv-hero-text { flex: 1 1 440px; min-width: 0; }
.tdv-hero-text h1 { margin-bottom: 22px; }
.tdv-hero-text .tdv-lead { margin-bottom: 32px; }
.tdv-hero-art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.tdv-hero-art svg { width: 100%; max-width: 500px; height: auto; display: block; }
.tdv-crumbs { padding-top: 20px; padding-bottom: 0; font-size: 16px; line-height: 24px; color: var(--tinte-weich); }
.tdv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.tdv-crumbs li + li::before { content: "›"; margin-right: 8px; }

/* ---------- Band Datenhoheit ---------- */
.tdv-band { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; }
.tdv-band > div { flex: 1 1 360px; min-width: 0; }
.tdv-band h2 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 650; line-height: 1.06; letter-spacing: -.02em; }
.tdv-band p { font-size: 1.15em; line-height: 1.6; color: #E6EEF0; margin-bottom: 26px; }

/* ---------- Karten ---------- */
.tdv-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tdv-grid.is-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tdv-card {
	background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-m);
	padding: 0 24px 28px; display: flex; flex-direction: column; overflow: hidden;
}
.tdv-card-top { display: flex; align-items: flex-end; justify-content: space-between; height: 72px; margin-bottom: 20px; }
.tdv-arch { display: block; width: 56px; height: 56px; border-radius: 999px 999px 0 0; }
.tdv-arch.is-petrol { background: var(--petrol); }
.tdv-arch.is-sun { background: var(--sonne); }
.tdv-arch.is-coral { background: var(--koralle); }
.tdv-arch.is-deep { background: var(--petrol-tief); }
.tdv-ico { width: 32px; height: 32px; stroke: var(--petrol); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.tdv-card-for { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--koralle-tinte); margin-bottom: 8px; display: block; }
.tdv-card h3 { margin-bottom: 12px; }
.tdv-card p { margin: 0 0 16px; }
.tdv-card .tdv-who { font-size: .889em; line-height: 1.5; color: var(--tinte-weich); margin-bottom: 20px; }
.tdv-card .tdv-textlink { margin-top: auto; }
.tdv-card.is-plain { padding-top: 24px; }

.tdv-num {
	display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px;
	background: var(--petrol); color: #fff; font-family: var(--display); font-weight: 650; font-size: 24px; flex: 0 0 auto;
}
.tdv-stances { display: flex; flex-wrap: wrap; gap: 36px 48px; margin-top: 36px; }
.tdv-stance { flex: 1 1 260px; min-width: 0; }
.tdv-stance .tdv-num { margin-bottom: 18px; }
.tdv-stance h3 { margin-bottom: 10px; }
.tdv-stance p { margin: 0; }

.tdv-checks { list-style: none; margin: 0 0 8px; padding: 0; }
.tdv-checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.tdv-checks svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; stroke: var(--petrol); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.tdv-pillar-head { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; }

/* ---------- Teaser Bestandsaufnahme ---------- */
.tdv-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.tdv-teaser > div { flex: 1 1 360px; min-width: 0; }
.tdv-teaser h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 650; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px; }
.tdv-teaser p { color: #E6EEF0; font-size: 1.1em; margin-bottom: 26px; }
.tdv-sample { background: var(--papier); color: var(--tinte); border-radius: 20px; padding: 28px 24px; }
.tdv-sample .tdv-eyebrow, .tdv-sec.is-deep .tdv-sample .tdv-eyebrow { margin-bottom: 10px; color: var(--koralle-tinte); }
.tdv-teaser .tdv-sample p.tdv-sample-q { color: var(--tinte); }
.tdv-sample-q { font-family: var(--display); font-weight: 600; font-size: 1.2em; line-height: 1.3; margin-bottom: 16px; }
.tdv-sample-opts { display: flex; flex-direction: column; gap: 10px; }
.tdv-sample-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--linie-steuerung); background: var(--weiss); }
.tdv-sample-opt.is-on { border: 2px solid var(--petrol); background: var(--petrol-dunst); }
.tdv-sample-dot { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; border-radius: 999px; border: 2px solid var(--petrol); background: var(--weiss); }
.tdv-sample-opt.is-on .tdv-sample-dot { background: var(--petrol); box-shadow: inset 0 0 0 4px var(--petrol-dunst); }

/* ---------- Rechte ---------- */
.tdv-right { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-m); padding: 24px; }
.tdv-right .tdv-ico { margin-bottom: 14px; }
.tdv-right h3 { margin-bottom: 8px; font-size: 1.2em; }
.tdv-right p { margin: 0; }
.tdv-notice { display: inline-block; font-size: .889em; line-height: 1.4; color: var(--tinte); background: var(--sonne-dunst); border-radius: 999px; padding: 6px 16px; }
.tdv-sec.is-sun .tdv-notice, .tdv-sec.is-dunst .tdv-notice { background: var(--weiss); }
.tdv-flagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* ---------- Termine ---------- */
.tdv-dates-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.tdv-event {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--weiss);
	border: 1px solid var(--linie); border-radius: var(--radius-m); padding: 20px 24px; margin-bottom: 16px;
}
.tdv-event[hidden] { display: none; }
.tdv-date { flex: 0 0 76px; text-align: center; background: var(--petrol-dunst); border-radius: 10px; padding: 10px 0; }
.tdv-date b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; color: var(--petrol); }
.tdv-date span { display: block; font-size: 16px; line-height: 22px; color: var(--tinte-weich); }
.tdv-event-body { flex: 1 1 260px; min-width: 0; }
.tdv-event h3 { font-size: 1.22em; margin-bottom: 6px; }
.tdv-event p { margin: 0; font-size: .889em; line-height: 1.5; color: var(--tinte-weich); }
.tdv-seats { display: inline-block; font-size: .889em; font-weight: 700; color: var(--koralle-tinte); background: var(--koralle-dunst); padding: 3px 12px; border-radius: 999px; margin-top: 8px; }
.tdv-seats.is-full { color: #fff; background: var(--tinte); }
.tdv-toggle-dates {
	display: inline-block; margin-top: 4px; padding: 12px 22px; background: var(--weiss);
	border: 2px solid var(--linie-steuerung); border-radius: var(--radius-m);
	font-family: var(--body); font-size: 1em; font-weight: 700; color: var(--petrol); cursor: pointer;
}
.tdv-free-note { font-size: .889em; color: var(--tinte-weich); margin: 18px 0 0; }
.tdv-toggle-dates { margin-top: 12px; }

/* ---------- Mitmachen ---------- */
.tdv-plan { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-m); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.tdv-plan h3 { margin: 0; }
.tdv-plan-price { margin: 0; font-family: var(--display); font-weight: 650; font-size: 2.1em; line-height: 1.2; color: var(--petrol); }
.tdv-plan-price span { font-family: var(--body); font-size: .45em; font-weight: 400; color: var(--tinte-weich); }
.tdv-plan p.tdv-plan-text { margin: 8px 0 20px; }
.tdv-plan .tdv-btn { margin-top: auto; }
.tdv-join-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Formulare ---------- */
.tdv-forms { background: var(--petrol-dunst); padding: clamp(40px, 6vw, 72px) 0; }
.tdv-form-block { max-width: 680px; }
.tdv-form-block h2 { margin-bottom: 12px; }
.tdv-form-block:not([hidden]) ~ .tdv-form-block:not([hidden]) { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--linie-steuerung); }
.tdv-form-block > p { color: var(--tinte); }
.tdv-req-hint { font-size: .889em; color: var(--tinte-weich); }
.tdv-field { display: block; margin-bottom: 16px; }
.tdv-field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.tdv-field input, .tdv-field select, .tdv-field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--linie-steuerung);
	border-radius: 10px; font-family: var(--body); font-size: 1em; background: var(--weiss); color: var(--tinte);
}
.tdv-field textarea { min-height: 120px; resize: vertical; }
.tdv-field input[aria-invalid="true"], .tdv-field select[aria-invalid="true"], .tdv-field textarea[aria-invalid="true"] { border-color: var(--fehler); border-width: 2px; }
.tdv-field-error { display: block; color: var(--fehler); font-size: .889em; font-weight: 700; margin-top: 4px; }
.tdv-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.tdv-check input { width: 26px; height: 26px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--petrol); }
.tdv-hp { position: absolute; left: -9999px; }
.tdv-note { margin-top: 12px; font-weight: 700; }
.tdv-note.is-ok { color: var(--ok); }
.tdv-note.is-error { color: var(--fehler); }

/* ---------- Dokumente / Textseiten ---------- */
.tdv-doc {
	display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
	background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-m);
	padding: 16px 20px; margin-bottom: 12px;
}
.tdv-doc-missing { font-size: .889em; color: var(--tinte-weich); font-style: italic; }
.tdv-prose { padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); background: var(--papier); }
.tdv-prose .tdv-wrap { max-width: 860px; }
.tdv-prose h1 { margin-bottom: 20px; }
.tdv-prose h2 { margin: 2rem 0 .6rem; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.tdv-prose li { margin-bottom: .4rem; }
.tdv .tdv-todo, .tdv-footer .tdv-todo { background: var(--sonne-dunst); color: var(--tinte); border-radius: 6px; padding: 0 6px; }

/* ---------- Fussbereich ---------- */
.tdv-footer { background: var(--petrol-tief); color: var(--papier); }
.tdv-footer .tdv-wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 32px; }
.tdv-fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 36px 48px; }
.tdv-fcols > div, .tdv-fcols > nav { min-width: 0; display: flex; flex-direction: column; }
.tdv-flogo { height: 44px; width: auto; display: block; margin-bottom: 20px; align-self: flex-start; }
.tdv-footer p { margin: 0 0 8px; color: #E6EEF0; }
.tdv-footer h4 { font-family: var(--body); font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sonne); margin-bottom: 8px; }
.tdv .tdv-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tdv-legal { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid #2C6672; font-size: 16px; line-height: 24px; color: #C9D8DB; }
.tdv-footer .tdv-legal { color: #C9D8DB; }

/* ---------- Bestandsaufnahme ---------- */
.tdv-check-shell { max-width: 760px; margin: 0 auto; }
.tdv-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.tdv-step-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
	background: var(--weiss); border: 1.5px solid var(--linie-steuerung); color: var(--tinte); font-size: 16px; line-height: 22px; font-weight: 700;
}
.tdv-step-pill.is-current { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.tdv-step-pill.is-done { background: var(--petrol-dunst); border-color: var(--petrol); }
.tdv-progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; font-size: 16px; line-height: 24px; color: var(--tinte-weich); }
.tdv-progress { height: 10px; border-radius: 999px; background: var(--petrol-dunst); overflow: hidden; margin-bottom: 36px; border: 1px solid var(--linie); }
.tdv-progress-bar { height: 100%; background: var(--petrol); border-radius: 999px; transition: width .25s ease; }

.tdv-question { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.tdv-question legend { padding: 0; margin-bottom: 8px; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.015em; color: var(--tinte); }
.tdv-question .tdv-qhelp { color: var(--tinte-weich); margin-bottom: 24px; }
.tdv-qpillar { display: block; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--koralle-tinte); margin-bottom: 10px; }
.tdv-answer { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--linie-steuerung); background: var(--weiss); margin-bottom: 14px; cursor: pointer; }
.tdv-answer:hover { background: var(--petrol-dunst); }
.tdv-answer input { flex: 0 0 auto; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--petrol); }
.tdv-answer span { flex: 1; font-size: 1.05em; line-height: 1.5; }
.tdv-answer:has(input:checked) { border: 2px solid var(--petrol); background: var(--petrol-dunst); padding: 15.5px 17.5px; }
.tdv-why { background: var(--sonne-dunst); border-radius: var(--radius-m); padding: 18px 20px; margin: 8px 0 32px; }
.tdv-why p { margin: 0; }
.tdv-why p:first-child { font-weight: 700; font-size: .889em; margin-bottom: 4px; }
.tdv-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.tdv-privacy-note { margin: 28px 0 0; font-size: .889em; color: var(--tinte-weich); }
.tdv-check-warn { background: var(--koralle-dunst); border-radius: var(--radius-m); padding: 14px 18px; margin: 0 0 20px; font-weight: 700; color: var(--tinte); }

.tdv-meters { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-bottom: 48px; }
.tdv-meter { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-m); padding: 22px 24px; }
.tdv-meter-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tdv-meter-head .tdv-ico { width: 30px; height: 30px; }
.tdv-meter-head h3 { margin: 0; }
.tdv-segs { display: flex; gap: 6px; margin-bottom: 12px; }
.tdv-seg { flex: 1; height: 14px; border-radius: 4px; border: 1.5px solid var(--petrol); background: var(--petrol-dunst); }
.tdv-seg.is-on { background: var(--petrol); }
.tdv-meter-level { font-weight: 700; color: var(--koralle-tinte); margin: 0 0 6px; }
.tdv-meter p:last-child { margin: 0; font-size: .95em; }
.tdv-next { background: var(--petrol-dunst); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); }
.tdv-next h2 { margin-bottom: 20px; }
.tdv-next ol { list-style: none; margin: 0; padding: 0; }
.tdv-next li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.tdv-next li .tdv-num { width: 44px; height: 44px; font-size: 22px; }
.tdv-next li > div { padding-top: 6px; }
.tdv-next li strong { display: block; margin-bottom: 2px; }
.tdv-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.tdv-js-only { display: none; }
.tdv.has-js .tdv-js-only { display: block; }
.tdv.has-js .tdv-nojs-note { display: none; }
.tdv-nojs-note { background: var(--sonne-dunst); border-radius: var(--radius-m); padding: 16px 20px; margin-bottom: 28px; }

/* ---------- Feinschliff: Vorrang vor den allgemeinen Absatz- und Listenregeln ---------- */
.tdv [hidden] { display: none !important; }
.tdv .tdv-steps { margin: 0 0 28px; padding: 0; }
.tdv .tdv-privacy-note { margin: 28px 0 0; }
.tdv .tdv-free-note { margin: 18px 0 0; }
.tdv .tdv-check-warn { margin: 0 0 20px; }
.tdv .tdv-sample-q { margin: 0 0 16px; }
.tdv .tdv-plan-price { margin: 0; }
.tdv .tdv-meter-level { margin: 0 0 6px; }
.tdv-question legend .tdv-qpillar { font-family: var(--body); font-variation-settings: normal; font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .08em; }

/* ---------- Ab Tablet ---------- */
@media (min-width: 720px) {
	.tdv-topbar-in { min-height: 80px; flex-wrap: nowrap; }
	.tdv-brand img { height: 42px; }
	.tdv-burger-text { display: inline; }
	.tdv-menu nav { padding: 12px 28px 24px; }
	.tdv-menu nav a { font-size: 1.3rem; padding: 18px 14px; }
	.tdv-menu-head { padding: 22px 28px; }
	.tdv-menu-foot { padding: 20px 28px; }
	.tdv-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
}
@media (max-width: 460px) {
	.tdv-ctrl button { min-width: 40px; height: 44px; padding: 0 8px; }
	.tdv-burger { padding: 0 12px; }
	.tdv-tools { gap: 6px; }
	.tdv-topbar-in { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.tdv-menu, .tdv-scrim, .tdv-progress-bar { transition: none; }
}

/* ---------- Druck: nur das Ergebnis ---------- */
@media print {
	.tdv-check-intro, .tdv-privacy-note, .tdv-nojs-note,
	.tdv-topbar, .tdv-scrim, .tdv-menu, .tdv-footer, .tdv-skip, .tdv-crumbs, .tdv-forms,
	.tdv-result-actions, .tdv-hero-art, .tdv-check-form, .tdv-steps, .tdv-progress, .tdv-progress-meta { display: none !important; }
	.tdv { background: #fff; font-size: 12pt; }
	.tdv-sec { padding: 0; background: #fff !important; }
	.tdv-meter, .tdv-next { break-inside: avoid; }
	.tdv-print-head { display: block !important; }
}
.tdv-print-head { display: none; margin-bottom: 20px; }
.tdv-print-head img { height: 40px; width: auto; }
