/* LeSify Dashboard – Designsprache von lesify.io (Farben, Schriften, Komponenten) */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-display: swap; src: url(fonts/bricolage-grotesque-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url(fonts/geist-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url(fonts/geist-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url(fonts/geist-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url(fonts/geist-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url(fonts/geist-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #05060a;
  --fg: #eef1f7;
  --surface: #0b0d14;
  --surface-2: #11141e;
  --line: #ffffff17;
  --line-strong: #ffffff29;
  --muted: #9aa3b8;
  --faint: #646c80;
  --blue: #2f6bff;
  --blue-bright: #6a95ff;
  --violet: #8b5cf6;
  --lilac: #c4b5fd;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --nodata: #ffffff14;

  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 1.25rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--blue-bright); text-decoration: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
svg { flex-shrink: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.drag { -webkit-app-region: drag; }
.drag button, .drag a { -webkit-app-region: no-drag; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #ffffff1a; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #ffffff30; }

/* Hintergrund: Raster + Leuchten wie im Hero von lesify.io */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, #ffffff0b 1px, #0000 0), linear-gradient(#ffffff0b 1px, #0000 0);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 65% 0%, #000 20%, #0000 100%);
}
.glow { position: fixed; top: -14rem; right: -14rem; width: 48rem; height: 48rem; z-index: 0; pointer-events: none; }
.glow span { position: absolute; inset: 0; border-radius: 50%; filter: blur(40px); }
.glow span:first-child { background: radial-gradient(closest-side, rgb(47 107 255 / 0.28), transparent); }
.glow span:last-child { inset: 15%; transform: translateX(25%); background: radial-gradient(closest-side, rgb(139 92 246 / 0.24), transparent); }

/* Grundlayout */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 280px 1fr; height: 100vh; }

.sidebar {
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0d14cc, #05060acc);
  backdrop-filter: blur(12px);
}
.brand { height: 88px; display: flex; align-items: center; padding: 18px 24px 0; }
.brand img { height: 34px; width: auto; }
.admin-badge {
  display: none; margin-left: 12px; padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lilac); border: 1px solid #8b5cf666; background: #8b5cf61a;
}
[data-edition='admin'] .admin-badge { display: inline-block; }
/* Admin-Version: keine Kunden-Supportseite */
[data-edition='admin'] [data-view='support'] { display: none; }
.side-section { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 14px; }
.side-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  padding: 14px 10px 10px;
}
.site-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.site-item {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; background: none; text-align: left;
  color: var(--muted); transition: background-color .2s, border-color .2s, color .2s;
}
.site-item:hover { background: #ffffff08; color: var(--fg); }
.site-item.active { background: #ffffff0d; border-color: var(--line-strong); color: var(--fg); }
.site-item .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-item .sub { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-item .ms { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }

.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); position: relative; }
.status-dot.up { background: var(--ok); box-shadow: 0 0 0 4px rgb(52 211 153 / 0.15); }
.status-dot.down { background: var(--bad); box-shadow: 0 0 0 4px rgb(248 113 113 / 0.18); }
.status-dot.down::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--bad); animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
.status-dot.busy { background: var(--blue-bright); animation: pulse 1s ease-in-out infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }

.add-site {
  margin-top: 10px; display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 11px 14px; border-radius: 999px; border: 1px dashed var(--line-strong); background: none; color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.add-site:hover { color: var(--fg); border-color: #ffffff55; background: #ffffff06; }
.add-site svg, .nav-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.side-bottom { padding: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
  background: none; color: var(--muted); text-align: left; transition: background-color .2s, color .2s;
}
.nav-item:hover { background: #ffffff08; color: var(--fg); }
.nav-item.active { background: #ffffff0d; border-color: var(--line-strong); color: var(--fg); }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 12px 12px 2px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--faint); white-space: nowrap; }
.side-foot .muted { margin-left: auto; color: var(--faint); }
.dot-de { width: 14px; height: 9px; border-radius: 2px; background: linear-gradient(#000 0 33%, #dd0000 33% 66%, #ffce00 66%); }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.topbar { height: 44px; flex-shrink: 0; }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 48px 56px; }
.view > * { max-width: 1240px; margin-inline: auto; }

/* Typo-Bausteine der Website */
.eyebrow {
  font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac);
  display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.72rem;
}
.eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.text-gradient { color: transparent; background: linear-gradient(100deg, #6a95ff, #2f6bff 35%, #8b5cf6 70%, #c4b5fd); -webkit-background-clip: text; background-clip: text; }

/* Buttons */
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1.2rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--fg); font-weight: 500;
  transition: border-color .25s, background-color .25s; white-space: nowrap;
}
.btn-ghost:hover { background: #ffffff0a; border-color: #fff6; }
.btn-ghost:disabled { opacity: .5; cursor: progress; }
.btn-ghost svg, .icon-btn svg, .link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-danger {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem 1.3rem; border-radius: 999px; border: 1px solid #f8717166;
  background: #f871711a; color: #fecaca; font-weight: 500;
}
.btn-danger:hover { background: #f8717133; }
.icon-btn { width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--muted); }
.icon-btn:hover { color: var(--fg); border-color: #fff6; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue-bright); background: none; border: 0; padding: 0; font-weight: 500; transition: gap .25s var(--ease-out-expo); }
.link-arrow:hover { gap: .7rem; color: #fff; }

/* Shiny CTA – nachgebaut von lesify.io */
@property --gradient-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@property --gradient-percent { syntax: '<percentage>'; initial-value: 5%; inherits: false; }
@property --gradient-shine { syntax: '<color>'; initial-value: white; inherits: false; }
.shiny-cta {
  --bg-c: #070a16; --bg-subtle: #1b2140; --hl: #2f6bff; --hl-subtle: #a78bfa;
  isolation: isolate; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 2rem; font-size: 1rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; border-radius: 360px; color: #fff;
  background:
    linear-gradient(var(--bg-c), var(--bg-c)) padding-box,
    conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)), transparent, var(--hl) var(--gradient-percent), var(--gradient-shine) calc(var(--gradient-percent) * 2), var(--hl) calc(var(--gradient-percent) * 3), transparent calc(var(--gradient-percent) * 4)) border-box;
  box-shadow: inset 0 0 0 1px var(--bg-subtle), 0 10px 40px -12px rgb(47 107 255 / .55);
  animation: gradient-angle 3s linear infinite;
  transition: --gradient-angle-offset 800ms cubic-bezier(.25, 1, .5, 1), --gradient-percent 800ms cubic-bezier(.25, 1, .5, 1), --gradient-shine 800ms cubic-bezier(.25, 1, .5, 1);
}
.shiny-cta:hover { --gradient-percent: 20%; --gradient-angle-offset: 95deg; --gradient-shine: var(--hl-subtle); }
.shiny-cta:active { translate: 0 1px; }
.shiny-cta:disabled { opacity: .7; cursor: progress; }
.shiny-cta--sm { padding: .7rem 1.35rem; font-size: .9rem; }
.shiny-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes gradient-angle { to { --gradient-angle: 360deg; } }

/* Karten */
.card {
  position: relative; background: linear-gradient(180deg, #0f121bcc, #0b0d14cc); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
}
.gradient-border { isolation: isolate; border-color: transparent; }
.gradient-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(140deg, #2f6bffe6, #8b5cf699 45%, #ffffff0f 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.card-head h3 { font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.card-head .num { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); letter-spacing: .1em; }
.card-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, #2f6bff33, #8b5cf622); border: 1px solid #2f6bff40; color: var(--blue-bright); }
.card-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1180px) { .grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }

/* Kopfbereich einer Website */
.site-head { display: flex; align-items: flex-end; gap: 24px; padding: 18px 0 30px; flex-wrap: wrap; }
.site-head .title { min-width: 0; flex: 1; }
.site-head h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; margin-top: 16px; overflow-wrap: anywhere; }
.site-head .meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; color: var(--muted); }
.site-head .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; border: 1px solid var(--line-strong); background: #ffffff08; white-space: nowrap;
}
.pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pill.ok { color: #a7f3d0; border-color: #34d39955; background: #34d39914; }
.pill.warn { color: #fde68a; border-color: #fbbf2455; background: #fbbf2414; }
.pill.bad { color: #fecaca; border-color: #f8717166; background: #f8717117; }
.pill.info { color: #c7d7ff; border-color: #6a95ff55; background: #2f6bff17; }

/* Kennzahlen (wie „In Zahlen“ auf lesify.io) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #0b0d14aa; margin-bottom: 20px; }
.stat { padding: 24px 26px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stat .value { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; margin-top: 14px; white-space: nowrap; }
.stat .value small { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: -.01em; margin-left: 4px; }
.stat .hint { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.stat .hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hint.ok { color: var(--ok); } .hint.warn { color: var(--warn); } .hint.bad { color: var(--bad); }
@media (max-width: 1180px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Empfehlungen */
.recs { display: flex; flex-direction: column; }
.rec { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.rec:first-child { border-top: 0; padding-top: 0; }
.rec .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.rec .ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rec.bad .ico { background: #f871711f; color: var(--bad); }
.rec.warn .ico { background: #fbbf241f; color: var(--warn); }
.rec.info .ico { background: #2f6bff22; color: var(--blue-bright); }
.rec.ok .ico { background: #34d3991f; color: var(--ok); }
.rec strong { font-weight: 600; display: block; }
.rec p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.recs-foot { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.recs-foot p { color: var(--muted); font-size: .9rem; max-width: 52ch; }

/* Verfügbarkeit */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); background: #ffffff05; }
.seg button { border: 0; background: none; padding: 5px 13px; border-radius: 999px; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; }
.seg button:hover { color: var(--fg); }
.seg button.active { background: #ffffff14; color: var(--fg); }

.uptime-summary { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.uptime-summary .big { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; }
.uptime-summary .muted { font-size: .88rem; }

.bars { display: flex; gap: 2px; height: 40px; align-items: stretch; }
.bars .b { flex: 1; border-radius: 4px; background: var(--nodata); min-width: 2px; transition: transform .15s, filter .15s; }
.bars .b.ok { background: var(--ok); }
.bars .b.warn { background: var(--warn); }
.bars .b.bad { background: var(--bad); }
.bars .b:hover { transform: scaleY(1.12); filter: brightness(1.15); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: .7rem; color: var(--faint); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.chart-title { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; }
.chart-title h4 { font-family: var(--font-sans); font-weight: 600; font-size: .95rem; letter-spacing: 0; }
.chart-wrap { position: relative; height: 190px; }
.chart-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-wrap .grid-line { stroke: #ffffff12; stroke-width: 1; }
.chart-wrap .axis-label { fill: var(--faint); font-family: var(--font-mono); font-size: 10.5px; }
.chart-wrap .line { fill: none; stroke: var(--blue-bright); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-wrap .cross { stroke: #ffffff40; stroke-width: 1; }
.chart-wrap .marker { fill: var(--blue-bright); stroke: var(--surface); stroke-width: 2; }
.empty-chart { height: 100%; display: grid; place-items: center; color: var(--faint); font-size: .9rem; border: 1px dashed var(--line); border-radius: 14px; }

.incidents { margin-top: 26px; }
.incidents h4 { font-family: var(--font-sans); font-weight: 600; font-size: .95rem; letter-spacing: 0; margin-bottom: 8px; }

/* Datenzeilen */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.row:first-child { border-top: 0; }
.row .k { color: var(--muted); }
.row .v { min-width: 0; overflow-wrap: anywhere; }
.row .v.mono { font-size: .82rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: #ffffff0a; border: 1px solid var(--line); color: #d5dae6; }

/* SSL-Ring */
.ssl-top { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; }
.ring { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: #ffffff12; stroke-width: 9; }
.ring .val { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease-out-expo); }
.ring .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .center b { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.04em; line-height: 1; }
.ring .center span { font-size: .72rem; color: var(--muted); font-family: var(--font-mono); margin-top: 3px; }
.ssl-top .what strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; display: block; margin-bottom: 6px; }

/* Ladezeiten-Wasserfall */
.wf { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.wf-row { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 12px; font-size: .86rem; }
.wf-row .k { color: var(--muted); }
.wf-row .track { position: relative; height: 10px; border-radius: 4px; background: #ffffff08; }
.wf-row .fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--violet)); min-width: 3px; }
.wf-row .v { font-family: var(--font-mono); font-size: .78rem; text-align: right; }

.check-list { display: flex; flex-direction: column; }
.check { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.check:first-child { border-top: 0; }
.check svg { width: 18px; height: 18px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.check.yes svg { stroke: var(--ok); }
.check.no svg { stroke: var(--faint); }
.check .desc { display: block; font-size: .8rem; color: var(--muted); }
.check .state { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.check.yes .state { color: var(--ok); }

.note { margin-top: 26px; display: flex; gap: 10px; align-items: flex-start; color: var(--faint); font-size: .82rem; }
.note svg { width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Willkommen / Support / Einstellungen */
.hero { padding: 6vh 0 48px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); font-weight: 800; line-height: .95; margin-top: 26px; max-width: 14ch; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; margin-top: 26px; }
.hero-form { display: flex; gap: 12px; margin-top: 36px; max-width: 640px; flex-wrap: wrap; }
.hero-form input { flex: 1; min-width: 240px; }
.input, .field input, .hero-form input, select.input {
  height: 3.3rem; padding: 0 1.25rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #ffffff06; color: var(--fg);
  font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, background-color .2s;
}
.input:focus, .field input:focus, .hero-form input:focus { border-color: var(--blue); background: #2f6bff0d; }
.hero-error { color: var(--bad); margin-top: 12px; min-height: 1.4em; font-size: .9rem; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 1180px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature .n { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); letter-spacing: .1em; }
.feature h3 { font-size: 1.3rem; font-weight: 700; margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: .9rem; }

.page-head { padding: 18px 0 32px; }
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; margin-top: 16px; }
.page-head p { color: var(--muted); margin-top: 14px; max-width: 60ch; font-size: 1.05rem; }

.contact-card h3 { font-size: 1.4rem; font-weight: 700; margin: 18px 0 8px; }
.contact-card p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.cta-band { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; padding: 34px 36px; }
.cta-band h2 { font-size: 2rem; font-weight: 800; }
.cta-band p { color: var(--muted); margin-top: 8px; }

.setting { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.card-head + .setting { border-top: 0; padding-top: 0; }
.setting strong { font-weight: 600; display: block; }
.setting p { color: var(--muted); font-size: .88rem; margin-top: 2px; }
select.input { height: 2.6rem; padding: 0 2.2rem 0 1rem; font-size: .9rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: var(--surface-2); }
.switch { position: relative; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #ffffff1a; border: 1px solid var(--line-strong); transition: background-color .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-out-expo); }
.switch input:checked + span { background: var(--blue); border-color: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

/* Dialoge */
.dialog {
  width: min(520px, 92vw); padding: 34px; border-radius: 24px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #11141e, #0b0d14); color: var(--fg); box-shadow: 0 40px 120px -20px #000;
}
.dialog::backdrop { background: #05060acc; backdrop-filter: blur(6px); }
.dialog h2 { font-size: 2rem; font-weight: 800; margin: 14px 0 10px; }
.dialog p { font-size: .95rem; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.field em { color: var(--faint); font-style: normal; }
.form-error { color: var(--bad); font-size: .88rem; min-height: 1.3em; margin-top: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Menü */
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: 16px; border: 1px solid var(--line-strong); background: #11141e; box-shadow: 0 20px 60px -10px #000; z-index: 20; display: none; }
.menu.open .menu-pop { display: block; }
.menu-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 0; background: none; font-size: .9rem; }
.menu-pop button:hover { background: #ffffff0d; }
.menu-pop button.danger { color: var(--bad); }

/* Tooltip & Toast */
.tooltip {
  position: fixed; z-index: 100; pointer-events: none; padding: 9px 12px; border-radius: 12px; background: #161a26; border: 1px solid var(--line-strong);
  font-size: .8rem; line-height: 1.45; box-shadow: 0 12px 30px -8px #000; opacity: 0; transition: opacity .12s; max-width: 260px;
}
.tooltip.show { opacity: 1; }
.tooltip b { font-family: var(--font-mono); font-weight: 500; }
.tooltip .t { color: var(--muted); font-family: var(--font-mono); font-size: .72rem; display: block; margin-bottom: 3px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; translate: -50% 20px; z-index: 100; padding: 12px 20px; border-radius: 999px;
  background: #161a26; border: 1px solid var(--line-strong); font-size: .9rem; opacity: 0; transition: opacity .25s, translate .35s var(--ease-out-expo); pointer-events: none;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* Skeleton beim ersten Prüfen */
.skeleton { border-radius: 10px; background: linear-gradient(90deg, #ffffff08, #ffffff12, #ffffff08); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.fade-in { animation: fade .5s var(--ease-out-expo) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* PDF-Bericht */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body { overflow: visible; height: auto; }
  .app { display: block; height: auto; }
  .sidebar, .topbar, .actions, .seg, .glow, .grid-bg, .menu, .no-print { display: none !important; }
  .main, .view { overflow: visible; display: block; height: auto; }
  .view { padding: 14mm 12mm; }
  .print-only { display: flex; }
  .print-head { align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
  .print-head img { height: 26px; }
  .card, .stats { break-inside: avoid; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .site-head h1 { font-size: 40px; }
  .fade-in { animation: none; }
}
