/**
 * BRAND DETOX CHECK — Design-Layer
 *
 * Vollständig unter .bdc gekapselt, damit nichts ins Theme ausläuft und
 * Lay-Theme-Styles nicht durchschlagen. Alle relevanten Eigenschaften sind
 * explizit gesetzt (statt !important), damit Theme-Resets nicht gewinnen.
 *
 * Die Gestaltung folgt brand-detox.com: Barlow Condensed ExtraBold für
 * Auszeichnung, Libre Baskerville für Fließtext, reines Rot #ff0000, 12px
 * Radius an den Knöpfen, Schwarz auf Weiß.
 *
 * Farben, Schriften und Maße lassen sich über die Custom Properties auf .bdc
 * überschreiben, z. B. im Customizer oder per Child-Theme:
 *   .bdc { --bdc-max: 720px; }
 */

.bdc {
	/* Werte aus brand-detox.com übernommen: reines Rot, Schwarz auf Weiß,
	   12px Radius an den Knöpfen, Barlow Condensed für Auszeichnung,
	   Libre Baskerville für Fließtext. */
	--bdc-ink: #000;
	--bdc-paper: #fff;
	--bdc-line: #e0e0e0;
	--bdc-muted: #6f6f6f;
	--bdc-soft: #f3f3f3;
	--bdc-red: #ff0000;
	--bdc-quote: #333;

	--bdc-font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
	--bdc-font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
	--bdc-font-ui: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

	--bdc-max: 640px;
	--bdc-radius: 12px;

	/* Rahmen. Auf dem Handy wird --bdc-frame weiter unten auf 20px gesetzt.
	   --bdc-pad ist bewusst ein fester Wert und kein Prozentsatz: Prozente
	   bezögen sich auf die Breite des Containers, der Rahmen würde also auf
	   großen Bildschirmen immer weiter mitwachsen. */
	--bdc-frame: 40px;
	--bdc-frame-color: #ff0000;
	--bdc-inset: 2%;
	--bdc-inset-y: 0px;
	--bdc-pad: 48px;
	--bdc-glow: 0 0 14px rgba(255, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.18);

	/* Der Container nimmt die volle Breite, die ihm die Seite gibt; begrenzt und
	   mittig gestellt wird die Bühne darin — und zwar per Flexbox, nicht per
	   margin:0 auto. Themes (Lay) setzen Außenabstände ihrer Kinder gern
	   pauschal zurück, teils mit !important; an justify/align kommen sie damit
	   nicht heran. */
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;

	/* width:auto statt 100% — mit Außenabstand ergäbe 100 % sonst 104 % und
	   liefe über den Container hinaus. Rahmen, Innenabstand und Hintergrund
	   sitzen nicht hier, sondern auf .bdc-frame: der Rahmen soll sich um den
	   Textblock legen, nicht um den ganzen verfügbaren Platz. */
	width: auto;
	max-width: none;
	margin-top: var(--bdc-inset-y);
	margin-bottom: var(--bdc-inset-y);
	margin-left: var(--bdc-inset);
	margin-right: var(--bdc-inset);
	color: var(--bdc-ink);
	font-family: var(--bdc-font-serif);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

/* Der Rahmen ist so breit wie der Text plus Innenabstand plus Rahmenstärke —
   nicht breiter. Auf schmalen Containern greift width:100% und er schrumpft mit. */
.bdc .bdc-frame {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	/* Rückfallwert zuerst: Sollte die Rechnung darunter irgendwo nicht greifen,
	   ist der Rahmen zu schmal — aber nie wieder über die volle Breite. */
	max-width: var(--bdc-max);
	max-width: calc(var(--bdc-max) + 2 * var(--bdc-pad) + 2 * var(--bdc-frame));
	border: var(--bdc-frame) solid var(--bdc-frame-color);
	padding: var(--bdc-pad);
	background: var(--bdc-paper);
}

.bdc .bdc-stage,
.bdc .bdc-noscript {
	width: 100%;
	max-width: var(--bdc-max);
	margin-left: auto;
	margin-right: auto;
}

/* frame="0": ohne Rahmen, Abstand und Hintergrund — für Seiten, die den Rahmen
   schon selbst mitbringen (sonst steht er doppelt). Zwei Klassen, damit die
   Handy-Regel weiter unten ihn nicht wieder anschaltet. */
.bdc.bdc--plain {
	--bdc-frame: 0px;
	--bdc-inset: 0px;
	--bdc-inset-y: 0px;
	--bdc-pad: 0px;
}

.bdc.bdc--plain .bdc-frame {
	border: 0;
	background: transparent;
}

/* align="left": Bühne bündig an den linken Rand des zugewiesenen Platzes. */
.bdc.bdc--left {
	align-items: flex-start;
}

.bdc.bdc--left .bdc-stage,
.bdc.bdc--left .bdc-noscript {
	margin-left: 0;
	margin-right: auto;
}

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

/* Der Schritt wechselt, der Block bleibt stehen: feste Mindesthöhe während der
   Fragen (per JS gesetzt) plus kurzes Einblenden statt hartem Umschalten.
   Bewusst als Animation ohne fill-mode und mit sichtbarem Grundzustand: läuft
   die Animation nicht (alte Browser, verborgener Container, abgeschaltete
   Effekte), steht der Inhalt trotzdem auf opacity 1 und ist da. */
.bdc .bdc-stage {
	opacity: 1;
	animation: bdc-fade-in 0.16s ease-out;
}

@keyframes bdc-fade-in {
	from {
		opacity: 0;
	}
}

/* --------------------------------------------------------------- Typografie */

.bdc .bdc-eyebrow {
	font-family: var(--bdc-font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--bdc-red);
	margin: 0 0 8px;
	outline: none;
}

/* Auszeichnung wie auf der Website: Barlow Condensed ExtraBold, Zeilenabstand
   gleich Schriftgrad (dort 70/70 und 40/40), keine Laufweitenkorrektur. */
.bdc .bdc-title {
	font-family: var(--bdc-font-display);
	text-transform: uppercase;
	font-weight: 800;
	font-size: 56px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--bdc-ink);
	margin: 0 0 24px;
	padding: 0;
	text-align: left;
}

