/* Kaufweg in der hellen Marken-Sprache: dieselben Werte wie das Dashboard und die Akademie
   (Creme-Grund, Ink als Handlungsfarbe, Gold nur als Akzent), aber eine eigene Datei. Der Kundenhost
   liefert bewusst kein Dashboard-Asset aus, und die Seiten hier duerfen sich nicht mit aendern, wenn
   jemand am internen Werkzeug schraubt.
   Montserrat liegt lokal: der Kaufweg nimmt E-Mail, Land und USt-ID entgegen, da gehoert kein Aufruf
   an einen fremden Host hin. Eine Variable-Font-Datei deckt 400 bis 800. */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/montserrat-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #f6f4ef;
	--surface: #ffffff;
	--ink: #0d2231;
	--ink-soft: #34404b;
	--muted: #6b7580;
	--border: #e7e2d8;
	--border-strong: #d8d2c4;
	--gold: #cfaf3e;
	--gold-text: #8a6e1f;
	--danger: #c0392b;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(13, 34, 49, 0.04), 0 6px 20px rgba(13, 34, 49, 0.05);
	--font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font);
	background: var(--bg);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--gold-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid rgba(176, 136, 32, 0.55); outline-offset: 2px; }

/* Kopfband. Die Landing traegt ihr Logo auf dunklem Grund; hier bleibt die Flaeche hell, sonst konkurriert
   ein zweites dunkles Band mit dem Absende-Knopf. Die Verbindung traegt das Logo, nicht der Untergrund. */
.kopf {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.kopf__innen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 16px 20px;
}

.kopf__marke img { display: block; height: 32px; width: auto; }

.kopf__zurueck {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
}

.kopf__zurueck:hover { color: var(--ink); text-decoration: underline; }

.checkout {
	flex: 1;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	padding: 56px 20px 24px;
}

/* Die Kaufseite traegt neben dem Formular die Uebersicht und braucht mehr Breite als die Hinweisseiten. */
.checkout--kauf { max-width: 980px; padding-top: 36px; }

.checkout__spalten {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 324px;
	gap: 24px;
	align-items: start;
}

/* Schrittanzeige. Der Weg endet nicht mit der Zahlung — ohne die dritte Marke haelt der Kunde die
   Zahlungsseite fuer den Abschluss. */
.schritte {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.schritte__punkt {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
}

.schritte__zahl {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
	background: var(--surface);
}

.schritte__punkt--hier { color: var(--ink); }
.schritte__punkt--hier .schritte__zahl { border-color: var(--ink); background: var(--ink); color: #fff; }

.uebersicht {
	position: sticky;
	top: 20px;
	padding: 22px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.uebersicht__titel {
	margin: 0 0 14px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.uebersicht__produkt {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ink);
	text-wrap: balance;
}

.uebersicht__preis {
	margin: 6px 0 0;
	font-size: 1.35rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.uebersicht__liste {
	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--border);
	list-style: none;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

.uebersicht__liste li { position: relative; padding-left: 20px; margin-bottom: 9px; }
.uebersicht__liste li:last-child { margin-bottom: 0; }

/* Der Haken ist reine Dekoration und liegt im Stil, damit er nicht vorgelesen wird. */
.uebersicht__liste li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 6px;
	width: 5px;
	height: 9px;
	border: solid var(--gold-text);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.uebersicht__fuss {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--muted);
}

.checkout__card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 40px 36px;
}

.checkout h1 {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Die Gold-Haarlinie ist der einzige Marken-Akzent auf der Seite. Gold traegt hier keine Handlung,
   sonst konkurriert es mit dem Absende-Knopf. */
.checkout h1::after {
	content: '';
	display: block;
	width: 44px;
	height: 3px;
	margin-top: 14px;
	background: var(--gold);
	border-radius: 2px;
}

.checkout__lead {
	margin: 20px 0 28px;
	color: var(--ink-soft);
	line-height: 1.6;
}

.checkout__error {
	margin: 20px 0 0;
	padding: 12px 14px;
	border: 1px solid rgba(192, 57, 43, 0.3);
	border-left: 3px solid var(--danger);
	border-radius: var(--radius-sm);
	background: rgba(192, 57, 43, 0.05);
	color: var(--danger);
	font-size: 0.92rem;
	line-height: 1.5;
}

.checkout__form { margin-top: 28px; }

.form-group { margin-bottom: 22px; }

.form-group label,
.checkout__legend {
	display: block;
	margin-bottom: 7px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ink-soft);
}

.checkout input[type="text"],
.checkout input[type="email"],
.checkout select {
	width: 100%;
	padding: 12px 14px;
	font-family: var(--font);
	font-size: 1rem;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.checkout input[type="text"]:focus,
.checkout input[type="email"]:focus,
.checkout select:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(207, 175, 62, 0.16);
}

.checkout__note {
	margin: 7px 0 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--muted);
}

.checkout__note--seller {
	margin-top: 18px;
	text-align: center;
}

/* Auswahl und Zustimmung als anklickbare Zeile, nicht als nacktes Kaestchen mit Text daneben:
   die Zustimmungen sind rechtlich tragend und muessen bequem und eindeutig treffbar sein. */
.checkout__choice,
.checkout__check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 12px 14px;
	margin-bottom: 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--ink-soft);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.checkout__choice { font-weight: 500; }
.checkout__choice:hover,
.checkout__check:hover { border-color: var(--border-strong); background: #fdfcfa; }

.checkout__choice input,
.checkout__check input {
	flex-shrink: 0;
	width: 17px;
	height: 17px;
	margin: 1px 0 0;
	accent-color: var(--ink);
	cursor: pointer;
}

.checkout__check { margin-top: 0; }

.checkout__submit {
	width: 100%;
	margin-top: 22px;
	padding: 15px 24px;
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--ink);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}

.checkout__submit:hover { background: #143349; }
.checkout__submit:active { transform: translateY(1px); }

/* Hinweisseiten (Danke, Abbruch, Fehler): dieselbe Karte, nur ohne Formular. */
.checkout__card p { color: var(--ink-soft); line-height: 1.65; margin: 0 0 14px; }
.checkout__card p:last-child { margin-bottom: 0; }

.checkout__back {
	display: inline-block;
	margin-top: 8px;
	padding: 13px 26px;
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
	background: var(--ink);
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.checkout__back:hover { background: #143349; color: #fff; }

.footer {
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	padding: 28px 20px 44px;
	text-align: center;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo img { height: 30px; width: auto; opacity: 0.85; }

.footer-copyright {
	font-size: 0.78rem;
	line-height: 1.6;
	color: var(--muted);
}

.footer-copyright strong { color: var(--ink-soft); font-weight: 600; }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-legal a { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-text); text-decoration: underline; }

/* Einspaltig, und die Uebersicht wandert nach oben: was gekauft wird, gehoert vor die Felder, nicht hinter
   den Absende-Knopf. Ohne die Umkehr faende sie auf dem Telefon niemand. */
@media (max-width: 860px) {
	.checkout__spalten { grid-template-columns: minmax(0, 1fr); }
	.uebersicht { position: static; order: -1; }
}

@media (max-width: 560px) {
	.checkout { padding: 32px 16px 20px; }
	.checkout--kauf { padding-top: 24px; }
	.checkout__card { padding: 28px 20px; }
	.checkout h1 { font-size: 1.3rem; }
	.kopf__innen { padding: 13px 16px; }
	.kopf__marke img { height: 24px; }
	.schritte { gap: 8px 16px; }
}
