/* ── Inter Font ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Variablen ─────────────────────────────── */
:root {
  --bg:               #0a0a0a;
  --surface:          #161616;
  --surface-2:        #1e1e1e;
  --surface-3:        #262626;
  --border:           #2a2a2a;
  --border-2:         #3a3a3a;
  --text:             #f0f0f0;
  --text-2:           #a0a0a0;
  --text-muted:       #606060;
  --green:            #22c55e;
  --green-dim:        rgba(34,197,94,.1);
  --red:              #ef4444;
  --red-dim:          rgba(239,68,68,.1);
  --yellow:           #f59e0b;
  --yellow-dim:       rgba(245,158,11,.1);
  --blue:             #3b82f6;
  --blue-dim:         rgba(59,130,246,.1);
  --radius:           8px;
  --radius-lg:        12px;
  --shadow:           0 1px 3px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.3);
  --shadow-card:      0 1px 3px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03);
  --shadow-card-hover:0 8px 28px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
  --shadow-panel:     -16px 0 48px rgba(0,0,0,.6);
}

/* ── Light Mode ────────────────────────────── */
body.light {
  --bg:               #f6f8fa;
  --surface:          #ffffff;
  --surface-2:        #f1f5f9;
  --surface-3:        #e2e8f0;
  --border:           #e2e8f0;
  --border-2:         #cbd5e1;
  --text:             #0f172a;
  --text-2:           #475569;
  --text-muted:       #94a3b8;
  --green:            #16a34a;
  --green-dim:        rgba(22,163,74,.08);
  --red:              #dc2626;
  --red-dim:          rgba(220,38,38,.08);
  --yellow:           #d97706;
  --yellow-dim:       rgba(217,119,6,.08);
  --blue:             #2563eb;
  --blue-dim:         rgba(37,99,235,.08);
  --shadow:           0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --shadow-card:      0 1px 4px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-card-hover:0 6px 20px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.06);
  --shadow-panel:     -8px 0 24px rgba(0,0,0,.08);
}
body.light {
  background: linear-gradient(180deg, rgba(22,163,74,.06) 0%, transparent 300px), #f6f8fa;
}
body.light header {
  background: rgba(255,255,255,.95);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
}
body.light .panel { background: #ffffff; }
body.light .panel-header { background: #ffffff; }
body.light .stat { background: #ffffff; }
body.light .modal-box { background: #ffffff; }
body.light label input, body.light label select { background: #f8fafc; color: #0f172a; }
body.light .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 10px;
}
body.light .card.is-down { background: linear-gradient(135deg, rgba(220,38,38,.05) 0%, #ffffff 55%); }
body.light .card.is-slow { background: linear-gradient(135deg, rgba(217,119,6,.04) 0%, #ffffff 55%); }
body.light .card.is-up   { background: linear-gradient(180deg, rgba(22,163,74,.03) 0%, #ffffff 40%); }
body.light .card:hover { box-shadow: var(--shadow-card-hover); }
body.light .sp-card,
body.light .hb-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 55%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 10px;
}
body.dark .card {
  background: #1a1a1a;
  border: none;
  border-top: 1px solid rgba(34,197,94,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
body.dark .sp-card,
body.dark .hb-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 55%);
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(ellipse 80% 35% at 50% 0%, rgba(34,197,94,.05) 0%, transparent 60%),
    #0a0a0a;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text); }

/* ── Header ────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 5;
  box-shadow: 0 1px 0 rgba(34,197,94,.04), 0 4px 16px rgba(0,0,0,.3);
}

/* ── Nav 3-Spalten ─────────────────────────── */
.nav-left  { display: flex; align-items: center; }
.nav-center { display: flex; align-items: center; gap: 2px; margin: 0 16px; }
.nav-right  { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-icon  { width: 35px; height: 35px; flex-shrink: 0; }
.logo-text  { font-size: 21px; font-weight: 700; letter-spacing: -.2px; color: var(--text); white-space: nowrap; }

.nav-link {
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  padding: 5px 10px; border-radius: 6px;
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover    { color: var(--text); background: var(--surface-2); }
.nav-link.is-active{ color: var(--text); background: var(--surface-2); }

/* ── Tier Chip ─────────────────────────────── */
.tier-chip {
  font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted);
  white-space: nowrap;
}
.tier-chip.tier-starter { background: rgba(59,130,246,.1); color: #60a5fa; border-color: rgba(59,130,246,.25); }
.tier-chip.tier-pro     { background: rgba(168,85,247,.1); color: #c084fc; border-color: rgba(168,85,247,.25); }
.tier-chip.tier-business{ background: rgba(245,158,11,.1); color: #fbbf24; border-color: rgba(245,158,11,.25); }

.badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1px;
}
.badge-up      { background: var(--green-dim); color: var(--green); box-shadow: 0 0 0 1px rgba(34,197,94,.2); }
.badge-down    { background: var(--red-dim);   color: var(--red);   box-shadow: 0 0 0 1px rgba(239,68,68,.2); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); }

.last-updated { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* ── Buttons ───────────────────────────────── */
button { cursor: pointer; border: none; font-family: inherit; font-size: 13px; transition: background .15s, color .15s, box-shadow .15s, transform .1s; }
button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
a:focus-visible      { outline: 2px solid var(--green); outline-offset: 2px; }

.btn-primary {
  background: var(--green);
  color: #000;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -.1px;
}
.btn-primary:hover { background: #1ea34e; }
.btn-primary:active  { transform: scale(.97); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 500;
}
.btn-secondary:hover  { background: var(--surface-3); border-color: var(--border-2); color: var(--text); }
.btn-secondary:active { transform: scale(.97); }

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  width: 100%;
  border: 1px solid rgba(239,68,68,.2);
}
.btn-danger:hover { background: rgba(239,68,68,.18); }

.btn-icon {
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  padding: 5px 8px;
  border-radius: var(--radius);
}
.btn-icon:hover  { background: var(--surface-2); color: var(--text); }
.btn-icon:active { transform: scale(.9); }

/* ── Metric Cards ──────────────────────────── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.metric-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
body.dark .metric-card {
  border: none;
  border-top: 1px solid rgba(34,197,94,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
body.light .metric-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.metric-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1;
  color: var(--text);
}
.metric-label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
#metric-up   .metric-value { color: var(--green); }
#metric-down .metric-value { color: var(--red); }

.metrics-footer {
  text-align: right;
  margin-bottom: 20px;
}

/* ── Skeleton Loading ──────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton-block {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
  display: block;
}
.skeleton-metric {
  height: 32px;
  width: 60%;
  margin-bottom: 6px;
}
.skeleton-section {
  height: 16px;
  width: 35%;
  margin: 24px 0 16px;
}

/* ── Section Header ────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
  margin-top: 32px;
  position: relative;
}
.section-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.section-hint { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* ── Heartbeat Pulse Animation ─────────────── */
@keyframes heartbeat-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.25); opacity: 1; }
}
.heartbeat-icon {
  display: inline-block;
  animation: heartbeat-pulse 2s ease-in-out infinite;
  transform-origin: center;
}
.hb-card[data-status="up"] .heartbeat-icon {
  animation-duration: 1s;
  filter: drop-shadow(0 0 6px rgba(34,197,94,.4));
}

/* ── Heartbeat Empty State ─────────────────── */
.hb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.hb-empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: .5;
}
.hb-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

/* ── Status Page Section ───────────────────── */
.sp-card {
  cursor: default;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sp-card:hover { transform: none; box-shadow: var(--shadow-card); }
body.dark .sp-card {
  border: none;
  border-top: 1px solid rgba(34,197,94,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
body.light .sp-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sp-state { display: flex; flex-direction: column; gap: 16px; }
.sp-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0; }
.sp-url-row { display: flex; flex-direction: column; gap: 8px; }
.sp-url-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.sp-url-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sp-url {
  font-size: 13px;
  color: var(--green);
  text-decoration: none;
  word-break: break-all;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.sp-url:hover { text-decoration: underline; }
.sp-disable-btn { margin-top: 8px; width: fit-content; }

/* ── Main & Card-Grid ──────────────────────── */
main {
  padding: 32px 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.012) 0%, transparent 120px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .12s;
  position: relative;
  box-shadow: var(--shadow-card);
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.card.is-up {
  border-left: 3px solid var(--green);
  background: linear-gradient(180deg, rgba(34,197,94,.04) 0%, var(--surface) 45%);
}
.card.is-down {
  border-left: 3px solid var(--red);
  background: linear-gradient(135deg, rgba(239,68,68,.09) 0%, var(--surface) 55%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(239,68,68,.07);
}
.card.is-slow {
  border-left: 3px solid var(--yellow);
  background: linear-gradient(135deg, rgba(245,158,11,.07) 0%, var(--surface) 55%);
}
.card.unchecked {
  border-left: 3px solid var(--text-muted);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

/* ── Status Dot ────────────────────────────── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-up      { background: var(--green);  box-shadow: 0 0 0 3px var(--green-dim),  0 0 7px rgba(34,197,94,.45); }
.dot-down    {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim), 0 0 9px rgba(239,68,68,.55);
  animation: pulse-red 1.8s ease-in-out infinite;
}
.dot-slow    { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-dim), 0 0 7px rgba(245,158,11,.45); }
.dot-unknown { background: var(--text-muted); }

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 3px var(--red-dim); }
  50%       { box-shadow: 0 0 0 6px rgba(239,68,68,.05); }
}

.card-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.1px;
  flex: 1;              /* Name nimmt die ganze Breite ein (Ellipsis statt Überlappung) */
  min-width: 0;
}

.card-url {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
  font-family: 'Fira Code', 'Consolas', monospace;
}

/* ── Card Sparkline ────────────────────────── */
.card-sparkline {
  height: 28px;
  margin-bottom: 10px;
  overflow: hidden;
}
.card-sparkline svg { display: block; }
.card-sparkline .no-data { font-size: 11px; color: var(--text-muted); line-height: 28px; }

/* ── Card Meta ─────────────────────────────── */
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.card-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Uptime Badge ──────────────────────────── */
.uptime-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .1px;
}
.uptime-good { background: var(--green-dim); color: var(--green); }
.uptime-warn { background: var(--yellow-dim); color: var(--yellow); }
.uptime-bad  { background: var(--red-dim); color: var(--red); }

/* ── Card Action Buttons ───────────────────── */
.card-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

/* Eigene Zeile unter dem Namen — Name bleibt immer voll lesbar */
.card-actions-row {
  margin-left: 0;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 6px;
}

.btn-card-action {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .1s, color .1s;
  flex-shrink: 0;
}
.btn-card-action:hover { background: var(--surface-2); color: var(--text); }
.btn-card-action.paused { color: var(--yellow); }

/* "Jetzt prüfen"-Button (⚡) */
.btn-ping-now:hover { color: var(--yellow); }
.btn-ping-now:disabled { cursor: default; opacity: .6; }
.btn-ping-now.pinging { animation: ping-pulse .7s ease-in-out infinite; }
@keyframes ping-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.85); }
}

.card-status-label { font-weight: 500; }
.label-up   { color: var(--green); }
.label-down { color: var(--red); }
.label-slow { color: var(--yellow); }
.label-maintenance { color: var(--blue); }

/* ── Toast ─────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 100;
  opacity: 0;
  transition: opacity .2s;
  border: 1px solid var(--border-2);
  pointer-events: none;
  white-space: nowrap;
}

/* ── Empty State ───────────────────────────── */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 20px;
  font-size: 14px;
  line-height: 1.8;
}

/* ── Onboarding-Karte (Willkommen + Fortschritts-Checkliste) ── */
.onboarding-card {
  position: relative;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(34,197,94,.10), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.3));
}
.ob-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; color: var(--text); }
.ob-sub   { font-size: 14px; color: var(--text-2); margin: 0 0 18px; }
.ob-dismiss {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.ob-dismiss:hover { color: var(--text); background: var(--surface-2); }
.ob-progress { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.ob-bar { height: 6px; background: var(--surface-2); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.ob-bar-fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .4s ease; }
.ob-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ob-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 9px; font-size: 14px; color: var(--text);
}
.ob-item + .ob-item { border-top: 1px solid var(--border); border-radius: 0; }
.ob-check {
  flex: 0 0 22px; height: 22px; border-radius: 999px;
  border: 2px solid var(--border-2, var(--border)); background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.ob-item.done .ob-check { background: var(--green); border-color: var(--green); }
.ob-item.done .ob-label { color: var(--text-muted); text-decoration: line-through; }
.ob-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-label { font-weight: 500; }
.ob-why { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.ob-item.done .ob-why { display: none; }
.ob-go {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); border-radius: 999px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
}
.ob-go:hover { color: var(--green); border-color: rgba(34,197,94,.45); background: var(--green-dim); }
.ob-cta { width: 100%; }
.ob-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin: 14px 0 0; }
.ob-skip-link { background: none; border: none; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 2px 4px; }
.ob-skip-link:hover { color: var(--green); text-decoration: underline; }
.ob-replayhint { font-size: 11px; color: var(--text-muted); }
.ob-badge {
  align-self: center;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.ob-item.ob-optional { opacity: .72; }
.ob-item.ob-optional .ob-check { border-style: dashed; }
/* Interaktiv: offene Zeilen klickbar, aktueller Schritt hervorgehoben ("du bist hier") */
.ob-item { cursor: pointer; transition: background .15s; }
.ob-item:hover { background: var(--surface-2); }
.ob-item.next { background: var(--green-dim); box-shadow: inset 3px 0 0 0 var(--green); }
.ob-item.next .ob-label { color: var(--text); font-weight: 600; }
.ob-item.next .ob-go { animation: obPulse 1.8s ease-in-out infinite; }
@keyframes obPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  50%      { box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
}
.ob-check { transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.ob-item.done .ob-check { transform: scale(1.08); }
@media (max-width: 600px) {
  .ob-item { flex-wrap: wrap; }
  .ob-go { margin-left: 34px; }
}

/* ── Visuelles Feedback: frisch angelegtes Element leuchtet kurz grün auf ── */
@keyframes pmFlash {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  60%  { box-shadow: 0 0 0 10px rgba(34,197,94,.12); }
  100% { box-shadow: 0 0 0 16px rgba(34,197,94,0); }
}
.pm-flash {
  animation: pmFlash 1.6s ease-out 1;
  border-color: var(--green) !important;
}
/* Sanfter Bereichs-Highlight (z.B. Alarm-Sektion nach Onboarding-Sprung) */
@keyframes pmHighlight {
  0%, 100% { background: transparent; }
  25%      { background: var(--green-dim); }
}
.pm-highlight {
  animation: pmHighlight 2.4s ease-in-out 1;
  border-radius: 12px;
}

/* ── Kontextuelle Hilfe: dezentes ⓘ am Feld, Erklärung klappt inline darunter auf ── */
label { position: relative; }
.info-i {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; padding: 0;
  border: 1px solid var(--border-2, var(--border)); border-radius: 50%;
  background: var(--surface-2); color: var(--text-muted);
  font-size: 11px; font-weight: 700; font-style: italic;
  font-family: Georgia, "Times New Roman", serif; line-height: 1; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.info-i:hover { color: var(--green); border-color: var(--green); }
.field-help {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 12px; line-height: 1.45; color: var(--text-2); font-weight: 400;
  letter-spacing: 0;
  padding: 9px 11px; border-left: 2px solid var(--green);
  background: var(--green-dim); border-radius: 0 6px 6px 0;
}
.label-check { flex-wrap: wrap; }
/* Onboarding-Häkchen selbst abhakbar (Schritt überspringen) */
.ob-item:not(.done) .ob-check { cursor: pointer; }
.ob-item:not(.done) .ob-check:hover { border-color: var(--green); color: var(--green); }

/* ── Limit-Hinweis ─────────────────────────── */
.limit-hint {
  padding: 8px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.limit-hint-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}
.limit-hint-link:hover { text-decoration: underline; }

/* ── Detail Panel ──────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  z-index: 10;
}

/* Zentriertes Modal statt Seiten-Drawer — die Tages-Balken brauchen Breite,
   und ein echtes Fenster passt zur restlichen Modal-UI (.modal-box-Optik
   kommt aus dem Rebrand-Block weiter unten) */
.panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(780px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 60px);
  border-radius: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: panel-in .18s ease-out;
}
@keyframes panel-in {
  from { opacity: 0; transform: translate(-50%, -49%) scale(.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
  border-radius: 16px 16px 0 0;  /* deckt die runden Modal-Ecken beim Scrollen ab */
}

.panel-header > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.panel-header h2 {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.2px;
}

.detail-url {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Fira Code', 'Consolas', monospace;
}
.detail-url:hover { color: var(--blue); }

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 500; }
.stat-value { font-size: 14px; font-weight: 600; }

.panel-section { padding: 20px; border-bottom: 1px solid var(--border); }
.panel-section h3 { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; margin-bottom: 14px; }

.panel-footer {
  padding: 16px 20px;
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* ── Sparkline ─────────────────────────────── */
#detail-sparkline { height: 48px; }
#detail-sparkline svg { display: block; }
.no-data { color: var(--text-muted); font-size: 12px; }

/* ── Check-Tabelle ─────────────────────────── */
#detail-table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.025); color: var(--text-2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.025); }

.td-up   { color: var(--green); font-weight: 500; }
.td-down { color: var(--red);   font-weight: 500; }

/* ── Modal ─────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 30;
  padding: 20px;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.modal-box h2 { font-size: 15px; font-weight: 600; margin-bottom: 20px; letter-spacing: -.2px; }

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .1px;
}

label input, label select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 11px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
label input:focus, label select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}
label select option { background: var(--surface-2); }

.form-error {
  background: var(--red-dim);
  border: 1px solid rgba(239,68,68,.25);
  color: var(--red);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
}

.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ── Utilities ─────────────────────────────── */
.hidden { display: none !important; }

/* ── Advanced Form Options ──────────────────── */
.advanced-opts { margin-bottom: 14px; }
.advanced-opts summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.advanced-opts summary::before {
  content: '▶';
  font-size: 9px;
  transition: transform .15s;
  color: var(--text-muted);
}
.advanced-opts[open] summary::before { transform: rotate(90deg); }
.advanced-content { padding: 10px 0 0; display: flex; flex-direction: column; }
.label-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
}
.label-check input { width: auto; }

/* ── Maintenance ───────────────────────────── */
.dot-maintenance { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim), 0 0 7px rgba(59,130,246,.4); }
.card.is-maintenance {
  border-left: 3px solid var(--blue);
  background: linear-gradient(135deg, rgba(59,130,246,.07) 0%, var(--surface) 55%);
}
.label-maintenance { color: var(--blue); }

.btn-maintenance {
  background: var(--blue-dim);
  color: var(--blue);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  flex: 1;
  border: 1px solid rgba(59,130,246,.2);
}
.btn-maintenance:hover { background: rgba(59,130,246,.16); }

/* ── Gesperrte Endpunkte (Tier-Limit nach Downgrade) ── */
.card.is-locked {
  opacity: .55;
  filter: grayscale(.6);
  border-left: 3px solid var(--text-muted);
}
.card.is-locked .card-sparkline { opacity: .4; }
.dot-locked   { background: var(--text-muted); }
.label-locked { color: var(--text-muted); }

/* ── Suche (Endpunkte + Heartbeats) ────────── */
.search-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  width: 240px;
  max-width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.search-empty { font-size: 12.5px; color: var(--text-muted); margin-right: auto; }

/* Heartbeat-Suche: per Lupe auf-/zuklappbar */
.section-actions { display: flex; align-items: center; gap: 8px; }
.hb-search {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  border-width: 0;
  opacity: 0;
  transition: width .2s ease, opacity .2s ease, padding .2s ease;
}
.hb-search.open {
  width: 200px;
  padding-left: 12px;
  padding-right: 12px;
  border-width: 1px;
  opacity: 1;
}

/* ── Aufklapp-Button (Liste > 20 Karten) ───── */
.card-filtered { display: none !important; }
.show-all-row { display: flex; justify-content: center; margin: 14px 0 4px; }
.btn-show-all {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.btn-show-all:hover { color: var(--text); border-color: var(--border-2); }

/* ── Auswahl-Modus (Mehrfach-Löschen) ─────── */
.select-toolbar { display: flex; gap: 8px; margin-bottom: 12px; justify-content: flex-end; align-items: center; }
.select-toolbar .search-input { margin-right: auto; }
#cards.select-mode .card { cursor: pointer; }
#cards.select-mode .card .card-actions { pointer-events: none; opacity: .3; }
.card.is-selected {
  outline: 2px solid var(--red);
  outline-offset: -2px;
  background: var(--red-dim);
}
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,.3);
}
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.18); }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }

/* ── Heartbeat Section (legacy alias) ──────── */
.hb-section-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 12px; margin-top: 24px; }
.hb-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.hb-icon { font-size: 15px; }
.hb-section-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Heartbeat Detail Modal ─────────────────── */
.modal-box-hb { max-width: 480px; }
.modal-hb-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hb-detail-title { display: flex; align-items: center; gap: 8px; }
.hb-url-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.hb-url-label { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.hb-url-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hb-url-code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  flex: 1;
}
.hb-url-example {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.7;
  margin-top: 4px;
}
.modal-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }

/* ── Status Page Widget (Dashboard-intern) ──── */
.w-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.w-badge {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.w-icon { font-size: 18px; }
.w-summary {
  font-size: 12px;
  color: var(--text-muted);
}
.w-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin: 16px 0 8px;
  font-weight: 500;
}

/* ── Monitor List ── */
.w-monitors {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.w-monitor {
  background: var(--surface);
  padding: 10px 14px;
}
.w-monitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.w-monitor-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.w-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.w-dot-up      { background: var(--color-up, #22c55e); box-shadow: 0 0 4px var(--color-up, #22c55e); }
.w-dot-down    { background: var(--color-down, #ef4444); box-shadow: 0 0 4px var(--color-down, #ef4444); }
.w-dot-unknown { background: var(--text-muted); }
.w-monitor-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-monitor-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.w-uptime {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-up, #22c55e);
  font-variant-numeric: tabular-nums;
}
.w-label {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 999px;
}
.w-lbl-up      { background: rgba(34,197,94,.12); color: var(--color-up, #22c55e); }
.w-lbl-down    { background: rgba(239,68,68,.12); color: var(--color-down, #ef4444); }
.w-lbl-unknown { background: var(--surface-2); color: var(--text-muted); }

/* ── 30-Day History (compact für Widget) ── */
.w-history-bar {
  display: flex;
  gap: 1px;
  align-items: flex-end;
}
.w-day {
  flex: 1;
  height: 16px;
  border-radius: 2px;
  cursor: default;
}
.w-day-up      { background: var(--color-up, #22c55e); opacity: .65; }
.w-day-up:hover { opacity: 1; }
.w-day-partial  { background: var(--color-yellow, #f59e0b); opacity: .65; }
.w-day-partial:hover { opacity: 1; }
.w-day-down    { background: var(--color-down, #ef4444); opacity: .65; }
.w-day-down:hover { opacity: 1; }
.w-day-empty   { background: var(--border); }

/* ── Incidents ── */
.w-incidents {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.w-incident {
  background: var(--surface);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.w-incident-title {
  font-size: 12px;
  font-weight: 600;
}
.w-incident-meta {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.w-no-incidents {
  font-size: 12px;
  color: var(--green);
  padding: 8px 0;
}

/* ── Footer (URL + Buttons) ── */
.w-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.w-url-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.w-url {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  min-width: 0;
}
.w-url:hover { color: var(--green); }
/* ── Helper: kleine Aktions-Buttons (Status-Widget-Footer, Incident-Modal) ──
   Marken-Stil statt nackter blauer Links: Pill mit Surface + Border,
   grüner Hover. Gilt auch für <a>-Elemente (Öffnen →). */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.btn-text:hover {
  color: var(--green);
  border-color: rgba(34, 197, 94, .45);
  background: var(--green-dim);
}
/* Deaktivieren = destruktiv: gedämpft, Hover rot (nach .btn-text, damit es gewinnt) */
.btn-text.w-disable { color: var(--text-muted); }
.btn-text.w-disable:hover {
  color: var(--red);
  border-color: rgba(239, 68, 68, .4);
  background: var(--red-dim);
}
.btn-xs { font-size: 11px; }

/* ── Branding: Grünes MON ──────────────────── */
.mon-accent { color: var(--green); }

/* ── Status Page Header ─────────────────────── */
.hb-section-header.sp-header { margin-top: 0; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
  .nav-center { display: none; }
}
@media (max-width: 480px) {
  header { padding: 12px 16px; }
  main { padding: 16px; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .metrics-row .metric-card:last-child { grid-column: 1 / -1; }
  .panel { width: calc(100vw - 16px); max-height: 92vh; }
  .panel-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Settings Page ─────────────────────────── */
.settings-layout {
  display: flex;
  gap: 32px;
  max-width: 960px;
  margin: 32px auto;
  padding: 0 24px;
}

.settings-nav {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background .15s, color .15s;
}
.settings-nav-item:hover {
  background: var(--surface);
  color: var(--text);
}
.settings-nav-item.active {
  background: rgba(59,130,246,.1);
  color: var(--blue);
  font-weight: 600;
}
.nav-icon { font-size: 16px; line-height: 1; }

.settings-content {
  flex: 1;
  min-width: 0;
}

.settings-tab {
  display: block;
}
.settings-tab.hidden {
  display: none;
}

.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.settings-section .section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.6;
}
.settings-section label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.settings-section label:last-of-type { margin-bottom: 0; }
.settings-section label input,
.settings-section label select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.settings-section-danger {
  border-color: rgba(239,68,68,.2);
}
.section-title-danger { color: var(--red) !important; }

.form-error {
  font-size: 13px;
  color: var(--red);
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(239,68,68,.08);
  border-radius: 6px;
}
.form-success {
  font-size: 13px;
  color: var(--green);
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(34,197,94,.08);
  border-radius: 6px;
}
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.form-actions .btn-primary,
.form-actions .btn-secondary { width: auto; }

.copy-field {
  display: flex;
  gap: 6px;
  align-items: center;
}
.copy-field input {
  flex: 1;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: default;
  outline: none;
}
.copy-hint {
  font-size: 11px;
  color: var(--green);
  margin-top: 4px;
}

.input-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.input-row input { flex: 1; margin-top: 0; }
.test-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.test-btn:hover { background: var(--border); }

.quiet-hours {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.quiet-hours label {
  flex: 1;
  margin-bottom: 0;
}
.alert-feedback {
  font-size: 12px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 5px;
}
.link-blue { color: var(--blue); }
.link-blue:hover { text-decoration: underline; }

/* ── Alarm-Kanäle (Status-Liste) ── */
.ch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--surface-2);
}
.ch-row.is-active  { border-left: 3px solid var(--green); }
.ch-row.is-muted   { border-left: 3px solid var(--text-muted); opacity: .8; }
.ch-row.is-empty   { border-left: 3px solid var(--border-2); }
.ch-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ch-name { font-weight: 600; font-size: 14px; }
.ch-value {
  font-size: 12px; color: var(--text-muted);
  font-family: 'Fira Code', 'Consolas', monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ch-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ch-badge-active { background: var(--green-dim); color: var(--green); }
.ch-badge-muted  { background: var(--surface-3); color: var(--text-muted); }
.ch-badge-off    { background: transparent; color: var(--text-muted); font-weight: 500; }
.ch-acts { display: flex; gap: 6px; align-items: center; }
.ch-btn {
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text); padding: 6px 12px; border-radius: 6px;
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.ch-btn:hover:not(:disabled) { background: var(--border); }
.ch-btn:disabled { opacity: .5; cursor: default; }
.ch-btn-del { color: var(--red); padding: 6px 10px; }
.ch-btn-del:hover { background: var(--red-dim); }
.ch-btn-add { color: var(--green); }
.ch-edit { grid-column: 1 / -1; margin-top: 4px; }
.prof-input { flex: 1; min-width: 0; }
.prof-pending {
  grid-column: 1 / -1; margin-top: 8px; font-size: 12.5px;
  color: var(--text-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ch-help { font-size: 12px; color: var(--text-muted); margin: 0 0 8px; }
.ch-fb { grid-column: 1 / -1; font-size: 12px; padding: 4px 0 0; }
.feedback-ok  { color: var(--green); }
.feedback-err { color: var(--red); }
@media (max-width: 640px) {
  .ch-row { grid-template-columns: 1fr; }
  .ch-acts { justify-content: flex-start; }
}

/* ── Billing / Pricing Cards ── */
.billing-current-plan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}
.billing-tier-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,.12);
  color: var(--blue);
}
.billing-limits {
  font-size: 13px;
  color: var(--text-muted);
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.billing-plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color .15s;
}
.billing-plan-card:hover { border-color: var(--text-muted); }
.billing-plan-featured {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(59,130,246,.03), var(--surface));
}
.billing-plan-featured:hover { border-color: var(--blue); }

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
}

.plan-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.plan-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.plan-features li {
  font-size: 13px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.plan-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-top: auto;
}
.btn-checkout {
  background: var(--blue);
  color: #fff;
}
.btn-checkout:hover { opacity: .9; }
.plan-btn[disabled] { opacity: .4; cursor: default; }

/* ── Settings Responsive ── */
@media (max-width: 768px) {
  .settings-layout { flex-direction: column; gap: 12px; margin: 16px auto; }
  .settings-nav { width: 100%; flex-direction: row; }
  .settings-nav-item { flex: 1; justify-content: center; font-size: 13px; padding: 8px 10px; }
  .billing-plans { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .settings-section { padding: 14px 16px; }
  .quiet-hours { flex-direction: column; gap: 8px; }
  .input-row { flex-direction: column; }
  .test-btn { width: 100%; }
}

/* ── Badge Modal ─────────────────────────────── */
.modal-badge-box { max-width: 520px; }
.badge-modal-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.badge-preview-section { margin-bottom: 18px; }
.badge-preview-label { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.badge-preview-frame { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; min-height: 48px; display: flex; align-items: center; }
.badge-preview-frame img { display: block; }
.badge-copy-row { display: flex; gap: 8px; }
.badge-code-input { flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); border-radius: var(--radius); padding: 7px 10px; font-size: 11px; font-family: monospace; outline: none; min-width: 0; }
.btn-copy-badge { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: 7px 14px; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn-copy-badge:hover { background: var(--border); }

/* ── Trust Badges (Landing Page) ───────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.trust-badge {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 20px 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.trust-badge:hover { border-color: #22c55e; }
.trust-badge .badge-icon { font-size: 24px; margin-bottom: 8px; }
.trust-badge .badge-title { font-size: 14px; font-weight: 600; color: #d4d4d4; margin-bottom: 4px; }
.trust-badge .badge-sub { font-size: 12px; color: #666; line-height: 1.4; }

/* ── Domain Expiry Badge ───────────────────── */
.card-domain-expiry {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 500;
}
.expiry-ok       { color: var(--text-muted); background: transparent; }
.expiry-warn     { color: var(--yellow); background: var(--yellow-dim); }
.expiry-critical { color: var(--red);    background: var(--red-dim); }

/* ── Payment Banner Animation ──────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Feedback Widget ────────────────────────── */
.btn-feedback {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff;
  border: none; font-size: 20px;
  cursor: pointer; z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .15s, box-shadow .15s;
}
.btn-feedback:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.4); }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 0;
}
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-close {
  background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.modal-body { padding: 16px 24px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text-2);
}
.form-select, .form-textarea, .form-input {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 14px; font-family: inherit;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select:focus, .form-textarea:focus, .form-input:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 2px var(--green-dim);
}

/* ── PingMon Logo Animation ── */
.pm-logo{width:64px;height:64px;display:block}
.pm-logo .ring{stroke-dasharray:1;stroke-dashoffset:1}
.pm-logo .dot,.pm-logo .hi,.pm-logo .ping,.pm-logo .glow{transform-box:fill-box;transform-origin:center}
.pm-logo .ping,.pm-logo .glow{opacity:0}

.pm-play .glow{animation:pm-glow .6s ease-out both}
.pm-play .ring{animation:pm-draw .65s ease-out both}
.pm-play .dot,.pm-play .hi{animation:pm-dot .5s cubic-bezier(.2,1.5,.3,1) .42s both}
.pm-play .ping.p1{animation:pm-ping 2.2s ease-out .75s infinite}
.pm-play .ping.p2{animation:pm-ping 2.2s ease-out 1.85s infinite}
.pm-play.pm-paused .ping{animation:none;opacity:0}

@keyframes pm-draw{to{stroke-dashoffset:0}}
@keyframes pm-dot{0%{opacity:0;transform:scale(0)}60%{opacity:1;transform:scale(1.3)}100%{transform:scale(1)}}
@keyframes pm-ping{0%{opacity:.5;transform:scale(.45)}70%{opacity:0}100%{opacity:0;transform:scale(2.8)}}
@keyframes pm-glow{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.pm-logo *{animation:none!important}.pm-logo .ring{stroke-dashoffset:0}.pm-logo .glow,.pm-logo .dot,.pm-logo .hi{opacity:1;transform:none}}

/* Logo-Größen je Container (überschreibt die 64px-Basis per Spezifität) */
.logo-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: #0a0a0a;
  border-radius: 14px;
  flex-shrink: 0;
}
.logo-badge .pm-logo { width: 40px; height: 40px; }
.logo-wrap .pm-logo{width:48px;height:48px;flex-shrink:0}
.auth-logo .pm-logo{width:24px;height:24px;flex-shrink:0}


/* ===== PINGMON COWORK REBRAND: App-Override (Dashboard/Settings/Login/Reset) ===== */
/* ============================================================================
   PingMon — App-Bereich Brand-Override  (Dashboard, Settings, Login, Status)
   CSS-ONLY, appearance-only. An `style.css` anhängen.
   ----------------------------------------------------------------------------
   THEME-MECHANIK DER APP (bestätigt):
     <body class="dark">  = Default (dunkel)
     <body class="light"> = hell (Toggle: body.classList.toggle('light'))
   -> Wir hängen NICHT an [data-theme] oder prefers-color-scheme.
   -> Wir nutzen EURE Variablen (var(--bg) / var(--surface) / var(--text) /
      var(--green) / var(--red) / var(--yellow)); dadurch laufen hell/dunkel
      automatisch mit. Nur die Glow-/Schatten-Layer sind theme-unabhängig.
   Kein Layout, kein Markup, kein JS. (Sollte ein Variablenname abweichen,
   nur den var()-Namen anpassen — die Fallback-Werte greifen sonst.)
   ============================================================================ */

:root{ --pm-g500:#22c55e; --pm-g600:#16a34a; --pm-g400:#4ade80; --pm-red:#ef4444; --pm-yellow:#d97706; }

/* ---- Seiten-Hintergrund: Hybrid (Glow + ausgefadete Dots) über eurem --bg ---- */
body::before{ content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(1200px 480px at 50% -12%, rgba(34,197,94,.10), transparent 70%); }
body::after{ content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.4px); background-size:22px 22px;
  -webkit-mask-image:radial-gradient(125% 75% at 50% -8%, #000, rgba(0,0,0,.5) 38%, transparent 78%);
          mask-image:radial-gradient(125% 75% at 50% -8%, #000, rgba(0,0,0,.5) 38%, transparent 78%); }
body.light::after{ background-image:radial-gradient(circle, rgba(20,40,28,.06) 1px, transparent 1.4px); }
nav, main, aside, footer, .settings-layout{ position:relative; z-index:1; }

/* ---- Endpunkt- & Heartbeat-Karten ---- */
.card, .hb-card{
  background:radial-gradient(120% 90% at 50% -20%, rgba(34,197,94,.10), transparent 60%), var(--surface, #161616);
  border:1px solid rgba(34,197,94,.16); border-radius:18px;
  box-shadow:0 16px 30px -18px rgba(34,197,94,.28), inset 0 1px 0 rgba(255,255,255,.05);
}
/* Zustände (eure echten Klassen) — Left-Border-Konvention beibehalten, Glow ergänzt */
.card.is-up,   .hb-card.is-up   { border-left:3px solid var(--green, #22c55e); }
.card.is-down, .hb-card.is-down {
  border-left:3px solid var(--red, #ef4444); border-color:rgba(239,68,68,.22);
  background:radial-gradient(120% 90% at 50% -20%, rgba(239,68,68,.12), transparent 60%),
             linear-gradient(135deg, rgba(239,68,68,.10) 0%, var(--surface, #161616) 55%);
  box-shadow:0 16px 30px -18px rgba(239,68,68,.32), inset 0 1px 0 rgba(255,255,255,.05);
}
.card.is-slow, .hb-card.is-slow {
  border-left:3px solid var(--yellow, #d97706); border-color:rgba(217,119,6,.22);
  background:radial-gradient(120% 90% at 50% -20%, rgba(217,119,6,.12), transparent 60%),
             linear-gradient(135deg, rgba(217,119,6,.10) 0%, var(--surface, #161616) 55%);
}
.card.unchecked, .hb-card.unchecked{ border-left:3px solid #6b7280; }

/* ---- Metrik-Karten oben ---- */
.metric-card{
  background:radial-gradient(120% 90% at 50% -20%, rgba(34,197,94,.06), transparent 60%), var(--surface, #161616);
  border:1px solid rgba(255,255,255,.07); border-radius:16px;
  box-shadow:0 14px 28px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
}

/* ---- Status-Page-Box im Dashboard ---- */
.sp-card{
  background:radial-gradient(80% 130% at 12% -10%, rgba(34,197,94,.10), transparent 60%), var(--surface, #161616);
  border:1px solid rgba(34,197,94,.14); border-radius:20px;
  box-shadow:0 22px 44px -28px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ---- Detail-Panel + Modals ---- */
.panel, .modal-box{
  background:var(--surface, #161616);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
}

/* ---- Buttons ---- */
.btn-primary, .plan-btn, .btn-checkout.plan-btn{
  background-image:linear-gradient(180deg, var(--pm-g500), var(--pm-g600));
  border:1px solid var(--pm-g600); color:#06210f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 14px 24px -12px rgba(34,197,94,.6);
}

/* ---- Settings: Billing-Karten + Nav ---- */
.billing-plan-card{
  background:var(--surface, #161616); border:1px solid rgba(255,255,255,.08); border-radius:16px;
  box-shadow:0 16px 30px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.billing-plan-card.billing-plan-featured{
  background:radial-gradient(120% 85% at 50% -12%, rgba(34,197,94,.20), transparent 60%), var(--surface, #161616);
  border:2px solid var(--pm-g500);
  box-shadow:0 28px 52px -24px rgba(34,197,94,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
.settings-nav-item.active{ color:var(--pm-g500); }

/* ---- Login-Box + Tabs ---- */
.auth-box{
  background:radial-gradient(120% 90% at 50% -20%, rgba(34,197,94,.10), transparent 60%), var(--surface, #161616);
  border:1px solid rgba(34,197,94,.14); border-radius:18px;
  box-shadow:0 30px 60px -28px rgba(34,197,94,.4), inset 0 1px 0 rgba(255,255,255,.05);
}
.tab.active{ color:var(--pm-g500); }

/* ---- Optionale Dynamik (css/pingmon-motion.css) + weicher Theme-Wechsel
        (css/pingmon-theme-transition.css) separat einbinden. ---- */

/* ===== PINGMON COWORK REBRAND: Weicher Theme-Wechsel (Option A, ohne JS) ===== */
body,
.card, .hb-card, .metric-card, .sp-card, .panel, .modal-box,
nav, aside, .settings-layout, .auth-box, input, select, textarea,
.btn-primary, .plan-btn, .billing-plan-card, .tab{
  transition: background-color .38s ease, color .38s ease,
              border-color .38s ease, box-shadow .38s ease;
}
@media (prefers-reduced-motion: reduce){
  body, .card, .hb-card, .metric-card, .sp-card, .panel, .modal-box,
  nav, aside, .settings-layout, .auth-box, input, select, textarea,
  .btn-primary, .plan-btn, .billing-plan-card, .tab{ transition:none; }
}

/* ===== PINGMON COWORK REBRAND: Mockup-Niveau Verstärkung (Teil 1) =====
   WICHTIG: theme-gescopet (body.dark/body.light), weil die Original-Regeln
   `body.dark .card` etc. (Spezifität 0,2,1) die schlichten Cowork-Selektoren
   sonst überschreiben — DAS war der Grund für "zu subtil". Additiv, kein Markup/JS. */

/* ---- Hintergrund: Hybrid-Glow oben kräftiger + Dots minimal präsenter ---- */
body::before{ background:radial-gradient(1200px 540px at 50% -12%, rgba(34,197,94,.14), transparent 70%); }
body.dark::after{ background-image:radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.4px); }

/* ---- Endpunkt-/HB-Karten: Basis plastischer + Hover-Lift ---- */
body.dark .card, body.dark .hb-card{
  background:radial-gradient(130% 100% at 50% -25%, rgba(34,197,94,.06), transparent 60%), #161616;
  border:1px solid rgba(34,197,94,.10); border-top:1px solid rgba(34,197,94,.10); border-radius:16px;
  box-shadow:0 18px 34px -22px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
.card, .hb-card{ transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .38s ease; }
.card:hover, .hb-card:hover{ transform:translateY(-3px); }

/* ONLINE — voller grüner Verlauf + Glow + Akzent (beide Themes) */
body.dark .card.is-up, body.dark .hb-card.is-up{
  border:1px solid rgba(34,197,94,.30); border-left:3px solid #22c55e;
  background:radial-gradient(130% 100% at 50% -20%, rgba(34,197,94,.22), transparent 60%),
            linear-gradient(165deg, rgba(34,197,94,.06) 0%, #16191b 60%);
  box-shadow:0 20px 40px -18px rgba(34,197,94,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
body.dark .card.is-up:hover, body.dark .hb-card.is-up:hover{ box-shadow:0 26px 48px -18px rgba(34,197,94,.72), inset 0 1px 0 rgba(255,255,255,.07); }
body.light .card.is-up, body.light .hb-card.is-up{
  border:1px solid rgba(34,197,94,.22); border-left:3px solid #16a34a;
  background:radial-gradient(130% 100% at 50% -20%, rgba(34,197,94,.12), transparent 60%),
            linear-gradient(165deg, #f0fdf4 0%, #ffffff 60%);
  box-shadow:0 16px 30px -18px rgba(34,197,94,.35), inset 0 1px 0 rgba(255,255,255,.8);
}

/* OFFLINE — roter Verlauf + Glow */
body.dark .card.is-down, body.dark .hb-card.is-down{
  border:1px solid rgba(239,68,68,.34); border-left:3px solid #ef4444;
  background:radial-gradient(130% 100% at 50% -20%, rgba(239,68,68,.22), transparent 60%),
            linear-gradient(165deg, rgba(239,68,68,.08) 0%, #1a1617 60%);
  box-shadow:0 20px 40px -18px rgba(239,68,68,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
body.light .card.is-down, body.light .hb-card.is-down{
  border:1px solid rgba(220,38,38,.28); border-left:3px solid #dc2626;
  background:radial-gradient(130% 100% at 50% -20%, rgba(239,68,68,.10), transparent 60%),
            linear-gradient(165deg, #fef2f2 0%, #ffffff 60%);
  box-shadow:0 16px 30px -18px rgba(239,68,68,.32), inset 0 1px 0 rgba(255,255,255,.8);
}

/* SLOW — amber Verlauf */
body.dark .card.is-slow, body.dark .hb-card.is-slow{
  border:1px solid rgba(217,119,6,.34); border-left:3px solid #d97706;
  background:radial-gradient(130% 100% at 50% -20%, rgba(217,119,6,.20), transparent 60%),
            linear-gradient(165deg, rgba(217,119,6,.08) 0%, #1a1714 60%);
  box-shadow:0 20px 40px -18px rgba(217,119,6,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
body.light .card.is-slow, body.light .hb-card.is-slow{
  border:1px solid rgba(217,119,6,.26); border-left:3px solid #d97706;
  background:radial-gradient(130% 100% at 50% -20%, rgba(217,119,6,.10), transparent 60%),
            linear-gradient(165deg, #fffbeb 0%, #ffffff 60%);
  box-shadow:0 16px 30px -18px rgba(217,119,6,.3), inset 0 1px 0 rgba(255,255,255,.8);
}
body.dark .card.unchecked, body.dark .hb-card.unchecked{ border-left:3px solid #6b7280; }

/* Status-Punkt in den Karten: Glow-Ring */
.status-dot.dot-up{ box-shadow:0 0 0 4px rgba(34,197,94,.16); }
.status-dot.dot-down{ box-shadow:0 0 0 4px rgba(239,68,68,.16); }
.status-dot.dot-slow{ box-shadow:0 0 0 4px rgba(217,119,6,.16); }

/* ---- Metrik-Karten: plastischer + grüner Top-Glow ---- */
body.dark .metric-card{
  background:radial-gradient(120% 100% at 50% -30%, rgba(34,197,94,.12), transparent 60%), #161616;
  border:1px solid rgba(34,197,94,.12); border-radius:16px;
  box-shadow:0 18px 36px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
}
body.light .metric-card{
  background:radial-gradient(120% 100% at 50% -30%, rgba(34,197,94,.10), transparent 60%), #ffffff;
  border:1px solid rgba(34,197,94,.14); border-radius:16px;
  box-shadow:0 16px 30px -22px rgba(16,40,26,.22), inset 0 1px 0 rgba(255,255,255,.8);
}

/* ---- Status-Sektion: Spotlight stärker ---- */
body.dark .sp-card, body.dark #sp-box{
  background:radial-gradient(70% 130% at 10% -10%, rgba(34,197,94,.16), transparent 60%), linear-gradient(180deg,#16191b,#121517);
  border:1px solid rgba(34,197,94,.18); border-radius:20px;
  box-shadow:0 26px 50px -28px rgba(34,197,94,.4), inset 0 1px 0 rgba(255,255,255,.06);
}
body.light .sp-card, body.light #sp-box{
  background:radial-gradient(70% 130% at 10% -10%, rgba(34,197,94,.12), transparent 60%), #ffffff;
  border:1px solid rgba(34,197,94,.16); border-radius:20px;
  box-shadow:0 22px 44px -30px rgba(34,197,94,.3), inset 0 1px 0 rgba(255,255,255,.8);
}

/* ---- Primär-Buttons: kräftigerer Glow + Hover ---- */
.btn-primary, .plan-btn, .btn-checkout.plan-btn{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 16px 28px -12px rgba(34,197,94,.7);
}
.btn-primary:hover, .plan-btn:hover, .btn-checkout.plan-btn:hover{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 20px 34px -12px rgba(34,197,94,.85);
}
/* Featured Billing-Karte: stärkerer Glow */
.billing-plan-card.billing-plan-featured{ box-shadow:0 30px 58px -22px rgba(34,197,94,.7), inset 0 1px 0 rgba(255,255,255,.06); }

/* ===== Motion (Teil 2) — nur Dashboard, sparsam. Grün dauerhaft / Rot endlich.
   Keyframes kommen aus pingmon-motion.css (global per <link>). Sheen läuft über
   die Klasse .pm-anim-sheen an #sp-box. Live/Alert hier per CSS, weil die Karten
   von JS erzeugt werden (kein Klassen-Eingriff möglich). ===== */
#cards > .card:first-child .status-dot.dot-up{ position:relative; }
#cards > .card:first-child .status-dot.dot-up::after{
  content:""; position:absolute; inset:-3px; border-radius:50%; pointer-events:none;
  border:2px solid rgba(34,197,94,.5); animation:pm-live 2.8s ease-out infinite;
}
.card.is-down, .hb-card.is-down{ animation:pm-alert 1s ease-out 3; }
@media (prefers-reduced-motion: reduce){
  #cards > .card:first-child .status-dot.dot-up::after{ animation:none; }
  .card.is-down, .hb-card.is-down{ animation:none; }
}

/* ===== PINGMON COWORK REBRAND: Mockup-Feinschliff — Karten-Akzentlinie + Spotlight =====
   Repliziert den Foundation-".pm-card"-Look direkt auf den ECHTEN Klassen
   (.card/.hb-card sind JS-generiert → keine Klassen-Ergänzung möglich; Foundation
   global laden würde den Dark-Hintergrund kippen). Reines CSS, kein Markup/JS. */

/* Dünne Akzentlinie oben (wie .pm-card::before im Mockup) */
.card.is-up::before,   .hb-card.is-up::before,
.card.is-down::before, .hb-card.is-down::before,
.card.is-slow::before, .hb-card.is-slow::before{
  content:""; position:absolute; left:16px; right:16px; top:0; height:2px;
  border-radius:0 0 4px 4px; pointer-events:none; opacity:.6;
}
.card.is-up::before,   .hb-card.is-up::before  { background:linear-gradient(90deg,transparent,#4ade80,transparent); }
.card.is-down::before, .hb-card.is-down::before{ background:linear-gradient(90deg,transparent,#ef4444,transparent); }
.card.is-slow::before, .hb-card.is-slow::before{ background:linear-gradient(90deg,transparent,#f59e0b,transparent); }

/* Metrik-Zahlen etwas präsenter */
.metric-value{ font-size:30px; }

/* Status-Sektion: Spotlight intensiver */
body.dark .sp-card, body.dark #sp-box{
  background:radial-gradient(80% 120% at 6% 30%, rgba(34,197,94,.13), transparent 65%), linear-gradient(180deg,#16191b,#111417);
  border:1px solid rgba(34,197,94,.22);
  box-shadow:0 28px 54px -26px rgba(34,197,94,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
body.light .sp-card, body.light #sp-box{
  background:radial-gradient(72% 135% at 8% -12%, rgba(34,197,94,.16), transparent 58%), #ffffff;
  border:1px solid rgba(34,197,94,.20);
  box-shadow:0 24px 48px -28px rgba(34,197,94,.38), inset 0 1px 0 rgba(255,255,255,.8);
}

/* ===== PINGMON COWORK REBRAND: pm-card / pm-stat: echte Cowork-Hooks =====
   Getragen vom Token in app.js (Karten) + index.html (Metrik). Gleicher Look
   wie .card/.metric-card — die Cowork-Foundation greift jetzt über die
   offiziellen Klassennamen. Zustände (.is-up/.is-down/.is-slow) gewinnen per
   höherer Spezifität und liefern den Voll-Verlauf. Kein Markup-Risiko. */
.pm-card{ position:relative; transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .38s ease; }
.pm-card:hover{ transform:translateY(-3px); }
body.dark .pm-card{
  background:radial-gradient(130% 100% at 50% -25%, rgba(34,197,94,.06), transparent 60%), #161616;
  border:1px solid rgba(34,197,94,.10); border-radius:16px;
  box-shadow:0 18px 34px -22px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
body.light .pm-card{
  background:radial-gradient(130% 100% at 50% -25%, rgba(34,197,94,.06), transparent 60%), #ffffff;
  border:1px solid rgba(34,197,94,.12); border-radius:16px;
  box-shadow:0 16px 30px -22px rgba(16,40,26,.2), inset 0 1px 0 rgba(255,255,255,.8);
}
body.dark .pm-stat{
  background:radial-gradient(120% 100% at 50% -30%, rgba(34,197,94,.12), transparent 60%), #161616;
  border:1px solid rgba(34,197,94,.12); border-radius:16px;
  box-shadow:0 18px 36px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
}
body.light .pm-stat{
  background:radial-gradient(120% 100% at 50% -30%, rgba(34,197,94,.10), transparent 60%), #ffffff;
  border:1px solid rgba(34,197,94,.14); border-radius:16px;
  box-shadow:0 16px 30px -22px rgba(16,40,26,.22), inset 0 1px 0 rgba(255,255,255,.8);
}

/* ===== PINGMON COWORK REBRAND: Cowork Card-Tokens (body.dark-gehookt) =====
   Foundation-Tokens als CSS-Variablen — bewusst unter :root (hell) und body.dark
   (dunkel), NICHT [data-theme="dark"], weil PingMon body.dark nutzt. Dadurch
   greifen die Glows im Dark Mode korrekt. */
:root{
  --card-bg:radial-gradient(120% 90% at 50% -20%, rgba(34,197,94,.10), transparent 60%), linear-gradient(165deg,#ffffff 0%,#fafcfb 100%);
  --card-border:rgba(20,40,28,.08);
  --card-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(16,32,22,.04), 0 14px 28px -18px rgba(16,40,26,.28);
  --card-online-bg:radial-gradient(120% 90% at 50% -20%, rgba(34,197,94,.18), transparent 60%), linear-gradient(165deg,#ffffff 0%,#f0fdf4 52%,#dcfce7 100%);
  --card-online-border:rgba(34,197,94,.22);
  --card-online-shadow:inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(16,32,22,.04), 0 16px 30px -16px rgba(34,197,94,.42);
  --card-error-bg:radial-gradient(120% 90% at 50% -20%, rgba(239,68,68,.18), transparent 60%), linear-gradient(165deg,#ffffff 0%,#fef2f2 52%,#fee2e2 100%);
  --card-error-border:rgba(239,68,68,.26);
  --card-error-shadow:inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(32,16,16,.04), 0 16px 30px -16px rgba(239,68,68,.44);
}
body.dark{
  --card-bg:radial-gradient(120% 90% at 50% -20%, rgba(74,222,128,.08), transparent 60%), linear-gradient(165deg,#15181a 0%,#121517 100%);
  --card-border:rgba(255,255,255,.08);
  --card-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.4), 0 18px 34px -20px rgba(0,0,0,.7);
  --card-online-bg:radial-gradient(120% 90% at 50% -20%, rgba(74,222,128,.18), transparent 60%), linear-gradient(165deg,#16191b 0%,#142019 100%);
  --card-online-border:rgba(91,201,140,.30);
  --card-online-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.4), 0 18px 34px -16px rgba(34,197,94,.6);
  --card-error-bg:radial-gradient(120% 90% at 50% -20%, rgba(244,108,103,.18), transparent 60%), linear-gradient(165deg,#1a1617 0%,#241416 100%);
  --card-error-border:rgba(239,68,68,.34);
  --card-error-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.4), 0 18px 34px -16px rgba(239,68,68,.6);
}

/* Metrik-Karten semantisch: Online=grün, Offline=rot, Antwortzeit=neutral.
   Per ID (Spezifität 1,0,0) gewinnen sie sicher; Variablen schalten Theme automatisch. */
#metric-up   { background-image:var(--card-online-bg); border:1px solid var(--card-online-border); box-shadow:var(--card-online-shadow); }
#metric-down { background-image:var(--card-error-bg);  border:1px solid var(--card-error-border);  box-shadow:var(--card-error-shadow); }
#metric-avg  { background-image:var(--card-bg);        border:1px solid var(--card-border);        box-shadow:var(--card-shadow); }

/* ===== PINGMON COWORK REBRAND: Status-Box Zustands-Glow =====
   #sp-box bekommt data-status (operational|degraded|down) vom JS (loadPublicStatus).
   operational/leer = grün (bestehende sp-card-Regel). Spezifität ID+Attr gewinnt
   über body.dark #sp-box. Dauer-Schimmer nur auf grün; Down endlich gepulst. */
body.dark #sp-box[data-status="degraded"]{
  background:radial-gradient(80% 120% at 6% 30%, rgba(217,119,6,.14), transparent 65%), linear-gradient(180deg,#1a1712,#13110d);
  border:1px solid rgba(217,119,6,.32);
  box-shadow:0 28px 54px -26px rgba(217,119,6,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
body.light #sp-box[data-status="degraded"]{
  background:radial-gradient(72% 135% at 8% -12%, rgba(217,119,6,.16), transparent 58%), #fffbeb;
  border:1px solid rgba(217,119,6,.28);
  box-shadow:0 24px 48px -28px rgba(217,119,6,.4), inset 0 1px 0 rgba(255,255,255,.8);
}
body.dark #sp-box[data-status="down"]{
  background:radial-gradient(80% 120% at 6% 30%, rgba(239,68,68,.15), transparent 65%), linear-gradient(180deg,#1a1516,#130e0e);
  border:1px solid rgba(239,68,68,.36);
  box-shadow:0 28px 54px -26px rgba(239,68,68,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
body.light #sp-box[data-status="down"]{
  background:radial-gradient(72% 135% at 8% -12%, rgba(239,68,68,.16), transparent 58%), #fef2f2;
  border:1px solid rgba(239,68,68,.30);
  box-shadow:0 24px 48px -28px rgba(239,68,68,.42), inset 0 1px 0 rgba(255,255,255,.8);
}
/* Dauer-Schimmer NUR auf grün: bei amber/rot den Sheen-Layer KOMPLETT ausblenden.
   (Nur animation:none würde den schrägen Streifen am Startpunkt left:-60% "parken"
   → statische weiße Kante oben links. Daher display:none.) */
#sp-box[data-status="degraded"]::after, #sp-box[data-status="down"]::after{ display:none; }
/* Down: einmaliger, endlicher Aufmerksamkeits-Puls (3x) — kein Dauerblinken */
#sp-box[data-status="down"]{ animation:pm-alert 1s ease-out 3; }
@media (prefers-reduced-motion: reduce){ #sp-box[data-status="down"]{ animation:none; } }

/* ===== PINGMON COWORK REBRAND: Header-Polish (Tiefe + Marke) =====
   Header wirkte v.a. im Light Mode nackt/steril. Subtiler grüner Hauch +
   Frost + Tiefe — kein Overload. Marken-Grün #22c55e (konsistent zur Seite). */
/* Dunkler App-Header (Dashboard): grünen Glow sichtbarer */
header{
  border-bottom:1px solid rgba(34,197,94,.12);
  box-shadow:0 1px 0 rgba(34,197,94,.10), 0 4px 20px -2px rgba(0,0,0,.35);
}
/* Heller App-Header (Settings/Login/Light Mode): Frost + grüner Hauch statt Weiß */
body.light header{
  background:linear-gradient(180deg, rgba(255,255,255,.93), rgba(246,251,248,.85));
  border-bottom:1px solid rgba(34,197,94,.14);
  box-shadow:0 1px 0 rgba(34,197,94,.07), 0 8px 26px -18px rgba(16,40,26,.16);
  backdrop-filter:blur(16px) saturate(1.25);
  -webkit-backdrop-filter:blur(16px) saturate(1.25);
}

/* ===== PINGMON COWORK REBRAND: Header-Emoji-Buttons als Chips =====
   Emoji-Icons (Sprache/Theme/Logout) im Header in saubere Chip-Kästchen wie die
   Feature-Icons der Landing — etwas größer. Nur im <header>, nicht der Primär-
   Button (+Endpunkt) und nicht das Modal-✕ (das ist außerhalb des Headers). */
header .btn-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; padding:0;
  font-size:18px; color:var(--text);
  background:radial-gradient(120% 120% at 30% 15%, rgba(34,197,94,.16), transparent 70%),
            linear-gradient(180deg, var(--surface-2), var(--surface-3));
  border:1px solid rgba(34,197,94,.24); border-radius:10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 2px 6px -2px rgba(0,0,0,.3);
}
header .btn-icon:hover{
  color:var(--text);
  border-color:rgba(34,197,94,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 4px 10px -3px rgba(34,197,94,.3);
}

/* ── Tages-Uptime-Balken (Detail-Panel, Kuma-Style) ── */
.daily-bars { display: flex; gap: 2px; align-items: flex-end; }
.daily-bar {
  flex: 1; height: 24px; min-width: 0; border-radius: 2px;
  position: relative; cursor: default;
}
@media (max-width: 480px) {
  .daily-bars { gap: 1px; }
  .daily-bar { height: 20px; border-radius: 1px; }
}
.daily-bar.day-up      { background: var(--green);  opacity: .75; }
.daily-bar.day-partial { background: var(--yellow); opacity: .75; }
.daily-bar.day-down    { background: var(--red);    opacity: .75; }
.daily-bar.day-empty   { background: var(--border); }
.daily-bar:hover { opacity: 1; }
.daily-bar:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: #000; color: #fff; padding: 4px 8px; border-radius: 5px;
  font-size: 11px; white-space: nowrap; pointer-events: none; z-index: 10;
}
.daily-bars-labels {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 11px; color: var(--text-muted);
}

/* ── Incident-Verwaltung (Status-Page v2) ── */
.modal-incident-box { max-width: 560px; }
.inc-empty { color: var(--text-muted); font-size: 13px; margin: 4px 0 16px; }
.inc-item {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2);
}
.inc-item.inc-resolved { opacity: .6; }
.inc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inc-title { flex: 1; font-size: 13px; min-width: 120px; }
.inc-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.inc-date { font-size: 11px; color: var(--text-muted); }
.inc-del {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 6px; padding: 2px 8px; cursor: pointer; font-size: 12px;
}
.inc-del:hover { color: var(--red); border-color: var(--red); }
.inc-updates { margin-top: 8px; }
.inc-update { font-size: 12px; color: var(--text-2); margin: 4px 0; padding-left: 10px; border-left: 2px solid var(--border-2); }
.inc-utime { color: var(--text-muted); margin-right: 6px; }
.inc-ubadge { font-weight: 600; margin-right: 6px; }
.inc-update-form { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.inc-update-form .form-select { width: auto; padding: 6px 10px; font-size: 12px; }
.inc-update-form .form-input { flex: 1; min-width: 140px; padding: 6px 10px; font-size: 12px; }
.inc-new-title { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin: 18px 0 12px; font-weight: 600; }
.inc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inc-feedback { font-size: 12px; margin-bottom: 10px; }
.inc-feedback.feedback-ok { color: var(--green); }
.inc-feedback.feedback-err { color: var(--red); }

/* ── Cron-Hilfetext im Heartbeat-Formular ── */
.hb-cron-help { display: block; margin-top: 6px; font-size: 11px; color: var(--text-muted); line-height: 1.6; }
.hb-cron-help code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--text-2); }

/* ── Cron-Segmente: 5 Mini-Felder, Leerzeichen setzt das UI ── */
.cron-segments { display: flex; gap: 6px; }
.cron-seg { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cron-seg input {
  width: 100%; text-align: center; padding: 8px 4px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: 'Fira Code', 'Consolas', monospace; font-size: 13px;
}
.cron-seg input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px var(--green-dim); }
.cron-seg small { text-align: center; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }

/* ── Monitor-Typ-Chip (TCP/PING) auf den Karten ── */
.type-chip {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .5px;
  padding: 1px 6px; border-radius: 4px; background: var(--surface-3);
  color: var(--text-2); vertical-align: 1px;
}

/* ── Trust-Badge: „Monitored by PingMon Germany" (Dashboard-Footer) ──
   Nutzt die Theme-Variablen → funktioniert in Dark UND Light automatisch. */
.dash-footer { display: flex; justify-content: center; padding: 26px 16px 34px; position: relative; z-index: 1; }
.pm-trustbadge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  font-size: 13px; color: var(--text-2); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.pm-trustbadge:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(34,197,94,.12); }
.pm-tb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: none; }
.pm-tb-loading .pm-tb-dot { animation: pmTbPulse 1.2s ease-in-out infinite; }
.pm-tb-operational .pm-tb-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.pm-tb-degraded   .pm-tb-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.pm-tb-down       .pm-tb-dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.pm-tb-text strong { color: var(--text); font-weight: 600; }
.pm-tb-uptime { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pm-tb-uptime:empty { display: none; }
@keyframes pmTbPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
