/* DDoSGuard Panel v2 – Grundlage, Schrift, Zeichen, Rahmen (aus muster/muster.css). */
@font-face { font-family: "Geist"; src: url("/panel/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/panel/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-14)/var(--lh-14) var(--font); font-feature-settings: "ss01" off; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mint-200); color: var(--tinte); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-1); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--text-3); }
.nowrap { white-space: nowrap; }

.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 200; background: var(--surface); color: var(--text); padding: var(--s-2) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-2); }
.skip:focus { top: var(--s-3); }

/* ---------- Icons (CSS-Masken, data:-URI ist unter img-src erlaubt). Strich 2 auf 24er-Raster ---------- */
.ic { display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-plus { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ic-right { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); }
.ic-left { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E"); }
.ic-down { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.ic-menu { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.ic-x { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.ic-check { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ic-warn { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 2.8 19.5h18.4L12 4Z'/%3E%3Cpath d='M12 10v4.5M12 17v.2'/%3E%3C/svg%3E"); }
.ic-copy { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E"); }
.ic-more { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 12h.01M12 12h.01M19 12h.01'/%3E%3C/svg%3E"); }
.ic-info { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.5v.2'/%3E%3C/svg%3E"); }
.ic-wave { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 9c3-4.5 6-4.5 9 0s6 4.5 9 0M3 16c3-4.5 6-4.5 9 0s6 4.5 9 0'/%3E%3C/svg%3E"); }

/* ---------- App-Rahmen ---------- */
.app { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100dvh; }
.nav { position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-4) var(--s-3); background: var(--bg-nav); border-right: 1px solid var(--line); }
.main { min-width: 0; }
.page { max-width: var(--page-max); padding: var(--s-6) 40px var(--s-8); }
.topbar { display: none; }
.navtop { display: flex; align-items: center; justify-content: space-between; }
.nav .navzu { display: none; }
.nav:focus { outline: none; }

.brand { display: flex; align-items: center; gap: 10px; padding: var(--s-1) var(--s-2); color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--fs-16); letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }

/* Bereichsumschalter (nur Admins): Websites | Betrieb */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 2px; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--r-2); }
.nav .seg { background: color-mix(in srgb, var(--line) 55%, transparent); border-color: transparent; }
.seg > * { display: grid; place-items: center; min-height: calc(var(--h-sm) + 0px); padding: 0 var(--s-3); border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: var(--fs-13); font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--d-1) var(--ease), color var(--d-1) var(--ease); }
.seg > *:hover { color: var(--text); }
.seg > [aria-current], .seg > [aria-pressed="true"], .seg > [aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(11 36 36 / .08); }

.navgroup { display: grid; gap: 2px; }
.navgroup > h2 { padding: 0 var(--s-3) var(--s-1); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 500; color: var(--text-3); }
.navlink { display: flex; align-items: center; gap: var(--s-2); min-height: 34px; padding: 0 var(--s-3); border-radius: var(--r-2); color: var(--text-2); text-decoration: none; font-weight: 500; transition: background var(--d-1) var(--ease); }
.navlink:hover { background: var(--surface-hover); color: var(--text); }
.navlink[aria-current="page"] { background: var(--selected); color: var(--text); font-weight: 600; }
.navlink .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--line); color: var(--text-2); font-size: var(--fs-12); line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.navlink .count.is-warn { background: var(--warn); color: var(--tinte); }
.navlink .lz { margin-left: auto; }
.navback { color: var(--text-3); font-weight: 500; }

.sitepick { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: var(--h-lg); padding: 0 var(--s-3); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-2); cursor: pointer; text-align: left; }
.sitepick .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: var(--fs-13); }
.sitepick .ic { color: var(--text-3); }

.navfoot { margin-top: auto; display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.who { display: grid; gap: 0; padding: 0 var(--s-2); }
.who b { font-weight: 600; }
.who span { color: var(--text-3); font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; }
.navfoot .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 0 var(--s-2); font-size: var(--fs-13); color: var(--text-3); }

/* ---------- Seitenkopf ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--s-3); color: var(--text-3); font-size: var(--fs-13); }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs .ic { width: 12px; height: 12px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-5); }
.pagehead h1 { font-size: var(--fs-26); line-height: var(--lh-26); font-weight: 600; letter-spacing: -.02em; }
.pagehead h1.mono { font-family: var(--mono); letter-spacing: -.03em; overflow-wrap: anywhere; }
.pagehead .title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; }
.pagehead .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
h2.sec { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: 600; letter-spacing: -.01em; }
.sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); margin: var(--s-7) 0 var(--s-3); }
.sechead .meta { color: var(--text-3); font-size: var(--fs-13); }
.sechead .tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

