/* Bewerbungsformular – schlicht, ohne externe Abhängigkeiten (keine CDNs = DSGVO-freundlich) */

:root {
    --text: #1a1a1a;
    --text-leise: #5f6368;
    --flaeche: #ffffff;
    --flaeche-2: #f4f4f2;
    --linie: #d9d9d6;
    --akzent: #1f4fd6;
    --akzent-text: #ffffff;
    --fehler: #b3261e;
    --fehler-flaeche: #fdecea;
    --erfolg: #1e6b34;
    --erfolg-flaeche: #e7f5ea;
    --info-flaeche: #eef2fb;
    --radius: 10px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--flaeche);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.seite { max-width: 800px; margin: 0 auto; padding: 32px 16px 48px; }
.seite--breit { max-width: 1100px; }

.kopf { margin-bottom: 28px; }
.kopf h1 { margin: 0; font-size: 2rem; line-height: 1.2; }
.kopf--zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.untertitel { margin: 4px 0 0; font-size: 1.15rem; color: var(--text-leise); }

.abschnitt {
    background: var(--flaeche-2);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.abschnitt h2 { margin: 0 0 16px; font-size: 1.2rem; }

.feld { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.feld:last-child { margin-bottom: 0; }
.feld__label { display: block; margin-bottom: 6px; font-weight: 600; padding: 0; }
.pflicht::after { content: " *"; color: var(--fehler); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="password"], input[type="file"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: inherit;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: 8px;
}
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--akzent) 40%, transparent);
    outline-offset: 1px;
    border-color: var(--akzent);
}
.ungueltig input, .ungueltig select, .ungueltig textarea, input.ungueltig, select.ungueltig, textarea.ungueltig {
    border-color: var(--fehler);
    background: var(--fehler-flaeche);
}

.optionen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-bottom: 8px; }
.optionen__titel { flex-basis: 100%; color: var(--text-leise); font-size: .95rem; }
.option { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.option--block { display: flex; align-items: flex-start; }
.option input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--akzent); }

.zeile { display: flex; gap: 12px; flex-wrap: wrap; }
.zeile__teil { flex: 1 1 140px; display: flex; align-items: stretch; }
.zeile__teil--schmal { flex: 0 1 150px; min-width: 120px; }
.praefix {
    display: flex; align-items: center; padding: 0 12px;
    background: var(--flaeche); border: 1px solid var(--linie); border-right: 0;
    border-radius: 8px 0 0 8px; color: var(--text-leise);
}
.zeile__teil input { border-radius: 0 8px 8px 0; }

.hilfe, .zaehler { display: block; margin-top: 4px; font-size: .875rem; color: var(--text-leise); }
.hinweis { margin: 0 0 16px; color: var(--fehler); font-size: .95rem; }
.hinweis--stark { color: var(--text); font-weight: 600; margin-top: 8px; }
.fehler { margin: 6px 0 0; color: var(--fehler); font-size: .9rem; font-weight: 600; }
.pflicht-hinweis { font-size: .875rem; color: var(--text-leise); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.knopf {
    display: inline-block;
    padding: 12px 22px;
    font: inherit; font-weight: 600;
    color: var(--akzent-text);
    background: var(--akzent);
    border: 1px solid var(--akzent);
    border-radius: 999px;
    cursor: pointer;
}
.knopf:hover { filter: brightness(1.08); }
.knopf:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.knopf--sekundaer { color: var(--akzent); background: var(--flaeche); }
.knopf--klein { padding: 6px 14px; font-size: .875rem; }
.knopfleiste { display: flex; flex-wrap: wrap; gap: 10px; }

.meldung { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.meldung p:first-child { margin-top: 0; }
.meldung p:last-child { margin-bottom: 0; }
.meldung--fehler { background: var(--fehler-flaeche); color: var(--fehler); }
.meldung--erfolg { background: var(--erfolg-flaeche); color: var(--erfolg); font-weight: 600; }
.meldung--info { background: var(--info-flaeche); }

.fortschritt { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fortschritt__balken { flex: 1; height: 10px; background: var(--flaeche-2); border-radius: 999px; overflow: hidden; }
.fortschritt__wert { height: 100%; width: 0; background: var(--akzent); transition: width .2s; }

.fuss { margin-top: 40px; font-size: .875rem; color: var(--text-leise); }
.fuss a { color: inherit; }

.anmelden { max-width: 360px; }

.tabelle-wrap { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border-radius: 8px; }
.tabelle th, .tabelle td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle th { font-size: .875rem; color: var(--text-leise); font-weight: 600; }
.tabelle td:last-child { text-align: right; }

[hidden] { display: none !important; }

@media (max-width: 520px) {
    .kopf h1 { font-size: 1.6rem; }
    .abschnitt { padding: 16px; }
    /* Felder einer Zeile auf dem Handy untereinander, damit genug Platz zum Tippen bleibt */
    .zeile__teil, .zeile__teil--schmal { flex: 1 1 100%; }
    .praefix { min-width: 82px; }
}
