/* ==========================================================================
   Führungs-Portal der Berufsfeuerwehr Dresden
   Gemeinsames Aussehen aller Bereiche.
   ========================================================================== */

:root {
    --rot:        #CC0000;
    --rot-dunkel: #A30000;
    --dunkel:     #2c3e50;
    --dunkler:    #1a252f;
    --flaeche:    #f0f2f5;
    --linie:      #e4e7eb;
    --text:       #2c3e50;
    --grau:       #7f8c8d;
    --gruen:      #27ae60;
    --blau:       #2980b9;
    --leiste:     250px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--flaeche);
    color: var(--text);
    font-size: 15px;
}

h1 { font-size: 1.6rem; margin: 0 0 25px; }
h2 { font-size: 1.15rem; margin: 0 0 15px; border-left: 5px solid var(--rot); padding-left: 14px; }
a  { color: var(--blau); }

/* ---------- Seitenleiste ---------------------------------------------- */

.seitenleiste {
    position: fixed;
    top: 0; left: 0;
    width: var(--leiste);
    height: 100vh;
    background: var(--dunkel);
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0,0,0,.1);
    z-index: 50;
}

.seitenleiste-kopf {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    background: var(--dunkler);
}
.seitenleiste-kopf .logo { font-size: 1.9rem; line-height: 1; }
.seitenleiste-kopf strong { display: block; font-size: 1.05rem; color: #fff; }
.seitenleiste-kopf small  { color: #bdc3c7; font-size: .78rem; }

.nav-bereich { flex-grow: 1; overflow-y: auto; padding: 12px 0; }

.nav-gruppe {
    padding: 14px 22px 6px;
    font-size: .7rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7f8fa0;
    font-weight: 700;
}

.nav-liste { list-style: none; margin: 0; padding: 0; }
.nav-liste a {
    display: block;
    padding: 10px 22px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    font-size: .93rem;
    border-left: 3px solid transparent;
    transition: background .2s, padding-left .2s;
}
.nav-liste a:hover { background: rgba(255,255,255,.06); padding-left: 28px; }
.nav-liste a.aktiv { background: var(--rot); border-left-color: #fff; color: #fff; }

.seitenleiste-fuss {
    padding: 16px 22px;
    background: var(--dunkler);
    font-size: .82rem;
    border-top: 1px solid #34495e;
}
.seitenleiste-fuss small  { color: #95a5a6; display: block; }
.seitenleiste-fuss strong { color: #fff; display: block; margin-bottom: 8px; }
.seitenleiste-fuss .abmelden { color: #e74c3c; text-decoration: none; font-weight: 600; }
.seitenleiste-fuss .abmelden:hover { text-decoration: underline; }

/* Menüknopf nur auf schmalen Bildschirmen */
.menue-knopf { display: none; }

/* ---------- Inhaltsbereich -------------------------------------------- */

.inhalt {
    margin-left: var(--leiste);
    padding: 35px 40px;
    min-height: 100vh;
}
.inhalt-weit { padding: 20px; }

.karte {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    margin-bottom: 22px;
}

.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* ---------- Kacheln / Statistik --------------------------------------- */

.kachel-reihe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.kachel {
    background: #fff;
    padding: 20px 22px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    border-left: 5px solid var(--rot);
}
.kachel h3 {
    margin: 0;
    color: var(--grau);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.kachel .wert { font-size: 2rem; font-weight: 700; margin: 8px 0 4px; }
.kachel small { color: var(--grau); }
.kachel.blau  { border-left-color: var(--dunkel); }
.kachel.grau  { border-left-color: var(--grau); }
.kachel.gruen { border-left-color: var(--gruen); }

/* Bereichs-Kacheln auf der Übersicht */
.bereiche {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.bereich {
    display: block;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    text-decoration: none;
    color: var(--text);
    border-top: 4px solid var(--rot);
    transition: transform .15s, box-shadow .15s;
}
.bereich:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.bereich .symbol { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.bereich strong  { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.bereich span    { color: var(--grau); font-size: .88rem; line-height: 1.45; }

/* ---------- Tabellen --------------------------------------------------- */

table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    padding: 13px 14px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--linie);
    color: #555;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--linie); font-size: .92rem; }
tbody tr:hover { background: #fbfcfd; }
.leer-hinweis { text-align: center; padding: 36px; color: #999; }

.marke {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #e3f2fd;
    color: #1976d2;
}

/* ---------- Formulare -------------------------------------------------- */

label { font-weight: 600; display: block; margin-top: 16px; margin-bottom: 4px; font-size: .92rem; }
input[type=text], input[type=password], input[type=file], input[type=number],
input[type=date], select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d5dae0;
    border-radius: 5px;
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--rot);
    box-shadow: 0 0 0 3px rgba(204,0,0,.08);
}
textarea { min-height: 260px; resize: vertical; line-height: 1.6; }

.knopf {
    display: inline-block;
    padding: 11px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    color: #fff;
    background: var(--rot);
    font-family: inherit;
}
.knopf:hover  { background: var(--rot-dunkel); }
.knopf.dunkel { background: var(--dunkel); }
.knopf.dunkel:hover { background: var(--dunkler); }
.knopf.grau   { background: var(--grau); }
.knopf.grau:hover { background: #636e72; }
.knopf.gruen  { background: var(--gruen); }
.knopf.gruen:hover { background: #1e8449; }
.knopf.blau   { background: var(--blau); }
.knopf.blau:hover { background: #216a94; }
.knopf.breit  { width: 100%; padding: 14px; font-size: 1rem; }
.knopf-reihe  { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* ---------- Meldungen und Hinweise ------------------------------------ */

.meldung {
    background: #d4edda;
    color: #155724;
    padding: 13px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}
.meldung.fehler { background: #f8d7da; color: #721c24; border-left-color: var(--rot); }

.hinweis {
    background: #eaf4fb;
    border-left: 4px solid var(--blau);
    padding: 13px 18px;
    border-radius: 6px;
    font-size: .89rem;
    margin-bottom: 20px;
}
.hinweis code { background: #dce9f5; padding: 2px 6px; border-radius: 3px; }

/* ---------- Kopfzeile einer Seite ------------------------------------- */

.seiten-kopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.seiten-kopf h1 { margin: 0; }

/* ---------- Reiter ----------------------------------------------------- */

.reiter { display: flex; gap: 4px; border-bottom: 2px solid var(--linie); margin-bottom: 22px; flex-wrap: wrap; }
.reiter button, .reiter .reiter-knopf {
    padding: 11px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .93rem;
    color: var(--grau);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}
.reiter button:hover { color: var(--text); }
.reiter button.aktiv { color: var(--rot); border-bottom-color: var(--rot); }
.reiter-inhalt { display: none; }
.reiter-inhalt.aktiv { display: block; }

/* ---------- Anmeldeseite ---------------------------------------------- */

body.anmeldung {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
}
.anmelde-karte {
    background: #fff;
    padding: 34px;
    border-radius: 10px;
    border-top: 5px solid var(--rot);
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    margin: 20px;
}
.anmelde-karte .logo { font-size: 2.6rem; text-align: center; }
.anmelde-karte h1 { text-align: center; font-size: 1.3rem; margin: 8px 0 4px; }
.anmelde-karte .unterzeile { text-align: center; color: var(--grau); font-size: .85rem; margin-bottom: 22px; }
.anmelde-karte .fusszeile { text-align: center; color: #aaa; font-size: .72rem; margin-top: 22px; }

/* ---------- Schmale Bildschirme --------------------------------------- */

@media (max-width: 900px) {
    .raster-2 { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .seitenleiste { transform: translateX(-100%); transition: transform .25s; }
    #menue-schalter:checked ~ .seitenleiste { transform: translateX(0); }
    .menue-knopf {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 12px; left: 12px;
        width: 42px; height: 42px;
        background: var(--dunkel);
        color: #fff;
        border-radius: 6px;
        font-size: 1.3rem;
        cursor: pointer;
        z-index: 60;
    }
    .inhalt { margin-left: 0; padding: 70px 18px 30px; }
    .inhalt-weit { padding: 70px 10px 20px; }
}

/* ---------- Druck ------------------------------------------------------ */

@media print {
    .seitenleiste, .menue-knopf, .nicht-drucken { display: none !important; }
    .inhalt { margin-left: 0; padding: 0; }
    body { background: #fff; }
}
