:root {
    --rot: #e2001a;
    --rot-dunkel: #b9000b;
    --dunkel: #121215;
    --dunkel-flaeche: #1f1f24;
    --dunkel-linie: #27272d;
    --hell-bg: #f2f1ef;
    --panel: #ffffff;
    --linie: #e3e0db;
    --text: #1b1a19;
    --text-gedimmt: #6d6a66;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--hell-bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--rot); text-decoration: none; }
img { max-width: 100%; }

.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--dunkel);
    color: #f2f2f4;
    border-right: 1px solid var(--dunkel-linie);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-kopf { padding: 22px 20px 16px; border-bottom: 1px solid var(--dunkel-linie);     text-align: center;
}
.sidebar-kopf img { height: 62px; width: auto; }

.menue-knopf {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--dunkel-linie);
    border-radius: 6px;
    color: #f2f2f4;
    font-size: 18px;
    cursor: pointer;
}
.menue-knopf:hover { background: var(--dunkel-flaeche); }

.sidebar-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }

.sidebar-nav a i { width: 20px; margin-right: 11px; text-align: center; font-size: 14px; opacity: .8; }
.admin-inhalt h1 i { color: var(--rot); margin-right: 13px; font-size: .82em; }
.panel h2 i { color: var(--rot); margin-right: 10px; font-size: .9em; }
.sidebar-nav a.aktiv i { opacity: 1; }
.sidebar-fuss a i { width: 18px; margin-right: 9px; text-align: center; font-size: 13px; opacity: .75; }
.btn i { margin-right: 8px; font-size: .92em; }
.btn-klein i { margin-right: 6px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 11px 14px;
    color: #a9a9b0;
    border-radius: 5px;
    font-size: 14.5px;
    font-weight: 600;
    transition: background .15s, color .15s;
}

