:root {
    --blau: #2D3C4B;
    --tuerkis: #0E9AA7;
    --amber: #E8A020;
    --bg: #F4F6F7;
    --karte: #FFFFFF;
    --text: #232D36;
    --text-hell: #6B7A85;
    --rand: #E0E5E8;
    --gruen: #2E9E5B;
    --rot: #C0392B;
    --radius: 10px;
    --schatten: 0 1px 3px rgba(45,60,75,0.08), 0 1px 2px rgba(45,60,75,0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--tuerkis); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-header {
    background: var(--blau);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
}

.app-header .marke {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 17px;
}

.app-header .marke .balken { width: 6px; height: 22px; background: var(--amber); border-radius: 2px; }

.app-nav { display: flex; gap: 4px; }
.app-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
}
.app-nav a:hover, .app-nav a.aktiv { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }

.app-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.85); }
.app-user button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.app-user button:hover { background: rgba(255,255,255,0.12); }

.container { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }

.seiten-titel { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.seiten-titel h1 { font-size: 22px; margin: 0; color: var(--blau); }
.seiten-titel p { margin: 4px 0 0; color: var(--text-hell); font-size: 14px; }

.karte {
    background: var(--karte);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    border: 1px solid var(--rand);
    padding: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tuerkis);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.btn:hover { background: #0c8590; text-decoration: none; color: #fff; }
.btn-amber { background: var(--amber); }
.btn-amber:hover { background: #cf8e14; }
.btn-blau { background: var(--blau); }
.btn-blau:hover { background: #22303c; }
.btn-outline { background: transparent; color: var(--blau); border: 1px solid var(--rand); }
.btn-outline:hover { background: var(--bg); color: var(--blau); }
.btn-gefahr { background: var(--rot); }
.btn-gefahr:hover { background: #a5301f; }
.btn-klein { padding: 5px 10px; font-size: 13px; border-radius: 6px; }

.formular label { display: block; font-size: 13px; font-weight: 600; color: var(--blau); margin: 14px 0 5px; }
.formular label:first-child { margin-top: 0; }
.formular input[type=text], .formular input[type=email], .formular input[type=password],
.formular input[type=date], .formular input[type=time], .formular input[type=number],
.formular select, .formular textarea, .formular input[type=file] {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--rand);
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.formular textarea { resize: vertical; min-height: 90px; }
.formular .zeile { display: flex; gap: 16px; }
.formular .zeile > div { flex: 1; }
.formular .hinweis { color: var(--text-hell); font-size: 12px; margin-top: 4px; }

table.tabelle { width: 100%; border-collapse: collapse; }
table.tabelle th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-hell); padding: 10px 12px; border-bottom: 2px solid var(--rand); }
table.tabelle td { padding: 12px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
table.tabelle tr:hover td { background: #FAFBFC; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-vorbereitung { background: #FDF1DC; color: #A9740E; }
.badge-sitzung { background: #DFF3E3; color: #227A46; }
.badge-nachbereitung { background: #E3EEF7; color: #285F8C; }
.badge-abgeschlossen { background: #EDEFF1; color: #5A6772; }
.badge-typ { background: #EAF6F7; color: var(--tuerkis); }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--rand); margin-bottom: 20px; }
.tabs a { padding: 10px 18px; font-size: 14px; color: var(--text-hell); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.aktiv { color: var(--blau); border-bottom-color: var(--amber); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--blau); }

.flash { padding: 12px 16px; border-radius: 7px; margin-bottom: 16px; font-size: 14px; }
.flash-erfolg { background: #E1F5E9; color: #1E7A44; }
.flash-fehler { background: #FBE4E1; color: #A3301E; }

.top-eintrag { border: 1px solid var(--rand); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.top-eintrag h4 { margin: 0 0 6px; font-size: 15px; color: var(--blau); }
.meta { color: var(--text-hell); font-size: 13px; }

.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--blau); }
.login-box { background: #fff; padding: 36px; border-radius: 12px; width: 360px; box-shadow: var(--schatten); }
.login-box .marke { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 700; color: var(--blau); font-size: 18px; }
.login-box .marke .balken { width: 6px; height: 22px; background: var(--amber); border-radius: 2px; }

.leer { text-align: center; padding: 40px 20px; color: var(--text-hell); }

.filterleiste { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filterleiste select { padding: 8px 10px; border-radius: 7px; border: 1px solid var(--rand); background: #fff; font-size: 13px; }

.dok-liste { list-style: none; padding: 0; margin: 0; }
.dok-liste li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rand); font-size: 14px; }
.dok-liste li:last-child { border-bottom: none; }

.phase-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
