/* Melden und eigene Meldungen — Entwurf 12a.
   Setzt auf start.css auf (Grundgerüst, Pillen, .inhalt). Hier steht nur,
   was es dort noch nicht gibt. */

/* ── Kopf ──────────────────────────────────────────────────────────────── */

.melden__kopf { margin: 4px 0 22px; }

.melden__kopf--reihe {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.melden__titel {
    margin: 0;
    font-family: var(--schrift-titel);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--text);
}

.melden__text {
    margin: 7px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-sekundaer);
    max-width: 62ch;
}

.gruppe__titel {
    margin: 30px 0 12px;
    font-family: var(--schrift-titel);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-tertiaer);
}

/* ── Hinweise ──────────────────────────────────────────────────────────── */

.hinweis {
    margin: 0 0 20px;
    padding: 13px 16px;
    border-radius: var(--r-feld);
    font-size: 14.5px;
    line-height: 1.45;
}

.hinweis--fehler { background: var(--geplant-flaeche); color: var(--geplant-text); }
.hinweis--gut    { background: var(--behoben-flaeche); color: var(--behoben-dunkel); }
.hinweis__verweis { color: inherit; font-weight: 600; }

/* ── Schritte ──────────────────────────────────────────────────────────── */

.melden { display: flex; flex-direction: column; gap: 16px; }

.schritt {
    padding: 22px 22px 24px;
    background: var(--grund);
    border: 1px solid var(--linie);
    border-radius: var(--r-karte);
}

.schritt__kopf {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.schritt__zahl {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: var(--r-pille);
    background: var(--akzent);
    font-family: var(--schrift-titel);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-auf-farbe);
}

.schritt__titel {
    margin: 0;
    font-family: var(--schrift-titel);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

/* ── Felder ────────────────────────────────────────────────────────────── */

.feld {
    padding: 8px 16px 11px;
    background: var(--grund);
    border: 1.5px solid var(--linie);
    border-radius: var(--r-feld);
    transition: border-color .12s ease;
}

.feld + .feld, .zeitpaar + .feld, .feld + .zeitpaar { margin-top: 12px; }
.feld:focus-within { border-color: var(--akzent); }

/* Felder, die nur eine Auswahl umschließen, brauchen keinen Rahmen —
   die Kacheln darin sind schon deutlich genug. */
.feld:has(.wahl) { border-color: transparent; padding-left: 0; padding-right: 0; }

.feld__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-schwach);
}

.feld:focus-within .feld__label { color: var(--akzent); }

.feld__eingabe {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16.5px;
    color: var(--text);
}

.feld__eingabe:focus { outline: none; }
.feld__eingabe::placeholder { color: var(--text-schwach); opacity: 1; }

.feld__flaeche { resize: vertical; line-height: 1.5; min-height: 92px; }

.feld__hilfe {
    margin: 9px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-schwach);
}

.feld:has(.wahl) .feld__hilfe { padding: 0 2px; }

/* Ein fehlendes Pflichtfeld beim Weiterblättern */
.feld__eingabe--fehlt { color: var(--kritisch); }
.feld:has(.feld__eingabe--fehlt) { border-color: var(--kritisch); }

/* ── Auswahl als Kacheln ───────────────────────────────────────────────── */

.wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }

.wahl__punkt { position: relative; }

/* Der Knopf bleibt bedienbar und für Vorleseprogramme sichtbar — er liegt
   nur unter der Kachel, statt zu verschwinden. */
.wahl__punkt input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.wahl__text {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1.5px solid var(--linie-kraeftig);
    border-radius: var(--r-pille);
    background: var(--grund);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-sekundaer);
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.wahl__punkt input:checked + .wahl__text {
    background: var(--akzent);
    border-color: var(--akzent);
    color: var(--text-auf-farbe);
}

.wahl__punkt input:focus-visible + .wahl__text {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
}

/* Der Schweregrad trägt seine Farbe, sobald er gewählt ist — dieselbe
   Sprache wie auf der Startseite. */
.wahl__punkt--kritisch input:checked + .wahl__text {
    background: var(--kritisch); border-color: var(--kritisch);
}
.wahl__punkt--hoch input:checked + .wahl__text {
    background: var(--stoerung-ampel); border-color: var(--stoerung-ampel);
}
.wahl__punkt--mittel input:checked + .wahl__text {
    background: var(--geplant-kraeftig); border-color: var(--geplant-kraeftig);
}
.wahl__punkt--info input:checked + .wahl__text {
    background: var(--info); border-color: var(--info);
}

/* ── Zeiten ────────────────────────────────────────────────────────────── */

.zeitpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zeit { display: flex; align-items: baseline; gap: 10px; }
.zeit__uhr { width: auto; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.zeit__tag { width: auto; flex: 1 1 auto; font-size: 14px; color: var(--text-tertiaer); }

/* ── Textbausteine ─────────────────────────────────────────────────────── */

.bausteine { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }

.baustein {
    min-height: 36px;
    padding: 0 13px;
    border: 1px dashed var(--linie-kraeftig);
    border-radius: var(--r-pille);
    background: var(--flaeche);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-tertiaer);
    cursor: pointer;
}

.baustein:hover { border-style: solid; border-color: var(--akzent); color: var(--akzent); }

/* ── Push und Mail: was es noch nicht gibt ─────────────────────────────── */

