/* RandomSecurity24 – Verwaltung. Baut auf assets/css/style.css auf. */

.vw { background: var(--bg); }
.vw-breit { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vw-haupt { padding-top: 28px; padding-bottom: 80px; }
.vw h1 { font-size: 1.9rem; margin-bottom: .4em; }
.vw h2 { font-size: 1.2rem; }

.vw-kopf { background: var(--navy); color: #c9d2e6; }
.vw-kopf .vw-breit { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.vw-logo { color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.vw-logo span { color: var(--accent); }
.vw-logo small { font-weight: 600; color: #8f9bb8; margin-left: 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.vw-logo:hover { text-decoration: none; }
.vw-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.vw-nav a { color: #b6c0d8; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.vw-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.vw-nav a.aktiv { background: rgba(255,255,255,.12); color: #fff; }
.vw-wer { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: .88rem; }
.vw-wer span { color: #fff; font-weight: 700; }
.vw-wer a { color: #8fb0ff; }
.vw-wer form { margin: 0; }
.vw-link { background: none; border: 0; padding: 0; font: inherit; color: #8fb0ff; cursor: pointer; text-decoration: underline; }
.vw-haupt .vw-link { color: var(--accent-2); }

.vw-karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.vw-schmal { max-width: 460px; }
.vw-leise { color: var(--ink-mute); font-size: .9rem; }
.vw-zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.vw-zeile h1 { margin: 0; }

.vw-meldung { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; border: 1px solid; }
.vw-ok { background: #e9fbf2; border-color: #a6e9c8; color: #0b5c37; }
.vw-warn { background: #fff7e0; border-color: #ffd77a; color: #6b4b00; }
.vw-bad { background: #ffe8eb; border-color: #ffb3bf; color: #9c1026; }

/* Anmeldung */
.vw-anmelden { max-width: 440px; margin: 40px auto; }
.vw-anmelden h1 { font-size: 1.6rem; }
.vw-karte label, .vw-formular label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 0; }
.vw-karte input:not([type=checkbox]):not([type=radio]):not([type=color]), .vw-formular input:not([type=checkbox]):not([type=radio]):not([type=color]),
.vw-formular textarea, .vw-formular select {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.vw input:focus, .vw textarea:focus, .vw select:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: transparent; }
.vw-karte .btn-block { margin-top: 20px; }
.vw-code { font-family: var(--mono) !important; font-size: 1.4rem !important; letter-spacing: .2em; text-align: center; }
.vw-zurueck { text-align: center; margin-top: 10px; }
.vw-qr { width: 220px; height: 220px; margin: 16px auto; }
.vw-qr svg { width: 100%; height: 100%; border-radius: 10px; border: 1px solid var(--line); }
.vw-geheim { font-family: var(--mono); font-size: 1rem; text-align: center; background: var(--bg); padding: 10px; border-radius: 8px; word-break: break-all; }
.vw-ersatz { border: 2px solid #ffd23f; }
.vw-ersatz ul { columns: 2; font-family: var(--mono); font-size: 1.05rem; padding-left: 20px; }

/* Übersicht */
.vw-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 26px; }
.vw-kachel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); box-shadow: var(--shadow); }
.vw-kachel:hover { text-decoration: none; border-color: var(--ink-mute); }
.vw-kachel b { display: block; font-size: 2.2rem; line-height: 1.1; }
.vw-kachel span { font-weight: 700; }
.vw-kachel em { display: block; font-style: normal; color: var(--ink-mute); font-size: .85rem; margin-top: 6px; }
.vw-protokoll { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.vw-protokoll li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.vw-protokoll li:last-child { border-bottom: 0; }
.vw-protokoll span { color: var(--ink-mute); font-family: var(--mono); font-size: .8rem; margin-right: 10px; }
.vw-maskottchen { display: flex; align-items: center; gap: 18px; }
.vw-maskottchen img { width: 60px; height: 160px; object-fit: contain; object-position: top; flex: none; }
.vw-maskottchen > div { flex: 1; }
.vw-maskottchen h2 { margin: 0 0 4px; }
.vw-maskottchen p { margin: 0; }
@media (max-width: 720px) { .vw-kacheln { grid-template-columns: 1fr; } }

/* Tabellen */
.vw-tabelle-wrap { padding: 0; overflow-x: auto; }
.vw-tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.vw-tabelle th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.vw-tabelle td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vw-tabelle tr:last-child td { border-bottom: 0; }
.vw-tabelle td small { display: block; color: var(--ink-mute); }
.vw-tabelle td a b { color: var(--ink); }
.vw-tabelle form { margin: 0; }
.vw-chip { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: #fff4dc; color: #8a5a00; }
.vw-chip-gruen { background: #e9fbf2; color: #0b7a47; }
.vw-chip-rot { background: #ffe8eb; color: #c4162f; }

/* Formular */
.vw-spalten { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.vw-haupt-spalte, .vw-seiten-spalte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 22px; box-shadow: var(--shadow); }
.vw-seiten-spalte { position: sticky; top: 16px; }
.vw-formular small { font-weight: 400; color: var(--ink-mute); }
.vw-text { font-family: Georgia, "Times New Roman", serif !important; font-size: 1.02rem !important; line-height: 1.6; min-height: 360px; resize: vertical; }
.vw-hilfe { font-size: .84rem; color: var(--ink-soft); background: var(--bg); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.vw-hilfe code, .vw-formular code, .vw-leise code { font-family: var(--mono); font-size: .85em; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.vw-farben { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vw-farben input[type=color] { display: block; width: 100%; height: 40px; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 3px; }
.vw-haken { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600; }
.vw-haken input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.vw-fieldset { border: 1px dashed var(--line); border-radius: 10px; padding: 4px 14px 14px; margin-top: 18px; }
.vw-fieldset legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }
.vw-knoepfe { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.vw-gefahr { display: flex; gap: 12px; justify-content: flex-end; margin-top: 18px; }
.vw-gefahr form { margin: 0; }
.vw-rot { background: #fff; color: #c4162f; border-color: #ffb3bf; }
.vw-rot:hover { background: #ffe8eb; }
@media (max-width: 900px) { .vw-spalten { grid-template-columns: 1fr; } .vw-seiten-spalte { position: static; } }

/* Umschalter zwischen den Bereichen, darunter die Seiten des Bereichs */
.vw-umschalter { display: flex; gap: 4px; background: rgba(255,255,255,.06); padding: 4px; border-radius: 10px; flex-wrap: wrap; }
.vw-umschalter a { color: #b6c0d8; padding: 6px 12px; border-radius: 7px; font-weight: 700; font-size: .88rem; }
.vw-umschalter a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.08); }
.vw-umschalter a.aktiv { background: var(--accent); color: var(--navy); }
.vw-wer a.aktiv { color: #fff; text-decoration: underline; }
.vw-unterkopf { background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.06); }
.vw-unterkopf .vw-breit { min-height: 46px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vw-ansehen { margin-left: auto; color: #8fb0ff; font-size: .88rem; }

/* Konten, Gruppen, Zugang */
.vw-eintrag { border-top: 1px solid var(--line); padding: 14px 0; }
.vw-eintrag:first-of-type { border-top: 0; }
.vw-eintrag-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vw-eintrag-kopf b { font-size: 1.02rem; }
.vw-eintrag-kopf .vw-leise { margin-left: auto; }
.vw-aus { opacity: .6; }
.vw-eintrag details { margin-top: 8px; }
.vw-eintrag summary { cursor: pointer; color: var(--accent-2); font-weight: 600; font-size: .9rem; }
.vw-eintrag details[open] summary { margin-bottom: 6px; }
.vw-fassungen-titel { font-size: 1.05rem; margin: 22px 0 4px; }
.vw-fassung { margin-top: 14px; }
.vw-fassung .vw-haken { margin-top: 8px; }
.vw-fassung summary { cursor: pointer; color: var(--accent-2); font-weight: 600; }
.vw-fassung summary small { color: var(--ink-mute); font-weight: 400; }
.vw-fassung[open] summary { margin-bottom: 6px; }
.vw-fassung textarea { width: 100%; }
.vw-unterformular { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 4px; }
.vw-haken-liste { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.vw-haken-liste label { margin: 0 !important; font-weight: 500 !important; }
.vw-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.vw-matrix { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(200px, 1.4fr); gap: 10px 22px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.vw-matrix:first-of-type { border-top: 0; }
.vw-matrix small { display: block; color: var(--ink-mute); font-family: var(--mono); font-size: .76rem; }
.vw-wahl { display: flex; gap: 4px 14px; flex-wrap: wrap; }
.vw-wahl label { margin: 0 !important; font-weight: 500 !important; }
@media (max-width: 760px) { .vw-zwei, .vw-matrix { grid-template-columns: 1fr; } }
.vw-haken input[type=radio] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
/* In Listen und kleinen Formularen: Knöpfe nebeneinander statt über volle Breite */
.vw-eintrag .vw-knoepfe, .vw-karte > .vw-knoepfe { flex-direction: row; flex-wrap: wrap; }
@media (max-width: 720px) {
  .vw-umschalter { width: 100%; }
  .vw-umschalter a { flex: 1; text-align: center; padding: 6px 4px; font-size: .8rem; white-space: nowrap; }
  .vw-wer { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* BOFH-Redaktion */
.vw-reihenfolge { width: 34px; padding-right: 0 !important; }
.vw-reihenfolge form { display: block; }
.vw-pfeil { display: block; width: 26px; height: 20px; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 5px; font-size: .62rem; cursor: pointer; margin: 1px 0; }
.vw-pfeil:hover:not(:disabled) { border-color: var(--ink-mute); color: var(--ink); }
.vw-pfeil:disabled { opacity: .3; cursor: default; }
.vw-rechts { text-align: right; white-space: nowrap; }
.vw-teilen { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; }
.vw-teilen div { display: flex; gap: 10px; }
.vw-teilen input { flex: 1; font-family: var(--mono); font-size: .88rem; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; }
.vw-kopiert { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 50; }
@media (max-width: 720px) { .vw-rechts { white-space: normal; } .vw-teilen div { flex-direction: column; } }

/* Easter Eggs: Abschnitte und Code in Tabellen */
.vw-haupt > h2 { margin: 30px 0 10px; }
.vw-tabelle code, .vw-leise code { font-family: var(--mono); font-size: .85em; background: var(--bg); padding: 1px 5px; border-radius: 5px; word-break: break-word; }
.vw-tabelle td:last-child > a[target] { white-space: nowrap; }
.vw-akt-status { flex: none; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef3ff; color: #1f3f99; white-space: nowrap; }
.vw-akt-status.laeuft { background: #e9fbf2; color: #0b5c37; }
.vw-akt-status.aus { background: var(--bg); color: var(--ink-mute); }
.vw-aktion h2 { margin: 0 0 2px; }
.vw-akt-form { display: grid; gap: 14px; }
.vw-akt-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.vw-akt-form legend { padding: 0 6px; }
.vw-akt-einfach { padding-bottom: 4px !important; }
.vw-akt-form legend label { display: flex; align-items: center; gap: 6px; margin: 0; }
.vw-akt-form fieldset > label { margin: 0; }
.vw-akt-form fieldset input:not([type=radio]) { width: 110px !important; }
.vw-akt-form select { display: block; margin-top: 6px; font: inherit; font-weight: 400; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.vw-akt-an { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; }
.vw-akt-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.vw-akt-liste { list-style: none; padding: 0; margin: 0; }
.vw-akt-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vw-akt-liste li:last-child { border-bottom: 0; }
.vw-akt-liste .vw-akt-status { margin-left: auto; }
.vw-eingang-filter { margin: 0 0 12px; font-size: .9rem; color: var(--ink-soft); }
