/*
 * Grundlage für Anmeldeseite und App: Farben (hell/dunkel), Schrift, Karten, Knöpfe, Chips,
 * Hinweise, Passkey-Ring. Werte 1:1 aus dem abgenommenen Entwurf (entwurf/style.css).
 * Symbole sind SVG (<svg class="sym">) statt Schrift-Symbole; ihre Grösse folgt font-size.
 */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('/oeffentlich/schrift/inter-latin-ext-wght-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('/oeffentlich/schrift/inter-latin-wght-normal.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: #f4f5f7; --flaeche: #ffffff; --flaeche-2: #f8f9fb; --linie: #e3e6eb; --linie-stark: #cfd4dc;
	--text: #16191f; --text-2: #545b67; --text-3: #8a919c;
	--akzent: #4f5bd5; --akzent-bg: #eceefd; --akzent-text: #3a44b0;
	--gut: #1f9d63; --gut-bg: #e4f5ec; --gut-text: #146b43;
	--warn: #d48a0c; --warn-bg: #fdf3df; --warn-text: #8a5a06;
	--schlecht: #d64545; --schlecht-bg: #fceaea; --schlecht-text: #9b2828;
	--info: #2f86c8; --info-bg: #e5f1fa; --info-text: #1d5e8f;
	--violett: #8250df; --tuerkis: #12949a;
	--schatten: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
	--radius: 14px; --radius-k: 9px;
	--seitenleiste: #12151c; --seitenleiste-text: #c4c9d4; --seitenleiste-aktiv: #232836;
	--skelett: #eceef2; --skelett-glanz: #f6f7f9;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0e1117; --flaeche: #161a22; --flaeche-2: #1b2029; --linie: #262c37; --linie-stark: #343b48;
		--text: #e8eaee; --text-2: #a3aab6; --text-3: #6f7784;
		--akzent: #7c86f0; --akzent-bg: #232849; --akzent-text: #aab1ff;
		--gut: #3cc184; --gut-bg: #12301f; --gut-text: #7fdcaf;
		--warn: #f0a92c; --warn-bg: #33270e; --warn-text: #f5c873;
		--schlecht: #ef6262; --schlecht-bg: #3a1717; --schlecht-text: #f8a3a3;
		--info: #55a8e6; --info-bg: #12283a; --info-text: #9dcdf2;
		--violett: #b18cf5; --tuerkis: #3cc8c8;
		--schatten: none; --seitenleiste: #0a0c11; --seitenleiste-aktiv: #1b2030;
		--skelett: #1d222c; --skelett-glanz: #252b37;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0e1117; --flaeche: #161a22; --flaeche-2: #1b2029; --linie: #262c37; --linie-stark: #343b48;
	--text: #e8eaee; --text-2: #a3aab6; --text-3: #6f7784;
	--akzent: #7c86f0; --akzent-bg: #232849; --akzent-text: #aab1ff;
	--gut: #3cc184; --gut-bg: #12301f; --gut-text: #7fdcaf;
	--warn: #f0a92c; --warn-bg: #33270e; --warn-text: #f5c873;
	--schlecht: #ef6262; --schlecht-bg: #3a1717; --schlecht-text: #f8a3a3;
	--info: #55a8e6; --info-bg: #12283a; --info-text: #9dcdf2;
	--violett: #b18cf5; --tuerkis: #3cc8c8;
	--schatten: none; --seitenleiste: #0a0c11; --seitenleiste-aktiv: #1b2030;
	--skelett: #1d222c; --skelett-glanz: #252b37;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--akzent-text); }
h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 0; }
[hidden] { display: none !important; }
.leise { color: var(--text-2); }
.sehr-leise { color: var(--text-3); font-size: 13px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.abstand { margin-top: 16px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* Symbole: Grösse = Schriftgrösse, Farbe = Textfarbe */
.sym { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; fill: none; stroke: currentColor; }
.sym.dreht { animation: drehen 1s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* Marke */
.marke { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 600; font-size: 16px; }
.marke .logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #5b67e8, #2bb3a3); display: grid; place-items: center; font-size: 17px; color: #fff; }
/* Marke SchnetWire: Wappen-Schild mit WLAN-Zeichen (scripts/wappen/marke.ps1) */
.marke .wappen { height: 40px; width: auto; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.marke-gross { flex-direction: column; gap: 8px; font-size: 22px; letter-spacing: -.01em; padding-bottom: 2px; }
.marke-gross .wappen { height: 100px; }

/* Karten */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 18px 20px; min-width: 0; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text-2); white-space: nowrap; }
.chip .sym { font-size: 15px; }
.chip.gut { background: var(--gut-bg); color: var(--gut-text); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.chip.schlecht { background: var(--schlecht-bg); color: var(--schlecht-text); border-color: transparent; }
.chip.info { background: var(--info-bg); color: var(--info-text); border-color: transparent; }
.chip.akzent { background: var(--akzent-bg); color: var(--akzent-text); border-color: transparent; }
.chip.klein { padding: 0 7px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--radius-k); border: 1px solid var(--linie-stark); background: var(--flaeche); cursor: pointer; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--text); }
.knopf:hover { background: var(--flaeche-2); }
.knopf .sym { font-size: 16px; }
.knopf.haupt-k { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.haupt-k:hover { filter: brightness(1.07); }
.knopf.gefahr { color: var(--schlecht-text); border-color: var(--schlecht-bg); }
.knopf.klein { padding: 4px 9px; font-size: 12.5px; }
.knopf.gesperrt, .knopf:disabled { opacity: .55; }
.knopf:disabled { cursor: default; }
.knopf.geist { border-color: transparent; background: none; }
.knopf.voll { width: 100%; justify-content: center; padding: 11px; }
.symbolknopf { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--linie); background: var(--flaeche); display: grid; place-items: center; cursor: pointer; color: var(--text-2); padding: 0; }
.symbolknopf .sym { font-size: 18px; }

/* Hinweise */
.hinweisbox { display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; font-size: 13.5px; align-items: flex-start; }
.hinweisbox > .sym { font-size: 18px; margin-top: 1px; }
.hinweisbox.info { background: var(--info-bg); color: var(--info-text); }
.hinweisbox.warn { background: var(--warn-bg); color: var(--warn-text); }
.hinweisbox.gut { background: var(--gut-bg); color: var(--gut-text); }
.hinweisbox.schlecht { background: var(--schlecht-bg); color: var(--schlecht-text); }
.hinweisbox a { color: inherit; font-weight: 600; }
.hinweisbox p { margin: 0; }

/* Passkey-Ring */
.passkey { text-align: center; padding: 18px 0 6px; }
.passkey .ring { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 44px; background: var(--akzent-bg); color: var(--akzent-text); }
.passkey .ring.laeuft { animation: puls 1s ease-in-out infinite; }
.passkey .ring.ok { background: var(--gut-bg); color: var(--gut-text); }
.passkey .ring.warn { background: var(--warn-bg); color: var(--warn-text); }
.passkey .ring.fehler { background: var(--schlecht-bg); color: var(--schlecht-text); }
@keyframes puls { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
	.passkey .ring.laeuft, .sym.dreht { animation: none; }
}
