/* VidaLabs-Konto in the design of vidalabs.org (same colours, fonts and shapes).
   No external fonts and no inline styles: the Content-Security-Policy allows only 'self'.
   Sizes are in rem so the text size setting of the accessibility panel scales everything. */

:root {
  --ink: #15203b;
  --text: #1e2433;
  --muted: #586174;
  --bg: #fffcf7;
  --surface: #ffffff;
  --tint: #f6f1e8;
  --line: #ebe4d7;
  --line-strong: #d9cfbd;
  /* Borders of form fields and outline buttons: at least 3:1 against white. */
  --field: #847a68;

  --blue: #2f5be0;
  --blue-dark: #2347b8;
  --blue-soft: #e9efff;
  --sun: #ffc24b;
  --sun-soft: #fff3d6;
  --sun-text: #7a5200;
  --green: #13916a;
  --green-dark: #0b5e45;
  --green-soft: #e3f5ee;
  --gold: #9a6400;
  --coral: #e5603a;
  --rose: #d9467a;
  --rose-soft: #fce8ef;
  --violet: #7350d8;
  --violet-soft: #efeafd;
  --danger: #b3261e;
  --danger-dark: #8c1d17;
  --danger-soft: #fdecea;

  --radius: 22px;
  --shadow: 0 1px 2px rgba(21, 32, 59, .06), 0 12px 32px -12px rgba(21, 32, 59, .18);
  --shadow-soft: 0 1px 2px rgba(21, 32, 59, .05), 0 10px 26px -18px rgba(21, 32, 59, .22);
  --ease: cubic-bezier(.2, .75, .25, 1);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 96px; scroll-padding-bottom: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
body.ohne-leiste {
  background:
    radial-gradient(680px circle at 100% 0%, rgba(47, 91, 224, .13), transparent 62%),
    radial-gradient(560px circle at 0% 100%, rgba(255, 194, 75, .22), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}
@media (max-width: 600px) {
  h1, h2, h3, p, li, dd, label { hyphens: auto; -webkit-hyphens: auto; }
}
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; overflow-wrap: break-word; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }
code { font-family: Consolas, "Cascadia Mono", monospace; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.symbol { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nur-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.leise, p.leise { color: var(--muted); }
.oben { margin-top: 1rem; }
form.inline { display: inline; }

.sprung {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: top .15s;
}
.sprung:focus { top: 12px; color: #fff; }
.sprung--zwei:focus { top: 64px; }

/* German flag (black, red, gold) */
.flagge { display: inline-flex; flex-direction: column; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(21, 32, 59, .1); }
.flagge i { flex: 1; }
.flagge i:nth-child(1) { background: #000; }
.flagge i:nth-child(2) { background: #dd0000; }
.flagge i:nth-child(3) { background: #ffcc00; }

/* ---------- Header ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 247, .88);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.kopf__innen { display: flex; align-items: center; gap: 16px; max-width: 1240px; min-height: 72px; margin: 0 auto; padding: 10px 24px; }
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; border-radius: 12px; }
.marke:hover { color: var(--ink); }
.marke__zeichen { width: 38px; height: 38px; flex: none; transition: transform .4s var(--ease); }
.marke:hover .marke__zeichen { transform: rotate(-8deg) scale(1.06); }
.marke__name { font-family: var(--font-display); font-weight: 750; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1; }
.marke__name span { color: var(--blue); }
.marke__zusatz {
  font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-dark); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px;
}
.kopf__rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.kopf__link { font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.kopf__link:hover { background: var(--tint); }
.kopf__avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff;
  font-family: var(--font-display); font-weight: 750; font-size: .95rem;
}
@media (max-width: 600px) {
  .kopf__innen { padding: 8px 16px; min-height: 64px; gap: 10px; }
  .kopf__avatar { display: none; }
}
@media (max-width: 420px) {
  .marke__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Account area: side bar and content ---------- */
.rahmen {
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 24px 72px;
  display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 44px; align-items: start;
}
.leiste { position: sticky; top: 104px; }
.profil { display: flex; align-items: center; gap: 14px; padding: 4px 6px 22px; }
.avatar {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff;
  font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; letter-spacing: .02em;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sun);
}
.avatar--gross { width: 84px; height: 84px; font-size: 1.9rem; }
.profil__text { min-width: 0; }
.profil__name { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.3; }
.profil__mail { margin: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

.navi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.navi a {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 10px 16px; border-radius: 14px;
  color: var(--muted); font-weight: 550; text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.navi .symbol { width: 1.35em; height: 1.35em; }
.navi a:hover { background: var(--tint); color: var(--ink); }
.navi a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 680; box-shadow: var(--shadow); }
.navi a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); }
.navi a[aria-current="page"] .symbol { color: var(--blue); }

.haupt { min-width: 0; }
@media (max-width: 960px) {
  .rahmen { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 22px; }
  .leiste { position: static; }
  .profil { padding-bottom: 14px; }
  .navi ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .navi a { min-height: 44px; padding: 8px 15px; gap: 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
  .navi .symbol { width: 1.15em; height: 1.15em; }
  .navi a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
  .navi a[aria-current="page"]::before { display: none; }
  .navi a[aria-current="page"] .symbol { color: var(--sun); }
}
@media (max-width: 600px) { .rahmen { padding: 18px 16px 56px; } }

/* Page head with optional quick actions on the right */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.seitenkopf__text { flex: 1 1 20rem; min-width: 0; }
.seitenkopf h1 { font-size: clamp(1.9rem, 1.45rem + 1.5vw, 2.6rem); font-weight: 780; letter-spacing: -.035em; }
.seitenkopf__unter { margin: 10px 0 0; color: var(--muted); font-size: 1.06rem; max-width: 40em; }
.augenbraue {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark);
}
.augenbraue::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--sun); }

.schnell { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.schnell a {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.schnell a:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.statusreihe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .statusreihe { grid-template-columns: minmax(0, 1fr); } }
.statusreihe a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.statusreihe a:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); }
.statusreihe strong { display: block; line-height: 1.25; }
.statusreihe small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.formular-schmal { max-width: 30rem; }
.schnell__symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; flex: none; background: var(--accent-soft, var(--blue-soft)); color: var(--accent, var(--blue)); }
.schnell strong { display: block; font-size: .95rem; line-height: 1.25; }
.schnell small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.3; }

