/* Uptime Monitor – Corporate Design IGVN Group (Brand Manual v1.0, November 2026)
   Farben: Espresso, Taupe, Stein, Sand, Leinen, Elfenbein.
   Schriften: TeX Gyre Pagella (Headlines), Inter (Text), Poppins gesperrt (Labels).
   Lokal eingebunden, keine Google-Server. Bewusst nur helle Darstellung. */

@font-face { font-family: "Pagella"; src: url("fonts/Pagella-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  /* Markenfarben */
  --espresso: #2b2622;
  --taupe: #635a51;
  --stein: #8c8277;
  --sand: #bdb1a5;
  --leinen: #e9e3da;
  --elfenbein: #faf7f2;

  --page: var(--elfenbein);
  --card-bg: #ffffff;
  --soft: var(--leinen);
  --softer: #f4efe8;
  --ink: var(--espresso);
  --text: #403933;
  --muted: var(--taupe);        /* 6,3 : 1 auf Elfenbein */
  --faint: var(--stein);        /* nur große Schrift und Deko */
  --line: #e4ddd3;
  --line-strong: var(--sand);

  /* Statusfarben, warm abgestimmt */
  --up: #3d6b52;
  --up-bar: #5b8a6e;
  --up-soft: #e5ece2;
  --down: #a3372c;
  --down-soft: #f4e4df;
  --warn: #8a5c14;
  --warn-bar: #b98a3e;
  --warn-soft: #f3e9d8;
  --mild: #a9bfa0;
  --none: #e4ddd3;

  --serif: "Pagella", "TeX Gyre Pagella", "Palatino Linotype", Palatino, Georgia, serif;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --label: "Poppins", "Inter", Arial, sans-serif;
  --mono: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-family: var(--serif); font-size: 36px; line-height: 1.15; font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); margin: 0 0 16px; }
strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.c-up { color: var(--up); }
.c-down { color: var(--down); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Kopfzeile */
.topbar { background: var(--page); border-bottom: 1px solid var(--sand); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.brand small { font-family: var(--label); color: var(--muted); font-weight: 400; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid var(--sand); }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); padding: 8px 12px; font-size: 14px; font-weight: 500; position: relative; }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }
.topbar nav a.active { color: var(--ink); }
.topbar nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 1px; background: var(--ink); }

main.wrap { padding-top: 40px; padding-bottom: 56px; }
.foot { color: var(--faint); font-size: 12px; padding-bottom: 32px; border-top: 1px solid var(--line); padding-top: 16px; }

.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); }
.eyebrow { font-family: var(--label); display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Abschnitte wie im Bericht: Nummer, Titel, kräftige Linie */
.section { margin-bottom: 44px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink);
  padding-bottom: 12px; border-bottom: 1px solid var(--stein); margin: 0 0 4px;
}
.section-head small { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.sec-num { font: 400 17px var(--serif); color: var(--sand); }

/* Kennzahlen-Leiste */
.figures, .stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 44px;
}
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figures > div, .stat { padding: 20px 20px 22px; border-left: 1px solid var(--line); min-width: 0; }
.figures > div:first-child, .stat:first-child { border-left: 0; padding-left: 0; }
.figures span, .stat-label { font-family: var(--label); display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.figures b, .stat-value { display: block; font-size: 34px; font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-sm { font-size: 24px; }
.figures small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.figures .is-alert b, .figures .is-alert small { color: var(--down); }
.figures .is-alert small { font-weight: 500; }

/* Handlungsbedarf */
.all-clear { display: flex; align-items: center; gap: 12px; margin: 0; padding: 20px 0; color: var(--up); font-weight: 500; border-bottom: 1px solid var(--line); }
.dot-ok { width: 10px; height: 10px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 5px var(--up-soft); flex: none; }
.attention { list-style: none; margin: 0; padding: 0; }
.attention li { border-bottom: 1px solid var(--line); }
.attention a {
  display: grid; grid-template-columns: 9.5em minmax(0, 15em) minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 16px 4px 16px 16px; color: var(--text); position: relative;
}
.attention a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--warn-bar); }
.attention .lvl-high a::before { background: var(--down); }
.attention a:hover { background: var(--softer); text-decoration: none; }
.att-type { font-family: var(--label); font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--warn); }
.lvl-high .att-type { color: var(--down); }
.att-site { display: flex; flex-direction: column; min-width: 0; }
.att-site strong { font-size: 15px; }
.att-site .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-text { font-size: 14px; color: var(--ink); min-width: 0; }
.att-go { color: var(--faint); font-size: 18px; }
.attention a:hover .att-go { color: var(--ink); }

