/* --------------------------------------------------
   Grundeinstellungen
   -------------------------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

h1,
h2 {
    line-height: 1.3;
}

h1 {
    margin-top: 0;
}

a {
    color: #145b8d;
}

/* --------------------------------------------------
   Kopfbereich
   -------------------------------------------------- */

.SeitenKopf {
    padding: 24px;
    background: #173b57;
    color: #fff;
}

.SeitenKopf h1 {
    margin-bottom: 8px;
}

.SeitenKopf p {
    margin: 0 0 16px;
}

.SeitenKopf nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --------------------------------------------------
   Hauptbereich
   -------------------------------------------------- */

.SeitenInhalt {
    width: min(1100px, 96%);
    margin: 24px auto;
}

/* --------------------------------------------------
   Wochenbereiche
   -------------------------------------------------- */

.WochenBereich,
.AktuelleWoche {
    margin: 24px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #d8dee5;
    border-radius: 8px;
}

.WochenBereich h2,
.AktuelleWoche h2 {
    margin-top: 0;
    font-size: 1.3rem;
}

/* Aktuelle Woche besonders hervorheben */

.AktuelleWoche {
    border: 2px solid #173b57;
    font-weight: 700;
}

.AktuelleWoche h2 {
    font-weight: 800;
}

/* --------------------------------------------------
   Speiseplantabelle
   -------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 12px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #d8dee5;
}

th {
    background: #e9eef3;
    font-weight: 700;
}

td {
    overflow-wrap: anywhere;
}

/* --------------------------------------------------
   Schaltflächen
   -------------------------------------------------- */

.Schaltflaeche,
button {
    display: inline-block;
    padding: 10px 16px;
    border: 0;
    border-radius: 5px;
    background: #1769aa;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.SchaltflaecheGrau {
    background: #526575;
}

button:hover,
.Schaltflaeche:hover {
    filter: brightness(.92);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #e6a700;
    outline-offset: 2px;
}

#HistorienSchaltflaeche {
    margin-bottom: 4px;
}

/* --------------------------------------------------
   Eingabefelder
   -------------------------------------------------- */

.EingabeZeile {
    margin: 16px 0;
}

.EingabeZeile label,
.AnmeldeBereich label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #aeb9c4;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font: inherit;
}

input:focus {
    border-color: #1769aa;
}

/* --------------------------------------------------
   Anmeldung
   -------------------------------------------------- */

.AnmeldeBereich {
    width: min(420px, 94%);
    margin: 8vh auto;
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 18px #0001;
}

.AnmeldeBereich h1 {
    margin-bottom: 8px;
}

.AnmeldeBereich form {
    display: grid;
    gap: 10px;
}

/* --------------------------------------------------
   Meldungen
   -------------------------------------------------- */

.Fehlermeldung {
    padding: 12px;
    border-radius: 5px;
    background: #fbe9e7;
    color: #8b1e16;
}

.Erfolgsmeldung {
    padding: 12px;
    border-radius: 5px;
    background: #e6f4ea;
    color: #185c2c;
}

/* Versteckte Historie */

[hidden] {
    display: none !important;
}

/* --------------------------------------------------
   Darstellung auf Smartphones
   -------------------------------------------------- */

@media (max-width: 650px) {
    .SeitenKopf {
        padding: 18px;
    }

    .WochenBereich,
    .AktuelleWoche {
        padding: 10px;
        overflow-x: auto;
    }

    th,
    td {
        padding: 8px;
    }

    .SeitenKopf nav {
        flex-direction: column;
        align-items: stretch;
    }

    .Schaltflaeche {
        text-align: center;
    }
}