/* INFRA Speedtest: Farben und Schriften wie infra-it.com */
@font-face { font-family: 'Red Hat Display'; font-weight: 600 800; font-display: swap; src: url(/fonts/red-hat-display-latin.woff2) format('woff2'); }
@font-face { font-family: 'Red Hat Text'; font-weight: 400 600; font-display: swap; src: url(/fonts/red-hat-text-latin.woff2) format('woff2'); }
:root {
  --navy: #0f172a; --deep: #0a1022; --violett: #8b33ff; --violett-dunkel: #6d1fe0; --lav: #cdb4ff;
  --text: #3a4254; --leise: #636c7e; --linie: #dfe2ea; --nebel: #f2f3f8; --weiss: #fff; --gruen: #18a058; --gelb: #d99a00; --rot: #d64545;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 'Red Hat Text', system-ui, sans-serif; color: var(--text); background: var(--weiss); }
h1, h2, h3 { font-family: 'Red Hat Display', system-ui, sans-serif; font-weight: 700; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
a { color: var(--violett-dunkel); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 9; background: #fff; padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }
.klein { font-size: 14px; color: var(--leise); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 8px; font: 600 16px/1 'Red Hat Text', sans-serif; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-violett { background: var(--violett); color: #fff; }
.btn-violett:hover { background: var(--violett-dunkel); }
.btn-rand { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-rand:hover { border-color: #fff; }
.pfeil { font-weight: 600; text-decoration: none; }
.pfeil::after { content: ' ›'; }

/* Kopf */
.kopf { background: var(--navy); }
.kopf-in { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.logo img { width: 150px; }

/* Bühne mit Messer */
.buehne { background: linear-gradient(180deg, var(--navy), var(--deep)); color: #c9cfdc; padding: 46px 0 56px; position: relative; overflow: hidden; }
.buehne::after { content: ''; position: absolute; right: -8%; top: -30%; width: 46%; height: 160%; background: var(--violett); opacity: .08; transform: skewX(-22deg); pointer-events: none; }
.buehne-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'text messer' 'werte werte' 'anbieter anbieter'; gap: 26px 40px; align-items: center; position: relative; z-index: 1; }
.buehne-text { grid-area: text; }
.buehne h1 { color: #fff; }
.vorzeile { color: var(--lav); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-bottom: 10px; }
.messer { grid-area: messer; position: relative; width: min(380px, 100%); justify-self: center; aspect-ratio: 240 / 175; }
.tacho { width: 100%; height: auto; overflow: visible; }
.tacho-bahn, .tacho-wert { fill: none; stroke-width: 14; stroke-linecap: round; }
.tacho-bahn { stroke: rgba(255,255,255,.12); }
.tacho-wert { stroke: var(--violett); stroke-dasharray: 0 1000; transition: stroke-dasharray .25s linear; }
.messer[data-zustand="upload"] .tacho-wert { stroke: var(--lav); }
.anzeige { position: absolute; left: 0; right: 0; top: 38%; text-align: center; }
.anzeige-zahl { display: block; font: 800 clamp(46px, 7vw, 62px)/1 'Red Hat Display', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.anzeige-einheit { display: block; font-size: 15px; color: #aab2c4; margin-top: 4px; }
.anzeige-phase { display: block; font-size: 14px; color: var(--lav); font-weight: 600; margin-top: 6px; min-height: 1.4em; }
.start { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--violett); color: #fff; font: 700 17px/1 'Red Hat Text', sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(139, 51, 255, .45); white-space: nowrap; }
.start:hover { background: var(--violett-dunkel); }
.messer[data-zustand="laeuft"] .start, .messer[data-zustand="upload"] .start { background: transparent; box-shadow: none; border: 2px solid rgba(255,255,255,.3); }
.werte { grid-area: werte; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.wert { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px 18px; }
.wert-name { display: block; font-size: 14px; color: #aab2c4; }
.wert-zahl { font: 700 30px/1.1 'Red Hat Display', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.wert-einheit { font-size: 14px; color: #aab2c4; margin-left: 6px; }
.anbieter { grid-area: anbieter; margin: 0; font-size: 15px; color: #aab2c4; min-height: 1.6em; }

/* Bereiche */
.bereich { padding: 64px 0; }
.bereich--grau { background: var(--nebel); }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tipp { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 26px; }
.tipp p:last-child { margin-bottom: 0; }
.schmal { max-width: 760px; }

.einordnung .zeile { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.einordnung .punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; }
.punkt.gut { background: var(--gruen); } .punkt.mittel { background: var(--gelb); } .punkt.schlecht { background: var(--rot); }
.einordnung strong { color: var(--navy); }
.vergleich { margin-top: 24px; }
.vergleich label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.vergleich-feld { display: flex; align-items: center; gap: 10px; max-width: 260px; }
.vergleich-feld input { flex: 1; }

.formular { background: var(--nebel); border-radius: 14px; padding: 28px; display: grid; gap: 14px; }
.formular h2 { margin-bottom: 0; }
.formular label { display: grid; gap: 5px; font-weight: 600; font-size: 15px; color: var(--navy); }
.formular .opt { font-weight: 400; color: var(--leise); }
input, select, textarea { width: 100%; font: 400 16px/1.4 'Red Hat Text', sans-serif; color: var(--navy); background: #fff; border: 1.5px solid #cfd4df; border-radius: 8px; padding: 11px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violett); box-shadow: 0 0 0 3px rgba(139, 51, 255, .18); }
.formular .btn { justify-self: start; }
.falle { position: absolute !important; left: -9999px; }
.meldung { margin: 0; font-weight: 600; min-height: 1.5em; }
.meldung.ok { color: var(--gruen); } .meldung.fehler { color: var(--rot); }

.fuss { background: var(--navy); color: #aab2c4; padding: 30px 0; font-size: 15px; }
.fuss-in { display: grid; gap: 8px; }
.fuss p { margin: 0; }
.fuss a { color: #fff; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 18px; }
.fuss .klein { color: #8a93a6; }
.fuss .klein a { color: #c9cfdc; }

@media (max-width: 860px) {
  .buehne-in { grid-template-columns: 1fr; grid-template-areas: 'text' 'messer' 'werte' 'anbieter'; }
  .werte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zwei, .drei { grid-template-columns: 1fr; gap: 28px; }
  .logo img { width: 120px; }
  .kopf .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tacho-wert { transition: none; } }
