/*
 * Kaufstrecke und Reservierungshinweis (Prototyp 2), schlichtes Grundgerüst.
 *
 * Pflichtenheft 8.2: Gestaltung und Formulierungen werden mit der Website
 * festgelegt. Das Child-Theme kann die Farben über die Variablen unten
 * anpassen oder das Stylesheet mit wp_dequeue_style( 'frt-purchase' ) ganz
 * abschalten. Große Schrift und Schaltflächen sind Absicht (Pflichtenheft 2).
 */

.frt-purchase,
.frt-checkout-overview,
.frt-empty-cart {
	--frt-ink: #133333;
	--frt-muted: #4b5f5f;
	--frt-line: #cbe0d8;
	--frt-accent: #23705d;
	--frt-accent-dark: #1a5647;
	--frt-accent-soft: #eaf3f0;
	--frt-warn: #6e4a00;
	--frt-warn-soft: #fff2cc;
	--frt-crit: #a8180c;
	--frt-crit-soft: #fdeceb;
	--frt-lock: #eef2f1;
	--frt-focus: #133333;
	color: var(--frt-ink);
	line-height: 1.5;
}

.frt-purchase {
	max-width: 720px;
	margin: 32px auto;
	font-size: 1.1rem;
}

.frt-purchase *,
.frt-checkout-overview *,
.frt-empty-cart * {
	box-sizing: border-box;
}

.frt-purchase [hidden],
.frt-checkout-overview [hidden],
.frt-reservation [hidden] {
	display: none !important;
}

/* Fokusring dunkel mit weißem Rand: hebt sich auf hellem Grund und auf grünen Knöpfen ab (WCAG 1.4.11, 2.4.7). */
.frt-purchase :focus-visible,
.frt-checkout-overview :focus-visible,
.frt-empty-cart :focus-visible {
	outline: 3px solid var(--frt-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
}

/*
 * Die Überschrift der Kaufstrecke bekommt nach jedem Schritt per Skript den
 * Fokus (tabindex="-1"), damit Screenreader dort weiterlesen. Safari und
 * Chrome zeichnen dafür sonst den Fokusring, obwohl man die Überschrift
 * nicht anklicken kann. Der Fokus bleibt, nur der Rahmen entfällt.
 */
.frt-purchase [tabindex="-1"]:focus,
.frt-purchase [tabindex="-1"]:focus-visible {
	outline: 0;
	box-shadow: none;
}

.frt-purchase h2 {
	margin: 8px 0;
}

.frt-purchase h3 {
	font-size: 1.05rem;
	margin: 0 0 8px;
}

.frt-lead,
.frt-hint,
.frt-muted {
	color: var(--frt-muted);
}

.frt-lead {
	margin: 0 0 20px;
}

.frt-hint {
	display: block;
	font-size: 0.92em;
	margin: 4px 0 10px;
}

.frt-small {
	font-size: 0.88em;
}

/* Fortschritt */
.frt-progress {
	margin: 0 0 14px;
}

.frt-progress__label {
	font-weight: 700;
	font-size: 0.95em;
	color: var(--frt-muted);
	margin: 0;
}

.frt-progress__bar {
	display: flex;
	gap: 6px;
	margin-top: 6px;
}

.frt-progress__bar span {
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background: #d5dae0;
}

.frt-progress__bar span.is-done {
	background: var(--frt-accent);
}

/* Gruppen und Auswahlkarten */
.frt-group {
	border: 0;
	margin: 0 0 22px;
	padding: 0;
	min-width: 0;
}

.frt-group > legend {
	font-weight: 700;
	font-size: 1.15em;
	margin-bottom: 4px;
	padding: 0;
}

.frt-choices {
	display: grid;
	gap: 10px;
}

.frt-choice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	border: 2px solid var(--frt-line);
	border-radius: 12px;
	padding: 14px 16px;
	background: #fff;
	cursor: pointer;
}

.frt-choice:hover {
	border-color: var(--frt-accent);
}

