/* Zeiterfassung Noack Bau – Farben wie noack-bau.de */
@font-face { font-family: "Rubik"; src: url("schriften/rubik-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("schriften/open-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --blau: #0075be;
  --blau-tief: #005a93;
  --gruen: #5fae17;
  --gruen-tief: #4a8a10;
  --rot: #c0392b;
  --orange: #b85c00;
  --text: #333;
  --leise: #5f6b7a;
  --hell: #f3f6f9;
  --linie: #d4dae3;
  --flaeche: #fff;
  --grund: #eef2f6;
  --radius: 10px;
  --schatten: 0 4px 18px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--grund); color: var(--text);
  font: 400 1rem/1.5 "Open Sans", Arial, sans-serif; overflow-wrap: break-word;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3, h4 { font-family: "Rubik", Arial, sans-serif; font-weight: 600; line-height: 1.25; color: #222; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p, li { text-wrap: pretty; }
a { color: var(--blau); }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 4px 12px;
  background: var(--blau); color: #fff; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
}
.kopf-titel { display: flex; align-items: center; gap: 10px; font-family: "Rubik", Arial, sans-serif; font-size: 1.1rem; }
.marke { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--blau); font-weight: 800; }
.kopf-konto {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 999px;
  padding: 6px 10px 6px 10px; cursor: pointer; white-space: nowrap; max-width: 60vw; font: inherit;
}
.kopf-konto[hidden] { display: none; }
.kopf-konto svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kopf-konto-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kopf-konto-pfeil { width: 16px !important; height: 16px !important; opacity: .85; }
.kopf-konto:hover, .kopf-konto:focus-visible { background: rgba(255, 255, 255, .15); }

main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 48px; outline: none; }
.laden { color: var(--leise); text-align: center; }

