/* ==========================================================================
   www.constructionsim.com - Aussenseite im Stil von Constructionsim V2
   Tokens aus web-v2/src/theme.css (Baugelb / Anthrazit), Fonts aus v2 (templates/1/fonts).
   ========================================================================== */

@font-face { font-family: 'Barlow Condensed'; src: url('fonts/barlow-condensed-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--bg: #10141c;
	--bg-subtle: #141a24;
	--card: #1a2029;
	--card-2: #232b36;
	--card-hover: #293340;
	--border: #2a3442;
	--border-strong: #3c4a5e;
	--accent: #ffc72c;
	--accent-hover: #ffd45e;
	--accent-dim: rgba(255, 199, 44, 0.15);
	--text: #f3f4f6;
	--text-dim: #8fa3bc;
	--text-muted: #7d8fa3;
	--text-on-accent: #10141c;
	--success: #22c55e;
	--success-dim: rgba(34, 197, 94, 0.16);
	--danger: #ef4444;
	--danger-dim: rgba(239, 68, 68, 0.16);
	--warn: #ff8a34;
	--warn-dim: rgba(255, 138, 52, 0.16);
	--blue: #38bdf8;
	--font-title: 'Barlow Condensed', 'Segoe UI', Impact, -apple-system, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, Roboto, sans-serif;
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow-card: 0 8px 24px rgba(0, 0, 0, .16);
	--bg-app: radial-gradient(ellipse at 65% 0%, rgba(35, 43, 54, .5), transparent 60%), var(--bg);
	--card-elevated: linear-gradient(135deg, var(--card-2), var(--card));
	--page-w: 1120px;
}

*, *:before, *:after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg-app);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.1; margin: 0 0 12px 0; color: var(--text); }
h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -1px; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.5px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 12px 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px 0; }
legend { padding: 0 8px; color: var(--text-dim); font-family: var(--font-title); font-size: 16px; letter-spacing: .5px; text-transform: uppercase; }
blink { text-decoration: none; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--text-dim);
}
.pill {
	display: inline-block;
	background: var(--accent);
	color: var(--text-on-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	vertical-align: middle;
}
.pill.warn { background: var(--warn); color: #1a0d04; }
.pill.muted { background: var(--card-2); color: var(--text-dim); border: 1px solid var(--border); }
.fine { color: var(--text-muted); font-size: 12px; }
.dim { color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn, .btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 10px;
	padding: 11px 20px;
	min-height: 48px;
	font-weight: 700;
	font-size: 14px;
	font-family: var(--font-body);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s, transform .1s, border-color .15s;
	white-space: nowrap;
	touch-action: manipulation;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.primary, .btn.primary:visited, input.submit, input[type=submit] {
	background: var(--accent);
	color: var(--text-on-accent);
	font-family: var(--font-title);
	text-transform: uppercase;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: .6px;
	box-shadow: 0 4px 16px rgba(255, 199, 44, .28);
	background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%);
}
.btn.primary:hover, input.submit:hover, input[type=submit]:hover { background-color: var(--accent-hover); color: var(--text-on-accent); }
.btn.steel, .btn.steel:visited { background: var(--card-2); border-color: var(--border); color: var(--text); }
.btn.steel:hover { background: var(--card-hover); border-color: var(--border-strong); color: var(--text); }
.btn.ghost, .btn.ghost:visited { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn.ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 38px; padding: 7px 14px; font-size: 13px; }
input[type=submit], input.submit {
	border: 0; border-radius: 10px; min-height: 44px; padding: 8px 18px; cursor: pointer;
}

/* ---------- Formulare ---------- */
input[type=text], input[type=password], input[type=email], select, textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	background: var(--bg-subtle);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 14px;
	outline: none;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
input::placeholder { color: var(--text-muted); }
label { color: var(--text-dim); font-size: 12px; }

/* ---------- Seitengeruest ---------- */
.wrap { width: 100%; max-width: var(--page-w); margin: 0 auto; padding: 0 20px; }

.topbar {
	position: sticky; top: 0; z-index: 20;
	background: rgba(16, 20, 28, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand, .brand:visited { font-family: var(--font-title); font-weight: 700; font-size: 22px; letter-spacing: 1.5px; color: var(--text); text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand span { color: var(--accent); font-size: 12px; vertical-align: top; margin-left: 4px; }
.brand:hover { color: var(--text); text-decoration: none; }
.navi { flex: 1; }
.navi ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.navi ul li a, .navi ul li a:visited {
	display: block; padding: 8px 12px; border-radius: var(--radius-sm);
	color: var(--text-dim); font-size: 13px; font-weight: 600; text-decoration: none;
}
.navi ul li a:hover, .navi ul li a.active { background: var(--card-2); color: var(--text); text-decoration: none; }
.navi ul li a strong { font-weight: 600; }
.topbar .account { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.topbar .account strong { color: var(--text); }
.topbar .account a { color: var(--accent); }
.topbar .headlogin { display: flex; align-items: center; gap: 6px; }
.topbar .headlogin p { margin: 0; display: flex; gap: 6px; align-items: center; }
.topbar .headlogin input[type=text], .topbar .headlogin input[type=password] { width: 140px; min-height: 38px; padding: 6px 10px; font-size: 13px; }
.topbar .headlogin input[type=submit] { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.topbar .lang { margin-left: 8px; display: flex; align-items: center; }
.topbar .lang img { display: block; border-radius: 3px; width: 24px; height: 16px; opacity: .8; }

/* Hinweis-Leiste "im Umbau" direkt unter dem Kopf */
.statusbar {
	background: var(--warn-dim);
	border-bottom: 1px solid rgba(255, 138, 52, .35);
	color: var(--text);
	font-size: 13px;
}
.statusbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.statusbar .pill { flex: none; }
.statusbar a { color: var(--accent); font-weight: 600; }

.site { padding: 28px 0 48px 0; }
.content { margin-top: 20px; }

/* Karten */
.card {
	background: var(--card-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: 22px 24px;
}
.card.accent { border-color: rgba(255, 199, 44, .35); box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 199, 44, .08) inset; }
.card h2, .card h3 { margin-top: 0; }
.card + .card { margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 .card + .card, .grid3 .card + .card { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Startseite: Hero */
.hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr);
	gap: 32px;
	padding: 40px 40px 0 40px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: radial-gradient(ellipse at 70% 85%, rgba(108, 146, 136, .27), transparent 65%), linear-gradient(155deg, #263e40, #192a30);
	box-shadow: var(--shadow-card);
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 36px; }
.hero-copy h1 { margin: 14px 0 16px 0; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-copy p.lead { color: #bacdcf; font-size: 16px; max-width: 540px; }
.hero-copy .actions { margin-top: 22px; }
.hero-copy .fine { display: block; margin-top: 14px; color: #a0b8b9; }
.hero-city { position: relative; min-height: 300px; isolation: isolate; align-self: end; }
.hero-city:before {
	content: ""; position: absolute; inset: 120px 30px 10px; background: #658574; border-radius: 36px;
	transform: rotate(-8deg) skewX(25deg) scaleY(.5); box-shadow: 0 18px #344f47; z-index: -1;
}
.hero-city img { position: absolute; width: 230px; height: 230px; object-fit: contain; filter: drop-shadow(0 15px 12px rgba(0,0,0,.2)); }
.hero-city img:nth-child(1) { left: 0; top: 10px; }
.hero-city img:nth-child(2) { left: 28%; top: 50px; }
.hero-city img:nth-child(3) { left: 54%; top: 95px; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 6px; display: block; }

/* Test-Teilnahme (Play Store / Web) */
.store-card { display: flex; flex-direction: column; gap: 10px; }
.store-card .icon {
	width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
	background: var(--accent-dim); color: var(--accent); font-family: var(--font-title); font-weight: 700; font-size: 20px;
}
.store-card h3 { margin: 4px 0 0 0; }
.store-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.store-card .actions { margin-top: auto; padding-top: 6px; }
.store-card .url { font-size: 12px; color: var(--text-muted); word-break: break-all; }
.qr { display: flex; align-items: center; gap: 14px; }
.qr img { width: 96px; height: 96px; border: 4px solid #fff; border-radius: 6px; flex: none; }

/* Umbau / Fahrplan */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li b.nr {
	flex: none; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 999px;
	background: var(--accent); color: var(--text-on-accent); font-family: var(--font-title); font-size: 15px;
}
.steps li.done b.nr { background: var(--success); color: #0b1f13; }
.steps li.open b.nr { background: var(--card-2); color: var(--text-dim); border: 1px solid var(--border); }
.steps li strong { color: var(--text); }
.steps li span { color: var(--text-dim); font-size: 14px; }
ul.list { margin: 0; padding-left: 18px; }
ul.list li { margin-bottom: 6px; color: var(--text-dim); font-size: 14px; }
ul.list li strong { color: var(--text); }

/* Login-Karte (geschlossene Browserversion) */
.login-card { max-width: 420px; }
.login-card label { display: block; margin-top: 10px; }
.login-card input[type=text], .login-card input[type=password] { margin-top: 6px; }
.login-card input[type=submit] { width: 100%; margin-top: 16px; min-height: 48px; }
.login-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; text-align: center; line-height: 1.6; }
table#loginform { border-collapse: collapse; }
table#loginform td { padding: 4px 8px 4px 0; vertical-align: middle; }
table#loginform td:first-child { color: var(--text-dim); font-size: 13px; white-space: nowrap; }

/* Meldungen */
#fehlermeldung, #erfolgsmeldung {
	border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px 0; font-size: 14px;
}
#fehlermeldung { background: var(--danger-dim); border: 1px solid rgba(239, 68, 68, .45); }
#fehlermeldung h2 { font-size: 18px; margin-bottom: 4px; color: #fca5a5; }
#erfolgsmeldung { background: var(--success-dim); border: 1px solid rgba(34, 197, 94, .45); }
#fehlermeldung p, #erfolgsmeldung p { margin: 0; }

/* Alte Inhaltsseiten (AGB, Datenschutz, Statistik, Hall of Fame, Einstellungen) */
.content.plain { max-width: 820px; }
.content.plain h2, .content.plain h3, .content.plain h4 { margin-top: 18px; }
.content.plain p { color: var(--text-dim); }
.content.plain table { border-collapse: collapse; width: 100%; font-size: 13px; }
.content.plain table td, .content.plain table th { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.content.plain table td[bgcolor], .content.plain table th { background: var(--card-2) !important; }
.content.plain table#register td { border: 0; }
.content.plain font[color] { color: var(--accent) !important; }
.content.plain center h1 { color: var(--text-dim); font-size: 26px; }

/* Fuss */
.footer { margin-top: 40px; border-top: 1px solid var(--border); padding: 22px 0 32px 0; color: var(--text-muted); font-size: 12px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Mobil */
@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; padding: 28px 24px 0 24px; }
	.hero-city { min-height: 240px; margin: 0 -24px; }
	.hero-city img { width: 180px; height: 180px; }
	.grid3 { grid-template-columns: 1fr; }
	.topbar .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 8px; }
	.navi { order: 3; flex-basis: 100%; }
	.topbar .headlogin { display: none; }
}
@media (max-width: 640px) {
	body { font-size: 14px; }
	.wrap { padding: 0 16px; }
	.grid2 { grid-template-columns: 1fr; }
	.card { padding: 18px 16px; }
	.hero { padding: 22px 18px 0 18px; }
	.hero-city { display: none; }
	.hero-copy { padding-bottom: 24px; }
	.actions .btn { flex: 1 1 100%; }
	.navi ul li a { padding: 8px 9px; font-size: 12px; }
}

/* Rechtstexte (Impressum, AGB, Datenschutz) - gleiche Quelle wie die Mobile-Version (legal/*.md) */
.legal { max-width: 820px; }
.legal h2 { margin-bottom: 14px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px 0; }
.legal p, .legal li { color: var(--text-dim); font-size: 14px; line-height: 1.65; }
.legal p { margin: 0 0 12px 0; }
.legal ul { margin: 4px 0 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal .legal-quote { border-left: 3px solid var(--border-strong); padding-left: 12px; margin: 12px 0; color: var(--text-muted); font-size: 13px; font-style: italic; line-height: 1.5; }
.legal .legal-draft { padding: 12px 16px; margin-bottom: 18px; border-color: rgba(255, 138, 52, .4); }
.legal .legal-draft strong { color: var(--warn); font-family: var(--font-title); font-size: 15px; letter-spacing: .3px; }
.legal .legal-draft p { margin: 4px 0 0 0; }