.frt-choice:has(input:checked) {
	border-color: var(--frt-accent);
	background: var(--frt-accent-soft);
	box-shadow: inset 0 0 0 1px var(--frt-accent);
}

.frt-choice input {
	width: 28px;
	height: 28px;
	margin: 2px 0 0;
	flex: none;
	accent-color: var(--frt-accent);
	cursor: pointer;
}

.frt-choice.is-locked,
.frt-choice:has(input:disabled) {
	background: var(--frt-lock);
	border-style: dashed;
	color: var(--frt-muted);
	cursor: not-allowed;
}

/* Einwilligungsfragen mit Ja/Nein (Pflichtenheft 8.2 Schritt 5, 4.69) */
.frt-consent {
	border: 2px solid var(--frt-line);
	border-radius: 12px;
	margin: 0 0 12px;
	padding: 14px 16px;
	min-width: 0;
	background: #fff;
}

.frt-consent.is-bad {
	border-color: var(--frt-crit);
	background: var(--frt-crit-soft);
}

.frt-consent__question {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: 10px;
}

.frt-consent__options {
	clear: both;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.frt-choice--option {
	align-items: center;
	padding: 10px 14px;
	min-height: 48px;
}

.frt-choice--option .frt-choice__title {
	margin-bottom: 0;
}

@media (max-width: 520px) {

	.frt-consent__options {
		grid-template-columns: 1fr;
	}
}

.frt-choice__body {
	flex: 1;
	min-width: 0;
}

.frt-choice__title {
	display: block;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 4px;
}

.frt-choice__text {
	display: block;
	color: var(--frt-muted);
	font-size: 0.92em;
	line-height: 1.55;
}

.frt-choice__save {
	display: block;
	line-height: 1.55;
	color: var(--frt-accent);
	font-weight: 700;
	font-size: 0.92em;
}

.frt-choice__number {
	display: inline-block;
	font-size: 0.8em;
	font-weight: 700;
	background: var(--frt-accent);
	color: #fff;
	border-radius: 6px;
	padding: 1px 8px;
	margin-bottom: 4px;
}

/* Nummer und Niveau-Schild auf einer Zeile; bricht am Smartphone um, wenn es eng wird. */
.frt-choice__head {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: center;
	margin-bottom: 4px;
}

.frt-choice__head .frt-choice__number {
	margin-bottom: 0;
}

.frt-choice:has(input:disabled) .frt-choice__number {
	background: #8a9797;
}

.frt-choice__price {
	font-weight: 700;
	font-size: 1.2em;
	white-space: nowrap;
	margin-left: auto;
	padding-left: 8px;
	text-align: right;
}

.frt-choice__price s,
.frt-choice__price small {
	display: block;
	font-size: 0.7em;
	font-weight: 400;
	color: var(--frt-muted);
}

.frt-pill {
	display: inline-block;
	font-size: 0.8em;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 10px;
	margin: 6px 6px 0 0;
	background: #e9ecef;
	color: var(--frt-muted);
}

.frt-pill--ok {
	background: var(--frt-accent-soft);
	color: var(--frt-accent);
}

.frt-pill--warn {
	background: var(--frt-warn-soft);
	color: var(--frt-warn);
}

.frt-pill--crit {
	background: var(--frt-crit-soft);
	color: var(--frt-crit);
}

/* Felder: Der Abstand zum nächsten Feld ist deutlich größer als der zwischen
   Beschriftung, Feld und Hinweis, damit am Handy klar bleibt, was zusammengehört
   (Udo, 29.11.2026, Pflichtenheft 4.283). Der zweite Selektor ist nötig, weil
   „Ticket übernehmen“ und „Anmelde-Code einlösen“ die Felder als Absatz
   ausgeben und dort sonst „.frt-account p“ aus account.css den Abstand auf
   12 px zurücksetzt. */
.frt-field,
.frt-purchase .frt-field {
	margin: 0 0 26px;
}

.frt-field label {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

.frt-purchase input[type="text"],
.frt-purchase input[type="email"],
.frt-purchase input[type="password"],
.frt-purchase input[type="number"] {
	font: inherit;
	width: 100%;
	min-height: 54px;
	border: 2px solid #8a929b;
	border-radius: 10px;
	padding: 10px 12px;
	background: #fff;
	color: var(--frt-ink);
}

.frt-purchase input[readonly] {
	background: var(--frt-lock);
	color: #444;
	cursor: not-allowed;
}

.frt-field.is-bad input {
	border-color: var(--frt-crit);
	background: #fffafa;
}

.frt-error {
	display: block;
	color: var(--frt-crit);
	font-weight: 700;
	font-size: 0.92em;
	margin: 6px 0;
}

.frt-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
}

@media (max-width: 520px) {

	.frt-row2 {
		grid-template-columns: 1fr;
	}
}

/* Anzahl */
.frt-stepper {
	display: flex;
	align-items: stretch;
	border: 2px solid #8a929b;
	border-radius: 12px;
	width: max-content;
	overflow: hidden;
	background: #fff;
}

.frt-stepper button {
	font: inherit;
	font-size: 1.6rem;
	font-weight: 700;
	width: 62px;
	min-height: 58px;
	border: 0;
	background: var(--frt-accent-soft);
	color: var(--frt-accent-dark);
	cursor: pointer;
}

.frt-stepper button:disabled {
	color: #a3a9b0;
	background: #f0f1f3;
	cursor: not-allowed;
}

.frt-purchase .frt-stepper input[type="number"] {
	width: 80px;
	border: 0;
	border-radius: 0;
	text-align: center;
	font-size: 1.4rem;
	font-weight: 700;
	-moz-appearance: textfield;
}

/* Ticket-Kästen */
.frt-ticket {
	border: 2px solid var(--frt-line);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
	background: #fff;
}

.frt-segment {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

@media (max-width: 460px) {

	.frt-segment {
		grid-template-columns: 1fr;
	}
}

.frt-segment label {
	display: flex;
	gap: 10px;
	align-items: center;
	border: 2px solid var(--frt-line);
	border-radius: 10px;
	padding: 12px;
	cursor: pointer;
	font-weight: 700;
	min-height: 58px;
}

.frt-segment label:has(input:checked) {
	border-color: var(--frt-accent);
	background: var(--frt-accent-soft);
}

.frt-segment label:has(input:disabled) {
	opacity: 0.55;
	cursor: not-allowed;
}

.frt-segment input {
	width: 24px;
	height: 24px;
	flex: none;
	margin: 0;
	accent-color: var(--frt-accent);
}

.frt-person {
	margin-top: 12px;
}

/*
 * Erklärende Kästen ohne Art. Hinweise nach einer Aktion haben eine Art
 * (frt-note--success, --error, --warning, --info) und ihre Gestaltung in
 * notices.css.
 */
.frt-note {
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0 0 16px;
	background: var(--frt-accent-soft);
}

.frt-note p {
	margin: 0 0 8px;
}

.frt-note p:last-child {
	margin: 0;
}

/* Zähler der Programmwahl */
.frt-sticky {
	position: sticky;
	top: 0;
	z-index: 5;
	padding: 8px 0;
	margin: 0 0 8px;
}

.frt-counter {
	background: #fff;
	border: 2px solid var(--frt-accent);
	border-radius: 12px;
	padding: 10px 14px;
	font-weight: 700;
}

/* Summe */
.frt-summary {
	background: #fff;
	border: 1px solid var(--frt-line);
	border-radius: 14px;
	padding: 16px 20px;
	margin: 0 0 18px;
}

.frt-summary__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.frt-summary__line--total {
	font-size: 1.2em;
	font-weight: 700;
}

.frt-summary__line--vat {
	color: var(--frt-muted);
	font-size: 0.88em;
}

/* Mengenrabatt (Prototyp 18b): Preis je Ticket unter der Summe */
.frt-summary__note {
	margin: 8px 0 0;
	color: var(--frt-muted);
	font-size: 0.88em;
}

/*
 * Abstand oben zur Anzahl, unten keiner, weil die Gruppe selbst Abstand
 * hält (Udo, 25.11.2026). Spezifischer als notices.css, das jedem Hinweis
 * „0 0 16px“ gibt.
 */
.frt-purchase .frt-note.frt-volume-hint {
	margin: 16px 0 0;
}

/* Ohne zweite Zeile steht die Überschrift allein; dann kein Abstand darunter. */
.frt-purchase .frt-volume-hint p:has(+ p[hidden]) {
	margin-bottom: 0;
}

/* Schaltflächen */
.frt-actions {
	display: grid;
	gap: 8px;
	margin-top: 22px;
}

.frt-button {
	font: inherit;
	font-size: 1.08rem;
	font-weight: 700;
	min-height: 58px;
	width: 100%;
	border-radius: 12px;
	padding: 12px 20px;
	cursor: pointer;
	border: 2px solid var(--frt-accent);
	background: #fff;
	color: var(--frt-accent);
}

.frt-button--primary {
	background: var(--frt-accent);
	color: #fff;
}

.frt-button--primary:hover {
	background: var(--frt-accent-dark);
}

.frt-button--link {
	border: 0;
	background: none;
	min-height: 48px;
	text-decoration: underline;
}

.frt-button--inline {
	width: auto;
	min-height: 48px;
	padding: 8px 18px;
}

.frt-hint--center {
	text-align: center;
	margin-top: 10px;
}

/* Kasse: Fortschritt, Übersicht und Reservierung */
.frt-checkout-overview {
	margin: 0 0 24px;
}

/* Abschnitt „Deine Tickets“ (Prototyp 4): weiße Karte, je Veranstaltung ein Kasten. */
.frt-checkout-summary {
	background: #fff;
	border: 1px solid var(--frt-line);
	border-radius: 14px;
	padding: 20px;
	margin: 0 0 18px;
	font-size: 1.05rem;
}

.frt-checkout-summary h2 {
	font-size: 1.35em;
	font-weight: 700;
	margin: 0 0 12px;
}

.frt-checkout-summary__event-box {
	border: 2px solid var(--frt-line);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0 0 12px;
}

.frt-checkout-summary__event-box:last-child {
	margin-bottom: 0;
}

.frt-checkout-summary__event {
	margin: 0;
	font-weight: 700;
}

.frt-checkout-summary__dates {
	margin: 0 0 8px;
	color: var(--frt-muted);
	font-size: 0.92em;
}

.frt-checkout-summary__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}

.frt-checkout-summary__price {
	font-weight: 700;
	white-space: nowrap;
}

.frt-checkout-summary__change {
	display: inline-block;
	border: 2px solid var(--frt-accent);
	border-radius: 10px;
	padding: 6px 16px;
	background: #fff;
	color: var(--frt-accent);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.frt-checkout-summary__change:hover {
	background: var(--frt-accent);
	color: #fff;
}

.frt-checkout-summary__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.frt-checkout-summary__remove {
	margin: 0;
}

/* Das Theme gestaltet Schaltflächen oft kräftig; „Entfernen“ soll zurückhaltender wirken als „Ändern“. */
.frt-checkout-summary .frt-checkout-summary__remove-button {
	display: inline-block;
	min-height: 0;
	border: 2px solid #8a929b;
	border-radius: 10px;
	padding: 6px 16px;
	background: #fff;
	color: var(--frt-ink);
	font: inherit;
	font-weight: 700;
	line-height: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.frt-checkout-summary ul {
	list-style: none;
	margin: 8px 0 0;
	padding: 8px 0 0;
	border-top: 1px solid var(--frt-line);
}

.frt-checkout-summary li {
	padding: 3px 0;
	line-height: 1.5;
}

/* Reservierung an der Kasse */
.frt-reservation,
.frt-checkout-overview > .frt-timer {
	margin: 0 0 16px;
}

.frt-timer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	background: var(--frt-warn-soft);
	border: 1px solid #e0b84a;
	border-radius: 12px;
	padding: 8px 14px;
	font-weight: 600;
	font-size: 0.95rem;
}

/* Seite „Du hast gerade keine Tickets ausgewählt“ */
.frt-empty-cart {
	max-width: 720px;
	margin: 24px auto;
	font-size: 1.1rem;
}

.frt-empty-cart .frt-empty-cart__title {
	font-size: 1.8em;
	line-height: 1.2;
	margin: 0 0 8px;
}

.frt-empty-cart .frt-empty-cart__subtitle {
	font-size: 1.2em;
	margin: 0 0 12px;
}

.frt-empty-cart__events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.frt-empty-cart__event {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	border: 2px solid var(--frt-line);
	border-radius: 14px;
	padding: 16px 20px;
	background: #fff;
}

.frt-empty-cart__text h4 {
	font-size: 1.1em;
	margin: 0 0 4px;
}

.frt-empty-cart__text p {
	margin: 0;
	color: var(--frt-muted);
}

.frt-empty-cart .frt-empty-cart__sold-out {
	display: inline-block;
	margin-top: 6px;
	border-radius: 8px;
	padding: 2px 10px;
	background: var(--frt-crit-soft);
	color: var(--frt-crit);
	font-weight: 700;
}

/* Links als Knöpfe: Höhe mindestens 44 px (WCAG 2.5.8 verlangt 24 px, 44 px ist bequemer), Theme-Linkfarben überschreiben. */
.frt-empty-cart a.frt-empty-cart__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 48px;
	text-decoration: none;
}

.frt-empty-cart a.frt-button--primary,
.frt-empty-cart a.frt-button--primary:visited {
	color: #fff;
}

.frt-empty-cart a.frt-button--primary:hover {
	background: var(--frt-accent-dark);
	color: #fff;
}

/*
 * Steht der Shortcode in einem Textbaustein von Elementor, packt WordPress
 * (wpautop) den Knopf in ein <p> und hängt ein leeres <p> an. Ohne diese
 * Regeln hätte der Knopf Abstand nach unten und am Smartphone nicht die volle Breite.
 */
.frt-empty-cart .frt-empty-cart__event > p {
	margin: 0;
}

.frt-empty-cart .frt-empty-cart__text p:empty {
	display: none;
}

@media (max-width: 560px) {
	.frt-empty-cart .frt-empty-cart__event > p,
	.frt-empty-cart a.frt-empty-cart__link {
		width: 100%;
	}
}

/* Nur für Screenreader sichtbar, z. B. der Name der Veranstaltung im Knopf. */
.frt-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/*
 * Schutz gegen die Knopf- und Linkstile des Themes.
 *
 * Hello Elementor färbt jeden Knopf bei Mausberührung und Fokus pink
 * („button:hover“, „[type="submit"]:focus“) und unterstreicht Links je nach
 * Einstellung. Diese Regeln sind spezifischer und setzen alle Zustände
 * ausdrücklich, damit Farben und Kontrast (WCAG 1.4.3, mindestens 4,5:1)
 * in jedem Zustand gelten. Das Child-Theme kann sie bewusst überschreiben.
 */
.frt-purchase .frt-button,
.frt-checkout-overview .frt-button,
.frt-empty-cart .frt-button {
	font-family: inherit;
	font-weight: 700;
	border: 2px solid var(--frt-accent);
	background: #fff;
	color: var(--frt-accent);
	text-decoration: none;
}

.frt-purchase .frt-button:hover,
.frt-purchase .frt-button:focus,
.frt-checkout-overview .frt-button:hover,
.frt-checkout-overview .frt-button:focus,
.frt-empty-cart .frt-button:hover,
.frt-empty-cart .frt-button:focus {
	border-color: var(--frt-accent-dark);
	background: var(--frt-accent-soft);
	color: var(--frt-accent-dark);
	text-decoration: none;
}

.frt-purchase .frt-button.frt-button--primary,
.frt-checkout-overview .frt-button.frt-button--primary,
.frt-empty-cart .frt-button.frt-button--primary {
	background: var(--frt-accent);
	color: #fff;
}

.frt-purchase .frt-button.frt-button--primary:hover,
.frt-purchase .frt-button.frt-button--primary:focus,
.frt-checkout-overview .frt-button.frt-button--primary:hover,
.frt-checkout-overview .frt-button.frt-button--primary:focus,
.frt-empty-cart .frt-button.frt-button--primary:hover,
.frt-empty-cart .frt-button.frt-button--primary:focus {
	border-color: var(--frt-accent-dark);
	background: var(--frt-accent-dark);
	color: #fff;
}

.frt-purchase .frt-button.frt-button--link,
.frt-purchase .frt-button.frt-button--link:hover,
.frt-purchase .frt-button.frt-button--link:focus {
	border: 0;
	background: none;
	color: var(--frt-accent-dark);
	text-decoration: underline;
}

.frt-purchase .frt-stepper button,
.frt-purchase .frt-stepper button:hover,
.frt-purchase .frt-stepper button:focus {
	border: 0;
	border-radius: 0;
	padding: 0;
	background: var(--frt-accent-soft);
	color: var(--frt-accent-dark);
}

.frt-purchase .frt-stepper button:hover:not(:disabled) {
	background: #d4e8e1;
}

.frt-purchase .frt-stepper button:disabled {
	background: #f0f1f3;
	color: #5f6b76;
}

.frt-checkout-overview a.frt-checkout-summary__change,
.frt-checkout-overview a.frt-checkout-summary__change:visited {
	background: #fff;
	color: var(--frt-accent-dark);
	text-decoration: none;
}

.frt-checkout-overview a.frt-checkout-summary__change:hover,
.frt-checkout-overview a.frt-checkout-summary__change:focus {
	background: var(--frt-accent);
	color: #fff;
	text-decoration: none;
}

.frt-checkout-overview .frt-checkout-summary .frt-checkout-summary__remove-button,
.frt-checkout-overview .frt-checkout-summary .frt-checkout-summary__remove-button:focus:not(:focus-visible) {
	border: 2px solid #8a929b;
	border-radius: 10px;
	background: #fff;
	color: var(--frt-ink);
	text-decoration: none;
}

.frt-checkout-overview .frt-checkout-summary .frt-checkout-summary__remove-button:hover,
.frt-checkout-overview .frt-checkout-summary .frt-checkout-summary__remove-button:focus-visible {
	border-color: var(--frt-crit);
	background: var(--frt-crit-soft);
	color: var(--frt-crit);
}

.frt-checkout-overview .frt-timer > span:not([aria-hidden]) {
	flex: 1 1 0;
	min-width: 0;
}

/*
 * Kasse: Hinweise unter den Feldern immer zeigen. WooCommerce blendet
 * Feldbeschreibungen sonst erst beim Anklicken ein; die Erklärung zur
 * Rechnungsadresse soll aber vorher zu lesen sein.
 */
.woocommerce-checkout form .form-row #billing_email-description,
.woocommerce-checkout form .form-row #frt_account_email-description,
.woocommerce-checkout form .form-row #frt_buyer_reference-description {
	display: block !important;
	position: static;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #424245;
	font-size: 0.95em;
	line-height: 1.45;
}

