/* Support-Portal im Corporate Design der MES (Guidelines organisation/corporate-design.md), Karten wie im Layout
   meswien von MES.Site (www.mes.wien). Farben nur aus der Richtlinie; Signal sparsam (Akzentstrich, aktueller Schritt). */
:root {
    --mes-blau: #679cff;
    --mes-akzent: #0055aa;
    --mes-dunkel: #222222;
    --mes-hell: #f5f7fb;
    --mes-signal: #ff8a3d;
    --karte-radius: 1rem;
    --karte-grund: #f1f5fb;
    --karte-linie: #dbe4f1;
    --fehler: #b42318;
    --text-leise: #4b5563;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.55;
    color: var(--mes-dunkel); background: #ffffff;
}
a { color: var(--mes-akzent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--mes-blau); outline-offset: 2px;
}
.breite { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Kopf mit Linie in MES Blau */
.kopf { border-bottom: 4px solid var(--mes-blau); background: #ffffff; }
.kopf-inhalt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--mes-dunkel); font-weight: 600; font-size: 1.15em; }
.logo img { display: block; height: 43px; width: auto; }
.logo span { border-left: 2px solid var(--karte-linie); padding-left: 12px; }
.kopf-rechts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.92em; }
.kopf-rechts form { margin: 0; }
.angemeldet { color: var(--text-leise); }
.sprachen a { text-decoration: none; padding: 2px 6px; border-radius: 6px; color: var(--text-leise); }
.sprachen a.aktiv { color: var(--mes-dunkel); font-weight: 700; background: var(--mes-hell); }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; color: var(--mes-akzent); text-decoration: underline; cursor: pointer; }

.inhalt { flex: 1; padding-top: 32px; padding-bottom: 48px; }
h1 { font-size: 2em; line-height: 1.2; margin: 0 0 12px; }
h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; background: var(--mes-signal); border-radius: 2px; }
.einleitung { font-size: 1.1em; color: var(--text-leise); margin: 0 0 24px; }
.art-zeile { margin: 0 0 6px; color: var(--mes-akzent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85em; }
.hinweis { background: var(--mes-hell); border-left: 4px solid var(--mes-blau); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.klein { font-size: 0.9em; color: var(--text-leise); }
.zurueck { text-decoration: none; }

/* Schritte */
.schritte { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; flex-wrap: wrap; font-size: 0.92em; }
.schritte li { display: flex; align-items: center; gap: 8px; color: var(--text-leise); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--mes-hell); }
.schritte .nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ffffff; border: 1px solid var(--karte-linie); font-weight: 700; }
.schritte .erledigt .nr { background: var(--mes-blau); border-color: var(--mes-blau); color: var(--mes-dunkel); }
.schritte .aktuell { color: var(--mes-dunkel); font-weight: 600; }
.schritte .aktuell .nr { background: var(--mes-signal); border-color: var(--mes-signal); color: var(--mes-dunkel); }

/* Kacheln wie die Karten auf www.mes.wien, ganze Karte klickbar */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0 0 24px; }
.kachel {
    display: flex; flex-direction: column; gap: 4px; padding: 20px; min-height: 108px; text-decoration: none; color: var(--mes-dunkel);
    background: var(--karte-grund); border: 1px solid var(--karte-linie); border-radius: var(--karte-radius);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.kachel strong { color: var(--mes-akzent); font-size: 1.12em; }
.kachel span { color: var(--text-leise); }
.kachel:hover { transform: translateY(-3px); border-color: var(--mes-blau); box-shadow: 0 10px 24px rgba(0, 30, 80, 0.12); }
.kachel-status { background: #ffffff; border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .kachel { transition: none; } .kachel:hover { transform: none; } }

/* Formular */
.formular { max-width: 720px; }
fieldset { border: 1px solid var(--karte-linie); border-radius: var(--karte-radius); padding: 16px 20px 4px; margin: 0 0 20px; }
legend { font-weight: 700; color: var(--mes-akzent); padding: 0 6px; }
.feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; flex: 1; min-width: 0; }
.feld-reihe { display: flex; gap: 16px; flex-wrap: wrap; }
.feld-reihe .feld { min-width: 220px; }
label, .label { font-weight: 600; }
input[type=text], input:not([type]), input[type=email], input[type=tel], select, textarea {
    font: inherit; padding: 10px 12px; border: 1px solid #9aa8bd; border-radius: 8px; background: #ffffff; color: var(--mes-dunkel); width: 100%;
}
textarea { resize: vertical; min-height: 160px; }
[aria-invalid=true] { border-color: var(--fehler); }
.fehler { color: var(--fehler); font-size: 0.92em; }
.hilfe { color: var(--text-leise); font-size: 0.92em; }
.auswahl { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.option { font-weight: 400; display: flex; align-items: center; gap: 6px; }
.meldung { background: #fef3f2; border: 1px solid #fecdca; color: var(--fehler); padding: 12px 16px; border-radius: 8px; }

.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.knopf {
    display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    padding: 10px 24px; border-radius: 999px; border: 2px solid var(--mes-akzent); background: var(--mes-akzent); color: #ffffff;
}
.knopf:hover { background: #00468c; border-color: #00468c; }
.knopf-zweit { background: #ffffff; color: var(--mes-akzent); }
.knopf-zweit:hover { background: var(--mes-hell); color: var(--mes-akzent); }

/* Prüfen */
.zusammenfassung { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; background: var(--mes-hell); border-radius: var(--karte-radius); padding: 20px; margin: 0 0 16px; }
.zusammenfassung dt { font-weight: 600; }
.zusammenfassung dd { margin: 0; overflow-wrap: anywhere; }
.mehrzeilig { white-space: pre-wrap; }
@media (max-width: 560px) { .zusammenfassung { grid-template-columns: 1fr; } .zusammenfassung dd { margin-bottom: 8px; } h1 { font-size: 1.6em; } }

.danke .nummer { font-size: 1.25em; }
.danke .nummer strong { background: var(--mes-hell); padding: 2px 10px; border-radius: 6px; border: 1px solid var(--karte-linie); }

.fuss { border-top: 1px solid var(--karte-linie); background: var(--mes-hell); font-size: 0.9em; color: var(--text-leise); }
.fuss-inhalt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
