:root {
    --gruen: #2e8b3f;
    --pink: #e5397f;
    --blau: #2f80d6;
    --gelb: #f5b301;
    --text: #23272f;
    --grau: #6b7280;
    --linie: #e3e6ea;
    --flaeche: #f6f7f9;
    --weiss: #fff;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--flaeche);
    line-height: 1.55;
}

a { color: var(--blau); }

header.top {
    background: var(--weiss);
    border-bottom: 3px solid var(--gruen);
    padding: 0.6rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

header.top .wrap, main.wrap, footer.wrap { max-width: 1080px; margin: 0 auto; }

header.top .zeile { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }

.marke { font-weight: 700; color: var(--gruen); text-decoration: none; font-size: 1.05rem; }

nav.haupt { display: flex; flex-wrap: wrap; gap: 0.25rem; }

nav.haupt a {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
}

nav.haupt a:hover { background: var(--flaeche); }
nav.haupt a.aktiv { background: var(--gruen); color: #fff; }

main.wrap { padding: 1.25rem 1rem 3rem; }

h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; }

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

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; }

.kachel { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 0.9rem; }
.kachel .zahl { font-size: 1.7rem; font-weight: 700; color: var(--gruen); }
.kachel .titel { color: var(--grau); font-size: 0.85rem; }
.kachel.warnung .zahl { color: var(--pink); }

table { width: 100%; border-collapse: collapse; background: var(--weiss); }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--linie); font-size: 0.93rem; vertical-align: top; }
th { background: var(--flaeche); font-weight: 600; }
tr:hover td { background: #fbfcfd; }

.tabelle-scroll { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); }

label { display: block; font-size: 0.88rem; color: var(--grau); margin-bottom: 0.2rem; }

input[type=text], input[type=email], input[type=date], input[type=password], input[type=number], select, textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--linie);
    border-radius: 8px;
    font: inherit;
    background: var(--weiss);
}

.feldgruppe { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; margin-bottom: 0.8rem; }

.knopf {
    display: inline-block;
    background: var(--gruen);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.knopf.zweit { background: var(--weiss); color: var(--text); border: 1px solid var(--linie); }
.knopf.warn { background: var(--pink); }
.knopf:hover { opacity: 0.92; }

.hinweis { padding: 0.7rem 0.9rem; border-radius: 8px; margin-bottom: 0.8rem; border-left: 4px solid var(--gruen); background: #eef7ef; }
.hinweis.fehler { border-color: var(--pink); background: #fdeef4; }
.hinweis.warnung { border-color: var(--gelb); background: #fff8e6; }

.marke-pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.78rem; background: var(--flaeche); border: 1px solid var(--linie); }
.marke-pill.aktiv { background: #eaf6ec; border-color: #bfe2c6; }
.marke-pill.gekuendigt { background: #fdeef4; border-color: #f6c2d7; }

.klein { font-size: 0.85rem; color: var(--grau); }
.rechts { text-align: right; }
.zeile-aktionen { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 0.8rem 0; }

footer.wrap { padding: 1.5rem 1rem 2.5rem; color: var(--grau); font-size: 0.85rem; }

.oeffentlich { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.oeffentlich .kopf { border-bottom: 3px solid var(--pink); margin-bottom: 1.25rem; padding-bottom: 0.75rem; }
.oeffentlich h1 { color: var(--pink); }

@media (max-width: 640px) {
    th, td { font-size: 0.88rem; }
    h1 { font-size: 1.3rem; }
}

/* Logo */
.logo { height: 56px; width: auto; display: block; }
.logo-gross { max-width: 260px; width: 55%; height: auto; display: block; }
.anmeldung-logo { max-width: 220px; margin-bottom: 1rem; }

@media (max-width: 640px) {
    .logo { height: 44px; }
    .logo-gross { width: 70%; }
}