/* WooCommerce zeichnet die Hinweise sonst als Sprechblase mit Pfeil. */
.woocommerce-checkout form .form-row #billing_email-description::before,
.woocommerce-checkout form .form-row #frt_account_email-description::before,
.woocommerce-checkout form .form-row #frt_buyer_reference-description::before {
	content: none;
}

/* Das Pflicht-Sternchen gehört nur an die Frage, nicht an jede Antwort. */
.woocommerce-checkout .frt-customer-type label.radio .required {
	display: none;
}

.woocommerce-checkout .form-row[hidden] {
	display: none !important;
}

.woocommerce-checkout .frt-customer-type .woocommerce-input-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.woocommerce-checkout .frt-customer-type label.radio {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	font-weight: 600;
}

.woocommerce-checkout .frt-customer-type input[type="radio"] {
	margin-right: 8px;
}

/*
 * Danke-Seite: Box „So geht es weiter“ hebt sich mit grünem Rahmen
 * und Häkchen deutlich von der Bestellübersicht von WooCommerce ab.
 */
.frt-thankyou__box {
	margin: 0 0 32px;
	padding: 24px 28px;
	border: 2px solid var(--frt-accent);
	border-radius: 12px;
	background: var(--frt-accent-soft);
	box-shadow: 0 4px 16px rgba(19, 51, 51, 0.08);
	font-size: 1.05rem;
}

