/* Wolf Montage nach dem Design System „Wolf Montage" (Tokens aus wolf-montage-verkehrssicherung.de/css/basic.css
   plus App-Ergänzungen): kantig und flach, Rot und Grau, Arial, große Touchflächen für Handschuhe.
   Einzige Abweichung: --wolf-rot-hell unterscheidet im Zeitbalken 20 % von 40 % (Prototyp). */
:root {
    --wolf-rot: #790e11;
    --wolf-rot-signal: #e00000;
    --wolf-rot-hell: #c9787a;
    --wolf-auf-rot: #ffffff;
    --wolf-grau: #707173;
    --wolf-hintergrund: #eaeaea;
    --wolf-flaeche: #ffffff;
    --wolf-text: #3c3c3c;
    --wolf-text-zwei: #3c3c3c;
    --wolf-nebentext: #5f5f5f;
    --wolf-linie: #d9d9d9;
    --wolf-linie-tabelle: #bdbdbd;
    --wolf-schrift: Arial, Helvetica, sans-serif;
    --wolf-rundung: 0;
    --wolf-nav-abstand: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* Kommunikationsbereiche: dieselben Markenfarben, übersichtliche Karten und feste mobile Navigation. */
.komm-app { min-height: 100dvh; background: #f6f5f3; padding-bottom: var(--wolf-nav-abstand); }
.komm-app .wolf-kopf { background: white; }
.komm-inhalt { max-width: 820px; margin: auto; padding: 28px 22px; }
.komm-inhalt h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.18; margin: 12px 0 25px; color: #252525; }
.komm-inhalt h2 { font-size: 21px; line-height: 1.3; margin: 8px 0 12px; color: #252525; }
.komm-datum, .komm-inhalt small { color: var(--wolf-nebentext); font-size: 14px; line-height: 1.5; }
.komm-karte { background: #fff; border: 1px solid #e6e2df; border-radius: 14px; padding: 22px; margin: 16px 0; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 3px 12px #30202006; overflow-wrap: anywhere; }
.komm-karte p { margin: 0; line-height: 1.5; }
.komm-karte label, .komm-form label { font-size: 15px; font-weight: bold; }
.komm-karte details { padding: 10px 0; }
.komm-karte summary { min-height: 30px; cursor: pointer; }
.komm-knopf { min-height: 52px; padding: 14px 18px; background: var(--wolf-rot); border: 1px solid var(--wolf-rot); border-radius: 9px; color: white; font: bold 17px var(--wolf-schrift); text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.komm-knopf:hover { color: white; background: #580a0c; }
.komm-knopf--hell { background: white; color: var(--wolf-rot); }
.komm-knopf--hell:hover { color: var(--wolf-rot); background: #faf2f2; }
.komm-knopf:disabled { opacity: .55; cursor: wait; }
.komm-raster { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.komm-raster > .komm-karte { margin-top: 0; }
.komm-aktion { text-decoration: none; color: var(--wolf-text); min-height: 110px; justify-content: center; }
.komm-aktion strong { font-size: 19px; color: var(--wolf-rot); }
.komm-aktion span { color: var(--wolf-nebentext); font-size: 14px; }
.komm-zahl { font-size: 34px; font-weight: bold; color: var(--wolf-rot); margin: 8px 0; }
.komm-zahl small { font-size: 17px; font-weight: normal; }
.komm-status { color: var(--wolf-rot); }
.komm-mitteilung { text-decoration: none; color: var(--wolf-text); }
.komm-mitteilung:hover { color: var(--wolf-text); border-color: var(--wolf-rot); }
.komm-neu { border-left: 4px solid var(--wolf-rot); }
.komm-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.komm-badge { border-radius: 20px; padding: 5px 10px; font-size: 13px; background: #f2e6e7; color: var(--wolf-rot); }
.komm-erfolg { border: 1px solid #a8c6a4; background: #eff6ed; padding: 16px; border-radius: 9px; }
.komm-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.komm-form input[type="date"] { min-width: 0; max-width: 100%; }
.komm-karte .wolf-eingabe, .komm-form .wolf-eingabe { border: 1px solid #aaa; border-radius: 7px; min-height: 48px; width: 100%; }
.komm-tag { border-bottom: 1px solid #eee; padding-bottom: 10px; }
.komm-werte { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; margin: 0; }
.komm-werte dt, .komm-werte dd { margin: 0; }
.komm-werte dd { font-weight: bold; }
.komm-links { display: grid; gap: 12px; }
.komm-links a { padding: 20px; background: white; border-radius: 10px; text-decoration: none; border: 1px solid #e6e2df; }
.komm-navigation { position: sticky; bottom: 0; display: flex; justify-content: space-around; gap: 4px; background: #fff; border-top: 1px solid #ddd; padding: 9px 8px max(9px, env(safe-area-inset-bottom)); z-index: 10; }
.komm-app > .komm-navigation, .wolf-handy > .komm-navigation, .wolf-buero .komm-navigation { position: fixed; left: 0; right: 0; }
.wolf-handy:has(> .komm-navigation), .wolf-buero:has(.komm-navigation) { padding-bottom: var(--wolf-nav-abstand); }
@media print {
    .komm-navigation { display: none; }
}
.komm-navigation a { flex: 1; min-width: 0; min-height: 52px; padding: 3px 1px; max-width: 180px; text-align: center; color: #626262; font-size: 14px; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 5px; border-bottom: 3px solid transparent; }
@media (max-width: 500px) {
    .komm-navigation { gap: 2px; padding-inline: 4px; }
    .komm-navigation a { font-size: clamp(9px, 2.55vw, 12px); }
}
.komm-navigation a.active { color: var(--wolf-rot); border-color: var(--wolf-rot); font-weight: bold; }
.komm-navigation svg { width: 24px; height: 24px; }
.komm-navigation__text { max-width: 100%; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 420px) { .komm-inhalt { padding: 20px 14px; } .komm-karte { padding: 17px; } .komm-raster { gap: 10px; } .komm-aktion strong { font-size: 17px; } .komm-knopf { font-size: 16px; padding: 12px; } }

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

html, body {
    margin: 0;
    background: var(--wolf-hintergrund);
    color: var(--wolf-text);
    font-family: var(--wolf-schrift);
}

a {
    color: var(--wolf-rot);
}

a:hover {
    color: var(--wolf-rot-signal);
}

button, input, select {
    font-family: var(--wolf-schrift);
}

:focus-visible {
    outline: 2px solid var(--wolf-rot);
    outline-offset: 2px;
}

/* ---------- Rahmen ---------- */

.wolf-handy {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--wolf-hintergrund);
}

.wolf-inhalt {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wolf-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: var(--wolf-flaeche);
    border-bottom: 4px solid var(--wolf-rot);
}

.wolf-kopf__marke {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wolf-kopf__logo {
    height: 44px;
    width: auto;
    display: block;
}

.wolf-kopf__bereich {
    font-size: 14px;
    color: var(--wolf-nebentext);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wolf-kopf__person {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.wolf-kopf__name {
    font-size: 15px;
    font-weight: bold;
}

.wolf-kopf__rolle {
    font-size: 12px;
    color: var(--wolf-nebentext);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wolf-statusleiste {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: var(--wolf-text);
    color: #ffffff;
    font-size: 14px;
}

.wolf-statusleiste__punkt {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: #ffffff;
}

.wolf-statusleiste__titel {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wolf-demo {
    padding: 10px 20px 16px;
    font-size: 13px;
    color: var(--wolf-nebentext);
    text-align: center;
}

/* ---------- Typografie ---------- */

.wolf-titel {
    margin: 0;
    font-size: 26px;
    font-weight: normal;
    color: var(--wolf-rot);
    text-transform: uppercase;
}

.wolf-ueberzeile, .wolf-label, .wolf-zwischentitel {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wolf-ueberzeile {
    color: var(--wolf-nebentext);
}

.wolf-label, .wolf-zwischentitel {
    margin: 0;
    font-weight: bold;
    color: var(--wolf-text-zwei);
}

.wolf-neben {
    color: var(--wolf-nebentext);
}

.wolf-kopfgruppe {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wolf-zahl {
    font-variant-numeric: tabular-nums;
}

/* ---------- Flächen ---------- */

.wolf-karte {
    background: var(--wolf-flaeche);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wolf-karte--eng {
    padding: 0;
    gap: 0;
}

.wolf-zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--wolf-linie);
}

.wolf-zeile:last-child {
    border-bottom: none;
}

.wolf-zeile__wert {
    font-weight: bold;
    text-align: right;
}

.wolf-zwei-spalten {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wolf-feld {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wolf-hinweis {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
}

.wolf-hinweis svg {
    flex-shrink: 0;
}

.wolf-warnung {
    padding: 12px 14px;
    background: var(--wolf-flaeche);
    border: 2px solid var(--wolf-rot);
    color: var(--wolf-text);
    font-size: 14px;
    line-height: 1.4;
}

/* ---------- Eingaben ---------- */

.wolf-eingabe {
    width: 100%;
    height: 56px;
    padding: 0 12px;
    font-size: 17px;
    color: var(--wolf-text);
    background: var(--wolf-flaeche);
    border: 2px solid var(--wolf-text-zwei);
    border-radius: var(--wolf-rundung);
}

.wolf-eingabe--zeit {
    height: 52px;
    font-size: 20px;
    font-weight: bold;
}

.wolf-eingabe--klein {
    height: 44px;
    font-size: 15px;
    padding: 0 10px;
}

/* ---------- Schaltflächen ---------- */

.wolf-knopf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: var(--wolf-rundung);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
}

.wolf-knopf:disabled {
    cursor: default;
    opacity: 0.6;
}

.wolf-knopf--haupt {
    height: 72px;
    background: var(--wolf-rot);
    color: var(--wolf-auf-rot);
    border: none;
    font-size: 22px;
}

@media (hover: hover) {
    .wolf-knopf--haupt:hover:not(:disabled) {
        background: var(--wolf-text);
        color: #ffffff;
    }
}

.wolf-knopf--gross {
    height: 88px;
}

.wolf-knopf--start {
    height: 128px;
    flex-direction: column;
    font-size: 24px;
}

.wolf-knopf__unterzeile {
    font-size: 13px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: #ffffff;
}

.wolf-knopf--zweit {
    height: 56px;
    background: var(--wolf-flaeche);
    color: var(--wolf-text);
    border: 2px solid var(--wolf-text);
    font-size: 16px;
}

.wolf-knopf--zweit:hover:not(:disabled) {
    color: var(--wolf-rot);
    border-color: var(--wolf-rot);
}

.wolf-knopf--text {
    width: auto;
    min-height: 44px;
    padding: 0 4px;
    background: none;
    border: none;
    color: var(--wolf-rot);
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
}

.wolf-aktionen {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

/* ---------- Schichtlisten ---------- */

.wolf-schichtzeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--wolf-linie);
}

.wolf-schichtzeile:last-child {
    border-bottom: none;
}

.wolf-schichtzeile__titel {
    font-size: 15px;
    font-weight: bold;
}

.wolf-schichtzeile__neben {
    margin-top: 4px;
    font-size: 13px;
    color: var(--wolf-nebentext);
}

/* ---------- Laufende Schicht ---------- */

.wolf-uhr {
    padding: 24px 16px;
    align-items: center;
    gap: 6px;
}

.wolf-uhr__zeit {
    font-size: 60px;
    font-weight: bold;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* ---------- Zeitbalken ---------- */

.wolf-balken {
    display: flex;
    height: 22px;
}

.wolf-balken__teil {
    min-width: 2px;
}

.wolf-band--normal { background: var(--wolf-grau); }
.wolf-band--z20 { background: var(--wolf-rot-hell); }
.wolf-band--z40 { background: var(--wolf-rot); }
.wolf-band--pause {
    background: var(--wolf-flaeche);
    border-top: 2px dashed var(--wolf-nebentext);
    border-bottom: 2px dashed var(--wolf-nebentext);
}

.wolf-balken__achse {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--wolf-nebentext);
    font-variant-numeric: tabular-nums;
}

.wolf-legende {
    display: flex;
    flex-direction: column;
    font-size: 15px;
}

.wolf-legende__zeile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--wolf-linie);
}

.wolf-legende__zeile:last-child {
    border-bottom: none;
}

.wolf-legende__farbe {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wolf-legende__farbe.wolf-band--pause {
    border: 2px dashed var(--wolf-nebentext);
}

.wolf-legende__text {
    flex-grow: 1;
}

.wolf-ergebnis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.wolf-ergebnis__name {
    font-size: 12px;
    color: var(--wolf-nebentext);
}

.wolf-ergebnis__wert {
    margin-top: 4px;
    font-size: 18px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

/* ---------- Pausenliste beim Bearbeiten ---------- */

.wolf-pause {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 12px;
    align-items: end;
}

.wolf-pause__entfernen {
    height: 52px;
    width: 44px;
    background: none;
    border: none;
    color: var(--wolf-rot);
    cursor: pointer;
}

/* ---------- Büro ---------- */

.wolf-buero {
    min-height: 100vh;
}

.wolf-buero .wolf-kopf {
    padding: 12px 32px;
    flex-wrap: wrap;
}

.wolf-buero .wolf-kopf__logo {
    height: 48px;
}

.wolf-buero__inhalt {
    max-width: 1360px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wolf-buero__inhalt .wolf-titel {
    font-size: 30px;
}

.wolf-filter {
    background: var(--wolf-flaeche);
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.wolf-filter .wolf-feld {
    flex: 1 1 180px;
    min-width: 0;
    max-width: 100%;
}

.wolf-filter .wolf-eingabe {
    min-width: 0;
    max-width: 100%;
}

.wolf-filter .wolf-knopf {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
}

.wolf-tabelle-rahmen {
    min-width: 0;
    max-width: 100%;
    background: var(--wolf-flaeche);
    overflow-x: auto;
}

.wolf-tabelle {
    width: 100%;
    min-width: 1280px;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.wolf-tabelle th, .wolf-tabelle td {
    padding: 0 8px;
    text-align: left;
    vertical-align: middle;
}

.wolf-tabelle th:first-child, .wolf-tabelle td:first-child {
    padding-left: 16px;
}

.wolf-tabelle th:last-child, .wolf-tabelle td:last-child {
    padding-right: 16px;
}

.wolf-tabelle thead th {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--wolf-text);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--wolf-text-zwei);
    vertical-align: bottom;
}

.wolf-tabelle thead th span {
    display: block;
    font-weight: normal;
    color: var(--wolf-nebentext);
}

.wolf-tabelle tbody td {
    height: 46px;
    border-bottom: 1px solid var(--wolf-linie-tabelle);
}

.wolf-tabelle tfoot td {
    height: 52px;
    font-weight: bold;
}

.wolf-tabelle .rechts {
    text-align: right;
}

.wolf-tabelle .summe {
    color: var(--wolf-rot);
}

.wolf-tabelle .leer {
    padding: 28px 16px;
    color: var(--wolf-nebentext);
    font-size: 15px;
}

.wolf-kopf__abmelden {
    padding: 0;
    min-height: 24px;
    background: none;
    border: none;
    color: var(--wolf-rot);
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.wolf-unsichtbar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.wolf-marke {
    display: inline-block;
    min-width: 28px;
    padding: 2px 6px;
    background: var(--wolf-rot);
    color: var(--wolf-auf-rot);
    font-weight: bold;
    text-align: center;
}

/* ---------- Monatsbericht ---------- */

.wolf-tabelle--monat tbody td {
    height: 38px;
}

.wolf-zeile--frei td {
    background: var(--wolf-linie);
    font-weight: bold;
}

.wolf-fahrstatus { display: inline-block; padding: .12rem .35rem; border-radius: .25rem; font-weight: 700; }
.wolf-fahrstatus.gelb { background: #fff0a3; color: #4f3700; }
.wolf-fahrstatus.orange { background: #973c00; color: #fff; }
.wolf-fahrstatus.lila { background: #603186; color: #fff; }
.wolf-fahrstatus.rot { background: #a11321; color: #fff; }

.wolf-rollen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    border: none;
}

.wolf-rollen legend {
    width: 100%;
    padding: 0;
    margin-bottom: 2px;
}

/* ---------- iPhone/Android: Statusleiste und Home-Balken nicht überdecken ---------- */

.wolf-kopf {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
}

.wolf-handy {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wolf-buero .wolf-kopf {
    padding-left: calc(32px + env(safe-area-inset-left, 0px));
    padding-right: calc(32px + env(safe-area-inset-right, 0px));
}

.wolf-standorthilfe {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--wolf-linie);
    font-size: 14px;
    line-height: 1.4;
}

.wolf-standorthilfe p,
.wolf-standorthilfe ul {
    margin: 0;
}

.wolf-standorthilfe ul {
    padding-left: 18px;
}

/* ---------- Schicht bearbeiten (Handy und Büro) ---------- */

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

.wolf-bearbeitung__felder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wolf-bearbeitung__baustelle {
    grid-column: 1 / -1;
}

.wolf-bearbeitung--buero {
    max-width: 920px;
    gap: 12px;
    border-left: 6px solid var(--wolf-rot);
}

.wolf-bearbeitung--buero .wolf-bearbeitung__felder {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.wolf-bearbeitung--buero .wolf-bearbeitung__baustelle {
    grid-column: auto;
}

.wolf-bearbeitung--buero .wolf-pause {
    max-width: 560px;
}

.wolf-bearbeitung--buero .wolf-pause__entfernen {
    height: 44px;
}

/* ---------- Sprachwahl der Monteur-App ---------- */

.wolf-sprachwahl {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 6px;
}

.wolf-sprachwahl__knopf {
    min-width: 40px;
    min-height: 32px;
    padding: 0 8px;
    background: var(--wolf-flaeche);
    border: 1px solid var(--wolf-linie-tabelle);
    border-radius: var(--wolf-rundung);
    color: var(--wolf-text);
    font: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.wolf-sprachwahl__knopf--aktiv {
    background: var(--wolf-rot);
    border-color: var(--wolf-rot);
    color: var(--wolf-auf-rot);
}

/* ---------- Zugangszettel (Mitarbeiter-Import) ----------
   A4 hoch, 10 mm Rand: nutzbar 190 × 277 mm. Je Seite 2 × 4 Zettel à 93 × 67 mm, damit nie einer geteilt wird. */

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

.wolf-zettelseite {
    display: grid;
    grid-template-columns: repeat(2, 93mm);
    grid-template-rows: repeat(4, 67mm);
    gap: 3mm 4mm;
    width: 190mm;
}

.wolf-zettel {
    box-sizing: border-box;
    height: 67mm;
    overflow: hidden;
    background: var(--wolf-flaeche);
    border: 1px dashed var(--wolf-linie-tabelle);
    border-left: 4mm solid var(--wolf-rot);
    padding: 3mm 3mm 3mm 4mm;
    display: flex;
    gap: 3mm;
    font-size: 9pt;
    line-height: 1.3;
}

.wolf-zettel__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2mm;
}

.wolf-zettel__kopf {
    font-size: 6.5pt;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wolf-nebentext);
}

.wolf-zettel__name {
    font-size: 12pt;
    font-weight: bold;
    margin-bottom: 1mm;
}

.wolf-zettel__zeile {
    display: flex;
    flex-direction: column;
}

.wolf-zettel__zeile span {
    font-size: 7pt;
    color: var(--wolf-nebentext);
}

.wolf-zettel__zeile strong {
    overflow-wrap: anywhere;
}

.wolf-zettel__kennwort {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12pt;
    letter-spacing: 0.08em;
}

.wolf-zettel__hinweis {
    margin-top: auto;
    font-size: 6.5pt;
    color: var(--wolf-nebentext);
    line-height: 1.3;
}

.wolf-zettel__qr {
    width: 30mm;
    height: 30mm;
    align-self: center;
    image-rendering: pixelated;
}

/* ---------- Mein Einsatz (Karte, Änderungen, Wischen) ---------- */

.wolf-einsatz {
    gap: 8px;
    border-left: 6px solid var(--wolf-rot);
}

.wolf-einsatz--entfallen {
    border-left-color: var(--wolf-grau);
    color: var(--wolf-nebentext);
}

.wolf-einsatz__aenderung {
    padding: 8px 10px;
    background: var(--wolf-rot);
    color: var(--wolf-auf-rot);
    font-size: 15px;
    font-weight: bold;
    line-height: 1.35;
}

.wolf-einsatz--entfallen .wolf-einsatz__aenderung {
    background: var(--wolf-grau);
}

/* Geänderte Angabe: hell hinterlegt mit roter Kante, damit sie beim Überfliegen auffällt. */
.wolf-einsatz__neu {
    margin: 0 -8px;
    padding: 3px 8px;
    background: #f6e7e7;
    background: color-mix(in srgb, var(--wolf-rot) 10%, var(--wolf-flaeche));
    box-shadow: inset 4px 0 0 var(--wolf-rot-signal);
}

.wolf-wischreiter {
    display: flex;
    gap: 8px;
}

.wolf-wischreiter__reiter {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--wolf-text-zwei);
    background: var(--wolf-flaeche);
    color: var(--wolf-text);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.wolf-wischreiter__reiter[aria-current="true"] {
    background: var(--wolf-rot);
    border-color: var(--wolf-rot);
    color: var(--wolf-auf-rot);
}

.wolf-wischreiter__punkt {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wolf-rot-signal);
    border: 2px solid var(--wolf-flaeche);
}

/* Nebeneinander mit Einrasten; der nächste Einsatz schaut am Rand hervor, damit man sieht, dass es weitergeht. */
.wolf-wischen {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.wolf-wischen::-webkit-scrollbar {
    display: none;
}

.wolf-wischen__seite {
    flex: 0 0 calc(100% - 28px);
    display: flex;
    scroll-snap-align: start;
}

.wolf-wischen__seite > .wolf-karte {
    flex: 1;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    html,
    body {
        background: #ffffff !important;
    }

    .wolf-kopf,
    .wolf-nicht-drucken,
    .wolf-buero__inhalt > .wolf-warnung {
        display: none !important;
    }

    .wolf-buero__inhalt {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .wolf-zettelbogen {
        gap: 0;
    }

    .wolf-zettelseite {
        break-after: page;
        page-break-after: always;
    }

    .wolf-zettelseite:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .wolf-zettel {
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.komm-kontosumme { display:flex; flex-direction:column; gap:8px; padding:16px; background:#f6eeee; border-radius:9px; color:var(--wolf-rot); }

.komm-konflikt { border-left:3px solid #a76612; background:#fff8e8; padding:10px; font-size:13px; min-width:180px; max-width:310px; white-space:normal; line-height:1.4; }
.komm-konflikt p { margin:6px 0; }

.komm-konflikt--detail { max-width:760px; font-size:15px; padding:18px; }
.komm-konflikt-kurz { font-size:12px; line-height:1.3; max-width:145px; padding:4px 0; white-space:normal; color:#865000; }
.komm-vorganglink { margin-left:6px; }


.wolf-korrekturfelder {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 12px;
    margin-block: 8px 12px;
}
.wolf-korrekturfelder .wolf-feld { min-width: 0; max-width: 100%; }
.wolf-korrekturfelder :is(.wolf-eingabe, .wolf-knopf) {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    margin: 0;
}
.wolf-korrekturfelder .wolf-eingabe[type="date"] { width: auto; max-width: 100%; }
.wolf-korrekturfelder .wolf-knopf,
.wolf-monatsverpflegung > .wolf-knopf,
.wolf-monatsbericht > .wolf-monatspruefung__status > .wolf-knopf,
.wolf-monatspruefung a[download] {
    width: fit-content;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
}
.wolf-monatskonten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 12px;
}
.wolf-monatskonten .komm-karte { margin: 0; min-width: 0; }
.wolf-kontotabelle { width: 100%; border-collapse: collapse; }
.wolf-kontotabelle :is(th, td) { padding: 8px 0; border-bottom: 1px solid var(--wolf-linie); }
.wolf-kontotabelle th { text-align: left; font-weight: normal; }
.wolf-kontotabelle td { padding-inline-start: 12px; text-align: right; white-space: nowrap; }

/* Monatsbericht auf schmalen Ansichten */
.wolf-monatskalender { display: none; }
.wolf-monatspruefung {
    min-width: 0;
    padding: 12px;
    background: var(--wolf-flaeche);
    border: 1px solid var(--wolf-linie);
}
.wolf-monatspruefung__kopf, .wolf-monatspruefung__status, .wolf-monatspruefung nav, .wolf-monatspruefung__faelle li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}
.wolf-monatspruefung__kopf, .wolf-monatspruefung__status { justify-content: space-between; }
.wolf-monatspruefung__status { border-top: 1px solid var(--wolf-linie); margin-top: 8px; padding-top: 8px; }
.wolf-monatspruefung__begruendung { flex-basis: 100%; min-width: 0; }
.wolf-monatspruefung__begruendung textarea { width: 100%; min-height: 80px; resize: vertical; }
.wolf-monatspruefung__verlauf { margin-top: 8px; overflow-wrap: anywhere; }
.wolf-monatspruefung__verlauf p + p { white-space: pre-wrap; }
.wolf-monatspruefung .wolf-zwischentitel, .wolf-monatspruefung p { margin: 0; }
.wolf-monatspruefung > p, .wolf-monatspruefung__faelle { margin-block: 8px 0; }
.wolf-monatspruefung__faelle { padding: 0; list-style: none; }
.wolf-monatspruefung__faelle li { padding-block: 4px; }
.wolf-monatspruefung__faelle li + li { border-top: 1px solid var(--wolf-linie); }
.wolf-monatspruefung .wolf-knopf { min-height: 44px; }
.wolf-monatspruefung .wolf-monatspruefung__touch { display: none; }
.wolf-monatspruefung__ziel {
    padding-inline-start: 4px;
    border-inline-start: 3px solid var(--wolf-rot);
}
.wolf-zeit-symbol {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--wolf-linie);
    border-radius: 12px;
    background: var(--wolf-flaeche);
    color: var(--wolf-rot);
    cursor: pointer;
}
.wolf-zeit-symbol:disabled { opacity: .4; cursor: default; }
.wolf-zeit-symbol svg { width: 22px; height: 22px; }

@media (max-width: 720px) {
}

@media (max-width: 1024px), (pointer: coarse) {
    .wolf-monatsbericht .wolf-monat-desktop { display: none; }
    .wolf-monatspruefung .wolf-monatspruefung__touch { display: inline-flex; }
    .wolf-buero__inhalt.wolf-monatsbericht { padding: 12px 10px 24px; gap: 12px; }
    .wolf-monatsbericht .wolf-monatsbericht__titel { font-size: 20px; }
    .wolf-monatsbericht__filter { gap: 8px; padding: 10px; }
    .wolf-monatsbericht__filter .wolf-knopf { max-width: 100%; white-space: normal; }
    .wolf-monatskalender {
        display: block;
        background: var(--wolf-flaeche);
        border: 1px solid var(--wolf-linie);
        border-radius: 14px;
        padding: 8px;
        min-width: 0;
    }
    .wolf-kalenderleiste { display: flex; align-items: center; gap: 3px; }
    .wolf-kalenderleiste h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; }
    .wolf-kalendertitel { padding: 4px; min-height: 44px; color: inherit; font: inherit; text-align: left; border: 0; background: transparent; cursor: pointer; }
    .wolf-kalenderinfo { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 2px; font-size: 12px; line-height: 1.45; }
    .wolf-kalenderraster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .wolf-kalenderwochentag { text-align: center; font-size: 11px; padding: 7px 0; color: #555; }
    .wolf-kalendertag {
        min-width: 0;
        min-height: 80px;
        padding: 3px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        border: 0;
        border-top: 1px solid var(--wolf-linie);
        background: transparent;
        color: var(--wolf-text);
        font: inherit;
        cursor: pointer;
    }
    .wolf-kalendertag.frei { background: #f6f5f5; }
    .wolf-kalendertag strong { display: grid; place-items: center; width: 24px; height: 24px; font-size: 14px; }
    .wolf-kalendertag[aria-current="date"] strong, .wolf-jahresmonat__tage .heute { background: var(--wolf-rot); color: #fff; border-radius: 50%; }
    .wolf-kalenderzeiten { display: grid; font-size: 11px; line-height: 1.2; font-variant-numeric: tabular-nums; }
    .wolf-kalenderstatus { border-radius: 5px; background: #f6eaea; color: #740e14; padding: 0 4px; font-size: 10px; font-weight: bold; }
    .wolf-kalenderlegende { margin: 8px 0 2px; font-size: 11px; color: #555; }
    .wolf-jahreskalender { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
    .wolf-jahresmonat { min-width: 0; padding: 5px 2px; border: 1px solid var(--wolf-linie); border-radius: 9px; background: #fff; color: var(--wolf-text); cursor: pointer; }
    .wolf-jahresmonat[aria-current="true"] { border-color: var(--wolf-rot); background: #faf2f2; color: var(--wolf-rot); }
    .wolf-jahresmonat strong { display: block; font-size: clamp(11px, 3vw, 15px); margin-bottom: 4px; }
    .wolf-jahresmonat__tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, 14px); align-items: center; font-size: clamp(8px, 2.35vw, 12px); font-variant-numeric: tabular-nums; }
    .wolf-mobiltag { display: grid; gap: 10px; min-width: 0; margin-top: 8px; }
    .wolf-mobiltag :is(h3,p,dl,dd) { margin: 0; }
    .wolf-mobiltag__person, .wolf-mobiltag__status { font-weight: bold; }
    .wolf-tagwerte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .wolf-tagwerte div, .wolf-mobilschicht { background: #f6f5f5; border-radius: 9px; padding: 9px; overflow-wrap: anywhere; }
    .wolf-tagwerte dt, .wolf-mobilschicht p { font-size: 13px; }
    .wolf-tagwerte dd { font-weight: bold; }
    .wolf-mobilschicht p { margin-top: 4px; }
    .wolf-mobiltag .wolf-aktionen { flex-wrap: wrap; }
    .wolf-mobiltag .wolf-ergebnis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .wolf-monatsverpflegung .wolf-tabelle-rahmen { overflow: visible; }
    .wolf-monatsverpflegung table { min-width: 0 !important; }
    .wolf-monatsverpflegung thead { display: none; }
    .wolf-monatsverpflegung :is(table, tbody, tfoot) { display: block; }
    .wolf-monatsverpflegung tr { display: flex; flex-wrap: wrap; align-items: center; padding: 5px; border-bottom: 1px solid var(--wolf-linie); }
    .wolf-monatsverpflegung td { min-width: 0; height: auto; padding: 4px; border: 0; white-space: normal; overflow-wrap: anywhere; }
    .wolf-monatsverpflegung tbody td:nth-child(n+5) { width: 100%; }
    .wolf-monatsverpflegung td > div { flex-wrap: wrap; }
    .wolf-monatsverpflegung td :is(input, select) { max-width: 100%; }
}