.sidebar-nav a:hover { background: var(--dunkel-flaeche); color: #fff; }
.sidebar-nav a.aktiv { background: var(--rot); color: #fff; }

.sidebar-nav .badge { margin-left: auto; }

.badge {
    background: var(--rot);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
}
.sidebar-nav a.aktiv .badge { background: rgba(255, 255, 255, .25); }

.sidebar-fuss {
    padding: 16px 20px;
    border-top: 1px solid var(--dunkel-linie);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-fuss a { color: #a9a9b0; font-size: 13.5px; }
.sidebar-fuss a:hover { color: #fff; }

.admin-inhalt { flex: 1; padding: 36px 48px 80px; }
.admin-inhalt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.admin-inhalt > .modal-hintergrund, .admin-inhalt .modal-hintergrund { max-width: none; margin: 0; }

.hinweis-wartung {
    background: rgba(226, 0, 26, .07);
    border: 1px solid rgba(226, 0, 26, .45);
    color: var(--rot-dunkel);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}
.hinweis-wartung a { font-weight: 700; margin-left: 6px; }

.seiten-titel-zeile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.seiten-titel-zeile h1 { font-size: 26px; font-weight: 800; }

.kacheln {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}

.kachel {
    background: var(--panel);
    border: 1px solid var(--linie);
    border-radius: 8px;
    padding: 22px;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(20, 18, 15, .05);
    transition: border-color .15s, box-shadow .15s;
}
.kachel:hover { border-color: #c9c5bf; box-shadow: 0 4px 14px rgba(20, 18, 15, .08); }
.kachel-rot { border-color: var(--rot); }
.kachel-zahl { display: block; font-size: 32px; font-weight: 800; }
.kachel-label { color: var(--text-gedimmt); font-size: 13.5px; }

.panel {
    background: var(--panel);
    border: 1px solid var(--linie);
    border-radius: 8px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(20, 18, 15, .05);
}
.panel h2 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.panel h2:not(:first-child) { margin-top: 30px; }

.leer-text { color: var(--text-gedimmt); font-size: 14.5px; }

.formular label {
    display: block;
    margin-bottom: 16px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-gedimmt);
}

.formular input[type="text"],
.formular input[type="date"],
.formular input[type="email"],
.formular input[type="url"],
.formular input[type="number"],
.formular input[type="password"],
.formular input[type="date"],
.formular .pw-feld input,
.formular select,
.formular textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid #d4d0ca;
    border-radius: 5px;
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    text-transform: none;
    letter-spacing: 0;
}

.formular input:focus, .formular select:focus, .formular textarea:focus {
    outline: none;
    border-color: var(--rot);
    box-shadow: 0 0 0 3px rgba(226, 0, 26, .12);
}

.formular input[type="file"] { display: block; margin-top: 10px; color: var(--text-gedimmt); font-size: 13.5px; text-transform: none; letter-spacing: 0; }

.formular select, .modal select.modal-eingabe {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--linie);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    margin-top: 6px;
}
.formular select:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(226, 0, 26, .1); }

.album-abschnitt { margin: 30px 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
.album-abschnitt .klein-text { text-transform: none; letter-spacing: 0; font-weight: 400; }

.panel .nav-tabelle { margin-bottom: 18px; }
.alben-speichern { margin: 4px 0 28px; }
.nav-tabelle td.rechts { padding-right: 6px; }
.panel h2:not(:first-child) { margin-top: 34px; }
form.upload-zeile + h2, .formular + h2 { margin-top: 34px; }

input[type="file"]::file-selector-button {
    background: var(--rot);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 9px 16px;
    margin-right: 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
input[type="file"]::file-selector-button:hover { background: var(--rot-dunkel); }
input[type="file"]::-webkit-file-upload-button {
    background: var(--rot);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 9px 16px;
    margin-right: 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
input[type="file"]::-webkit-file-upload-button:hover { background: var(--rot-dunkel); }
.formular input[type="color"] {
    width: 54px;
    height: 38px;
    padding: 2px;
    background: #fff;
    border: 1px solid #d4d0ca;
    border-radius: 5px;
    cursor: pointer;
}

.farb-zeile { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.farb-wert { font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; }

.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feld-reihe-drei { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: end; }

.feld-hinweis {
    font-size: 13.5px;
    color: var(--text-gedimmt);
    margin: -6px 0 18px;
}

.logo-vorschau {
    display: inline-block;
    padding: 14px 18px;
    border: 1px solid var(--linie);
    border-radius: 5px;
    background: #fff;
}
.logo-vorschau img { max-height: 110px; width: auto; }

.foto-vorschau {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 5px;
    padding: 5px;
}
.foto-vorschau img { display: block; max-height: 150px; max-width: 260px; width: auto; border-radius: 3px; }

.button-zeile { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.formular label.schalter-zeile,
.schalter-zeile {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 20px;
    width: max-content;
}
.schalter-zeile input { position: absolute; opacity: 0; width: 0; height: 0; }
.schalter {
    display: inline-block;
    flex-shrink: 0;
    width: 56px;
    height: 30px;
    background: #d2cec8;
    border-radius: 15px;
    position: relative;
    transition: background .2s;
}
.schalter::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .2s;
}
.schalter-zeile input:checked + .schalter { background: var(--rot); }
.schalter-zeile input:checked + .schalter::after { transform: translateX(26px); }
.schalter-zeile input:focus-visible + .schalter { box-shadow: 0 0 0 3px rgba(226, 0, 26, .25); }
.schalter-label { font-size: 15px; color: var(--text); font-weight: 700; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: filter .15s, background .15s;
}

.btn-rot { background: var(--rot); color: #fff; }
.btn-rot:hover { background: var(--rot-dunkel); }

.btn-grau { background: #e9e6e1; color: var(--text); border: 1px solid #d4d0ca; }
.btn-grau:hover { background: #dedad4; }

.btn-umriss-rot { background: transparent; color: var(--rot); border: 1px solid var(--rot); }
.btn-umriss-rot:hover { background: rgba(226, 0, 26, .08); }

.btn-klein { padding: 6px 12px; font-size: 12.5px; }
.btn-breit { width: 100%; justify-content: center; }

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #d8d4ce;
    flex-wrap: wrap;
}
.tabs a {
    padding: 10px 18px;
    color: var(--text-gedimmt);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a.aktiv { color: var(--rot); border-bottom-color: var(--rot); }

.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-gedimmt);
    padding: 10px 12px;
    border-bottom: 1px solid var(--linie);
}
.tabelle td { padding: 12px; border-bottom: 1px solid var(--linie); font-size: 14.5px; vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: none; }
.tabelle .rechts { text-align: right; white-space: nowrap; }
.tabelle .rechts .btn { margin-left: 6px; }
.zeile-neu td { background: rgba(226, 0, 26, .05); }
.klein-text { font-size: 13px; color: var(--text-gedimmt); }

.detail-tabelle { width: 100%; margin-bottom: 20px; }
.detail-tabelle th {
    text-align: left;
    width: 220px;
    color: var(--text-gedimmt);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .7px;
    padding: 8px 0;
    vertical-align: top;
}
.detail-tabelle td { padding: 8px 0; font-size: 15px; }

.nachricht-box {
    background: #faf9f7;
    border: 1px solid var(--linie);
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 20px;
    font-size: 15px;
    white-space: pre-line;
}

.status-rot { color: var(--rot); font-weight: 700; font-size: 13px; }
.status-grau { color: var(--text-gedimmt); font-size: 13px; }
.status-gruen { color: #157a43; font-size: 13px; font-weight: 600; }

.mini-bild { height: 44px; width: 66px; object-fit: cover; border-radius: 4px; display: block; }

.inline-form { display: inline-block; }

.meldung { padding: 13px 17px; border-radius: 6px; margin-bottom: 20px; font-size: 14.5px; }
.meldung.erfolg { background: rgba(28, 150, 80, .1); border: 1px solid #1c9650; color: #10613a; }
.meldung.fehler { background: rgba(226, 0, 26, .07); border: 1px solid var(--rot); color: var(--rot-dunkel); }

.upload-zeile { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.zeile-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-gedimmt); }

.formular input[type="date"] { accent-color: var(--rot); }
.formular input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
.upload-zeile input[type="file"] { flex: 1 1 auto; min-width: 260px; color: var(--text-gedimmt); font-size: 13.5px; }
.upload-zeile select {
    padding: 10px 12px;
    border: 1px solid var(--linie);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}
select.modal-eingabe { appearance: auto; }
.upload-zeile input[type="url"], .upload-zeile input[type="text"] {
    padding: 10px 13px;
    background: #fff;
    border: 1px solid #d4d0ca;
    border-radius: 5px;
    color: var(--text);
    font-size: 14px;
    flex: 1;
    min-width: 200px;
    font-family: inherit;
}
.upload-zeile + .tabelle { margin-top: 18px; }

.admin-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.admin-bild { position: relative; }
.admin-bild-vorschau {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    border: 1px solid var(--linie);
}
.bild-loeschen {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(12, 12, 14, .72);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
}
.bild-loeschen:hover { background: var(--rot); }

.nav-tabelle input[type="text"], .nav-tabelle input[type="number"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--linie);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}
.nav-tabelle input[type="number"] { max-width: 110px; }
.nav-tabelle .schmal { width: 130px; }
.nav-tabelle select { width: 100%; padding: 9px 10px; border: 1px solid var(--linie); border-radius: 5px; font-family: inherit; font-size: 14px; background: #fff; }
.nav-tabelle .url-feld { margin-top: 6px; }
.nav-tabelle .url-feld::placeholder { color: #b6b3af; }
.nav-tabelle input:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(226, 0, 26, .1); }

.bild-fuss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.bild-titel-anzeige {
    font-size: 12.5px;
    color: var(--text-gedimmt);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bildDatei { display: none; }

.editor-leiste {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    background: #faf9f7;
    border: 1px solid #d4d0ca;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    padding: 8px;
}

.editor-leiste button {
    background: #fff;
    border: 1px solid #d4d0ca;
    color: var(--text);
    border-radius: 4px;
    padding: 6px 11px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, color .15s;
}
.editor-leiste button:hover { border-color: var(--rot); color: var(--rot); }
.editor-leiste .trenner { width: 1px; height: 22px; background: #d8d4ce; margin: 0 5px; }

.editor-flaeche {
    min-height: 340px;
    max-height: 68vh;
    overflow-y: auto;
    resize: vertical;
    background: #fff;
    border: 1px solid #d4d0ca;
    border-radius: 0 0 5px 5px;
    padding: 18px 20px;
    margin-bottom: 18px;
    font-size: 15.5px;
    outline: none;
}
.editor-flaeche:focus { border-color: var(--rot); }
.editor-flaeche h2 { font-size: 22px; margin: 20px 0 10px; font-weight: 800; }
.editor-flaeche h2:first-child { margin-top: 0; }
.editor-flaeche h3 { font-size: 17.5px; margin: 16px 0 8px; font-weight: 700; }
.editor-flaeche p { margin-bottom: 12px; color: #45423f; }
.editor-flaeche ul, .editor-flaeche ol { margin: 0 0 14px 24px; }
.editor-flaeche li { margin-bottom: 6px; color: #45423f; }
.editor-flaeche a { text-decoration: underline; }
.editor-flaeche img { max-width: 320px; border-radius: 4px; }

.modal-hintergrund {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(15, 14, 13, .55);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-hintergrund.offen { display: flex; }

.modal {
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 10px;
    padding: 28px 30px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(20, 18, 15, .3);
}
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.modal p { color: var(--text-gedimmt); font-size: 14.5px; margin-bottom: 22px; }
.modal-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.modal-eingabe {
    display: block;
    width: 100%;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid #d4d0ca;
    border-radius: 5px;
    color: var(--text);
    font-size: 14.5px;
    font-family: inherit;
    margin-bottom: 20px;
}
.modal-eingabe:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(226, 0, 26, .12); }
textarea.modal-eingabe { min-height: 110px; resize: vertical; }
.modal .formular label { margin-bottom: 6px; }
.modal .formular .modal-eingabe { margin-bottom: 14px; margin-top: 6px; }

.login-body {
    background: #0e0e11;
    color: #f2f2f4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-box {
    background: #17171b;
    border: 1px solid var(--dunkel-linie);
    border-radius: 10px;
    padding: 38px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-logo { height: 90px; width: auto; margin-bottom: 18px; }
.login-box h1 { font-size: 21px; font-weight: 800; margin-bottom: 22px; }
.login-box form { text-align: left; }
.login-box label {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #a9a9b0;
}
.login-box input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    background: #0e0e11;
    border: 1px solid var(--dunkel-linie);
    border-radius: 5px;
    color: #f2f2f4;
    font-size: 15px;
    font-family: inherit;
}
.login-box input:focus { outline: none; border-color: var(--rot); }
.login-box .meldung.fehler { background: rgba(226, 0, 26, .12); color: #ff8a97; }
.login-zurueck {
    display: inline-block;
    margin-top: 22px;
    color: #a9a9b0;
    font-size: 13.5px;
}
.login-zurueck:hover { color: #fff; }

@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: sticky; top: 0; z-index: 400; }
    .sidebar-kopf { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
    .sidebar-kopf img { height: 38px; }
    .menue-knopf { display: inline-flex; }
    .sidebar-nav { display: none; }
    .sidebar-fuss { display: none; }
    .sidebar.offen { max-height: 100vh; overflow-y: auto; }
    .sidebar.offen .sidebar-nav { display: flex; flex-direction: column; }
    .sidebar.offen .sidebar-fuss { display: flex; }
    .admin-inhalt { padding: 22px 18px 60px; }
    .panel { overflow-x: auto; }
    .tabelle { min-width: 720px; }
    .kacheln { grid-template-columns: repeat(2, 1fr); }
    .feld-reihe, .feld-reihe-drei { grid-template-columns: 1fr; }
    .detail-tabelle th { width: 150px; }
}

@media (max-width: 520px) {
    .admin-inhalt { padding: 16px 12px 50px; }
    .seiten-titel-zeile { margin-bottom: 16px; }
    .seiten-titel-zeile h1 { font-size: 21px; }
    .kacheln { grid-template-columns: 1fr; }
    .panel { padding: 18px 16px; }
    .upload-zeile select,
    .upload-zeile input[type="text"],
    .upload-zeile input[type="url"],
    .upload-zeile input[type="file"] { width: 100%; min-width: 0; flex: 1 1 100%; }
    .upload-zeile .btn { width: 100%; justify-content: center; }
    .editor-leiste button { padding: 5px 9px; font-size: 12.5px; }
    .editor-flaeche { padding: 14px; }
    .modal { padding: 20px 18px; max-height: 92vh; overflow-y: auto; }
    .rechte-raster, .modal .rechte-raster { grid-template-columns: 1fr; }
    .detail-tabelle th, .detail-tabelle td { display: block; width: auto; }
    .detail-tabelle th { padding-bottom: 0; }
    .foto-vorschau img { max-width: 100%; }
    .seitennavigation { flex-wrap: wrap; }
}

.statistik-hinweis { margin-top: -8px; margin-bottom: 22px; color: var(--text-gedimmt); }
.kachel-sub { display: block; color: var(--text-gedimmt); font-size: 12.5px; margin-top: 2px; }
.statistik-diagramm {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 240px;
    margin-top: 8px;
}
.statistik-balken {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.statistik-balken i {
    display: block;
    background: var(--rot);
    border-radius: 3px 3px 0 0;
    opacity: .85;
    transition: opacity .15s, background .15s;
}
.statistik-balken:hover i { opacity: 1; background: var(--rot-dunkel); }
.statistik-balken::before {
    content: attr(data-wert);
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    transform: translateX(-50%) translateY(4px);
    padding: 7px 9px;
    border-radius: 4px;
    background: #171719;
    color: #fff;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
}
.statistik-balken:hover::before, .statistik-balken:focus::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.statistik-balken:focus { outline: none; }
.statistik-balken:focus i { opacity: 1; background: var(--rot-dunkel); }
.statistik-balken span {
    display: block;
    height: 18px;
    margin-top: 6px;
    text-align: center;
    font-size: 10.5px;
    color: var(--text-gedimmt);
    white-space: nowrap;
}
.statistik-hot { color: #ef5b24; margin-left: 5px; }
.statistik-listenkopf {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
}
.statistik-listenkopf span { color: var(--text-gedimmt); font-size: 12.5px; font-weight: 700; }
.seiten-auslassung { min-width: 24px; text-align: center; color: var(--text-gedimmt); }
@media (max-width: 620px) {
    .statistik-listenkopf { align-items: flex-start; flex-direction: column; }
}

.rechte-titel {
    display: block;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-gedimmt);
}
.rechte-raster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px 20px;
    margin-bottom: 16px;
}
.rechte-raster label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    cursor: pointer;
}
.rechte-raster input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rot);
    cursor: pointer;
    flex-shrink: 0;
}
.modal .rechte-raster { grid-template-columns: repeat(2, 1fr); margin: 8px 0 20px; }
.rechte-anzeige { display: block; margin-top: 2px; }
@media (max-width: 760px) {
    .rechte-raster { grid-template-columns: repeat(2, 1fr); }
}

.pw-feld { display: block; position: relative; margin-top: 6px; }
.formular .pw-feld input, .login-box .pw-feld input { margin-top: 0; padding-right: 44px; }
.pw-auge {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 7px;
    cursor: pointer;
    color: var(--text-gedimmt);
}
.pw-auge:hover { color: var(--rot); }
.pw-auge svg { width: 19px; height: 19px; }
.login-box .pw-auge { color: #a9a9b0; }
.login-box .pw-auge:hover { color: var(--rot); }
.login-box input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0e0e11 inset;
    -webkit-text-fill-color: #f2f2f4;
    caret-color: #f2f2f4;
}

.meldung .kopier-knopf { margin-left: 12px; vertical-align: baseline; }
.kopier-zeile { display: flex; gap: 8px; align-items: center; }
.kopier-zeile input { flex: 1; min-width: 0; }
.kopier-zeile .btn { flex-shrink: 0; }

.protokoll-kopf {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--linie);
    color: var(--text-gedimmt);
    font-size: 12.5px;
    font-weight: 700;
}
.protokoll-tag {
    margin: 22px 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-gedimmt);
}
.protokoll-liste > .protokoll-tag:first-child { margin-top: 0; }
.protokoll-eintrag {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--linie);
}
.protokoll-text { flex: 1; min-width: 0; }
.protokoll-details {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-gedimmt);
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.protokoll-eintrag:last-child { border-bottom: none; }
.protokoll-icon {
    width: 24px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.protokoll-icon.gruen { color: #1c9650; }
.protokoll-icon.rot { color: var(--rot); }
.protokoll-icon.grau { color: var(--text-gedimmt); }
.protokoll-aktion { display: block; font-size: 14.5px; font-weight: 600; }
.protokoll-meta {
    font-size: 12.5px;
    color: var(--text-gedimmt);
    white-space: nowrap;
    margin-left: auto;
    padding-top: 2px;
    text-align: right;
}
.seitennavigation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--linie);
}
.seitennavigation a {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--linie);
    border-radius: 5px;
    color: var(--text);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}
.seitennavigation a:hover { border-color: var(--rot); color: var(--rot); }
.seitennavigation a.aktiv { border-color: var(--rot); background: var(--rot); color: #fff; }
@media (max-width: 520px) {
    .protokoll-kopf { align-items: flex-start; flex-direction: column; }
    .protokoll-eintrag { flex-wrap: wrap; }
    .protokoll-meta { width: 100%; text-align: left; padding-left: 38px; margin-left: 0; }
}
