/* Plakettl – Racing Green, Bernstein wie eine Tachonadel, Zählwerk-Ziffern für Kilometerstände. */
:root {
	--bg: #f4f6f3;
	--panel: #ffffff;
	--ink: #13201a;
	--muted: #56675e;
	--line: #d8dfda;
	--gruen: #123a2b;
	--gruen-2: #1f5a43;
	--amber: #d9930f;
	--amber-ink: #6b4500;
	--rot: #b3261e;
	--rot-bg: #fbe9e7;
	--ok: #1d7a4b;
	--ok-bg: #e5f4ec;
	--warn-bg: #fff4dc;
	--walze: #151815;
	--walze-ziffer: #f3f3ee;
	--radius: 14px;
	--schatten: 0 1px 2px rgb(19 32 26 / 6%), 0 8px 24px rgb(19 32 26 / 6%);
	--font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0c1411;
		--panel: #14201b;
		--ink: #e6eee8;
		--muted: #9db0a6;
		--line: #26362f;
		--gruen: #3a9a72;
		--gruen-2: #4fb78a;
		--amber: #f0b13a;
		--amber-ink: #ffd88a;
		--rot: #ff8a80;
		--rot-bg: #3a1714;
		--ok: #6fd09b;
		--ok-bg: #12301f;
		--warn-bg: #3a2c0c;
		--walze: #050706;
		--schatten: none;
		color-scheme: dark;
	}
}
*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font); }
a { color: var(--gruen-2); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-stretch: 110%; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eng { max-width: 560px; margin-inline: auto; }
.breit { max-width: 1080px; margin-inline: auto; }
.stack { display: grid; gap: 14px; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.klein { font-size: 0.85rem; }
.mono { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn--primar { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.btn--amber { background: var(--amber); border-color: var(--amber); color: #1a1100; }
.btn--gefahr { color: var(--rot); border-color: var(--rot); background: transparent; }
.btn--gross { min-height: 64px; font-size: 1.15rem; width: 100%; border-radius: 18px; }
.btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--gruen-2); text-decoration: underline; font-weight: 600; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.karte { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--schatten); }
.karte h2 { font-size: 1.15rem; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.feld { display: grid; gap: 6px; }
.feld label, .feld .lab { font-weight: 600; font-size: 0.95rem; }
.feld input, .feld select, .feld textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); }
.feld textarea { min-height: 80px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--gruen-2); outline: none; box-shadow: 0 0 0 3px rgb(31 90 67 / 20%); }
.feld .hilfe { font-size: 0.82rem; color: var(--muted); }
.zwei { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* Zählwerk */
.tacho { display: inline-flex; gap: 3px; font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.tacho span { display: inline-grid; place-items: center; min-width: 1.35em; padding: 0.18em 0.1em; background: linear-gradient(180deg, #000 0%, var(--walze) 30%, var(--walze) 70%, #000 100%); color: var(--walze-ziffer); border-radius: 4px; }
.tacho--klein { font-size: 0.85rem; }
.tacho--gross { font-size: 1.7rem; }
.tacho .km { background: none; color: var(--muted); min-width: 0; padding-left: 0.3em; font-family: var(--font); font-weight: 600; font-size: 0.7em; }

/* Hinweise */
.hinweis { border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; }
.hinweis--warn { background: var(--warn-bg); color: var(--ink); border-left: 4px solid var(--amber); }
.hinweis--fehler { background: var(--rot-bg); color: var(--rot); border-left: 4px solid var(--rot); }
.hinweis--ok { background: var(--ok-bg); color: var(--ink); border-left: 4px solid var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill--ok { color: var(--ok); border-color: currentColor; background: var(--ok-bg); }
.pill--warn { color: var(--amber-ink); border-color: var(--amber); background: var(--warn-bg); }
.pill--rot { color: var(--rot); border-color: currentColor; background: var(--rot-bg); }