.bdc .bdc-finding-title {
	font-family: var(--bdc-font-display);
	text-transform: uppercase;
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--bdc-ink);
	margin: 0 0 16px;
	padding: 0;
	text-align: left;
}

.bdc .bdc-qnum {
	font-family: var(--bdc-font-display);
	text-transform: uppercase;
	font-weight: 800;
	font-size: 32px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--bdc-ink);
	margin: 0 0 12px;
	padding: 0;
	text-align: left;
	outline: none;
}

.bdc .bdc-qtext {
	font-family: var(--bdc-font-serif);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.5;
	color: var(--bdc-ink);
	margin: 0 0 20px;
}

.bdc .bdc-p {
	font-family: var(--bdc-font-serif);
	font-size: 16px;
	line-height: 1.55;
	color: var(--bdc-ink);
	margin: 0 0 16px;
}

.bdc .bdc-p strong {
	font-weight: 700;
}

.bdc .bdc-lines {
	margin: 0 0 22px;
}

.bdc .bdc-lines .bdc-p {
	margin: 0 0 2px;
}

/* ---------------------------------------------------------------- Fortschritt */

.bdc .bdc-progress {
	font-family: var(--bdc-font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bdc-muted);
	margin: 0 0 10px;
}

.bdc .bdc-progress-bar {
	height: 2px;
	background: var(--bdc-line);
	margin: 0 0 22px;
}

.bdc .bdc-progress-fill {
	height: 2px;
	background: var(--bdc-red);
	transition: width 0.2s ease;
}

/* -------------------------------------------------------------------- Buttons */

