/* NIS2-Selbsttest im Erscheinungsbild von itghosts.de (dunkel, Türkis/Orange, Syne + Space Mono) */
@font-face { font-family: "Syne"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/syne-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/syne-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/syne-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/syne-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/space-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/space-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #030811; --bg2: #07111f; --bg3: #0a1a2d; --card: #081b31; --border: #123657;
  --cyan: #00c7ad; --cyan2: #007a6a; --text: #f3f7ff; --muted: #b6c6d8;
  --orange: #ff6a13; --orange2: #ff8a21;
  --gruen: #22c07a; --gelb: #f2b73a; --rot: #ff5a4d;
  --mono: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Syne", system-ui, sans-serif; background-image: radial-gradient(900px 420px at 80% -80px, rgba(0, 199, 173, .10), transparent 70%); background-repeat: no-repeat; }
a { color: var(--cyan); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px; }
h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.leise { color: var(--muted); } .klein { font-size: .85rem; }

/* Kopf wie auf itghosts.de */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(2, 7, 14, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.kopf-innen { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marke { font-size: 1.6rem; font-weight: 800; letter-spacing: -.07em; color: var(--text); text-decoration: none; line-height: 1; }
.marke span { color: var(--cyan); }
.marke.klein-marke { font-size: 1.3rem; display: inline-block; margin-bottom: 8px; }
.kopf-nav { display: flex; align-items: center; gap: 22px; }
.kopf-nav a:not(.knopf) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.kopf-nav a:not(.knopf):hover { color: var(--cyan); }

.inhalt { max-width: 820px; margin: 0 auto; padding: 36px 24px 64px; }

/* Karten */
.karte { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px 26px; margin: 0 0 20px; }
.einleitung { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.start { padding: 28px 0 8px; }
.start h1 em { font-style: normal; color: var(--cyan); }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.drei .karte { margin: 0; } .drei p { margin: 0; color: var(--muted); font-size: .95rem; }
.drei h2 { font-size: 1.05rem; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: .92rem; padding: 12px 24px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--cyan); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.knopf:hover { background: rgba(0, 199, 173, .1); }
.knopf.primaer { background: linear-gradient(var(--orange2), var(--orange)); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(255, 106, 19, .25); }
.knopf.primaer:hover { transform: translateY(-1px); background: linear-gradient(#ff9a3c, #ff7426); }
.knopf.klein { padding: 8px 16px; font-size: .85rem; }
.knopf.gross { font-size: 1.05rem; padding: 15px 30px; }
a:focus-visible, .knopf:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Formular */
.feld { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin-bottom: 16px; }
.feld input, .feld select { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg2); color: var(--text); width: 100%; }
.feld select option, .feld select optgroup { background: var(--bg2); color: var(--text); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset.frage { border: 1px solid var(--border); }
fieldset.frage legend { font-weight: 700; font-size: 1.08rem; padding: 0; float: left; width: 100%; margin-bottom: 10px; line-height: 1.45; }
fieldset.frage > * { clear: both; }
.nr { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 199, 173, .14); color: var(--cyan); align-items: center; justify-content: center; font: 700 .8rem var(--mono); margin-right: 8px; vertical-align: 1px; }
.erklaerung { margin: 4px 0 16px; color: var(--muted); font-size: .93rem; }
.erklaerung summary { cursor: pointer; color: var(--cyan); font-weight: 700; }
.erklaerung p { margin: 8px 0 0; }
.etikett { display: block; font: 700 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 2px; }
.antworten { display: grid; gap: 8px; }
.antwort { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--bg2); transition: border-color .15s, background .15s; }
.antwort:hover { border-color: var(--cyan2); }
.antwort:has(input:checked) { border-color: var(--cyan); background: rgba(0, 199, 173, .12); }
.antwort input { accent-color: var(--cyan); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.leiste { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(3, 8, 17, .94); padding: 14px 0; margin-top: 8px; border-top: 1px solid var(--border); }
.hinweis.fehler { background: rgba(255, 90, 77, .1); border: 1px solid rgba(255, 90, 77, .5); color: #ffd5d1; border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; }
.hinweis ul { margin: 6px 0 0; padding-left: 20px; }
.haken { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin: 0 0 14px; color: var(--muted); }
.haken input { margin-top: 4px; accent-color: var(--cyan); width: 18px; height: 18px; flex-shrink: 0; }
.honig { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Ergebnis */
.gesamt { display: flex; gap: 24px; align-items: center; }
.gesamt p { margin: 0; }
.ampel-gross { min-width: 116px; height: 116px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: #04101a; }
.ampel-gross.a-gruen, .fuellung.a-gruen, .punkt.a-gruen { background: var(--gruen); }
.ampel-gross.a-gelb, .fuellung.a-gelb, .punkt.a-gelb { background: var(--gelb); }
.ampel-gross.a-rot, .fuellung.a-rot, .punkt.a-rot { background: var(--rot); }
.ampel-gross { box-shadow: 0 0 40px -6px currentColor; }
.ampel-gross.a-gruen { box-shadow: 0 0 40px -8px var(--gruen); } .ampel-gross.a-gelb { box-shadow: 0 0 40px -8px var(--gelb); } .ampel-gross.a-rot { box-shadow: 0 0 40px -8px var(--rot); }
.einstufung ul { margin: 0 0 10px; padding-left: 20px; }
.einstufung.e-rot { border-left: 4px solid var(--rot); } .einstufung.e-gelb { border-left: 4px solid var(--gelb); } .einstufung.e-gruen { border-left: 4px solid var(--gruen); }
.gruppen { list-style: none; margin: 0; padding: 0; }
.gruppen li { display: grid; grid-template-columns: 14px 1fr 170px 54px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.gruppen li:last-child { border-bottom: 0; }
.punkt { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.balken { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; display: block; }
.fuellung { display: block; height: 100%; }
.gruppen-wert { text-align: right; font: 400 .9rem var(--mono); color: var(--muted); }

/* Bericht */
.bericht-kopf { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.schritte { display: grid; gap: 16px; margin-top: 16px; }
.luecke { border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; padding: 18px 20px; background: var(--bg2); }
.luecke.l-rot { border-left-color: var(--rot); } .luecke.l-orange { border-left-color: var(--orange2); } .luecke.l-gelb { border-left-color: var(--gelb); }
.luecke header { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 4px; }
.luecke h3 { flex: 1 1 320px; }
.plakette { font: 700 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: #04101a; white-space: nowrap; }
.p-rot { background: var(--rot); } .p-orange { background: var(--orange2); } .p-gelb { background: var(--gelb); }
.luecke p { margin: 12px 0; }
.treppe { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: stufe; }
.treppe li { position: relative; padding: 10px 14px 10px 46px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; counter-increment: stufe; }
.treppe li::before { content: counter(stufe); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 199, 173, .16); color: var(--cyan); font: 700 .78rem var(--mono); display: flex; align-items: center; justify-content: center; }
.weiter { border-color: var(--cyan2); background: linear-gradient(180deg, rgba(0, 199, 173, .08), var(--card)); }

/* Fuß */
.fuss { border-top: 1px solid var(--border); background: var(--bg2); padding: 32px 24px 28px; color: var(--muted); font-size: .88rem; }
.fuss-innen { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 32px; }
.fuss p { margin: 0; max-width: 46ch; }
.fuss-links { display: flex; gap: 20px; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; }
.fuss-links a { color: var(--text); text-decoration: none; } .fuss-links a:hover { color: var(--cyan); }
.fuss-recht { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border); font-size: .8rem; }

@media (max-width: 720px) {
  .drei, .zwei, .fuss-innen { grid-template-columns: 1fr; }
  .fuss-links { justify-content: flex-start; }
  .gruppen li { grid-template-columns: 14px 1fr 54px; } .gruppen .balken { display: none; }
  .gesamt { flex-direction: column; align-items: flex-start; }
  .kopf-nav { display: none; }
  .burger { display: flex !important; }
  .kopf-innen { padding: 12px 18px; } .inhalt { padding: 24px 18px 48px; }
}

/* Druck und PDF: hell und sparsam */
@media print {
  :root { --bg: #fff; --bg2: #f5f7f9; --bg3: #e9edf1; --card: #fff; --border: #cfd6dd; --text: #111a24; --muted: #4a5663; --cyan: #007a6a; --cyan2: #007a6a; }
  body { background: #fff; color: #111a24; background-image: none; }
  .kopf, .nicht-drucken, .fuss-links { display: none !important; }
  .fuss { background: #fff; padding: 12px 0; }
  .karte, .luecke { break-inside: avoid; }
  .ampel-gross { box-shadow: none; }
  .inhalt { padding: 0; max-width: none; }
}

/* Statistik */
.st-kacheln{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:1rem 0 2rem}
.st-kachel{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1rem 1.2rem}
.st-kachel b{display:block;font:700 2rem/1.1 Syne,sans-serif;color:#2fd5c3}
.st-kachel span{font-size:.9rem;opacity:.8}
.st-tabelle{width:100%;border-collapse:collapse}
.st-tabelle th,.st-tabelle td{text-align:left;padding:.5rem .7rem;border-bottom:1px solid rgba(255,255,255,.1)}
.st-balken{display:block;height:8px;border-radius:4px;background:rgba(255,255,255,.08);min-width:80px}
.st-balken i{display:block;height:100%;border-radius:4px;background:#2fd5c3}

/* Fenster für Kontakt, Impressum, Datenschutz */
dialog.popup{border:1px solid rgba(255,255,255,.18);border-radius:14px;background:#0a1220;color:inherit;padding:0;width:min(960px,94vw);height:min(86vh,900px);overflow:hidden}
dialog.popup[open]{display:flex;flex-direction:column}
dialog.popup::backdrop{background:rgba(2,6,14,.75)}
.popup-kopf{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:.7rem 1rem;border-bottom:1px solid rgba(255,255,255,.12)}
/* Die Menüleiste der eingebetteten Seite wird nach oben aus dem Sichtfeld geschoben */
.popup-box{flex:1;position:relative;overflow:hidden;background:#fff}
.popup-rahmen{position:absolute;left:0;top:-66px;width:100%;height:calc(100% + 66px);border:0;background:#fff}

/* Infofenster und Startknöpfe */
.start-knoepfe{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
dialog.info .info-text{flex:1;overflow:auto;padding:1rem 1.4rem}
dialog.info .info-text h2{font-size:1.1rem;margin:1.4rem 0 .4rem;color:#2fd5c3}
dialog.info .info-text h2:first-child{margin-top:0}
dialog.info .info-text li{margin:.35rem 0}
.info-fuss{display:flex;gap:10px;justify-content:flex-end;padding:.7rem 1rem;border-top:1px solid rgba(255,255,255,.12)}

.info-seite{max-width:780px}
.info-seite h2,.info-text h2{font-size:1.1rem;margin:1.4rem 0 .4rem;color:#2fd5c3}
.info-seite li{margin:.35rem 0}

/* Menü wie auf itghosts.de */
.kopf-nav { gap: 20px; }
.kopf-nav a.nav-nis2, .kopf-mm a.nav-nis2 { color: #ff8a21 !important; font-weight: 700; }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.kopf-mm { display: flex; flex-direction: column; padding: 4px 18px 14px; border-top: 1px solid var(--border); }
.kopf-mm[hidden] { display: none; }
.kopf-mm a { color: var(--text); text-decoration: none; padding: 11px 0; font-size: 1.02rem; }
.kopf-mm a.nav-kontakt { color: var(--cyan); font-weight: 700; }
@media (min-width: 721px) { .kopf-mm { display: none !important; } }

/* Inhaltsseiten zum Gesetz */
.lesen{max-width:860px}
.lesen h3{font-size:1.05rem;margin:1.4rem 0 .4rem;color:var(--cyan)}
.lesen li{margin:.4rem 0}
.lesen .karte p:last-child,.lesen .karte ul:last-child,.lesen .karte ol:last-child{margin-bottom:0}
.tabelle-rahmen{overflow-x:auto;margin:1rem 0}
.tabelle{width:100%;border-collapse:collapse;font-size:.95rem}
.tabelle th,.tabelle td{border:1px solid var(--border);padding:10px 12px;text-align:left;vertical-align:top}
.tabelle th{background:var(--bg3);color:var(--text)}
.lesen-links{margin:1.2rem 0 .6rem}