/* Webseitenliste */
.site-list { border-top: 0; }
.site-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--text);
}
.site-row:hover { background: var(--softer); text-decoration: none; }
.site-row.inactive { opacity: .55; }
.site-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-name strong { font-size: 15.5px; }
.site-meta { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.flag { font-family: var(--label); font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--down); border: 1px solid currentColor; border-radius: 3px; padding: 1px 7px; }
.site-error { color: var(--down); margin-top: 4px; }
.site-nums { display: flex; gap: 28px; }
.site-nums div { display: flex; flex-direction: column; min-width: 64px; text-align: right; }
.site-nums span { font-family: var(--label); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.site-nums strong { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Status */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1.6; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-up { background: var(--up-soft); color: var(--up); }
.badge-down { background: var(--down-soft); color: var(--down); }
.badge-down .dot { animation: pulse 1.4s infinite; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-unknown, .badge-paused { background: var(--soft); color: var(--muted); }
.badge-sec { background: var(--down-soft); color: var(--down); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .badge-down .dot, .hero-mark { animation: none !important; } }

/* Verfügbarkeitsbalken */
.bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.bar { flex: 1; border-radius: 1px; min-width: 1px; }
.bar-good { background: var(--up-bar); }
.bar-ok { background: var(--mild); }
.bar-warn { background: var(--warn-bar); }
.bar-bad { background: var(--down); }
.bar-none { background: var(--none); }
.site-bars .bars { height: 22px; gap: 1.5px; }
.bars-legend { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 12px; }

/* Panels der Detailseite */
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 4px; padding: 26px 28px; margin-bottom: 18px; }
.empty { text-align: center; padding: 64px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty h2 { font-size: 22px; font-family: var(--serif); font-weight: 400; }
.status-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 22px; border-left: 3px solid var(--up); }
.status-hero.status-down { border-color: var(--down); background: var(--down-soft); border-left-width: 3px; }

.chart { position: relative; }
.chart svg { width: 100%; height: 140px; display: block; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 1.75; }
.chart .area { fill: var(--accent-soft); }
.chart .grid { stroke: var(--line); stroke-dasharray: 2 4; }
.chart-max { position: absolute; top: -6px; right: 0; font: 11px var(--mono); color: var(--faint); background: var(--page); padding: 0 4px; }

.grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.grid-2 > * { min-width: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; margin: 0; font-size: 14px; }
.kv dt, .kv dd { padding: 10px 0; border-top: 1px solid var(--line); }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.table th { font-family: var(--label); text-align: left; color: var(--muted); font-weight: 500; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; padding: 8px 12px 10px 0; border-bottom: 1px solid var(--stein); }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }

/* Formulare */
.form label, .form .radio-group { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.form-grid fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-grid legend { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--stein); width: 100%; font-family: var(--serif); font-weight: 400; font-size: 19px; }
.span-2 { grid-column: span 2; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--page);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px 12px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=color] { padding: 3px; height: 42px; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; flex: none; }
input[readonly] { background: var(--soft); font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.form .check, .form .radio { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; color: var(--text); font-size: 14px; }
.radio-group .label-text { margin-bottom: 2px; }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.opt { font-weight: 400; color: var(--faint); font-size: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; grid-column: 1 / -1; }
.settings-form .card h2 { margin-bottom: 4px; }
.settings-form .form-grid { margin-top: 18px; }
#smtp { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.logo-preview { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.logo-preview img { max-height: 40px; max-width: 160px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; }

.copy-row { display: flex; gap: 8px; margin: 8px 0 12px; }
.copy-row input { flex: 1; min-width: 0; }
.report-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.report-form select { width: auto; min-width: 190px; }
.inline-form { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 500; font-size: 14px; border-radius: 4px; padding: 10px 18px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; color: var(--ink); background: var(--soft);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--espresso); color: var(--elfenbein); }
.btn-primary:hover { background: var(--taupe); }
.btn-ghost { background: var(--page); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--down); border-color: var(--line-strong); }
.btn-danger:hover { border-color: var(--down); background: var(--down-soft); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.danger-zone { margin-top: 8px; text-align: right; }

/* Hinweise */
.flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 14px; border-left: 3px solid currentColor; }
.flash-ok { background: var(--up-soft); color: var(--up); }
.flash-err { background: var(--down-soft); color: var(--down); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash a { color: inherit; text-decoration: underline; font-weight: 500; }

/* Anmeldung */
body:not(.admin) { background: var(--leinen); }
.auth-box { max-width: 420px; margin: 10vh auto 40px; padding: 44px 40px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 4px; }
.auth-box h1 { margin-bottom: 8px; font-size: 28px; }
.auth-box .form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.auth-box .eyebrow { margin-bottom: 14px; }

/* Sicherheitsprüfung */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.sec-card.sec-warn { border-color: var(--down); border-left-width: 3px; }
.findings { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.findings li { padding: 12px 0 12px 16px; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line); position: relative; }
.findings li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn-bar); }
.findings li.lvl-high::before { background: var(--down); }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.actions-row form { margin: 0; }