.frt-thankyou .frt-thankyou__title {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--frt-accent-dark);
	font-size: 1.5rem;
	line-height: 1.3;
}

.frt-thankyou__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--frt-accent);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
}

.frt-thankyou .frt-thankyou__list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.frt-thankyou .frt-thankyou__list li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 22px;
	line-height: 1.55;
}

.frt-thankyou .frt-thankyou__list li::before {
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--frt-accent);
	content: "";
}

.frt-thankyou .frt-thankyou__list strong {
	color: var(--frt-ink);
	font-weight: 700;
}

.frt-thankyou .frt-thankyou__action {
	margin: 0;
}

.frt-thankyou a.frt-button {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

@media (max-width: 560px) {
	.frt-thankyou__box {
		padding: 20px 18px;
	}

	.frt-thankyou a.frt-button {
		justify-content: center;
		width: 100%;
	}
}

/*
 * Hinweis zur Umsatzsteuer in „Deine Bestellung“ unter der Summe (Pflichtenheft 8.2),
 * nur bei einem Land außerhalb Deutschlands. Steht in der Tabelle von
 * WooCommerce, außerhalb der Bereiche mit den Farbvariablen, deshalb feste
 * Farben mit ausreichendem Kontrast.
 */
.frt-vat-notice {
	margin: 4px 0 0;
	padding: 12px 16px;
	border: 1px solid #23705d;
	border-radius: 8px;
	background: #eaf3f0;
	color: #133333;
	font-size: 0.95em;
	line-height: 1.5;
}

/*
 * Seite „Anmelde-Code einlösen“ (Pflichtenheft 8.3) und Programmwahl im Konto.
 * Sie nutzen die Bausteine der Kaufstrecke; hier steht nur, was dazukommt.
 */
.frt-purchase a.frt-button {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.frt-field .frt-hint,
.frt-field .frt-error {
	display: block;
	margin-top: 6px;
}

.frt-redeem h3 {
	margin-top: 28px;
}

.frt-redeem__restart {
	margin: -8px 0 18px;
}

/* Eingegebener Code im Kasten, in Vierergruppen (Pflichtenheft 8.3, 4.70) */
.frt-redeem__code {
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* Platzhalter grau, aber mit ausreichendem Kontrast (WCAG 2.1 AA, 4.6:1 auf Weiß) */
#frt-redeem-code {
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.frt-redeem__restart .frt-button--link {
	width: auto;
	padding-left: 0;
	padding-right: 0;
}

#frt-redeem-code::placeholder {
	color: #6b7378;
	opacity: 1;
}

/* Akademischer Titel: kurzes Feld, weil der Inhalt kurz ist (Pflichtenheft 4.279). */
.frt-purchase .frt-field--title input[type="text"],
.frt-purchase input[name="frt_title"] {
	max-width: 240px;
}

/* Sternchen zur Fußnote „ermäßigter Preis“ (Udo, 01.12.2026). */
.frt-footnote-mark {
	margin-left: 1px;
	font-size: 0.75em;
	line-height: 0;
}
