:root {
    --akzent: #e08a2c;
    --akzent-dunkel: #b96b16;
    --hintergrund: #fdfaf5;
    --flaeche: #ffffff;
    --text: #2b2823;
    --text-schwach: #6b6559;
    --rand: #e7ddc9;
    --gut: #2f7d4f;
    --fehler: #b3261e;
}

* { box-sizing: border-box; }

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

.demo-banner {
    background: var(--akzent-dunkel);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.kopf {
    background: var(--flaeche);
    border-bottom: 3px solid var(--akzent);
}

.kopf-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.schriftzug {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}
.schriftzug small {
    background: var(--akzent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.2rem;
}
.nav a:hover { color: var(--akzent-dunkel); }

.inhalt {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.2rem 1rem 3rem;
}

.fusszeile {
    text-align: center;
    color: var(--text-schwach);
    font-size: 0.85rem;
    padding: 1.5rem 1rem;
}

h1 { font-size: 1.6rem; margin-bottom: 0.3rem; }
h2 { font-size: 1.25rem; }

.meldungen { list-style: none; padding: 0; margin: 0 0 1rem; }
.meldung {
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.meldung-success { background: #e5f3ea; color: var(--gut); border: 1px solid var(--gut); }
.meldung-error { background: #fbe9e7; color: var(--fehler); border: 1px solid var(--fehler); }
.meldung-info { background: #eef3f8; color: #2c5a86; border: 1px solid #2c5a86; }

.karte {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 0.7rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.kinder-liste { display: grid; gap: 0.8rem; grid-template-columns: 1fr; }
@media (min-width: 600px) {
    .kinder-liste { grid-template-columns: 1fr 1fr; }
}
.kind-karte {
    display: block;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-left: 6px solid var(--akzent);
    border-radius: 0.6rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    transition: box-shadow 0.15s;
}
.kind-karte:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

form.formular { display: flex; flex-direction: column; gap: 0.9rem; max-width: 420px; }
.feld { display: flex; flex-direction: column; gap: 0.3rem; }
.feld label { font-weight: 600; font-size: 0.95rem; }
input, select {
    font-size: 1.05rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid var(--rand);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--text);
    min-height: 2.7rem;
}
input:focus, select:focus { outline: 2px solid var(--akzent); border-color: var(--akzent); }

.zeitfelder { display: flex; gap: 0.8rem; }
.zeitfelder .feld { flex: 1; }

.fehlerliste { color: var(--fehler); font-size: 0.9rem; margin: 0.2rem 0 0; padding-left: 1.1rem; }

.knopf {
    display: inline-block;
    background: var(--akzent);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 0.6rem;
    padding: 0.85rem 1.3rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    min-height: 3rem;
}
.knopf:hover { background: var(--akzent-dunkel); }
.knopf.sekundaer {
    background: transparent;
    color: var(--akzent-dunkel);
    border: 2px solid var(--akzent);
}
.knopf.gefahr { background: var(--fehler); }
.knopf.klein { padding: 0.45rem 0.8rem; font-size: 0.9rem; min-height: auto; }

.tabelle-wrapper { overflow-x: auto; }
table.stunden {
    width: 100%;
    border-collapse: collapse;
    background: var(--flaeche);
    font-size: 0.95rem;
}
table.stunden th, table.stunden td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--rand);
    text-align: left;
    white-space: nowrap;
}
table.stunden th { color: var(--text-schwach); font-weight: 700; }

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
}
.status-entwurf { background: #fdf1e0; color: var(--akzent-dunkel); }
.status-versendet { background: #e5f3ea; color: var(--gut); }

.monats-nav { display: flex; gap: 0.7rem; margin-bottom: 1rem; flex-wrap: wrap; }

.login-box { max-width: 380px; margin: 2rem auto; }

.aktionen { display: flex; gap: 0.5rem; }

.hinweis { color: var(--text-schwach); font-size: 0.9rem; }
