:root { --markenfarbe: #173b54; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f5f6f8; color: #1c1e21; }
.kopf { display: flex; justify-content: space-between; align-items: center;
        padding: .75rem 1rem; background: var(--markenfarbe); color: #fff; }
.kopf a, .kopf .link { color: #fff; margin-left: .75rem; text-decoration: none;
        background: none; border: none; font: inherit; cursor: pointer; }
.kopf .marke { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.kopf .logo { height: 5rem; width: auto; display: block; }
.inline { display: inline; }
main { max-width: 640px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.4rem; }
label { display: block; margin-top: .75rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: .75rem; margin-top: .25rem;
        font-size: 1rem; border: 1px solid #cbd2d9; border-radius: .5rem; }
button[type=submit] { width: 100%; margin-top: 1rem; padding: .9rem; font-size: 1.05rem;
        background: var(--markenfarbe); color: #fff; border: none; border-radius: .5rem; }
.fehler { color: #b91c1c; }
.login-logo { display: block; margin: 1rem auto 0; width: 100%; max-width: 280px; }
.meldung { background: #dbeafe; padding: .5rem .75rem; border-radius: .5rem; }
.tag { display: inline-block; font-size: .75rem; background: #fef3c7; color: #92400e;
        padding: .1rem .4rem; border-radius: .25rem; }
.karte { background: #fff; border-radius: .5rem; padding: .75rem 1rem; margin-top: .75rem;
        box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.vorschau { max-width: 100%; border-radius: .5rem; display: block; margin-top: .25rem; }
.meldung-error { background: #fee2e2; color: #991b1b; }
button.klein { width: auto; margin-top: .25rem; padding: .5rem .9rem; font-size: .9rem;
        background: var(--markenfarbe); color: #fff; border: none; border-radius: .5rem; }
button.link-rot { width: auto; margin-top: 0; padding: 0; background: none; border: none;
        color: #b91c1c; font: inherit; cursor: pointer; text-decoration: underline; }
.anhang-zeile, .aktionen { margin-top: .5rem; }
.aktionen a { margin-right: .75rem; }
.tabelle-huelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: .75rem; background: #fff;
        border-radius: .5rem; }
th, td { padding: .5rem; border-bottom: 1px solid #e5e7eb; text-align: left;
        font-size: .9rem; white-space: nowrap; }
.menue { list-style: none; padding: 0; }
.menue li { background: #fff; border-radius: .5rem; margin-top: .75rem; }
.menue a { display: block; padding: 1rem; text-decoration: none; color: inherit; font-weight: 600; }
input[type=checkbox], input[type=radio] { width: auto; }
.checkbox-liste { max-height: 16rem; overflow-y: auto; background: #fff;
        border: 1px solid #cbd2d9; border-radius: .5rem; padding: .5rem .75rem; margin-top: .25rem; }
.checkbox-liste label { font-weight: 400; margin-top: .25rem; }
.fehler-kasten { background: #fee2e2; border-left: 4px solid #b91c1c; color: #991b1b;
        font-weight: 600; padding: .75rem 1rem; border-radius: .5rem; margin-top: .75rem; }
ul.errorlist { list-style: none; margin: .25rem 0 0; padding: 0;
        color: #b91c1c; font-weight: 600; }
.fuss { text-align: center; color: #9ca3af; font-size: .75rem;
        padding: 1.5rem 0 1rem; }
.kopf a.aktiv { font-weight: 700; }
.zurueck { display: block; max-width: 640px; margin: 0 auto; padding: .75rem 1rem 0;
        color: var(--markenfarbe); text-decoration: none; font-weight: 500; }
/* ☰-Menü der Kopfzeile für Superuser/Admin: aufklappbares Panel per nativem
   <details>. Eigener Name, weil .menue schon für die Startseiten-Kacheln gilt. */
.kopfmenue { position: relative; }
.kopfmenue > summary { list-style: none; cursor: pointer; color: #fff;
        line-height: 1; padding: .1rem .4rem;
        -webkit-tap-highlight-color: transparent; }
.kopfmenue > summary::-webkit-details-marker { display: none; }
.kopfmenue > summary img { height: 2rem; width: auto; display: block; }
.kopfmenue nav { position: absolute; right: 0; top: calc(100% + .5rem);
        display: flex; flex-direction: column; min-width: 12rem;
        background: #fff; border-radius: .5rem; padding: .5rem 0;
        box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 20; }
.kopfmenue nav a, .kopfmenue nav .link { color: #1c1e21; margin: 0;
        padding: .75rem 1.25rem; text-align: left; width: 100%; }
.kopfmenue nav form { margin: 0; width: 100%; }
/* minmax(0,…) + min-width erlauben Schrumpfen unter die native Mindestbreite
   der iOS-Zeitfelder; appearance:none ersetzt Safaris graue Klötze durch das
   normale Eingabefeld-Design der App */
.zeitspanne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0 .75rem; }
.zeitspanne input { min-width: 0; -webkit-appearance: none; appearance: none;
        padding: .5rem; min-height: 2.5rem; text-align: center; background: #fff; }
.anhaenge summary { cursor: pointer; color: var(--markenfarbe); font-weight: 600;
        padding: .25rem 0; -webkit-tap-highlight-color: transparent; }
.abstand-oben { margin-top: 1.25rem; }
#pdf-seiten { min-height: 10rem; }
.pdf-seite { width: 100%; display: block; margin-bottom: .75rem; background: #fff;
        border: 1px solid #d1d5db; border-radius: .5rem; }
.pdf-laden { color: #6b7280; }
.pdf-leiste { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
        margin-top: .75rem; position: sticky; bottom: .75rem; }
.pdf-knopf { display: block; text-align: center; padding: .9rem;
        border-radius: .5rem; background: var(--markenfarbe); color: #fff;
        text-decoration: none; font-size: 1.05rem; }
.pdf-knopf-hell { background: #fff; color: var(--markenfarbe); border: 1px solid var(--markenfarbe); }
.bereich-titel { margin: .75rem 0 0; }
.karte.todo-ueberfaellig { border-left: 4px solid #b91c1c; }
.todo-seit { color: #b91c1c; font-size: .85rem; font-weight: 600; margin-left: .5rem; }
.karte.todo-erledigt { color: #6b7280; }
.todo-info { color: #1d4ed8; font-size: .9rem; }
.objekt-filter { margin-bottom: .25rem; }
.objekt-combobox { position: relative; }
.objekt-auswahl { position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
        margin: .25rem 0 0; padding: .25rem 0; list-style: none;
        background: #fff; border: 1px solid #cbd2d9; border-radius: .5rem;
        max-height: 14rem; overflow-y: auto;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.objekt-auswahl li { padding: .5rem .75rem; cursor: pointer; }
.objekt-auswahl li.gewaehlt { font-weight: 600; }
