/* Trainster - Webseite. Im Stil des Spiels: Zeitungspapier, Fraktur im Kopf, Postkarten. */

@font-face {
	font-family: 'UnifrakturMaguntia';
	src: url('schrift/UnifrakturMaguntia.woff') format('woff');
	font-display: swap;
}

:root {
	--papier: #efe6cc;
	--papier-dunkel: #e3d6b4;
	--tinte: #241d14;
	--tinte-leise: #5f513d;
	--linie: rgba(36, 29, 20, 0.35);
	--nacht: #12161d;
	--gold: #c9a45c;
	--gruen: #2f6b3a;
	--rand: 16px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	background: var(--nacht);
	color: var(--tinte);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 17px;
	line-height: 1.55;
}

a { color: inherit; }

.blatt {
	max-width: 980px;
	margin: 0 auto;
	min-height: 100vh;
	background:
		radial-gradient(ellipse at 15% 0%, rgba(255, 252, 238, 0.6), transparent 55%),
		radial-gradient(ellipse at 90% 100%, rgba(150, 120, 70, 0.14), transparent 55%),
		var(--papier);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
	padding: 0 var(--rand) 32px;
}

/* Kopf wie eine Zeitung */
.kopf {
	text-align: center;
	padding: 18px 0 8px;
	border-bottom: 3px double var(--tinte);
}

.kopf__name {
	font-family: 'UnifrakturMaguntia', Georgia, serif;
	font-size: clamp(2.6rem, 9vw, 4.4rem);
	line-height: 1;
	text-decoration: none;
	display: inline-block;
}

.kopf__zeile {
	margin-top: 6px;
	padding: 3px 0;
	border-top: 1px solid var(--tinte);
	border-bottom: 1px solid var(--tinte);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.menue {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	padding: 10px 0;
	border-bottom: 1px solid var(--linie);
	font-size: 0.95rem;
}

.menue a { text-decoration: none; padding: 2px 0; }
.menue a[aria-current='page'] { border-bottom: 2px solid var(--tinte); }

h1, h2, h3 {
	font-family: 'UnifrakturMaguntia', Georgia, serif;
	font-weight: normal;
	line-height: 1.1;
}

h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 22px 0 8px; }
h2 { font-size: 1.9rem; margin: 28px 0 8px; }
h3 { font-size: 1.45rem; margin: 18px 0 4px; }

.rubrik {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tinte-leise);
	border-bottom: 1px solid var(--linie);
	margin-top: 26px;
}

.einleitung { font-size: 1.12rem; }

.spalten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}

/* Postkarte */
.postkarte {
	background: #fbf8f1;
	padding: 10px 10px 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
	transform: rotate(-1deg);
	margin: 14px 0;
}

.postkarte img { display: block; width: 100%; height: auto; }
.postkarte figcaption { font-size: 0.85rem; color: var(--tinte-leise); padding-top: 6px; }
.postkarte--rechts { transform: rotate(1.2deg); }

.knopf {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid var(--tinte);
	background: var(--tinte);
	color: var(--papier);
	text-decoration: none;
	font-size: 1.05rem;
	border-radius: 3px;
	cursor: pointer;
	font-family: inherit;
}

.knopf--hell { background: transparent; color: var(--tinte); }
.knopf:disabled, .knopf[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.kasten {
	border: 1px solid var(--linie);
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.25);
	margin: 14px 0;
}

.kasten--hinweis { border-color: var(--gold); background: rgba(201, 164, 92, 0.12); }

.preise {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.preis {
	border: 2px solid var(--tinte);
	padding: 14px;
	text-align: center;
	background: #f6efdb;
}

.preis__betrag { font-size: 2rem; }
.preis__zeit { color: var(--tinte-leise); }

table.ueberweisung { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
table.ueberweisung th { text-align: left; font-weight: normal; color: var(--tinte-leise); padding: 4px 12px 4px 0; width: 38%; vertical-align: top; }
table.ueberweisung td { padding: 4px 0; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }

.qr { width: 190px; height: 190px; background: #fff; padding: 8px; border: 1px solid var(--linie); }
.qr canvas, .qr img { width: 100% !important; height: 100% !important; }

.entwurf {
	background: #fff3cd;
	border: 1px dashed #b8860b;
	padding: 8px 12px;
	font-size: 0.9rem;
	margin: 12px 0;
}

.luecke { background: #ffe08a; padding: 0 4px; }

label { display: block; margin: 10px 0 4px; }
input[type='email'], input[type='text'], input[type='password'], select {
	width: 100%;
	max-width: 420px;
	padding: 9px 10px;
	font: inherit;
	border: 1px solid var(--tinte);
	background: #fffdf6;
}

.fuss {
	margin-top: 40px;
	padding-top: 10px;
	border-top: 3px double var(--tinte);
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	justify-content: center;
	color: var(--tinte-leise);
}

ol li, ul li { margin: 4px 0; }

@media (max-width: 560px) {
	body { font-size: 16px; }
	.kopf__zeile span:nth-child(2) { display: none; }
}


.preis .knoepfe { justify-content: center; margin-bottom: 4px; }

/* Kontoseite (konto.html): Formulare, Meldungen, der Wiederherstellungscode */
.formular h3 { margin-top: 4px; }
.formular input:focus, .formular button:focus-visible, .knopf:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hinweis, .leise { font-size: 0.9rem; color: var(--tinte-leise); margin: 4px 0; }
.meldung { padding: 10px 14px; border: 1px solid; margin: 14px 0; }
.meldung--gut { border-color: var(--gruen); background: rgba(47, 107, 58, 0.1); }
.meldung--schlecht { border-color: #8b2b1f; background: rgba(139, 43, 31, 0.08); color: #6d1f15; }
.code {
	font-family: ui-monospace, Consolas, monospace;
	font-size: clamp(1.3rem, 5vw, 1.9rem);
	letter-spacing: 0.08em;
	background: #fffdf6;
	border: 2px dashed var(--tinte);
	padding: 12px 16px;
	display: inline-block;
	user-select: all;
	word-break: break-all;
}
.haken { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.haken input { width: 20px; height: 20px; }
.aufklapp { border-top: 1px solid var(--linie); padding: 10px 0; }
.aufklapp summary { cursor: pointer; font-size: 1.1rem; }
.knopf--gefahr { background: #8b2b1f; border-color: #8b2b1f; }
.menue__konto { font-style: italic; }
[hidden] { display: none !important; }

/* Spielerinfos auf der Kontoseite: Gruppen nebeneinander, Zeilen Name ... Wert */
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 6px 36px; }
.infos__gruppe h3 { font-size: 1.2rem; margin: 10px 0 4px; }
.infos__gruppe dl { margin: 0; }
.infos__zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-bottom: 1px dotted var(--linie); padding: 3px 0; }
.infos__zeile dt { color: var(--tinte-leise); }
.infos__zeile dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .infos { grid-template-columns: 1fr; } }