/* SEO */
.seo-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 4px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.seo-score b { font-size: 60px; font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.seo-score span { color: var(--muted); font-size: 15px; margin-left: 6px; }
.seo-cats { display: flex; flex-direction: column; gap: 10px; }
.seo-cat { display: grid; grid-template-columns: minmax(0, 18em) minmax(0, 1fr) 3.5em; gap: 14px; align-items: center; font-size: 13px; }
.seo-cat span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-cat i { height: 5px; border-radius: 3px; background: var(--none); overflow: hidden; }
.seo-cat em { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.seo-cat b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.sub-h { font-family: var(--label); font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.seo-details { margin-top: 16px; }
.seo-details summary { cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 500; }
.seo-details .table { margin-top: 16px; }
.st { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--none); }
.st-pass { background: var(--up); } .st-warn { background: var(--warn-bar); } .st-fail { background: var(--down); }

/* ---------- Öffentliche Statusseite ---------- */
body.public { background: var(--page); }
body.public .badge-down .dot { animation: none; }
.public-wrap { max-width: 820px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 56px max(20px, env(safe-area-inset-left, 0px)); }
.public-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-bottom: 1px solid var(--line); margin-bottom: 52px; }
.public-logo { height: 30px; width: auto; max-width: 240px; display: block; }
.public-tag { font-family: var(--label); font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.public-hero { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.public-hero h1 { font-size: 44px; line-height: 1.1; }
.public-hero p { margin: 0; color: var(--muted); font-size: 16px; }
.hero-state { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--up); }
.hero-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 5px var(--up-soft); }
.status-down .hero-state { color: var(--down); }
.status-down .hero-mark { background: var(--down); box-shadow: 0 0 0 5px var(--down-soft); }
.status-unknown .hero-state, .status-paused .hero-state { color: var(--muted); }
.status-unknown .hero-mark, .status-paused .hero-mark { background: var(--faint); box-shadow: 0 0 0 5px var(--soft); }
.public-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.public-figures div { padding: 20px 0 22px 24px; border-left: 1px solid var(--line); min-width: 0; }
.public-figures div:first-child { padding-left: 0; border-left: 0; }
.public-figures span { font-family: var(--label); display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.public-figures b { display: block; font-size: 32px; font-family: var(--serif); font-weight: 400; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.public-section { margin-bottom: 44px; }
.public-section h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--stein); margin-bottom: 18px; }
.public-section h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.incident-list { list-style: none; margin: 0; padding: 0; }
.incident-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.incident-list li:last-child { border-bottom: 0; }
.incident-list .when { color: var(--ink); font-weight: 500; }
.incident-list .dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sec-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-line .shield { width: 32px; height: 32px; border-radius: 50%; background: var(--up-soft); color: var(--up); display: grid; place-items: center; flex: none; }
.public-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; color: var(--faint); font-size: 12.5px; }

