:root {
  --grund: #f3f1ec; --karte: #ffffff; --text: #18202a; --leise: #6b7480; --linie: #e4e0d8;
  --akzent: #e8643c; --akzent-text: #fff; --gruen: #1f9d6b; --rot: #d63c3c; --taste: #f6f4f0; --taste-hover: #ece8e1;
  --schatten: 0 1px 2px rgba(20, 24, 30, .05), 0 8px 30px rgba(20, 24, 30, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0f1720; --karte: #17212c; --text: #eef1f4; --leise: #8c98a6; --linie: #253240;
    --taste: #1e2a37; --taste-hover: #263442; --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--grund); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: var(--text); background: var(--taste); border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; box-shadow: var(--schatten); }
.klein { font-size: 13px; color: var(--leise); margin: 0 0 6px; }
.fehler { color: var(--rot); min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.haupt { background: var(--akzent); color: var(--akzent-text); border-radius: 10px; padding: 10px 16px; font-weight: 600; }
.leise { color: var(--leise); padding: 6px 10px; border-radius: 8px; }
.leise:hover { background: var(--taste); color: var(--text); }
.symbol { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; color: var(--leise); flex: none; }
.symbol:hover { background: var(--taste); color: var(--text); }

.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; border-radius: 9px; background: var(--akzent) url("/icon.svg") center/100% no-repeat; }

.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.anmeldekarte { width: min(380px, 100%); padding: 28px; display: grid; gap: 10px; }
.anmeldekarte .marke { margin-bottom: 12px; }
.anmeldekarte label { font-size: 13px; color: var(--leise); }

.kopf { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; max-width: 1120px; margin: 0 auto; }
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 10px; border-radius: 99px; background: var(--karte); border: 1px solid var(--linie); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--leise); }
.status.an i { background: var(--gruen); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gruen) 25%, transparent); }
.status.fehlt i { background: var(--rot); }
.hinweis { max-width: 1072px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--akzent) 14%, var(--karte)); font-size: 14px; }

.raster { display: grid; grid-template-columns: 360px 1fr; gap: 20px; max-width: 1120px; margin: 0 auto; padding: 0 24px 32px; align-items: start; }
.telefon { padding: 22px; position: sticky; top: 16px; }
.anzeige { display: flex; gap: 6px; align-items: center; margin: 16px 0 10px; }
.anzeige input { font-size: 26px; font-weight: 600; text-align: center; letter-spacing: .02em; border: 0; background: none; padding: 6px 0; }
.anzeige input:focus { outline: 0; }
.tastatur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.taste { height: 60px; border-radius: 14px; background: var(--taste); display: grid; place-content: center; text-align: center; transition: background .1s, transform .05s; }
.taste:hover { background: var(--taste-hover); }
.taste:active { transform: scale(.97); }
.taste b { font-size: 22px; font-weight: 600; line-height: 1; }
.taste small { font-size: 10px; letter-spacing: .14em; color: var(--leise); min-height: 12px; }
.klein-tastatur .taste { height: 48px; }
.anruf-knopf { width: 100%; height: 52px; border-radius: 14px; font-weight: 700; color: #fff; font-size: 16px; }
.anruf-knopf.gruen { background: var(--gruen); }
.anruf-knopf.rot { background: var(--rot); }
.anruf-knopf:disabled { opacity: .5; cursor: default; }
.zeile { display: flex; gap: 12px; }

.gespraech { text-align: center; }
.wer { font-size: 26px; font-weight: 700; margin: 4px 0; word-break: break-all; }
.zeit { font-variant-numeric: tabular-nums; color: var(--leise); margin: 0 0 18px; font-size: 18px; }
.puls { width: 76px; height: 76px; border-radius: 50%; margin: 22px auto 26px; background: var(--gruen); animation: puls 1.4s infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gruen) 50%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
.aktionen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.aktion { display: grid; gap: 4px; justify-items: center; padding: 12px 4px; border-radius: 14px; background: var(--taste); font-size: 12px; }
.aktion span:first-child { font-size: 20px; }
.aktion.an { background: var(--akzent); color: var(--akzent-text); }
.aktion:disabled { opacity: .45; cursor: default; }
.weiterform { display: flex; gap: 8px; margin-bottom: 14px; }
.weiterform .haupt { flex: none; }

.liste-karte { padding: 8px 8px 12px; min-height: 420px; }
.reiter { display: flex; gap: 4px; align-items: center; padding: 6px 8px 10px; border-bottom: 1px solid var(--linie); }
.reiter [role=tab] { padding: 8px 14px; border-radius: 10px; color: var(--leise); font-weight: 600; }
.reiter [role=tab].aktiv { background: var(--taste); color: var(--text); }
.reiter .rechts { margin-left: auto; }
.zahl { background: var(--akzent); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.liste { list-style: none; margin: 0; padding: 4px 0; }
.liste li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.liste li:hover { background: var(--taste); }
.liste .ikon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--taste); font-size: 16px; }
.liste li:hover .ikon { background: var(--karte); }
.ikon.verpasst { color: var(--rot); }
.ikon.ein { color: var(--gruen); }
.liste .nr { font-weight: 600; }
.liste .unter { font-size: 13px; color: var(--leise); }
.liste .rechts { display: flex; gap: 6px; align-items: center; }
.liste audio { height: 34px; max-width: 220px; }
.liste .leer { display: block; text-align: center; color: var(--leise); padding: 40px 0; }

@media (max-width: 820px) {
  .raster { grid-template-columns: 1fr; padding: 0 16px 24px; }
  .kopf { padding: 12px 16px; }
  .hinweis { margin: 0 16px 12px; }
  .telefon { position: static; }
  #nachrichten li { grid-template-columns: 36px 1fr; }
  #nachrichten .rechts { grid-column: 2; }
  .liste audio { max-width: 100%; width: 100%; }
}
