/* AVOR Leitstand. The tokens are those of app/static/styles.css (loaded
   there for the public form, not here: its element rules style a form page).
   Kept small: cards, a table, buttons, one primary action per page. */

:root {
    --blue-accent: #016F99;
    --blue-dark-alt: #017197;
    --blue-bright: #02ADE7;
    --blue-gradient: 2, 173, 231;
    --text-dark: #1a1a2e;
    --text-gray: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --bg-footer: #f5f7f9;
    --btn-hover: #2d2d4a;
    --border: rgba(26, 26, 46, 0.14);
    --danger: #b3261e;
}

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

body {
    margin: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-dark);
    background: var(--bg-footer);
    line-height: 1.6;
}

a { color: var(--blue-accent); }
a:hover { color: var(--blue-dark-alt); }

.kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 2rem;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.marke { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-dark); }
.logo { height: 32px; width: auto; }
.marke-text { font-weight: 500; letter-spacing: 0.02em; }
.navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.wer { color: var(--text-light); }
.abmelden { margin: 0; }

.inhalt { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.karte {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.karte--schmal { max-width: 560px; margin-left: auto; margin-right: auto; }
.karte--mittel { max-width: 760px; margin-left: auto; margin-right: auto; }
h1 { font-size: 1.6rem; font-weight: 500; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; font-weight: 500; margin: 0 0 1rem; }

.feld { display: flex; flex-direction: column; gap: 0.4rem; margin: 1.25rem 0; }
.feld label { font-size: 0.9rem; font-weight: 500; }
input[type="text"], input[type="search"], input[type="date"], textarea, select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    color: var(--text-dark);
    background: var(--white);
}
input:focus-visible, textarea:focus-visible, select:focus-visible, .knopf:focus-visible {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(var(--blue-gradient), 0.25);
}

.knopf {
    padding: 0.8rem 1.75rem;
    background: var(--text-dark);
    color: var(--white);
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.knopf:hover { background: var(--btn-hover); }
.knopf:disabled { opacity: 0.6; cursor: progress; }
.knopf--leise { background: transparent; color: var(--blue-accent); border-color: transparent; padding: 0.4rem 0.6rem; }
.knopf--leise:hover { background: rgba(var(--blue-gradient), 0.08); }
/* Destructive actions look different from everything else, on purpose. */
.knopf--gefahr { background: var(--white); color: var(--danger); border-color: var(--danger); }
.knopf--gefahr:hover { background: rgba(179, 38, 30, 0.08); }

.hinweis {
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    background: rgba(var(--blue-gradient), 0.12);
    color: var(--text-dark);
}
.meldung {
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    background: rgba(179, 38, 30, 0.07);
    color: var(--danger);
}
/* --text-gray, not --text-light: at this size the lighter grey stays below
   4.5:1 on white, and these are the sentences that explain a step. */
.leise { color: var(--text-gray); font-size: 0.9rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-gray); }
td form { margin: 0; }
.nummer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.seiten { display: flex; gap: 1.25rem; align-items: center; margin-top: 1rem; }

/* The desk. */
.knopf--zweit { background: var(--white); color: var(--text-dark); }
.knopf--zweit:hover { background: rgba(var(--blue-gradient), 0.08); }
a.knopf { display: inline-block; text-decoration: none; }
a.knopf:hover { color: var(--white); }
a.knopf--gefahr:hover { color: var(--danger); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1rem 0; }
.knopfreihe--eng { margin: 0; gap: 0.5rem; }
.knopfreihe--eng .knopf { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

.filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 1rem; align-items: end; margin-bottom: 1rem; }
.filter .feld { margin: 0.5rem 0; }
.feld--breit { grid-column: span 2; }
.filter-knoepfe { display: flex; gap: 1rem; align-items: center; margin: 0.5rem 0; }

.zurueck { margin: 0 0 1rem; }
.status { font-weight: 500; color: var(--blue-accent); margin-top: -0.5rem; }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.5rem; margin: 1.25rem 0; }
.angaben dt { color: var(--text-gray); font-size: 0.9rem; }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
.aufgedeckt { border: 1px solid var(--blue-bright); border-radius: 12px; padding: 1rem 1.25rem; margin-top: 1rem; }
.nummer--gross { font-size: 1.6rem; letter-spacing: 0.08em; margin: 0.25rem 0; }
.aktion { margin-top: 1rem; }
.warnung { padding: 1rem 1.25rem; border-radius: 12px; background: rgba(179, 38, 30, 0.07); margin-bottom: 1rem; }
.warnung p { margin-top: 0; color: var(--danger); }
.liste { padding-left: 1.2rem; }
.liste li { margin-bottom: 0.6rem; }
.dringend { color: var(--danger); }
/* Wraps rather than widening the list: with nowrap, "Löschwunsch, Frist …"
   pushed the last column out of the card, and the deadline is the one
   thing on the list that must not hide behind a horizontal scroll. */
.marke-klein { display: inline-block; font-size: 0.8rem; padding: 0.1rem 0.5rem; margin: 0.1rem 0; border-radius: 0.6rem; background: rgba(var(--blue-gradient), 0.12); white-space: normal; }
.marke-klein--dringend { background: rgba(179, 38, 30, 0.12); color: var(--danger); }
.markierung { margin: 0.75rem 0; }
.details { color: var(--text-gray); font-size: 0.9rem; overflow-wrap: anywhere; }
.zitat { margin: 0.5rem 0; padding: 0.5rem 1rem; border-left: 3px solid var(--border); white-space: pre-wrap; }
.haken { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.25rem 0; font-weight: 500; }
.haken input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; }
.vorschau { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; background: var(--bg-footer); }
.vorschau-betreff { font-weight: 500; margin: 0 0 0.75rem; }
.vorschau-text { font-family: inherit; white-space: pre-wrap; margin: 0; }
.aendern { margin-top: 1.5rem; }
.aendern summary { cursor: pointer; color: var(--blue-accent); }

@media (max-width: 720px) {
    .kopf { padding: 0.6rem 1rem; }
    .karte { padding: 1.25rem; }
    .knopf { width: 100%; }
    .knopf--leise { width: auto; }
    .feld--breit { grid-column: auto; }
    .angaben { grid-template-columns: 1fr; }
    .angaben dd { margin-bottom: 0.5rem; }
}