/* ---------- Tiles ---------- */
.stapel { display: grid; gap: 22px; }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.kacheln > .kachel { display: flex; flex-direction: column; }
.kacheln > .kachel > .kachel__inhalt { flex: 1; }
.kacheln > .kachel--breit { grid-column: 1 / -1; }
@media (max-width: 1080px) { .kacheln { grid-template-columns: minmax(0, 1fr); } }

.ton-blau { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.ton-gruen { --accent: var(--green); --accent-soft: var(--green-soft); }
.ton-violett { --accent: var(--violet); --accent-soft: var(--violet-soft); }
.ton-gold { --accent: var(--gold); --accent-soft: var(--sun-soft); }
.ton-rose { --accent: var(--rose); --accent-soft: var(--rose-soft); }
.ton-gefahr { --accent: var(--danger); --accent-soft: var(--danger-soft); }

.kachel {
  --accent: var(--blue); --accent-soft: var(--blue-soft);
  position: relative; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.kachel__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.kachel__kopf:last-child { border-bottom: 0; }
.kachel__titel { flex: 1 1 13rem; min-width: 0; }
.kachel__titel h2 { font-size: 1.25rem; font-weight: 720; }
.kachel__titel p { margin: 3px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.kachel__symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; flex: none; background: var(--accent-soft); color: var(--accent); }
.kachel__symbol .symbol { width: 24px; height: 24px; }
.kachel__marke { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 8px 12px rgba(21, 32, 59, .18)); }
.kachel__aktion {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto;
  padding: 8px 12px 8px 16px; border-radius: 999px;
  color: var(--blue-dark); font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.kachel__aktion:hover { background: var(--blue-soft); color: var(--blue-dark); }
.kachel__aktion--unten { margin-left: -16px; }
.kachel__aktion .symbol { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.kachel__aktion:hover .symbol { transform: translateX(3px); }
.kachel__inhalt { padding: 22px 26px 26px; }
.kachel__inhalt > h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.kachel__fuss {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 16px 26px; border-top: 1px solid var(--line);
  background: #fdfbf7; border-radius: 0 0 var(--radius) var(--radius);
}
@media (max-width: 520px) {
  .kachel__kopf, .kachel__inhalt, .kachel__fuss { padding-left: 18px; padding-right: 18px; }
}

/* Plan and programs */
.tarif { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px 36px; align-items: center; }
@media (max-width: 760px) { .tarif { grid-template-columns: minmax(0, 1fr); } }
.tarif__haupt { display: flex; align-items: center; gap: 18px; min-width: 0; }
.tarif__marke { width: 66px; height: 66px; flex: none; filter: drop-shadow(0 10px 14px rgba(21, 32, 59, .22)); }
.tarif__name { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 760; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.tarif__stand { margin: 0; color: var(--muted); }
.programme { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.programm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.programm__symbol { width: 40px; height: 40px; flex: none; }
.programm__text { flex: 1 1 8rem; min-width: 0; line-height: 1.3; }
.programm__text strong { display: block; color: var(--ink); }
.programm__text small { color: var(--muted); font-size: .86rem; }

/* Badges */
.abzeichen {
  display: inline-block; padding: 3px 11px; border-radius: 999px; vertical-align: middle;
  font-size: .8rem; font-weight: 700; line-height: 1.5; letter-spacing: .01em; white-space: nowrap;
  background: var(--blue-soft); color: #1d3a8a;
}
.abzeichen.plus, .abzeichen.warnung { background: var(--sun-soft); color: var(--sun-text); }
.abzeichen.business, .abzeichen.gut { background: var(--green-soft); color: var(--green-dark); }
.abzeichen.keiner, .abzeichen.schlecht { background: var(--danger-soft); color: var(--danger-dark); }
.abzeichen.still { background: var(--tint); color: #4a5263; }

/* Device seats */
.plaetze { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.platz { width: 36px; height: 12px; border-radius: 999px; border: 2px solid var(--field); }
.platz--belegt { background: var(--blue); border-color: var(--blue); }
.platz--zuviel { background: var(--coral); border-color: var(--coral); }
.plaetze__text { margin: 0; color: var(--ink); }
.plaetze__text strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 760; letter-spacing: -.02em; }

.liste-kurz { list-style: none; margin: 18px 0 0; padding: 0; }
.liste-kurz li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.liste-kurz li > .symbol { color: var(--muted); width: 1.4em; height: 1.4em; }
.liste-kurz__text { flex: 1; min-width: 0; line-height: 1.35; }
.liste-kurz__text strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.liste-kurz__text small { color: var(--muted); font-size: .86rem; }

/* Status checks */
.schutzstand { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.pruefliste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.pruefliste li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.pruefliste strong { color: var(--ink); }
.zeichen { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; }
.zeichen .symbol { width: 16px; height: 16px; stroke-width: 2.8; }
.zeichen--ok { background: var(--green-soft); color: var(--green-dark); }
.zeichen--offen { background: var(--sun-soft); color: var(--sun-text); }
.zeichen--gross { width: 38px; height: 38px; }
.zeichen--gross .symbol { width: 20px; height: 20px; }

.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.haken li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.haken li > .symbol { color: var(--green); margin-top: .2em; stroke-width: 2.6; }

.de-zeile { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 650; color: var(--ink); }
.verweise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Facts (definition lists) */
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 18px 28px; margin: 0; }
.fakten dt { margin: 0 0 4px; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fakten dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.fakten .gross { font-family: var(--font-display); font-size: 1.3rem; font-weight: 750; letter-spacing: -.01em; }

/* Rows inside a tile */
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeilen > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 26px; border-top: 1px solid var(--line); }
.zeilen--oben > li:first-child { border-top: 0; }
.zeilen__symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--accent-soft); color: var(--accent); }
.zeilen__text { flex: 1 1 12rem; min-width: 0; line-height: 1.4; }
.zeilen__text strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.zeilen__text small { color: var(--muted); font-size: .88rem; }
@media (max-width: 520px) { .zeilen > li { padding-left: 18px; padding-right: 18px; } }

/* Device cards */
.geraete { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.geraet { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.geraet__buehne {
  display: grid; place-items: center; padding: 24px 24px 12px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .9), transparent 70%), linear-gradient(160deg, var(--blue-soft), #f6f8ff);
}
.geraet__buehne svg { width: min(100%, 180px); height: auto; aspect-ratio: 200 / 130; }
.geraet--still .geraet__buehne { background: var(--tint); }
.geraet--still .geraet__buehne svg { filter: grayscale(1); opacity: .7; }
.geraet__text { flex: 1; padding: 18px 22px 6px; }
.geraet__name { font-size: 1.2rem; font-weight: 720; overflow-wrap: anywhere; }
.geraet__plattform { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.geraet__text .abzeichen { margin-top: 10px; }
.daten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 16px 0 0; }
.daten dt { font-size: .8rem; font-weight: 700; color: var(--muted); }
.daten dd { margin: 0; color: var(--ink); font-weight: 600; }
.geraet__fuss { display: flex; justify-content: flex-end; padding: 12px 22px 18px; }

.leer { text-align: center; padding: 36px 24px 40px; }
.leer svg { display: block; width: 170px; height: auto; aspect-ratio: 200 / 130; margin: 0 auto 18px; }
.leer h2 { font-size: 1.3rem; margin-bottom: 8px; }
.leer p { color: var(--muted); max-width: 32em; margin-left: auto; margin-right: auto; }

.hinweis { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 18px; background: var(--tint); border: 1px solid var(--line); }
.hinweis > .symbol { color: var(--blue-dark); width: 1.5em; height: 1.5em; margin-top: .05em; }

/* Plans */
.tarife { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 1080px) { .tarife { grid-template-columns: minmax(0, 1fr); } }
.tarifkarte { position: relative; min-width: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.tarifkarte--plus { border: 2px solid var(--sun); box-shadow: 0 24px 44px -26px rgba(154, 100, 0, .5); }
.tarifkarte__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 16px; }
.tarifkarte__kopf .kachel__marke { width: 48px; height: 48px; }
.tarifkarte__kopf h2 { flex: 1 1 auto; font-size: 1.4rem; }
.preis { margin: 0 0 18px; font-family: var(--font-display); font-size: 2rem; font-weight: 780; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.preis small { font-family: var(--font); font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.tarifkarte form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .tarifkarte { padding: 22px 18px; } }

/* ---------- Single card pages (sign in, register, ...) ---------- */
.einzeln { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 48px 16px 72px; }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 34px; box-shadow: var(--shadow); }
.karte + .karte { margin-top: 22px; }
.karte h1 { font-size: clamp(1.75rem, 1.45rem + 1vw, 2.15rem); font-weight: 780; letter-spacing: -.03em; margin-bottom: .6rem; }
.karte h2 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; }
.karte > .knopf:last-child { margin-top: .4rem; }
@media (max-width: 520px) {
  .einzeln { padding-top: 24px; }
  .karte { padding: 26px 20px; border-radius: 22px; }
}

/* ---------- Forms ---------- */
label { display: block; margin: 1rem 0 .35rem; font-weight: 650; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .9rem;
  font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--field); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
input[type=checkbox], input[type=radio] { width: 1.2rem; height: 1.2rem; accent-color: var(--blue); }
textarea { min-height: 6rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin: 1rem 0; font-weight: 400; color: var(--text); }
.check input { margin-top: .22rem; flex: none; }
fieldset { border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
legend { padding: 0; margin-bottom: .35rem; font-weight: 650; color: var(--ink); }
.angebot {
  display: flex; gap: .8rem; align-items: flex-start; margin: .6rem 0; padding: .9rem 1.1rem;
  border: 1.5px solid var(--field); border-radius: 16px; background: var(--surface);
  font-weight: 400; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.angebot:hover { border-color: var(--ink); }
.angebot:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue); }
.angebot input { margin-top: .25rem; flex: none; }
.angebot strong { display: block; color: var(--ink); }
.trenner { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0; color: var(--muted); font-size: .95rem; }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .72em 1.4em; border-radius: 999px;
  border: 2px solid var(--blue); background: var(--blue); color: #fff;
  font: inherit; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(47, 91, 224, .9);
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.knopf:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.knopf:active { transform: none; }
.knopf:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.knopf.voll { width: 100%; margin-top: 1.4rem; }
.knopf.zweit, .knopf--geist { background: var(--surface); color: var(--ink); border-color: var(--field); box-shadow: none; }
.knopf.zweit:hover, .knopf--geist:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.knopf.gefahr { background: var(--danger); border-color: var(--danger); box-shadow: none; }
.knopf.gefahr:hover { background: var(--danger-dark); border-color: var(--danger-dark); }
.knopf--klein { min-height: 40px; padding: .45em 1.05em; font-size: .95rem; }
.knopf .symbol { width: 1.15em; height: 1.15em; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link { background: none; border: none; padding: 0; color: var(--blue-dark); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--ink); }
.link--gefahr { color: var(--danger); }
.link--gefahr:hover { color: var(--danger-dark); }

/* ---------- Messages ---------- */
.meldung { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: 16px; border: 1px solid; border-left-width: 5px; }
.meldung.ok { background: var(--green-soft); border-color: #a8dcc8; border-left-color: var(--green); color: var(--green-dark); }
.meldung.fehler { background: var(--danger-soft); border-color: #f1bbb7; border-left-color: var(--danger); color: var(--danger-dark); }
.meldung.info { background: var(--blue-soft); border-color: #c7d5ff; border-left-color: var(--blue); color: #1d3a8a; }
.meldung p { margin: 0 0 .5rem; }
.meldung .link { color: inherit; }
.feldfehler, .validation-summary-errors { color: var(--danger-dark); font-size: .95rem; font-weight: 600; }
div.feldfehler { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--danger-soft); border-left: 5px solid var(--danger); }
.feldfehler ul, .validation-summary-errors ul { margin: 0; padding-left: 1.2rem; }
.validation-summary-valid { display: none; }

/* Older building blocks that some pages still use */
table.liste { width: 100%; border-collapse: collapse; }
table.liste th, table.liste td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.liste th { font-size: .85rem; color: var(--muted); font-weight: 650; }
.vorteile { margin: .4rem 0 0; padding-left: 1.2rem; }
dl.eingang { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 1rem 0; }
dl.eingang dt { font-weight: 650; color: var(--ink); }
dl.eingang dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.eingang { grid-template-columns: 1fr; } dl.eingang dd { margin-bottom: .4rem; } }
.codes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; margin-top: 1rem;
  padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--tint);
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 1.1rem; color: var(--ink);
}
@media (max-width: 520px) { .codes { grid-template-columns: 1fr; } }
.qr { display: inline-block; padding: 10px; margin: .4rem 0 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.qr svg { display: block; width: 200px; height: 200px; }
code.schluessel { display: inline-block; padding: .3rem .6rem; border-radius: 8px; background: var(--tint); word-break: break-all; }

/* ---------- Footer ---------- */
.fuss { border-top: 1px solid var(--line); background: var(--bg); padding: 26px 0 96px; }
.fuss__innen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; max-width: 1240px; margin: 0 auto; padding: 0 24px; color: var(--muted); font-size: .93rem; }
.fuss__de { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-weight: 600; }
.fuss__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fuss__links a { color: var(--muted); text-decoration-color: var(--line-strong); }
.fuss__links a:hover { color: var(--blue-dark); text-decoration-color: currentColor; }
.fuss__copy { margin: 0 0 0 auto; }
@media (max-width: 600px) { .fuss__innen { padding: 0 16px; } .fuss__copy { margin-left: 0; } }

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important;
}

/* ---------- Accessibility settings panel (same as on vidalabs.org) ---------- */
.a11y-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 18px 10px 12px;
  border: 2px solid #fff; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: 0 16px 30px -12px rgba(21, 32, 59, .6);
  transition: transform .2s var(--ease), background-color .2s;
}
.a11y-fab:hover { background: var(--blue-dark); transform: translateY(-2px); }
.a11y-fab:focus-visible { outline-color: var(--sun); }
.a11y-fab svg { width: 30px; height: 30px; flex: none; }
@media (max-width: 700px) {
  .a11y-fab { padding: 10px; }
  .a11y-fab__label { display: none; }
}
.a11y-panel {
  position: fixed; left: 16px; bottom: 82px; z-index: 70;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 20px 18px;
  background: #fff; color: #10172a;
  border: 2px solid var(--ink); border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(21, 32, 59, .55);
  font-size: 1rem; line-height: 1.45;
}
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-panel h2 { font-size: 1.35rem; letter-spacing: -.01em; }
.a11y-panel h2:focus { outline: none; }
.a11y-panel h2:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.a11y-close {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  border: 2px solid var(--field); background: #fff; color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.a11y-close:hover { border-color: var(--ink); }
.a11y-panel__intro { color: #3d4557; font-size: .92rem; margin: 6px 0 16px; }
.a11y-size { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.a11y-size legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.a11y-size__options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.a11y-size__opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 8px 4px; border: 2px solid var(--line-strong); border-radius: 14px; cursor: pointer; text-align: center; font-weight: 400; }
.a11y-size__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y-size__opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.a11y-size__opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.a11y-size__a { font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1.1; }
.a11y-size__a--0 { font-size: 1rem; }
.a11y-size__a--1 { font-size: 1.2rem; }
.a11y-size__a--2 { font-size: 1.4rem; }
.a11y-size__a--3 { font-size: 1.65rem; }
.a11y-size__txt { font-size: .76rem; font-weight: 600; color: #3d4557; line-height: 1.2; }
.a11y-size__txt small { display: block; font-weight: 500; }
.a11y-switches { display: grid; gap: 6px; }
.a11y-switch { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; border-radius: 14px; cursor: pointer; font-weight: 400; }
.a11y-switch:hover { background: var(--tint); }
.a11y-switch input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  position: relative; width: 48px; height: 28px; border-radius: 999px;
  background: #767065; border: 2px solid #5c564b; cursor: pointer;
  transition: background-color .2s;
}
.a11y-switch input::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s var(--ease);
}
.a11y-switch input:checked { background: var(--blue); border-color: var(--blue-dark); }
.a11y-switch input:checked::before { transform: translateX(20px); }
.a11y-switch input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.a11y-switch input:disabled { opacity: .7; cursor: not-allowed; }
.a11y-switch__text strong { display: block; font-size: .98rem; color: #10172a; }
.a11y-switch__text small { display: block; font-size: .82rem; color: #3d4557; }
.a11y-read { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.a11y-read__title { font-weight: 700; margin-bottom: 8px; }
.a11y-read__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.a11y-btn {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 700;
}
.a11y-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.a11y-btn--ghost { background: #fff; color: var(--blue-dark); }
.a11y-btn--ghost:hover { color: #fff; }
.a11y-btn:disabled { opacity: .6; cursor: not-allowed; }
.a11y-read__note { font-size: .84rem; color: #3d4557; margin-top: 8px; }
.a11y-panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.a11y-reset { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.a11y-reset:hover { border-color: var(--ink); }
.a11y-panel__foot a { color: var(--blue-dark); font-weight: 600; }

/* The section being read aloud */
.a11y-reading { background: #fff3a6 !important; color: #10172a !important; box-shadow: 0 0 0 6px #fff3a6; border-radius: 4px; }

/* Text size */
html.a11y-text-1 { font-size: 115%; }
html.a11y-text-2 { font-size: 130%; }
html.a11y-text-3 { font-size: 150%; }

/* High contrast */
html.a11y-contrast {
  --ink: #0a1024; --text: #000; --muted: #262d3d;
  --bg: #fff; --surface: #fff; --tint: #fff;
  --line: #5f584b; --line-strong: #3c372f; --field: #3c372f;
  --blue: #1a3aa6; --blue-dark: #0f276f; --blue-soft: #e4ebff;
  --green: #0b6a4c; --green-dark: #084d38; --danger: #8c1d17; --danger-dark: #6a140f;
}
html.a11y-contrast body.ohne-leiste { background: #fff; }
html.a11y-contrast .kopf { background: #fff; border-bottom: 2px solid #000; }
html.a11y-contrast .kachel, html.a11y-contrast .karte, html.a11y-contrast .geraet, html.a11y-contrast .tarifkarte,
html.a11y-contrast .programm, html.a11y-contrast .schnell a, html.a11y-contrast .hinweis, html.a11y-contrast .abzeichen,
html.a11y-contrast .navi a[aria-current="page"] { border: 2px solid var(--line); box-shadow: none; }
html.a11y-contrast .tarifkarte--plus { border-color: #000; }
html.a11y-contrast .kachel__fuss, html.a11y-contrast .geraet__buehne { background: #fff; }
html.a11y-contrast a:not(.knopf):not(.marke) { text-decoration: underline; text-underline-offset: 3px; }
html.a11y-contrast .knopf.zweit, html.a11y-contrast .knopf--geist { border-color: #000; }
html.a11y-contrast .augenbraue::before { background: currentColor; }

/* Readable font */
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3,
html.a11y-readable .knopf, html.a11y-readable .marke__name, html.a11y-readable .a11y-panel,
html.a11y-readable input, html.a11y-readable select, html.a11y-readable textarea {
  font-family: Verdana, Tahoma, "Segoe UI", system-ui, sans-serif;
}
html.a11y-readable body { letter-spacing: .03em; word-spacing: .14em; line-height: 1.85; }
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 { letter-spacing: 0; line-height: 1.3; }

/* Highlight links */
html.a11y-links a:not(.knopf):not(.marke) {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px;
  background: #fff3a6; color: #0a1024 !important; border-radius: 3px; box-shadow: 0 0 0 2px #fff3a6;
}
html.a11y-links .knopf, html.a11y-links .a11y-fab, html.a11y-links .marke, html.a11y-links .link { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0a1024 !important; }

/* Large mouse pointer */
html.a11y-cursor, html.a11y-cursor * { cursor: url("/bilder/cursor.svg") 5 3, auto !important; }
html.a11y-cursor a, html.a11y-cursor a *, html.a11y-cursor button, html.a11y-cursor button *,
html.a11y-cursor label, html.a11y-cursor label *, html.a11y-cursor input, html.a11y-cursor select { cursor: url("/bilder/cursor-hand.svg") 17 3, pointer !important; }

/* Windows contrast themes */
@media (forced-colors: active) {
  .flagge, .plaetze, .a11y-switch input { forced-color-adjust: none; }
  .navi a[aria-current="page"] { outline: 3px solid Highlight; outline-offset: -3px; }
  .a11y-size__opt:has(input:checked) { outline: 3px solid Highlight; }
  .knopf, .a11y-fab { border: 2px solid ButtonText; }
}

/* ---------- Print (recovery codes, cancellation receipt) ---------- */
@media print {
  .kopf, .leiste, .fuss, .sprung, .a11y-fab, .a11y-panel, .schnell { display: none !important; }
  body, body.ohne-leiste { background: #fff; }
  .rahmen { display: block; padding: 0; }
  .kachel, .karte, .geraet, .tarifkarte { box-shadow: none; border-color: #999; break-inside: avoid; }
}
