:root {
  --bg: #0b1020;
  --text: #eef1f8;
  --muted: #b3bcd0;
  --glass: rgba(255, 255, 255, 0.065);
  --glass-strong: rgba(22, 28, 48, 0.82);
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #8ea6ff;
  --accent-2: #b98cff;
  --ok: #4ade80;
  --warn: #facc15;
  --bad: #f87171;
  --none: #a5afc4;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
h1, h2 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
code { font-family: var(--mono); font-size: 0.92em; background: rgba(255,255,255,0.08); padding: 0.05em 0.35em; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 10% -10%, rgba(99, 102, 241, 0.33), transparent 60%),
    radial-gradient(50vmax 45vmax at 100% 10%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(60vmax 50vmax at 50% 110%, rgba(14, 165, 233, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #0d1226 100%);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand h1 { font-size: 1.2rem; white-space: nowrap; }
.brand .dot { color: var(--accent-2); }
.logo {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: #141a2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%237c9cff'/%3E%3Cstop offset='1' stop-color='%23b57cff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M24 18v28l22-14z' fill='url(%23g)'/%3E%3C/svg%3E") center / 70% no-repeat;
  border: 1px solid var(--border);
}
.brand-lg h1 { font-size: 1.5rem; }
.brand-lg .logo { width: 42px; height: 42px; border-radius: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, .logs-body:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-primary { background: linear-gradient(135deg, #5b6cf0, #8b5cf6); border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #6877f5, #9a6cf8); }
.btn-danger { background: rgba(248, 113, 113, 0.18); border-color: rgba(248, 113, 113, 0.5); color: #ffd9d9; }
.btn-danger:hover { background: rgba(248, 113, 113, 0.28); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn svg { width: 18px; height: 18px; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } * { transition: none !important; } }

/* Login */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.login-card .muted { margin: 0 0 6px; }
.label { font-size: 0.9rem; font-weight: 600; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: inherit; color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}
.input:focus { border-color: var(--accent); }
.form-error { margin: 0; color: #fecaca; font-size: 0.92rem; }
.login-card .btn { margin-top: 6px; min-height: 48px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(11, 16, 32, 0.6);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.content { max-width: 1480px; margin: 0 auto; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }

/* Status-Farben */
.level-ok { --lvl: var(--ok); }
.level-warn { --lvl: var(--warn); }
.level-bad { --lvl: var(--bad); }
.level-none { --lvl: var(--none); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 650; white-space: nowrap;
  color: var(--lvl);
  background: color-mix(in srgb, var(--lvl) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--lvl) 45%, transparent);
}
.badge .sym { font-size: 0.9em; line-height: 1; }

/* Übersicht */
.summary-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
.overall { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-left: 4px solid var(--lvl); }
.overall-icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800; color: #0b1020;
  background: var(--lvl);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--lvl) 18%, transparent);
}
.overall-text { font-size: 1.15rem; font-weight: 700; }
.vpn { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.vpn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vpn-ico { color: var(--lvl); }
.vpn-title { font-weight: 650; margin-right: auto; }
.vpn-detail-ip { font-family: var(--mono); color: var(--text); }

.banner { margin: 0 0 16px; padding: 12px 16px; border-color: rgba(248,113,113,0.5); color: #fecaca; }

/* Raster */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; border-top: 3px solid var(--lvl); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-title { min-width: 0; }
.card-title h2 { font-size: 1.12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title .cname { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.facts .img { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; }

.meter { height: 6px; margin-top: 5px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.4s; }
.meter.hot > span { background: linear-gradient(90deg, #f59e0b, var(--bad)); }

.link-row { font-size: 0.9rem; min-height: 22px; }
.link-row a { color: #c7d2fe; font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link-row a svg { width: 16px; height: 16px; }
.hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.hint svg { width: 16px; height: 16px; }

.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.card-actions .btn { width: 100%; }

.empty { padding: 32px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 40px; height: 40px; color: var(--accent); }
.empty p { margin: 0; max-width: 46ch; }
.foot { text-align: center; padding: 22px 0 8px; }

/* Dialoge */
.dlg {
  color: var(--text);
  background: var(--glass-strong);
  padding: 0;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
}
.dlg::backdrop { background: rgba(4, 7, 16, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg-small { width: 420px; }
.dlg-small form { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dlg-small h2 { font-size: 1.2rem; }
.dlg-small p { margin: 0; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.dlg-actions .btn { flex: 1 1 140px; }

.dlg-logs { width: min(1100px, calc(100vw - 24px)); height: min(820px, calc(100dvh - 24px)); }
.dlg-logs[open] { display: flex; flex-direction: column; }
.logs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.logs-title-wrap { min-width: 0; flex: 1 1 160px; }
.logs-title-wrap h2 { font-size: 1.1rem; overflow-wrap: anywhere; }
.logs-actions { display: flex; gap: 8px; }
.logs-body {
  flex: 1; margin: 0; padding: 14px 18px; overflow: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
  color: #dde3f0; background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--border); border-left: 4px solid var(--lvl); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-weight: 550; }

/* Breakpoints */
@media (min-width: 640px) {
  .summary-row { grid-template-columns: 1.4fr 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 22px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
}
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .dlg-logs { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .logs-body { border-radius: 0; font-size: 12px; padding: 12px; }
  .logs-head { padding-top: max(12px, env(safe-area-inset-top)); }
}
@media (max-width: 380px) {
  .brand h1 { font-size: 1.05rem; }
  #logout-btn span { display: none; }
  #logout-btn { width: 44px; padding: 0; }
}

/* ---------- Navigation ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 88px; padding: 0 16px;
  border-radius: 10px; color: var(--muted); font-weight: 650; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.tab[aria-current="page"] { color: #fff; background: linear-gradient(135deg, rgba(91,108,240,0.55), rgba(139,92,246,0.55)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.topbar .tabs { margin-left: auto; }

/* VPN-Kachel als Link zur VPN-Seite */
a.vpn { color: inherit; text-decoration: none; min-height: 44px; transition: border-color 0.15s, background 0.15s; }
a.vpn:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.09); }

/* ---------- VPN-Seite ---------- */
.vpn-page { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.panel { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#vpn-status { border-top: 3px solid var(--lvl); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.15rem; }
.panel-intro { margin: -4px 0 0; }
.exit-ip { padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,0.22); border: 1px solid var(--border); }
.exit-ip-value { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.mono, .mono-sm { font-family: var(--mono); }
.facts .mono-sm { font-size: 0.88rem; font-weight: 550; }
.note { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(74, 222, 128, 0.09); border: 1px solid rgba(74, 222, 128, 0.35); color: #d6fbe3; }
.note svg { color: var(--ok); margin-top: 1px; }
.alert { margin: 0; padding: 12px 14px; border-radius: 12px; color: #fecaca; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.45); font-weight: 600; }
.vpn-last { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vpn-last:empty { display: none; }

.vpn-form { display: flex; flex-direction: column; gap: 14px; }
.fs { margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: rgba(255,255,255,0.025); }
.fs legend { padding: 0 6px; font-weight: 650; font-size: 0.92rem; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.row2[hidden] { display: none; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3bcd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select.input option { background: #141a2e; color: var(--text); }
.input.mono { font-family: var(--mono); font-size: 0.95rem; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.input::placeholder { color: #8f99b0; }
.field-error { margin: 0; color: #fecaca; font-size: 0.86rem; }
.set-flag { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.set-flag.is-set { color: var(--ok); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #8b5cf6; margin: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions .btn { flex: 1 1 160px; min-height: 48px; }

.progress { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(250, 204, 21, 0.08); border: 1px solid rgba(250, 204, 21, 0.4); }
.progress .spinner { width: 22px; height: 22px; border-width: 3px; border-color: rgba(250,204,21,0.3); border-top-color: var(--warn); }
.progress-text { font-weight: 650; }
.result { padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--lvl) 50%, transparent); background: color-mix(in srgb, var(--lvl) 10%, transparent); display: flex; flex-direction: column; gap: 4px; }
.result-head { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--lvl); }

@media (min-width: 640px) {
  .row2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .vpn-page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  #vpn-status { position: sticky; top: 84px; }
}
@media (max-width: 639px) {
  .topbar { flex-wrap: wrap; row-gap: 10px; }
  .topbar .tabs { order: 3; width: 100%; margin-left: 0; }
  .topbar .tab { flex: 1; }
  .exit-ip-value { font-size: 1.35rem; }
  .panel { padding: 16px 14px; }
  .fs { padding: 12px; }
}
.input.mono::placeholder { font-family: var(--font); }

/* ---------- Watchdog ---------- */
/* Übersicht: drei Kacheln (Gesamtampel, VPN, Watchdog) */
@media (min-width: 640px) and (max-width: 1023px) {
  .summary-row { grid-template-columns: 1fr 1fr; }
  .summary-row .overall { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .summary-row { grid-template-columns: 1.3fr 1fr 1fr; } }
#wd-detail { overflow-wrap: anywhere; }

.wd-page { display: grid; gap: 16px; grid-template-columns: 1fr; }
.wd-overall { border-left: 4px solid var(--lvl); }
.wd-overall-main { display: flex; align-items: center; gap: 14px; }
.wd-overall-txt { min-width: 0; }
.wd-overall-txt h2 { font-size: 1.25rem; }
.wd-run { grid-template-columns: 1fr 1fr; }
.txt-bad { color: #fecaca; }
.alert-warn { color: #fef3c7; background: rgba(250, 204, 21, 0.1); border-color: rgba(250, 204, 21, 0.5); }
.wd-problems { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wd-problems li { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); overflow-wrap: anywhere; }
.wd-problems .sym { color: var(--bad); font-weight: 800; }

.wd-checks { display: grid; gap: 14px; grid-template-columns: 1fr; }
.wd-check { border-top: 3px solid var(--lvl); gap: 10px; }
.wd-check h3 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.wd-sum { font-size: 0.95rem; }
.wd-sum .mono { font-size: 1.05rem; }
.wd-p { margin: 0; }
.wd-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.wd-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.07); min-width: 0; }
.wd-row:first-child { border-top: 0; }
.wd-row-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.wd-row-vals { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.wd-cname { display: block; font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.wd-dom { font-family: var(--mono); font-size: 0.9rem; }
.wd-count { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wd-details { border-top: 1px solid var(--border); padding-top: 4px; }
.wd-details summary {
  min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  color: #c7d2fe; font-weight: 600; font-size: 0.92rem; -webkit-tap-highlight-color: transparent;
}
.wd-details summary::-webkit-details-marker { display: none; }
.wd-details summary::before { content: "▸"; transition: transform 0.15s; }
.wd-details[open] summary::before { transform: rotate(90deg); }
.wd-details summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wd-actions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wd-act { padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-left: 4px solid var(--lvl); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wd-act-head { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.wd-act-head strong { overflow-wrap: anywhere; }
.wd-act .wd-cname { display: inline-block; margin-left: 6px; white-space: nowrap; }
.wd-reason { overflow-wrap: anywhere; }
.wd-empty { margin: 0; }

@media (min-width: 640px) {
  .wd-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-run { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .wd-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .topbar .tab { min-width: 0; padding: 0 10px; }
  .wd-overall-txt h2 { font-size: 1.12rem; }
}

/* Dienst-Links (Weboberflächen) */
.links-panel { padding: 14px 16px 16px; margin-bottom: 16px; }
.links-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.links-head h2 { font-size: 1rem; margin: 0; }
.links-head p { margin: 0; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
.links li { min-width: 0; }
.svc-link { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 44px; height: 100%; padding: 8px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); transition: background 0.15s, border-color 0.15s; }
.svc-link:hover { background: rgba(255, 255, 255, 0.11); border-color: var(--border-strong); }
.svc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; margin-right: auto; }
.svc-name svg { width: 15px; height: 15px; color: #c7d2fe; }
.svc-url { font-family: var(--mono); font-size: 0.8rem; color: #c7d2fe; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(199, 210, 254, 0.45); }
.svc-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.svc-tag svg { width: 12px; height: 12px; }
.svc-tag.tn { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.svc-tag.pub { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.link-row .link-url { overflow-wrap: anywhere; }
.tn-hint { font-size: 0.8rem; }
@media (min-width: 640px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) { .links { gap: 6px; } .svc-link { padding: 6px 12px; gap: 2px; } .links-head { margin-bottom: 8px; } }

/* ---------- Anbieter ---------- */
.prov-groups { display: grid; gap: 16px; grid-template-columns: 1fr; }
.prov-group h2 { font-size: 1.05rem; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; }
.prov-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.prov-card { border-top: 3px solid var(--lvl); gap: 10px; }
.prov-card h3 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.prov-role { margin: -6px 0 0; }
.prov-links { display: flex; flex-wrap: wrap; gap: 8px; }
.prov-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 10px; color: #c7d2fe; font-weight: 600; text-decoration: none;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); }
.prov-links a:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--border-strong); }
.prov-links a svg { width: 15px; height: 15px; }
.prov-note { font-size: 0.85rem; }
.prov-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prov-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.85rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.prov-chips li.off { color: #fecaca; border-color: rgba(248,113,113,0.45); }
@media (min-width: 760px) { .prov-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .prov-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
