/* Gemeinsame Grundlagen des Web-Rechners: Schriften, Farben, Grundelemente.
   Marke wie www.netzentgelt-rechner.de (netzentgelt-astro, src/styles/global.css):
   Nachtblau als Grund, Schnee für Text, Lavendel für Daten, Amber für die
   Ablesung und die Hauptaktion. Keine Rundungen, keine Schatten als Schmuck,
   Haarlinien, tabellarische Ziffern, vorläufig immer gestrichelt.
   Schriften liegen in /app/static/fonts (SIL OFL 1.1), es wird nichts extern geladen. */

@font-face {
	font-family: "Archivo";
	src: url("/app/static/fonts/archivo-latin.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
	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;
}
@font-face {
	font-family: "Archivo";
	src: url("/app/static/fonts/archivo-latin-ext.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
	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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("/app/static/fonts/jetbrains-mono-latin.woff2") format("woff2");
	font-weight: 400 800; font-style: normal; font-display: swap;
	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 {
	color-scheme: dark;

	/* Marke */
	--night:       #0a0d24;
	--night-deep:  #070920;
	--night-raise: #11153a;   /* Hover, gewählte Zeile */
	--night-line:  #262c5a;   /* Haarlinien */
	--night-rule:  #1b2049;   /* Zeilenlinien in Tabellen, Diagrammraster */
	--line-control:#5d659d;   /* Rahmen von Eingabefeldern (3:1 auf Nachtblau) */
	--dot:         #7c84b8;
	--dot-light:   #a9aedb;
	--amber:       #f0a94a;
	--amber-hover: #ffc477;
	--snow:        #eef0f7;
	--muted:       #b9bedc;
	--faint:       #a7acd0;
	--danger:      #ffb4a8;
	--ok-text:     #9be3bd;

	--font-sans: "Archivo", system-ui, sans-serif;
	--font-code: "JetBrains Mono", ui-monospace, monospace;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	/* Frühere Namen, weiter genutzt von den Verwaltungsseiten. */
	--bg:         var(--night);
	--surface:    var(--night);
	--surface-2:  var(--night-raise);
	--border:     var(--night-line);
	--border-2:   var(--night-rule);
	--ink:        var(--snow);
	--ink-2:      var(--muted);
	--ink-3:      var(--faint);
	--ink-4:      var(--faint);
	--brand:      var(--amber);
	--brand-2:    var(--amber-hover);
	--brand-soft: var(--night-raise);
	--on-brand:   var(--night);
	--strom:      var(--dot-light);
	--gas:        var(--amber);
	--err:        var(--danger);
	--err-bg:     #2a1326;
	--err-border: #7a3a48;
	--ok:         var(--ok-text);
	--ok-bg:      #0d2a2c;
	--ok-border:  #2f6b5a;
	--prelim:        var(--amber);
	--prelim-bg:     transparent;
	--prelim-border: var(--amber);
}

*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
html, body {
	margin: 0; padding: 0;
	background: var(--night);
	color: var(--snow);
	font-family: var(--font-sans);
	font-size: 15px; line-height: 1.5;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}
body { overflow-x: clip; caret-color: var(--amber); }

::selection { background: var(--amber); color: var(--night); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
code, .mono { font-family: var(--font-code); font-size: 0.9em; }
button, input, select, textarea { font: inherit; font-variant-numeric: tabular-nums; }
input::placeholder { color: var(--faint); opacity: 1; }

.logo { display: block; width: auto; }

/* vorläufig = noch nicht endgültig: gestrichelt, überall wo es auftaucht. */
.prelim-tag, .tag-vorlaeufig {
	display: inline-block;
	padding: 1px 7px;
	border: 1px dashed currentColor;
	color: var(--amber);
	font-size: 13px; font-weight: 500; line-height: 1.5;
	white-space: nowrap;
}

.sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
