/* UpMiiGo – Infoseite. Farben wie in der App (Platform/UiTheme.cs), hell und dunkel. */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-soft: #e3f2fd;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --outline: #dde3ea;
  --text: #1a2433;
  --text-2: #606f80;
  --bar: #90caf9;
  --good: #2e7d32;
  --warn: #ef6c00;
  --bad: #c62828;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #64b5f6;
    --primary-dark: #1e3a5f;
    --primary-soft: #1a2a3c;
    --bg: #121417;
    --surface: #1e2227;
    --outline: #333a43;
    --text: #e6eaf0;
    --text-2: #9aa5b1;
    --bar: #4a7fb0;
    --good: #81c784;
    --warn: #ffb74d;
    --bad: #ef9a9a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--primary); }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

/* Kopfzeile */
header.top { background: var(--surface); border-bottom: 1px solid var(--outline); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav.main { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
nav.main a { color: var(--text-2); text-decoration: none; }
nav.main a:hover { color: var(--primary); }
.lang { border: 1px solid var(--outline); border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; text-decoration: none; color: var(--text); }
@media (max-width: 720px) { nav.main .opt { display: none; } }

/* Kopfbereich */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--text-2); margin: 0 0 1.5rem; max-width: 36rem; }
.cars { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.cars li { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; font-weight: 600; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--primary); }
.btn.solid { background: var(--primary); color: var(--surface); }
.btn.ghost { color: var(--primary); }

/* Handy-Vorschau (Beispielwerte, aus HTML/CSS gebaut) */
.phone { background: var(--surface); border: 1px solid var(--outline); border-radius: 28px; padding: 1rem; max-width: 360px; margin: 0 auto; box-shadow: 0 20px 50px rgba(13, 71, 161, .12); }
.phone .bar { background: var(--primary); color: #fff; border-radius: 14px; padding: .55rem .9rem; font-weight: 600; display: flex; justify-content: space-between; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .phone .bar { color: #101418; } }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: .7rem 0; }
.tile { border: 1px solid var(--outline); border-radius: 12px; padding: .5rem .7rem; }
.tile .k { font-size: .72rem; color: var(--text-2); }
.tile .v { font-size: 1.25rem; font-weight: 700; }
.tile .v small { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.tile.big { grid-column: span 2; }
.cellsbox { border: 1px solid var(--outline); border-radius: 12px; padding: .5rem .7rem .4rem; }
.cellsbox .k { font-size: .72rem; color: var(--text-2); display: flex; justify-content: space-between; }
.cellsbox svg { display: block; width: 100%; height: auto; margin-top: .3rem; }
.sample { text-align: center; font-size: .75rem; color: var(--text-2); margin: .6rem 0 0; }

/* Abschnitte */
section { padding: 3rem 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); }
h2 { font-size: 1.7rem; margin: 0 0 .5rem; }
.sub { color: var(--text-2); margin: 0 0 2rem; max-width: 44rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
section.alt .card { background: var(--bg); }
.card h3 { margin: .2rem 0 .4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-2); font-size: .97rem; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Schritte */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--text-2); }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: var(--surface); font-weight: 700; margin-bottom: .6rem; }
ol.steps li strong { color: var(--text); display: block; }

/* Adaptertabelle */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--outline); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: .85rem; color: var(--text-2); font-weight: 600; background: var(--bg); }
.table td:first-child { font-weight: 600; }
.table td.note { color: var(--text-2); font-size: .95rem; }
.badge { display: inline-block; white-space: nowrap; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 700; }
.badge.good { color: var(--good); background: color-mix(in srgb, var(--good) 15%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.badge.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--outline); padding: .5rem 0; }
  .table td { border: 0; padding: .2rem 1rem; }
}

/* Hinweise und Fragen */
.notice { border-left: 4px solid var(--warn); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; color: var(--text-2); }
.notice strong { color: var(--text); }
details { background: var(--surface); border: 1px solid var(--outline); border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: .7rem; }
section.alt details { background: var(--bg); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--text-2); margin: .6rem 0 0; }

/* Textseiten (Impressum, Datenschutz) */
main.page { padding: 2.5rem 0 3rem; }
main.page .wrap { max-width: 46rem; }
main.page h1 { font-size: 2rem; }
main.page h2 { font-size: 1.2rem; margin-top: 2rem; }
main.page p, main.page li { color: var(--text); }
.ph { background: color-mix(in srgb, var(--warn) 18%, transparent); border-radius: 4px; padding: 0 .25rem; }

/* Fußzeile */
footer { border-top: 1px solid var(--outline); background: var(--surface); padding: 2rem 0; color: var(--text-2); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer a { color: var(--text-2); }
footer p { margin: 0; max-width: 34rem; }
