/* ============================================================
   Live-Schaltung · Optik der Servl App (Liquid Glass)
   Durchscheinende, weichgezeichnete Flächen mit Lichtkante über einem
   farbigen Hintergrund, Kapselknöpfe, große weiche Radien, Inter.
   ============================================================ */

:root {
  color-scheme: light;
  --surface: #eef2f8;
  --border: rgba(7, 14, 26, 0.08);
  --fg: #0f172a;
  --muted: #5b6474;
  --muted-2: #66718a;

  --accent: #2383e2;
  --accent-hover: #1b6fc2;
  --accent-text: #1a62ad;
  --accent-soft: rgba(35, 131, 226, 0.12);
  --accent-soft-2: rgba(35, 131, 226, 0.22);
  --ink: #070e1a;
  --ink-3: #16263d;

  --good: #166534;
  --good-soft: rgba(34, 197, 94, 0.16);
  --warn: #92400e;
  --warn-soft: rgba(245, 158, 11, 0.18);
  --bad: #b91c1c;
  --bad-soft: rgba(239, 68, 68, 0.14);

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 12px 40px -16px rgba(7, 14, 26, 0.22);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background-color: var(--surface);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
/* Farbiger Hintergrund, der durch das Glas scheint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(62rem 44rem at 8% -12%, rgba(35, 131, 226, 0.26), transparent 62%),
    radial-gradient(56rem 40rem at 104% 4%, rgba(143, 187, 234, 0.42), transparent 60%),
    radial-gradient(48rem 42rem at 50% 112%, rgba(46, 107, 178, 0.2), transparent 62%),
    linear-gradient(180deg, #f3f6fb 0%, #e9eef6 100%);
}
::selection { background: var(--accent-soft-2); }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tnum { font-variant-numeric: tabular-nums; }
.grow { flex: 1; }
.mt-12 { margin-top: 12px; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(35, 131, 226, 0.2); }

/* ---------- Glasflächen ---------- */
.glass {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(28px) saturate(1.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
}
.glass-bar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}
.glass-dark-strong {
  background: rgba(7, 14, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 24px 60px -20px rgba(7, 14, 26, 0.6);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
}
.card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
}
.card.pad { padding: 20px; }
.card.flush { overflow: hidden; }
@media (min-width: 640px) { .card.pad { padding: 24px; } }

@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* ---------- Layout ---------- */
.shell { min-height: 100vh; }
.main-col { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.sidebar { display: none; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; flex: 1; padding: 24px 16px; }
.foot { padding: 24px 16px; text-align: center; font-size: 12px; color: #4b5563; }

@media (min-width: 640px) { .content { padding: 24px; } }
@media (min-width: 1024px) {
  .shell { display: flex; gap: 8px; padding: 12px; }
  .main-col { flex: 1; min-height: 0; }
  .content { padding: 24px 32px; }
  .topbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column;
    width: 264px; flex: none;
    position: sticky; top: 12px;
    height: calc(100vh - 24px);
    border-radius: 1.75rem;
    overflow-y: auto; overscroll-behavior: contain;
  }
}

/* ---------- Sidebar ---------- */
.sb-logo { padding: 24px 24px 16px; }
.sb-logo img { display: block; }
.sb-customer {
  margin: 0 16px;
  padding: 10px 14px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.sb-customer .n { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-customer .s { margin-top: 2px; font-size: 12px; color: var(--muted); }
.sb-nav { margin-top: 20px; padding: 0 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sb-label { margin-bottom: 4px; padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  transition: background-color 0.18s, color 0.18s;
}
.nav-link svg { width: 18px; height: 18px; flex: none; color: var(--muted-2); }
.nav-link:hover { background: rgba(255, 255, 255, 0.45); color: var(--fg); }
.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px -10px rgba(7, 14, 26, 0.35);
}
.nav-link[aria-current="page"] svg { color: var(--accent-text); }
.nav-badge {
  min-width: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 11px; font-weight: 600; line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.sb-foot { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.6); }

/* Status-Kapsel (Sidebar und Kopfleiste) */
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.status-chip .dot { width: 8px; height: 8px; margin: 0; box-shadow: none; }
.status-chip[data-state="on"] { color: var(--good); background: var(--good-soft); border-color: rgba(22, 101, 52, 0.2); }
.status-chip[data-state="on"] .dot { background: #22c55e; }
.status-chip[data-state="busy"] .dot { background: var(--accent); }
.sb-foot .status-chip { width: 100%; justify-content: center; }

/* ---------- Kopfleiste (Handy) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; border-radius: 0 0 1.5rem 1.5rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.topbar-row img { display: block; }
.topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .cust { display: none; font-size: 13px; font-weight: 600; }
@media (min-width: 420px) { .topbar .cust { display: inline; } }
.pills { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 12px; scrollbar-width: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  transition: background-color 0.18s, color 0.18s;
}
.pill:hover { background: rgba(255, 255, 255, 0.6); color: var(--fg); }
.pill[aria-current="page"] {
  background: linear-gradient(180deg, var(--ink-3), var(--ink));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---------- Hinweis, Seitenkopf ---------- */
.notice {
  margin-bottom: 16px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 1.5rem;
  font-size: 13px; line-height: 1.5;
}
.notice-warn { background: var(--warn-soft); border-color: rgba(146, 64, 14, 0.2); color: var(--warn); }

.page-header { margin-bottom: 24px; }
.eyebrow { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.page-header h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.page-header p { margin-top: 4px; font-size: 14px; color: var(--muted); }
@media (min-width: 640px) { .page-header h1 { font-size: 28px; } }

/* ---------- Buttons, Badges, Chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 14px; height: 14px; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(180deg, #1f73cc 0%, #1b62b3 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 10px 24px -10px rgba(35, 131, 226, 0.8);
}
.btn-primary:hover { background: linear-gradient(180deg, #2178d0 0%, #175aa6 100%); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.66);
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 6px 16px -10px rgba(7, 14, 26, 0.3);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.85); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(7, 14, 26, 0.06); color: var(--fg); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 20px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(7, 14, 26, 0.06);
}
.badge .mdot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-good { background: var(--good-soft); color: var(--good); box-shadow: none; }
.badge-warn { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.badge-bad { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
.badge-ink { background: linear-gradient(180deg, var(--ink-3), var(--ink)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6.4px 13.6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  cursor: pointer;
  transition: all 0.18s;
}
.chip:hover { color: var(--fg); background: rgba(255, 255, 255, 0.8); }
.chip.is-active, .chip:has(input:checked) {
  background: linear-gradient(180deg, var(--ink-3), var(--ink));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 18px -10px rgba(7, 14, 26, 0.7);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip { position: relative; }
.chip small { font-weight: 500; opacity: 0.75; }
.chip:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

.input {
  width: 100%;
  border: 1px solid rgba(7, 14, 26, 0.1);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 1px 2px rgba(7, 14, 26, 0.04);
  padding: 10px 15px;
  font-size: 15px; line-height: 20px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}
.input::placeholder { color: var(--muted-2); }
.input:hover { background: rgba(255, 255, 255, 0.86); }
.input:focus {
  background: #fff;
  border-color: var(--accent);
  outline: 2px solid var(--accent-hover);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(35, 131, 226, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* ---------- Hero (dunkles Glas) ---------- */
.grid-top { display: grid; gap: 16px; }
@media (min-width: 1024px) { .grid-top { grid-template-columns: 1.15fr 1fr; } }

.hero { position: relative; overflow: hidden; border-radius: 1.5rem; padding: 24px; color: #fff; }
@media (min-width: 640px) { .hero { padding: 28px; } }
.hero .glow {
  position: absolute; right: -7rem; top: -7rem;
  width: 20rem; height: 20rem;
  border-radius: 50%;
  opacity: 0.5; filter: blur(64px);
  background: radial-gradient(circle, #2383e2 0%, rgba(35, 131, 226, 0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.h-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.h-eyebrow svg { width: 16px; height: 16px; color: #8fbbea; }

.h-status { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; }
.h-status h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.h-status p { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.dot {
  flex: none;
  width: 12px; height: 12px; margin-top: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  transition: background 0.25s, box-shadow 0.25s;
}
.hero[data-state="on"] .h-status .dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25); }
.hero[data-state="busy"] .h-status .dot { background: #8fbbea; box-shadow: 0 0 0 4px rgba(143, 187, 234, 0.25); }

.power-wrap { display: flex; flex-direction: column; align-items: center; margin: 26px 0 22px; }
.power {
  position: relative;
  width: 168px; height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #cfe0f5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 20px 44px -16px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
@media (min-width: 640px) { .power { width: 184px; height: 184px; } }
.power svg { width: 64px; height: 64px; stroke-width: 1.8; }
.power:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.power:active { transform: scale(0.97); }
.power:disabled { cursor: progress; transform: none; }
.power .ring { position: absolute; inset: -12px; border-radius: 50%; border: 3px solid transparent; pointer-events: none; }
.hero[data-state="on"] .power {
  background: linear-gradient(160deg, #34d878, #15803d);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 20px 50px -10px rgba(34, 197, 94, 0.6);
}
.hero[data-state="on"] .power .ring { border-color: rgba(52, 216, 120, 0.5); animation: pulse 2.2s ease-out infinite; }
.hero[data-state="busy"] .power .ring { border-top-color: #8fbbea; animation: spin 0.9s linear infinite; }
@keyframes pulse { 0% { transform: scale(0.96); opacity: 0.9; } 100% { transform: scale(1.16); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.power-label { margin-top: 20px; font-size: 17px; font-weight: 600; }
.countdown { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.72); text-align: center; }

.group { border: 0; min-width: 0; margin-top: 18px; }
.group legend { padding: 0; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg > span {
  display: block; height: 100%;
  padding: 12px 13px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: border-color 0.18s, background 0.18s;
}
@media (min-width: 640px) { .seg > span { padding: 14px 16px; } }
.seg b { display: block; font-size: 15px; font-weight: 600; }
.seg small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.7); }
.seg:hover > span { background: rgba(255, 255, 255, 0.14); }
.seg input:checked + span { background: rgba(35, 131, 226, 0.28); border-color: rgba(143, 187, 234, 0.8); }
.seg input:focus-visible + span { outline: 2px solid #8fbbea; outline-offset: 2px; }
.seg input:disabled + span { opacity: 0.7; cursor: progress; }

.hero .chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.hero .chip:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.hero .chip:has(input:checked) {
  background: linear-gradient(180deg, #ffffff, #e3edf9);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}
.hero .chip:has(input:focus-visible) { outline-color: #8fbbea; }

/* ---------- Tarif-Karte ---------- */
.card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-title h2, .card-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.card-title p, .card-head p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.plan-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-num { font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.plan-of { margin-left: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.plan-pct { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bar {
  height: 10px; margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 2px rgba(7, 14, 26, 0.12);
}
.bar span { display: block; height: 100%; border-radius: 999px; background: #166534; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); transition: width 0.5s; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 20px; font-size: 13px; }
.dl-grid dt { color: var(--muted); }
.dl-grid dd { font-weight: 600; }
.fine { margin-top: 12px; font-size: 11.5px; color: var(--muted-2); }

/* ---------- Kacheln ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: block; padding: 20px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.stat-top svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.stat-num { margin-top: 8px; font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.stat-sub { margin-top: 8px; font-size: 12px; color: var(--muted); }
.stat-link { transition: background-color 0.18s; }
.stat-link:hover { background: rgba(255, 255, 255, 0.85); }

.grid-bottom { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1024px) { .grid-bottom { grid-template-columns: 1.6fr 1fr; } }

/* ---------- Listen ---------- */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px; }
@media (min-width: 640px) { .card-head { padding: 20px 24px 12px; } }
.rows { list-style: none; border-top: 1px solid var(--border); }
.rows > li + li { border-top: 1px solid var(--border); }
.empty { padding: 48px 24px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }

.open-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; }
@media (min-width: 640px) { .open-row { padding: 14px 24px; } }
.open-row a.txt { flex: 1; min-width: 0; }
.open-row a.txt:hover { opacity: 0.8; }
.open-row .l1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; }
.open-row .l1 b { font-weight: 600; }
.open-row .l1 .ph { font-size: 13px; color: var(--muted); }
.open-row .l1 .dt { font-size: 12.5px; color: var(--muted-2); }
.open-row p { margin-top: 2px; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.open-row .btn { flex: none; }

.log li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 14px; }
@media (min-width: 640px) { .log li { padding: 12px 24px; } }
.log time { font-size: 12.5px; color: var(--muted-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Gespräche ---------- */
.filters { margin-bottom: 16px; }
.search { position: relative; margin-bottom: 16px; }
@media (min-width: 640px) { .search { max-width: 340px; } }
.search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search .input { padding-left: 36px; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .list-head { padding: 12px 24px; } }
.list-head b { color: var(--fg); font-weight: 600; }
.list-head a, .list-head button { color: var(--accent-text); font-weight: 500; background: none; border: 0; cursor: pointer; padding: 0; }
.list-head a:hover, .list-head button:hover { text-decoration: underline; }

.call-head {
  width: 100%;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  text-align: left;
  background: none; border: 0; cursor: pointer;
  transition: background-color 0.18s;
}
@media (min-width: 640px) { .call-head { gap: 16px; padding: 16px 24px; } }
.call-head:hover { background: rgba(255, 255, 255, 0.55); }
.ico {
  flex: none;
  width: 36px; height: 36px; margin-top: 2px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.ico svg { width: 16px; height: 16px; }
.c-main { flex: 1; min-width: 0; }
.c-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.c-l1 .who { font-size: 14px; font-weight: 600; }
.c-l1 .ph, .c-l1 .mt { font-size: 13px; color: var(--muted); }
.c-l1 .sep { font-size: 12px; color: var(--muted-2); }
.c-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.c-sum {
  margin-top: 6px;
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.call-head[aria-expanded="true"] .c-sum { display: none; }
.c-side { flex: none; display: none; align-items: flex-start; gap: 8px; }
@media (min-width: 640px) { .c-side { display: flex; } }
.chev { width: 18px; height: 18px; margin-top: 2px; color: var(--muted-2); transition: transform 0.2s; }
.call-head[aria-expanded="true"] .chev { transform: rotate(180deg); }

.call-body { padding: 4px 20px 20px 70px; background: rgba(255, 255, 255, 0.35); }
@media (max-width: 639px) { .call-body { padding-left: 20px; } }
@media (min-width: 640px) { .call-body { padding: 4px 24px 20px 76px; } }
.call-body .full { padding-top: 10px; font-size: 14px; line-height: 1.65; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-top: 14px; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(7, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 20px 50px -12px rgba(7, 14, 26, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 14px; font-weight: 500;
  animation: toast-in 0.25s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

@supports not (backdrop-filter: blur(1px)) {
  .glass, .glass-bar { background: rgba(255, 255, 255, 0.94); }
  .glass-dark-strong { background: rgba(7, 14, 26, 0.94); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