.bdc button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	box-shadow: none;
	text-shadow: none;
	text-decoration: none;
	line-height: 1.35;
	width: auto;
	min-height: 0;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bdc .bdc-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 22px;
}

.bdc .bdc-opt {
	display: block;
	width: 100%;
	font-family: var(--bdc-font-ui);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: left;
	text-transform: none;
	padding: 12px 18px;
	background: var(--bdc-paper);
	border: 2px solid var(--bdc-ink);
	border-radius: var(--bdc-radius);
	color: var(--bdc-ink);
	cursor: pointer;
}

.bdc .bdc-opt:hover {
	background: var(--bdc-soft);
	color: var(--bdc-ink);
}

/* Ausgewählt bleibt schwarz, nicht rot: Rot ist auf brand-detox.com die Farbe
   der Handlung (Bestellen), nicht die einer getroffenen Wahl. */
.bdc .bdc-opt.is-selected {
	background: var(--bdc-ink);
	color: var(--bdc-paper);
}

/* Ziffern nur dort zeigen, wo es eine Tastatur gibt — auf dem Handy wären sie
   eine Behauptung, die man nicht einlösen kann. */
@media (hover: hover) and (pointer: fine) {
	.bdc .bdc-options {
		counter-reset: bdc-opt;
	}

	.bdc .bdc-opt {
		display: flex;
		align-items: baseline;
		gap: 12px;
	}

	.bdc .bdc-opt::before {
		counter-increment: bdc-opt;
		content: counter(bdc-opt);
		font-size: 14px;
		font-weight: 700;
		color: var(--bdc-muted);
		min-width: 9px;
	}

	.bdc .bdc-opt.is-selected::before {
		color: var(--bdc-paper);
	}
}

.bdc .bdc-keyhint {
	font-family: var(--bdc-font-ui);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bdc-muted);
	opacity: 0.7;
}

/* Der rote Knopf mit Glühen ist die Signatur der Website. Der Schlagschatten
   dort ist 24px weit versetzt — in einem eingebetteten Block wäre das zu laut,
   deshalb dieselbe Idee in gedämpfter Form. */
.bdc .bdc-btn--primary {
	display: inline-block;
	font-family: var(--bdc-font-ui);
	padding: 12px 26px;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	background: var(--bdc-red);
	color: #fff;
	border: 2px solid var(--bdc-red);
	border-radius: var(--bdc-radius);
	box-shadow: var(--bdc-glow);
	cursor: pointer;
}

.bdc .bdc-btn--primary:hover {
	background: var(--bdc-ink);
	border-color: var(--bdc-ink);
	color: #fff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

/* Zweitknopf wie „BLÄTTERN" auf der Website: weiß mit rotem Text. Dort steht er
   auf einem Bild und braucht keine Kontur — hier auf weißem Grund schon. */
.bdc .bdc-btn--secondary {
	display: inline-block;
	font-family: var(--bdc-font-ui);
	padding: 11px 20px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	background: var(--bdc-paper);
	color: var(--bdc-red);
	border: 2px solid var(--bdc-red);
	border-radius: var(--bdc-radius);
	cursor: pointer;
}

.bdc .bdc-btn--secondary:hover {
	background: var(--bdc-red);
	color: #fff;
}

.bdc .bdc-link {
	font-family: var(--bdc-font-ui);
	background: none;
	border: none;
	padding: 0;
	color: var(--bdc-muted);
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0.01em;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.bdc .bdc-link:hover {
	color: var(--bdc-red);
}

/* Kein margin-top: der Knopf steht in der Aktionszeile neben „Letzte Antwort
   ändern" — ein Außenabstand würde ihn dort gegen den Nachbarn versetzen. */
.bdc .bdc-restart {
	display: inline-block;
}

.bdc .bdc-navrow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	min-height: 22px;
}

.bdc button:focus-visible,
.bdc a:focus-visible {
	outline: 2px solid var(--bdc-red);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------- Befund */

.bdc .bdc-observation {
	display: block;
	border-top: 1.5px solid var(--bdc-ink);
	padding: 24px 0 28px;
	margin-top: 6px;
}

.bdc .bdc-tag {
	font-family: var(--bdc-font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--bdc-red);
	margin: 0 0 9px;
}

.bdc .bdc-evidence {
	margin: 16px 0;
}

.bdc .bdc-evidence p {
	font-family: var(--bdc-font-serif);
	font-style: italic;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bdc-quote);
	margin: 0 0 10px;
	padding-left: 28px;
	position: relative;
}

.bdc .bdc-evidence p::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--bdc-muted);
	font-style: normal;
}