/* Mobil */
@media (max-width: 820px) {
  .attention a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 4px 14px 16px; }
  .att-type { grid-column: 1; }
  .att-site, .att-text { grid-column: 1; }
  .att-go { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 760px) {
  h1 { font-size: 27px; }
  main.wrap { padding-top: 28px; }
  .topbar-inner { padding-block: 10px; }
  .topbar nav { width: 100%; justify-content: space-between; }
  .topbar nav a { padding: 6px 0; font-size: 13.5px; }
  .topbar nav a.active::after { left: 0; right: 0; bottom: -11px; }
  .brand small { display: none; }
  .figures, .stats { grid-template-columns: 1fr 1fr; margin-bottom: 36px; }
  .figures > div:nth-child(3), .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures > div:nth-child(n+3), .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figures > div, .stat { padding: 16px 0 18px 16px; }
  .figures b, .stat-value { font-size: 28px; }
  .stats-3 { grid-template-columns: 1fr 1fr 1fr; }
  .stats-3 .stat:nth-child(3) { border-left: 1px solid var(--line); border-top: 0; padding-left: 12px; }
  .site-row { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .site-nums div { text-align: left; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .card { padding: 20px 18px; }
  .bars { gap: 1px; }
  .section { margin-bottom: 36px; }
  .section-head small { margin-left: 0; width: 100%; }
  .seo-top { grid-template-columns: 1fr; gap: 16px; }
  .seo-cat { grid-template-columns: minmax(0, 1fr) 70px 3em; }
  .public-head { margin-bottom: 36px; }
  .public-hero h1 { font-size: 30px; }
  .public-figures b { font-size: 22px; }
  .public-figures div { padding-left: 12px; }
  .public-figures span { font-size: 10px; }
  .incident-list li { grid-template-columns: 1fr auto; }
  .incident-list li .badge { grid-column: 1 / -1; justify-self: start; }
}

/* DSGVO */
.gdpr-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.gdpr-counts div { padding: 14px 16px; border-left: 1px solid var(--line); }
.gdpr-counts div:first-child { border-left: 0; padding-left: 0; }
.gdpr-counts b { display: block; font-size: 30px; font-family: var(--serif); font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gdpr-counts span { font-family: var(--label); font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.flag-warn { color: var(--warn); }
.table td.c-down { color: var(--down); }
.table td.c-up { color: var(--up); }

/* Marke: Anmeldung und Details */
.auth-logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 0 32px; }
.section-head small, .public-section h2 small { font-family: var(--font); }
input[type=checkbox], input[type=radio] { accent-color: var(--taupe); }
::selection { background: var(--sand); color: var(--espresso); }
.site-main { min-width: 0; }

.psi-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 4px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.psi-score { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.psi-score .seo-score b { font-size: 48px; }
.psi-good .seo-score b { color: var(--up); }
.psi-warn .seo-score b { color: var(--warn); }
.psi-bad .seo-score b { color: var(--down); }
@media (max-width: 560px) { .psi-scores { grid-template-columns: 1fr; } }
.st-na { background: var(--line); }