/* Karten und Formulare */
.karte { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 20px; margin-bottom: 16px; }
.anmeldung { max-width: 420px; margin: 4vh auto 0; }
.anmeldung h1 { text-align: center; }
.anmeldung .unter { text-align: center; color: var(--leise); margin-top: -.3em; text-wrap: balance; }
.feld { display: block; margin-bottom: 14px; }
.feld > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.feld small { display: block; color: var(--leise); font-size: .85rem; margin-top: 3px; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=time], input[type=tel], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; background: #fff;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 117, 190, .35); outline-offset: 1px; }
.pin { font-size: 1.6rem; letter-spacing: .4em; text-align: center; }
.haken { display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; cursor: pointer; }
.haken-feld { margin-top: 28px; }
@media (max-width: 760px) { .haken-feld { margin-top: 0; } }
.haken input { width: 22px; height: 22px; accent-color: var(--blau); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border: 0; border-radius: 8px; background: var(--blau); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.knopf:hover { background: var(--blau-tief); }
.knopf.breit { width: 100%; }
.knopf.zweit { background: #fff; color: var(--blau); border: 1px solid var(--blau); }
.knopf.zweit:hover { background: var(--hell); }
.knopf.gefahr { background: #fff; color: var(--rot); border: 1px solid var(--rot); }
.knopf.klein { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.knopf:disabled { opacity: .55; cursor: default; }
.linkknopf { background: none; border: 0; padding: 6px 0; color: var(--blau); text-decoration: underline; cursor: pointer; }

.reiter { display: flex; gap: 4px; background: var(--hell); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.reiter button { flex: 1; border: 0; background: transparent; border-radius: 8px; min-height: 42px; cursor: pointer; font-weight: 600; color: var(--leise); }
.reiter button[aria-selected=true] { background: #fff; color: var(--blau); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }

.fehler { color: var(--rot); font-weight: 600; margin: 0 0 12px; }
.hinweis { color: var(--leise); font-size: .92rem; }
.hinweis-kasten { background: #e8f3fb; border-left: 4px solid var(--blau); padding: 12px 14px; border-radius: 6px; margin: 0 0 16px; }

/* Büro: Reiterleiste */
.bereiche { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 16px; }
.bereiche button { border: 1px solid var(--linie); background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.bereiche button[aria-current=page] { background: var(--blau); border-color: var(--blau); color: #fff; }

.leiste-oben { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-bottom: 12px; }
.leiste-oben h2 { margin: 0; }
.suche { max-width: 260px; }

/* Tabellen (am Handy als Karten) */
.tabelle { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { background: var(--hell); font-size: .85rem; color: var(--leise); font-weight: 600; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr { cursor: pointer; }
.tabelle tbody tr:hover { background: #f8fafc; }
.tabelle .zahl { text-align: right; white-space: nowrap; }
.inaktiv td { color: #98a2ae; }
.marke-klein { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--hell); color: var(--leise); white-space: nowrap; }
.marke-klein.polier { background: #fff4e0; color: var(--orange); }
.marke-klein.buero { background: #e8f3fb; color: var(--blau-tief); }
.marke-klein.aus { background: #fdecea; color: var(--rot); }
.leer { padding: 24px; text-align: center; color: var(--leise); background: #fff; border-radius: var(--radius); }

@media (max-width: 760px) {
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle thead { display: none; }
  .tabelle { background: transparent; box-shadow: none; }
  .tabelle tbody tr { display: flex; flex-direction: column; }
  .tabelle td.haupt { order: -1; }
  .tabelle tr { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); margin-bottom: 10px; padding: 10px 14px; }
  .tabelle td { border: 0; padding: 2px 0; }
  .tabelle td[data-l]::before { content: attr(data-l) ": "; color: var(--leise); font-size: .85rem; }
  .tabelle td.haupt { font-weight: 600; font-size: 1.05rem; }
  .tabelle .zahl { text-align: left; }
  .suche { max-width: none; width: 100%; }
}

/* Raster in Formularen */
.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .raster, .raster.drei { grid-template-columns: minmax(0, 1fr); } }

/* Dialog */
.dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dialog::backdrop { background: rgba(20, 30, 40, .45); }
.dialog form, .dialog .dialog-inhalt { padding: 20px; }
.dialog h2 { margin-right: 36px; }
.dialog .schliessen { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: var(--hell); border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.dialog-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.dialog-knoepfe .links { margin-right: auto; }
.pin-anzeige { font: 700 2.4rem/1 "Rubik", Arial, sans-serif; letter-spacing: .25em; text-align: center; background: var(--hell); padding: 18px; border-radius: 10px; margin: 8px 0 14px; }

/* Mitarbeiter-Start */
.gruss { font-size: 1.4rem; }
.liste-knoepfe { display: grid; gap: 10px; }

/* Protokoll */
.protokoll { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); }
.protokoll li { padding: 8px 14px; border-bottom: 1px solid var(--linie); font-size: .92rem; }
.protokoll li:last-child { border-bottom: 0; }
.protokoll time { color: var(--leise); margin-right: 8px; white-space: nowrap; }

/* Meldung */
.meldung {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: #222; color: #fff; padding: 12px 18px; border-radius: 10px; max-width: calc(100vw - 32px); box-shadow: var(--schatten); text-align: center; text-wrap: balance;
}
.meldung.fehler-meldung { background: var(--rot); }

/* ---------------------------------------------------------- Tageserfassung */
.reiter-gross button { min-height: 50px; font-size: 1.02rem; }
.knopf.gross { min-height: 60px; font-size: 1.12rem; padding: 10px 22px; }
.knopf.gross small, .knopf small { display: block; font-weight: 400; font-size: .85rem; opacity: .9; white-space: normal; }
.knopf:has(small) { flex-direction: column; gap: 0; line-height: 1.25; }
.zurueck { display: inline-block; margin-bottom: 6px; font-weight: 600; text-decoration: none; }

.monat-kopf { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 8px; margin-bottom: 4px; }
.monat-titel { text-align: center; }
.monat-titel h1 { margin: 0; font-size: 1.35rem; }
.monat-titel p { margin: 2px 0 0; color: var(--leise); font-size: .92rem; text-wrap: balance; }
.pfeil { width: 52px; height: 52px; border: 1px solid var(--linie); background: #fff; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--blau); }
.pfeil:disabled { opacity: .35; cursor: default; }
.monat-summe { text-align: center; color: var(--leise); margin: 0 0 14px; }
.monat-summe b { color: var(--text); }

.heute-karte { display: grid; gap: 10px; border-top: 4px solid var(--gruen); }
.heute-karte h2, .heute-karte p { margin: 0; }
.heute-karte .knopf.gross { background: var(--gruen-tief); }
.heute-karte .knopf.gross:hover { background: #3d7310; }

/* Tage wie der Papierzettel */
.tage { list-style: none; margin: 0 0 16px; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.tage li + li { border-top: 1px solid var(--linie); }
.tag {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 0 10px; width: 100%;
  min-height: 52px; padding: 6px 12px; border: 0; background: #fff; text-align: left; cursor: pointer;
}
.tag:hover:not(:disabled) { background: #f6f9fc; }
.tag:disabled { cursor: default; color: #98a2ae; }
.tag.we { background: var(--hell); }
.tag.ft { background: #fff7ea; }
.tag.heute { box-shadow: inset 4px 0 0 var(--gruen); }
.t-datum { display: flex; align-items: baseline; gap: 4px; }
.t-datum b { font: 600 1.15rem/1 "Rubik", Arial, sans-serif; min-width: 1.4em; text-align: right; }
.t-datum small { color: var(--leise); font-size: .8rem; }
.tag.we .t-datum small, .tag.ft .t-datum small { color: var(--orange); font-weight: 600; }
.t-mitte { display: flex; flex-direction: column; min-width: 0; }
.t-zeit { font-weight: 600; }
.t-ort { color: var(--leise); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-ort i { font-style: normal; color: var(--orange); }
.t-rechts { display: flex; align-items: center; gap: 8px; }
.t-rechts b { font-variant-numeric: tabular-nums; }

.merkmal { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 6px; font: 700 .82rem/1 "Rubik", Arial, sans-serif; background: var(--hell); color: var(--leise); }
.m-A { background: #e8f3fb; color: var(--blau-tief); }
.m-U { background: #eaf6dd; color: var(--gruen-tief); }
.m-K { background: #fdecea; color: var(--rot); }
.m-F { background: #fff4e0; color: var(--orange); }

.summen h2 { font-size: 1.1rem; }
.summen-liste { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.summen-liste span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Tag-Dialog */
.tag-form .fuer { margin: -.4em 0 .8em; color: var(--leise); }
.merkmale { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.merkmale legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  overflow-wrap: break-word; hyphens: manual;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 4px 2px;
  border: 2px solid var(--linie); border-radius: 10px; background: #fff; font-size: .74rem; line-height: 1.15; text-align: center; color: var(--leise);
}
.chip span b { font: 700 1.1rem/1.1 "Rubik", Arial, sans-serif; color: var(--text); }
.chip input:checked + span { border-color: var(--blau); background: #e8f3fb; color: var(--blau-tief); }
.chip input:checked + span b { color: var(--blau-tief); }
.chip input:focus-visible + span { outline: 3px solid rgba(0, 117, 190, .35); }
.chip input:disabled + span { opacity: .35; cursor: default; }
.schnell { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.schnell .knopf { white-space: normal; text-align: center; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.tag-form input[type=time], .tag-form select { font-size: 1.1rem; min-height: 52px; }
.std-anzeige { font: 600 1.15rem/1.3 "Rubik", Arial, sans-serif; color: var(--blau-tief); margin: -4px 0 12px; min-height: 1.3em; }
.hinweis.klein { font-size: .82rem; margin: 10px 0 0; }
.verlauf summary { cursor: pointer; color: var(--blau); font-size: .9rem; padding: 6px 0; }
.verlauf ul { margin: 4px 0 0; padding-left: 18px; font-size: .85rem; }
.verlauf time { color: var(--leise); white-space: nowrap; }
.dialog .knopf.gross { min-width: 160px; }

/* Polier: Kolonne */
.kolonne .leiste-oben { margin-bottom: 4px; }
.kolonne-liste { list-style: none; margin: 0; padding: 0; }
.kolonne-liste li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--linie); padding: 4px 0; }
.kolonne-liste li:first-child { border-top: 0; }
.person-haken { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; min-width: 0; }
.person-haken input { width: 28px; height: 28px; flex: none; accent-color: var(--blau); }
.person-haken > span { display: flex; flex-direction: column; min-width: 0; }
.eintrag { color: var(--leise); font-size: .88rem; display: block; }
.eintrag span { white-space: nowrap; }
.eintrag .merkmal { min-width: 26px; height: 22px; margin-right: 2px; vertical-align: middle; }
.eintrag.offen { color: var(--orange); font-weight: 600; }
.kolonne-aktion { display: grid; gap: 10px; position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--grund); }

@media (max-width: 400px) {
  .merkmale { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .chip span { font-size: .68rem; min-height: 54px; }
  .tag { padding: 6px 10px; gap: 0 8px; }
  .dialog form { padding: 16px; }
}
.std-anzeige:empty { display: none; }
#erfassung, #stunden-monat, .reiter-gross { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (min-width: 761px) {
  .tag { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .t-mitte { flex-direction: row; align-items: baseline; gap: 14px; }
}

/* ---------------------------------------------------------- Baustein 2b */
/* Geteilte Tage: Teile im Tag-Dialog */
.teil + .teil { border-top: 2px dashed var(--linie); padding-top: 12px; margin-top: 4px; }
.teil-kopf { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 4px; }
.teil-kopf h3 { margin: 0; font-size: 1rem; color: var(--blau-tief); }
#teil-dazu { margin: 0 0 6px; }
.teil-hinweis { margin: 0 0 12px; text-align: center; text-wrap: balance; }
.marken { display: inline-flex; gap: 3px; }

/* Monatsliste: Zusätze (Vorschau) */
.abrechnung { width: 100%; border-collapse: collapse; font-size: .95rem; }
.abrechnung th, .abrechnung td { padding: 6px 4px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; font-weight: 400; }
.abrechnung th { font-weight: 600; }
.abrechnung .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.abrechnung tr.gesamt th, .abrechnung tr.gesamt td { font-weight: 700; }
@media (max-width: 400px) { .abrechnung { font-size: .88rem; } }

/* Polier: weitere Mitarbeiter */
.weitere > summary, .km-person > summary { list-style: none; }
.weitere > summary::-webkit-details-marker, .km-person > summary::-webkit-details-marker { display: none; }
.weitere > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font: 600 1.1rem/1.3 "Rubik", Arial, sans-serif; color: var(--blau-tief); }
.weitere > summary::after, .km-person > summary::after { content: "▾"; font-size: 1.1rem; transition: transform .15s; }
.weitere[open] > summary::after, .km-person[open] > summary::after { transform: rotate(180deg); }
.weitere .suche { margin: 8px 0; max-width: none; }

/* Baustelle: Entfernung je Person */
.km-person > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blau); font-weight: 600; }
.km-liste { list-style: none; margin: 0 0 14px; padding: 0; }
.km-liste li { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 7.5em); align-items: center; gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--linie); }
.km-liste label { display: flex; flex-direction: column; min-width: 0; }
.km-liste small { color: var(--leise); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-liste input { min-height: 44px; text-align: right; }
.km-stufe { font-size: .82rem; }
.km-stufe.leise { color: var(--leise); }
@media (max-width: 400px) {
  .km-liste li { grid-template-columns: minmax(0, 1fr) 84px; }
  .km-stufe { grid-column: 2; text-align: right; }
}

/* Regeln: Auswahl-Chips (Wintermonate, Merkmale) */
.auswahl { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.auswahl legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.auswahl-chip { position: relative; cursor: pointer; }
.auswahl-chip input { position: absolute; opacity: 0; pointer-events: none; }
.auswahl-chip span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 6px 12px; border: 2px solid var(--linie); border-radius: 999px; background: #fff; white-space: nowrap; }
.auswahl-chip input:checked + span { border-color: var(--blau); background: #e8f3fb; color: var(--blau-tief); }
.auswahl-chip input:focus-visible + span { outline: 3px solid rgba(0, 117, 190, .35); }
.monate { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.monate .auswahl-chip span { display: flex; padding: 6px 4px; }
@media (max-width: 400px) { .monate { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feld.schmal { max-width: 260px; }
.regeln h2 { margin-top: 22px; }
.regeln h2:first-of-type { margin-top: 0; }
.regeln h3 { margin-top: 6px; }
.ohne-umbruch { white-space: nowrap; }
.abrechnung td:nth-child(2) { white-space: nowrap; }

/* Baustein 6: Papierzettel einscannen */
.zettel-laden { display: grid; gap: 8px; margin-bottom: 16px; }
.zettel-laden .hinweis { margin: 0; text-wrap: pretty; }
.datei-knopf { cursor: pointer; justify-self: start; }
.datei-knopf.laeuft { pointer-events: none; opacity: .7; }
.zettel-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
.zettel-bild { position: sticky; top: 8px; }
.zettel-bild img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--schatten); background: #fff; }
.zettel-form .raster { margin-bottom: 4px; }
.z-alle { margin: 8px 0; font-size: .9rem; }
.z-unsicher-zahl { color: var(--leise); }
.z-tage { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.z-tag { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; }
.z-tag.unsicher { background: #fff8db; border-color: #e6c200; }
.z-tag.aus { opacity: .55; }
.z-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.z-zeiten { padding-left: calc(7.5em + 8px); }
.z-tag select, .z-tag input[type=time], .z-tag input[type=number], .z-tag input[type=text] { min-height: 40px; padding: 4px 6px; font: inherit; border: 1px solid var(--linie); border-radius: 6px; background: #fff; min-width: 0; }
.z-merkmal { flex: 0 1 11em; }
.z-ort { flex: 1 1 12em; }
.z-tag input[type=number] { width: 4.5em; }
.z-tag input[type=text] { width: 4.5em; }
.z-wahl { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; flex: 0 0 7.5em; }
.z-wahl input { width: 20px; height: 20px; }
.z-zeit, .z-pause, .z-std { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.z-pause small, .z-std small { color: var(--leise); }
.z-summe { font-size: .9rem; color: var(--leise); white-space: nowrap; }
.z-std { display: none; }
.z-tag.ohne-zeit .z-zeiten, .z-tag.ohne-zeit .z-ort { display: none; }
.z-tag.ohne-zeit .z-std { display: flex; }
.z-hinweis, .z-vorhanden { grid-column: 1 / -1; margin: 0; font-size: .88rem; text-wrap: pretty; }
.z-hinweis { color: #7a5b00; }
.z-vorhanden { color: var(--leise); }
.z-gesamt { font-weight: 600; margin: 8px 0; }
.zettel-form .dialog-knoepfe { justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
@media (max-width: 900px) {
  .zettel-raster { grid-template-columns: minmax(0, 1fr); }
  .zettel-bild { position: static; max-width: 520px; }
}
@media (max-width: 480px) {
  .z-zeiten { padding-left: 0; }
  .z-wahl { flex-basis: 100%; }
  .z-merkmal { flex: 1 1 8em; }
  .z-ort { flex: 1 1 9em; }
}