.bdc .bdc-synthesis {
	font-family: var(--bdc-font-serif);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 700;
	margin: 12px 0 0;
}

.bdc .bdc-also {
	font-family: var(--bdc-font-ui);
	font-size: 16px;
	line-height: 1.5;
	color: var(--bdc-muted);
	margin: 16px 0 0;
}

.bdc .bdc-also strong {
	color: var(--bdc-red);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12.5px;
	font-weight: 700;
	margin-right: 7px;
}

.bdc .bdc-block {
	margin: 22px 0 0;
}

/* Handgezeichnet wirkende Kreisfläche — einziges Element ohne scharfe Kanten,
   Anspielung auf die Zitat-Sprechblasen im Buchinnenteil. */
.bdc .bdc-callout {
	border: 1.5px solid var(--bdc-ink);
	border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
	padding: 22px 28px;
	margin-top: 8px;
	background: var(--bdc-paper);
	transform: rotate(-0.35deg);
}

.bdc .bdc-callout p {
	font-family: var(--bdc-font-serif);
	font-size: 16px;
	line-height: 1.6;
	font-style: italic;
	margin: 0;
}

.bdc .bdc-action {
	font-family: var(--bdc-font-serif);
	font-size: 15px;
	line-height: 1.6;
	margin: 16px 0 0;
}

.bdc .bdc-action strong {
	font-family: var(--bdc-font-ui);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bdc-muted);
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

/* ------------------------------------------------- Teilen / Aktionen / Hinweis */

.bdc .bdc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin: 26px 0 0;
}

/* baseline statt center: die beiden sind Text, ihre Grundlinien sollen
   aufeinanderliegen — das hält auch, falls sich mal eine Schriftgröße ändert. */
.bdc .bdc-actions-links {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 18px;
}

.bdc .bdc-share-status {
	font-family: var(--bdc-font-ui);
	font-size: 14px;
	color: var(--bdc-muted);
	flex: 1 1 100%;
}

.bdc .bdc-share-field {
	font-family: var(--bdc-font-ui);
	font-size: 14px;
	width: 100%;
	margin-top: 6px;
	padding: 8px 10px;
	border: 1.5px solid var(--bdc-line);
	border-radius: var(--bdc-radius);
	background: var(--bdc-paper);
	color: var(--bdc-ink);
}

.bdc .bdc-shared {
	margin-bottom: 18px;
}

.bdc .bdc-shared-note {
	font-family: var(--bdc-font-ui);
	font-size: 15px;
	line-height: 1.5;
	color: var(--bdc-muted);
	margin: 0;
}

/* --------------------------------------------------------------------- CTA */

.bdc .bdc-cta {
	margin: 26px 0 16px;
	padding-top: 20px;
	border-top: 1.5px solid var(--bdc-ink);
}

.bdc .bdc-cta-line {
	font-family: var(--bdc-font-ui);
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
}

.bdc .bdc-cta-line a {
	color: var(--bdc-red);
	font-weight: 700;
	text-decoration: none;
	border: none;
	background: none;
}

.bdc .bdc-cta-line a:hover {
	text-decoration: underline;
	color: var(--bdc-red);
}

.bdc .bdc-disclaimer {
	font-family: var(--bdc-font-ui);
	font-size: 13px;
	line-height: 1.5;
	color: var(--bdc-muted);
	margin: 8px 0 0;
}