.kanaele {
    margin-top: 16px;
    padding: 15px 17px;
    border: 1px dashed var(--linie-kraeftig);
    border-radius: var(--r-feld);
    background: var(--flaeche);
}

.kanaele__titel {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-tertiaer);
}

.kanaele__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-sekundaer);
}

/* ── Knöpfe ────────────────────────────────────────────────────────────── */

.knopf {
    display: inline-grid;
    place-items: center;
    min-height: var(--touchziel);
    padding: 0 26px;
    border: 1.5px solid var(--dunkel);
    border-radius: var(--r-pille);
    background: var(--dunkel);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-auf-farbe);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .12s ease;
}

.knopf:hover { background: #1E2E2B; border-color: #1E2E2B; }
.knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

.knopf--stumm {
    background: transparent;
    border-color: var(--linie-kraeftig);
    color: var(--text-sekundaer);
}
.knopf--stumm:hover { background: var(--flaeche); border-color: var(--text-schwach); }

.knopf--klein { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

.melden__fuss { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.melden__fuss .knopf { flex: 1 1 auto; }

/* ── Schrittleiste am Telefon ──────────────────────────────────────────── */

.schrittleiste {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.schrittleiste__stand {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-schwach);
}

.schrittleiste__zurueck, .schrittleiste__weiter {
    min-height: var(--touchziel);
    padding: 0 24px;
    border-radius: var(--r-pille);
    border: 1.5px solid var(--dunkel);
    background: var(--dunkel);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-auf-farbe);
    cursor: pointer;
}

.schrittleiste__zurueck {
    background: transparent;
    border-color: var(--linie-kraeftig);
    color: var(--text-sekundaer);
}

/* ── Eigene Meldungen ──────────────────────────────────────────────────── */

.eigen {
    padding: 19px 21px 21px;
    margin-bottom: 12px;
    background: var(--grund);
    border: 1px solid var(--linie);
    border-radius: var(--r-karte);
}

.eigen--faellig { border-color: var(--geplant-kraeftig); }
.eigen--entwurf { border-style: dashed; background: var(--flaeche); }
.eigen--erledigt { background: var(--flaeche); }

.eigen__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.eigen__nummer {
    font-family: var(--schrift-zahlen);
    font-size: 12.5px;
    color: var(--text-schwach);
}

.eigen__titel {
    margin: 11px 0 0;
    font-family: var(--schrift-titel);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.eigen__ort { margin: 5px 0 0; font-size: 13.5px; color: var(--text-schwach); }
.eigen__text { margin: 9px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-sekundaer); }

.pille--entwurf { background: var(--linie); color: var(--text-tertiaer); }
.pille--behoben { background: var(--behoben-flaeche); color: var(--behoben-dunkel); }
.pille--faellig { background: var(--geplant-kraeftig); color: var(--text-auf-farbe); }

.eigen__knoepfe { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.eigen__form { margin-top: 17px; }
.eigen__zeile { display: flex; gap: 9px; align-items: stretch; margin-top: 5px; }

.eigen__zeile .feld__eingabe {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 15px;
    border: 1.5px solid var(--linie);
    border-radius: var(--r-feld);
    font-size: 15.5px;
}

.eigen__zeile .feld__eingabe:focus { border-color: var(--akzent); }
.eigen__zeile .knopf { flex: 0 0 auto; }

/* ── Verlauf einer Meldung ─────────────────────────────────────────────── */

.verlauf {
    margin: 15px 0 0;
    padding: 0 0 0 15px;
    list-style: none;
    border-left: 2px solid var(--linie);
}

.verlauf__punkt { display: flex; gap: 11px; padding: 5px 0; font-size: 14px; }

.verlauf__wann {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    color: var(--text-schwach);
}

.verlauf__text { color: var(--text-sekundaer); line-height: 1.45; }

/* ── Behoben melden ────────────────────────────────────────────────────── */

.beheben { margin-top: 14px; }

.beheben__auf {
    display: inline-block;
    padding: 7px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--behoben);
    cursor: pointer;
}

.beheben__auf::marker { color: var(--text-schwach); }

/* ── Nichts da ─────────────────────────────────────────────────────────── */

.leer {
    padding: 42px 26px;
    text-align: center;
    background: var(--grund);
    border: 1px solid var(--linie);
    border-radius: var(--r-karte);
}

.leer__titel {
    margin: 0;
    font-family: var(--schrift-titel);
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
}

.leer__text {
    margin: 9px auto 22px;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-sekundaer);
}

/* ── Am Telefon ────────────────────────────────────────────────────────── */

@media (max-width: 899px) {
    .melden__titel { font-size: 23px; }
    .schritt { padding: 19px 17px 21px; }
    .zeitpaar { grid-template-columns: 1fr; }
    .melden__fuss .knopf { flex: 1 1 100%; }
    /* Am Telefon soll eine Kachel breit genug zum sicheren Treffen sein. */
    .wahl--ort .wahl__text, .wahl--grad .wahl__text { min-height: 50px; }
    .eigen__zeile { flex-wrap: wrap; }
    .eigen__zeile .knopf { flex: 1 1 100%; }
}

@media (min-width: 900px) {
    /* Am Schreibtisch stehen alle Schritte untereinander — die Leiste,
       die durchführt, gehört nur ans Telefon. */
    .schrittleiste { display: none; }
}
