:root {
    --hintergrund: #111827;
    --karte: #1f2937;
    --text: #f9fafb;
    --text-dunkel: #9ca3af;
    --akzent: #22c55e;
    --gefahr: #ef4444;
    --rahmen: #374151;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--hintergrund);
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.seiteninhalt {
    max-width: 650px;
    margin: 0 auto;
    padding: 24px 16px 110px;
}

h1,
h2,
h3 {
    color: var(--text);
}

p,
li {
    color: var(--text);
}

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

input,
select,
button {
    font-size: 16px;
    padding: 12px;
    margin: 5px 0;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--rahmen);
    background: var(--karte);
    color: var(--text);
}

input::placeholder {
    color: var(--text-dunkel);
}

button {
    background: var(--akzent);
    color: #052e16;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

button.gefahr {
    background: var(--gefahr);
    color: white;
}

li {
    padding: 7px 0;
}

.fehler {
    background: rgba(239, 68, 68, 0.15);
    color: var(--gefahr);
    padding: 12px;
    border-radius: 8px;
}

.meldung {
    background: rgba(34, 197, 94, 0.15);
    color: var(--akzent);
    padding: 12px;
    border-radius: 8px;
}

.karte {
    background: var(--karte);
    border: 1px solid var(--rahmen);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.karte h2 {
    margin-top: 0;
    font-size: 18px;
}

.letzte-saetze {
    background: var(--karte);
    border: 1px solid var(--rahmen);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.inline-form {
    display: inline;
    margin-left: 8px;
}

.hauptnavigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: var(--karte);
    border-top: 1px solid var(--rahmen);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}

.hauptnavigation a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
    color: var(--text-dunkel);
    text-decoration: none;
    font-size: 12px;
}

.hauptnavigation a.aktiv {
    color: var(--akzent);
}

.hauptnavigation .icon {
    font-size: 20px;
}

.bereich {
    background: var(--karte);
    border: 1px solid var(--rahmen);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.bereich:first-of-type {
    margin-top: 24px;
}

.bereich summary {
    padding: 16px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.bereich summary::-webkit-details-marker {
    display: none;
}

.bereich summary::after {
    content: '+';
    float: right;
    font-size: 20px;
    color: var(--text-dunkel);
}

.bereich[open] summary::after {
    content: '–';
}

.bereich > p,
.bereich > ul {
    padding: 0 16px 16px 28px;
    margin: 0;
}
.bereich li {
    padding-left: 4px;
}

.gefahrenbereich summary {
    color: var(--gefahr);
}

.loesch-formular {
    margin-top: 12px;
}

.loesch-formular .gefahr {
    width: 100%;
}

.start-button {
    display: block;
    text-align: center;
    padding: 18px;
    margin: 16px 0;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
}

.kachel {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.12);
}

.kachel h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.kachel p {
    margin: 4px 0;
}