/* ------------------------------------------------------------- Debug / Fallback */

.bdc .bdc-debug {
	margin-top: 30px;
	padding-top: 16px;
	border-top: 1px dashed var(--bdc-line);
	font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	color: var(--bdc-muted);
}

.bdc .bdc-debug summary {
	cursor: pointer;
	font-family: inherit;
	margin-bottom: 8px;
}

.bdc .bdc-debug pre {
	font-family: inherit;
	font-size: inherit;
	white-space: pre-wrap;
	margin: 0;
	background: none;
	border: none;
	padding: 0;
	color: inherit;
}

.bdc .bdc-noscript {
	font-family: var(--bdc-font-serif);
	font-size: 16px;
	border: 1.5px solid var(--bdc-ink);
	padding: 16px 18px;
	margin: 0;
}

/* ------------------------------------------------------------------- Medien */

@media (max-width: 560px) {
	/* Handy: rundum 20px — 20px Platz um den Rahmen, 20px Rahmen, 20px zwischen
	   Rahmen und Text. Das kostet Textbreite und damit Zeilen; der Startknopf
	   rutscht auf kleinen Geräten unter die Falz. Bewusst so entschieden,
	   nachdem der randlose Satz auf einem echten Gerät zu gedrängt wirkte. */
	.bdc {
		--bdc-frame: 20px;
		--bdc-inset: 20px;
		--bdc-inset-y: 20px;
		--bdc-pad: 20px;
	}

	.bdc .bdc-title {
		font-size: 42px;
	}

	.bdc .bdc-qnum {
		font-size: 26px;
	}

	.bdc .bdc-qtext {
		font-size: 17px;
	}

	.bdc .bdc-callout {
		padding: 20px 22px;
	}

	/* Der Startknopf muss auf ein Handydisplay passen, ohne dass ein Wort des
	   Intros wegfällt: enger gesetzt, nicht gekürzt. Betrifft nur das Intro —
	   Fragen und Befund bleiben so luftig wie am Desktop. */
	.bdc .bdc-stage--intro .bdc-eyebrow {
		margin-bottom: 7px;
	}

	.bdc .bdc-stage--intro .bdc-title {
		margin-bottom: 14px;
	}

	.bdc .bdc-stage--intro .bdc-p {
		line-height: 1.45;
		margin-bottom: 11px;
	}

	.bdc .bdc-stage--intro .bdc-lines {
		margin-bottom: 14px;
	}

	.bdc .bdc-stage--intro .bdc-lines .bdc-p {
		line-height: 1.38;
		margin-bottom: 0;
	}

	.bdc .bdc-stage--intro .bdc-facts {
		margin-bottom: 11px;
	}

	/* Knöpfe nicht über die volle Breite: randlos wirken sie wie ein Balken und
	   stoßen an den Rahmen. Sie sind auch so breit genug zum Treffen. */
	.bdc .bdc-stage--intro .bdc-btn--primary {
		width: auto;
		max-width: 100%;
		margin-top: 6px;
		padding: 14px 24px;
	}

	.bdc .bdc-actions .bdc-btn--secondary {
		width: auto;
		max-width: 100%;
	}

	/* Buch und Agenturpaar je auf eine eigene Zeile, statt mitten in
	   „Brand RE × Rosebud" zu brechen. */
	.bdc .bdc-cta-part {
		display: block;
	}

	.bdc .bdc-cta-sep {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bdc .bdc-progress-fill,
	.bdc button {
		transition: none;
	}

	.bdc .bdc-stage {
		animation: none;
	}

	.bdc .bdc-callout {
		transform: none;
	}
}

@media print {
	.bdc .bdc-options,
	.bdc .bdc-navrow,
	.bdc .bdc-link,
	.bdc .bdc-debug,
	.bdc .bdc-actions,
	.bdc .bdc-btn--primary {
		display: none;
	}

	.bdc {
		max-width: none;
	}
}
