
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/atkinson-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/atkinson-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --text: #161616;
  --text-2: #474747;
  --grund: #f1efea;
  --flaeche: #ffffff;
  --flaeche-2: #faf9f6;
  --rand: #d9d5cc;
  --rand-fein: #e2ded5;
  --rot: #b3121a;
  --rot-dunkel: #8a0e14;
  --rot-marke: #e30613;
  --rot-hell: #fff4f2;
  --ki: #4a0d12;
  --ki-hell: #ffb4ad;
  --gruen: #1e5b2e;
  --gruen-hell: #eef7f0;
  --gelb: #713f12;
  --gelb-hell: #fefce8;
  --blau: #1e40af;
  --schatten: 0 1px 2px rgb(0 0 0 / 8%);
  --rund: 14px;
  --schrift: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 19px/1.45 var(--schrift);
  color: var(--text);
  background: var(--grund);
}
@media (min-width: 760px) { body { font-size: 20px; } }

a { color: var(--rot); text-underline-offset: 4px; text-decoration-skip-ink: none; }
h1, h2, h3 { font-family: var(--schrift); font-weight: 700; color: var(--text); line-height: 1.2; }
h1 { font-size: 2rem; margin: 0 0 .2rem; }
h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
h3 { font-size: 1.12rem; margin: 1.4rem 0 .6rem; }
@media (min-width: 760px) { h1 { font-size: 2.3rem; } }
p { margin: 0 0 1rem; }
.inhalt { overflow-wrap: anywhere; }
.inhalt table { overflow-wrap: normal; }
select { max-width: 100%; }
.neben { color: var(--text-2); }
.klein { font-size: .9rem; color: var(--text-2); }
.sym { flex: 0 0 auto; vertical-align: middle; }

.kopf { background: var(--flaeche); border-bottom: 4px solid var(--rot-marke); padding-top: env(safe-area-inset-top); }
.kopf-innen { max-width: 1180px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 14px; }
.marke { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--text); }
.marke img { width: 44px; height: auto; }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; }
.wortmarke { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.wortmarke b { font-weight: 800; color: var(--rot-marke); }
.marke-unter { font-size: .78rem; color: var(--text-2); margin-top: 3px; white-space: nowrap; }
@media (max-width: 759px) { .marke-unter { display: none; } }
.nutzer { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.3; }
.kopf-suche { flex: 1 1 auto; max-width: 520px; margin: 0 auto; display: flex; }
.kopf-suche input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 14px; font: inherit; font-size: 1rem; border: 2px solid var(--rand); border-right: 0; border-radius: 10px 0 0 10px; background: var(--grund); color: var(--text); }
.kopf-suche input:focus { outline: none; border-color: var(--text); background: var(--flaeche); }
.kopf-suche button { min-width: 52px; border: 2px solid var(--text); border-radius: 0 10px 10px 0; background: var(--text); color: #fff; cursor: pointer; display: grid; place-items: center; }
.kopf-lupe { display: none; }
.kopf-suche ~ .nutzer { margin-left: 0; }
@media (max-width: 599px) {
  .kopf-suche { display: none; }
  .kopf-lupe { display: flex; flex-direction: column; align-items: center; margin-left: auto; min-width: 56px; min-height: 48px; justify-content: center;
    color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 700; }
  .kopf-lupe ~ .nutzer { margin-left: 4px; }
}
.suche-gross .feld { font-size: 1.15rem; min-height: 56px; flex: 1 1 260px; }
.zahl-marke { display: inline-block; min-width: 28px; padding: 0 8px; border-radius: 14px; background: var(--rot); color: #fff; font-size: .85rem; line-height: 28px; text-align: center; vertical-align: middle; }
.eintrag-knoepfe { grid-column: 1 / -1; margin-top: 6px; }
.eintrag-knoepfe .knopf-klein { margin-top: 0; }
.antwort-knoepfe { display: grid; gap: 10px; }
.antwort-knoepfe .knopf-gross, .antwort-knoepfe button { width: 100%; justify-content: flex-start; text-align: left; }
.nutzer-kreis { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; font-weight: 700; font-size: 14px; }
@media (max-width: 599px) { .nutzer { display: none; } .marke img { width: 40px; } }
@media (min-width: 760px) { .kopf-innen { padding-left: 32px; padding-right: 32px; } }

.reiter { background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.reiter-innen { max-width: 1180px; margin: 0 auto; padding: 8px 24px; display: flex; gap: 6px; }
.reiter a {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px;
  font-weight: 700; font-size: .92rem; color: var(--text); text-decoration: none;
}
.reiter a:hover { background: var(--grund); }
.reiter a[aria-current="page"] { background: var(--text); color: #fff; }
.reiter-zahl {
  display: inline-block; min-width: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--rot); color: #fff; font-size: 14px; font-weight: 700; line-height: 24px; text-align: center;
}
.reiter a[aria-current="page"] .reiter-zahl { background: var(--rot-marke); }
.reiter .nur-handy { display: none; }
.reiter a.reiter-rechts { margin-left: auto; padding: 0 14px; color: var(--text-2); font-size: .82rem; }
.reiter a.reiter-rechts[aria-current="page"] { color: #fff; }
@media (max-width: 599px) {
  .reiter-innen { padding: 6px 6px; gap: 2px; }
  .reiter a { flex: 1 1 auto; min-height: 44px; padding: 0 6px; font-size: 1rem; border-radius: 8px; }
  body.app .reiter a { font-size: .88rem; }
  .reiter a.reiter-rechts { flex: 0 0 44px; padding: 0; }
  .reiter .nur-gross { display: none; }
  .reiter .nur-handy { display: inline; }
  .reiter-zahl { position: absolute; top: -3px; right: -3px; min-width: 22px; padding: 0 5px; font-size: 14px; line-height: 22px; }
}
@media (max-width: 389px) { .reiter a { font-size: .92rem; padding: 0 4px; } body.app .reiter a { font-size: .8rem; } }

.inhalt { max-width: 1180px; margin: 0 auto; padding: 36px 32px 64px; }
@media (max-width: 599px) { .inhalt { padding: 22px max(16px, env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); } }
input, select, textarea, button { font-size: max(16px, 1em); font-family: inherit; }
a, button { -webkit-tap-highlight-color: rgb(179 18 26 / 15%); }

.seitenkopf { margin-bottom: 24px; padding: 0 4px; }
.seitenkopf p { color: var(--text-2); margin: 0; }
@media (max-width: 599px) { .start-kopf { margin-bottom: 14px; } .start-kopf h1 { font-size: 1.55rem; } }
.zurueck {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; margin-bottom: 16px;
  border-radius: 10px; background: var(--flaeche); box-shadow: var(--schatten);
  color: var(--text); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.zurueck:hover { background: var(--flaeche-2); }

.kasten, .eintrag, .bericht-karte, .bericht-gross, .brief, .installieren, .meldung {
  background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten);
}

.meldungen { display: grid; gap: 14px; margin-bottom: 40px; }
@media (min-width: 760px) { .meldungen { grid-template-columns: 1fr 1fr; } }
.meldung { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.meldung .zahl { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.meldung .satz { font-size: 1.05rem; margin: 0; }
.meldung .knopf, .meldung .knopf-klein { align-self: flex-start; margin-top: 4px; }
@media (max-width: 599px) { .meldung .knopf, .meldung .knopf-klein { align-self: stretch; } }
.meldung.rot .zahl { color: var(--rot); }

.wichtig { background: var(--rot-hell); border: 2px solid var(--rot); border-radius: var(--rund); padding: 14px 18px; margin-bottom: 16px; }
.wichtig h2 { font-size: 1.05rem; margin: 0 0 8px; color: var(--rot-dunkel); }
.wichtig ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wichtig li { position: relative; padding-left: 38px; min-height: 28px;
  --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='black'/%3E%3C/svg%3E"); }
.wichtig li::before { content: ""; position: absolute; left: 0; top: 6px; width: 28px; height: 28px; border-radius: 8px; background: var(--rot); }
.wichtig li::after { content: ""; position: absolute; left: 5px; top: 11px; width: 18px; height: 18px; background: #fff;
  -webkit-mask: var(--zt-symbol) center / contain no-repeat; mask: var(--zt-symbol) center / contain no-repeat; }
.wichtig a { color: var(--text); text-decoration-color: var(--rot); text-decoration-thickness: 2px; }
.kunde-warnung h2 { display: flex; gap: 8px; align-items: flex-start; font-size: 1.1rem; }
.kunde-warnung h2 .sym { flex: none; margin-top: 2px; }
.kunde-warnung p { margin: 0; overflow-wrap: anywhere; }
.weitere-zeilen > summary { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; color: var(--rot-dunkel); cursor: pointer; }
.weitere-zeilen > summary::-webkit-details-marker { display: none; }
.weitere-zeilen > summary::before { content: "▸"; margin-right: 8px; }
.weitere-zeilen[open] > summary::before { content: "▾"; }
.weitere-zeilen[open] > summary { margin-bottom: 8px; }

.start-karten { display: grid; gap: 14px; }
@media (min-width: 600px) { .start-karten { grid-template-columns: 1fr 1fr; gap: 16px; } .start-karte.ki { grid-column: 1 / -1; order: -1; } }
@media (min-width: 900px) { .start-karten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .start-karte.ki { grid-column: auto; } }
.start-karte {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border-radius: var(--rund); background: var(--flaeche); box-shadow: var(--schatten);
  color: var(--text); text-decoration: none;
}
.start-karte:hover { box-shadow: 0 2px 8px rgb(0 0 0 / 14%); }
.start-zahl { font-size: 2.3rem; font-weight: 700; line-height: 1; min-width: 56px; font-variant-numeric: tabular-nums; }
.start-text { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; display: flex; flex-direction: column; align-items: flex-start; }
.start-pfeil { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grund); color: var(--text); }
.start-karte.rot .start-zahl { color: var(--rot); }
.start-karte.ki { background: var(--ki); color: #fff; box-shadow: 0 6px 16px rgb(74 13 18 / 30%); padding: 18px 16px; }
.ki-wort { color: var(--ki); font-weight: 700; }
.start-karte.ki .start-pfeil { background: rgb(255 255 255 / 16%); color: #fff; }
.ki-chip { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: rgb(255 255 255 / 14%); font-size: .84rem; color: #ffd9d6; }
.ki-chip span { color: var(--ki-hell); }
@media (min-width: 600px) {
  .start-karte { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "zahl pfeil" "text text"; align-items: start; gap: 10px; padding: 22px; min-height: 170px; }
  .start-zahl { grid-area: zahl; font-size: 3.2rem; }
  .start-pfeil { grid-area: pfeil; width: 46px; height: 46px; }
  .start-text { grid-area: text; font-size: 1.05rem; }
  .start-karte.ki { padding: 22px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .start-karte.ki { display: flex; min-height: 0; }
  .start-karte.ki .start-zahl { min-width: 70px; }
}

.abschnitt { margin-top: 40px; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 0 4px 8px; margin-bottom: 8px; }
.abschnitt-kopf h2 { margin: 0; }
.abschnitt-kopf a { font-weight: 700; }

.eintraege { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.eintrag { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
@media (min-width: 760px) { .eintrag { padding: 18px 22px; } }
.eintraege > li[hidden], [data-filter-hinweis][hidden] { display: none; }
.mitarbeiter-blaettern { margin: 0 0 8px; flex-wrap: nowrap; }
.mitarbeiter-blaettern a { white-space: nowrap; }
.mitarbeiter-blaettern .nach { margin-left: auto; }
.eintrag-titel { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.eintrag-titel a { color: var(--text); text-decoration: none; display: inline-block; vertical-align: top; padding: 11px 0; margin: -11px 0; }
.eintrag-titel a:hover { color: var(--rot); text-decoration: underline; }
.eintrag-betrag { font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eintrag-zeile { grid-column: 1 / -1; color: var(--text-2); }
.eintrag-zeile b { color: var(--text); font-weight: 700; }
.eintrag .knopf-klein { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.eintrag-titel, .eintrag-zeile { overflow-wrap: anywhere; }
.eintrag:has(.eintrag-titel a) { position: relative; cursor: pointer; }
.eintrag-titel a:first-of-type::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.eintrag:has(.eintrag-titel a) :is(a, button, select, input, textarea, label, summary):not(.eintrag-titel a:first-of-type) { position: relative; z-index: 1; }
.eintrag:has(.eintrag-titel a):hover { box-shadow: 0 2px 10px rgb(0 0 0 / 14%); }
.eintrag:has(.eintrag-titel a):hover .eintrag-titel a { color: var(--rot); text-decoration: underline; }
@media (max-width: 599px) {
  .eintrag { grid-template-columns: minmax(0, 1fr); }
  .eintrag-betrag { text-align: left; white-space: normal; }
}

.eintrag.mit-alter .eintrag-titel { grid-column: 1 / -1; font-size: 1.2rem; }
.eintrag-alter { font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--rot); }
.eintrag.mit-alter .eintrag-betrag { text-align: right; white-space: nowrap; }
@media (max-width: 599px) { .eintrag.mit-alter { grid-template-columns: minmax(0, 1fr) auto; } }
.erledigt-zeile { display: flex; align-items: center; gap: 8px; color: var(--gruen); font-weight: 700; }
.eintrag .eintrag-knopf { grid-column: 1 / -1; justify-self: stretch; margin-top: 10px; min-height: 52px; font-size: 1rem; }
@media (min-width: 760px) { .eintrag .eintrag-knopf { justify-self: start; padding: 0 26px; } }

.brief { overflow: hidden; max-width: 760px; }
.brief-kopf { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; padding: 14px 18px; background: var(--flaeche-2); border-bottom: 1px solid var(--rand-fein); font-size: .92rem; }
.brief-kopf span { color: var(--text-2); }
.brief-kopf b { overflow-wrap: anywhere; }
.brief-text { white-space: pre-wrap; line-height: 1.6; padding: 18px 18px 22px; }
@media (min-width: 760px) { .brief-kopf { padding: 18px 24px; } .brief-text { padding: 22px 24px 26px; } }
.knopf-gross { min-height: 60px; padding: 0 30px; font-size: 1.08rem; border-radius: 12px; }
@media (max-width: 599px) { .knopf-gross { width: 100%; } }
#mail-oeffnen { box-shadow: 0 4px 12px rgb(179 18 26 / 25%); }

.ki-arbeit { max-width: 760px; border-radius: 16px; padding: 24px; color: #fff; background: var(--ki); box-shadow: 0 8px 24px rgb(74 13 18 / 30%); }
.ki-kopf { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; }
.ki-funke { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; color: var(--ki-hell);
  background: rgb(255 255 255 / 12%); animation: funkeln 1.6s ease-in-out infinite; }
@keyframes funkeln { 0%, 100% { transform: scale(1) rotate(0); box-shadow: 0 0 0 0 rgb(255 180 173 / 45%); } 50% { transform: scale(1.12) rotate(20deg); box-shadow: 0 0 0 12px rgb(255 180 173 / 0%); } }
.ki-schritte { list-style: none; margin: 20px 0 18px; padding: 0; display: grid; gap: 10px; }
.ki-schritte li { position: relative; padding-left: 34px; color: rgb(255 255 255 / 50%); transition: color .3s; }
.ki-schritte li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 35%); }
.ki-schritte li.aktiv { color: #fff; }
.ki-schritte li.aktiv::before { border-color: #fff; border-top-color: transparent; animation: drehen .8s linear infinite; }
.ki-schritte li.fertig { color: rgb(255 255 255 / 85%); }
.ki-schritte li.fertig::before { content: "✓"; border: 0; animation: none; width: auto; height: auto; margin-top: -.75em; font-weight: 700; color: #86efac; }
@keyframes drehen { to { transform: rotate(360deg); } }
.ki-zeilen { display: grid; gap: 9px; }
.ki-zeilen span { height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 35%), rgb(255 255 255 / 10%)); background-size: 200% 100%; animation: schreiben 1.4s linear infinite; }
.ki-zeilen span:nth-child(1) { width: 92%; } .ki-zeilen span:nth-child(2) { width: 100%; animation-delay: .15s; }
.ki-zeilen span:nth-child(3) { width: 78%; animation-delay: .3s; } .ki-zeilen span:nth-child(4) { width: 45%; animation-delay: .45s; }
@keyframes schreiben { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ki-spruch { margin: 18px 0 0; min-height: 1.6em; font-style: italic; color: #ffd9d6; }
.ki-spruch-text.neu { display: inline-block; animation: einblenden .5s ease-out; }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ki-funke, .ki-zeilen span, .ki-schritte li.aktiv::before, .ki-spruch-text.neu { animation: none; } }

.mailentwurf { display: grid; gap: 6px; max-width: 760px; }
.mailentwurf label { font-weight: 700; margin-top: 10px; }
.mailentwurf input, .mailentwurf textarea { font: inherit; padding: 10px 14px; border: 2px solid var(--text-2); border-radius: 10px; width: 100%; background: var(--flaeche); color: var(--text); }
.mailentwurf textarea { line-height: 1.55; resize: vertical; }
.mailentwurf .knopf-zeile { margin-top: 16px; }
.link-feld { width: 100%; font: inherit; padding: 10px 12px; margin: 10px 0; border: 2px solid var(--text-2); border-radius: 10px; background: var(--flaeche); }
select.feld, input.feld { font: inherit; min-height: 52px; padding: 0 12px; border: 2px solid var(--text-2); border-radius: 10px; background: var(--flaeche); color: var(--text); }
.suche { margin-bottom: 16px; }
.suche label { display: block; font-weight: 700; margin-bottom: 8px; }
.suche-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.suche input { flex: 1 1 260px; min-height: 52px; font: inherit; padding: 0 14px; border: 2px solid var(--text-2); border-radius: 10px; background: var(--flaeche); }
.kasten.regel { margin-bottom: 24px; }
.kasten.regel .eintraege { margin-top: 12px; }
.kasten .eintrag { box-shadow: none; border: 1px solid var(--rand-fein); }
.daumen-zeile { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.daumen-form { margin: 0; }
.daumen {
  min-height: 52px; padding: 0 22px; border-radius: 10px; border: 2px solid var(--rand); background: var(--flaeche);
  font: 700 1rem var(--schrift); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.daumen span { font-size: 1.4rem; }
.daumen:hover { border-color: var(--text); }
.daumen.gewaehlt { border-color: var(--text); background: var(--text); color: #fff; }
.eintrag-aktion { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rand-fein); color: var(--text-2); font-size: .88rem; }
.eintrag-aktion .knopf-klein { margin-top: 0; }
.eintrag-aktion select { font: inherit; font-size: max(16px, 1rem); min-height: 44px; padding: 0 10px; margin-left: 6px; border: 2px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: var(--text); }

.status { font-weight: 700; white-space: nowrap; }
.status::before { content: "●"; margin-right: 6px; font-size: .8em; vertical-align: 1px; }
.status.neu { color: var(--blau); }
.status.angebot { color: var(--gruen); }
.status.erledigt { color: var(--text-2); }
.status.eilig { color: var(--rot); }
.achtung { color: var(--rot); font-weight: 700; }

.knopf, .knopf-klein, .knopf-zweit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 2px solid var(--rot);
  background: var(--rot); color: #fff; font: 700 1rem var(--schrift); text-decoration: none; cursor: pointer;
}
.knopf-klein { min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: .9rem; }
.knopf-zweit { background: var(--flaeche); color: var(--text); border-color: var(--text); }
.knopf:hover, .knopf-klein:not(.knopf-zweit):hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf-zweit:hover { background: var(--grund); }

.auswahl { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 12px; background: #e2ded5; }
.auswahl a {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 6px 14px; border-radius: 9px; text-align: center; line-height: 1.25;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.auswahl a[aria-current="true"] { background: var(--flaeche); box-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.auswahl-titel { display: none; }
@media (max-width: 599px) { .auswahl.sortierung { display: grid; grid-template-columns: 1fr 1fr; } }

.kasten { padding: 20px 22px; margin-bottom: 20px; }
.kasten.grau { background: var(--flaeche-2); }
.spalten { display: grid; gap: 16px; }
@media (min-width: 760px) { .spalten { grid-template-columns: 1fr 1fr; gap: 20px; } }
.spalten .kasten { margin-bottom: 0; }
.angaben { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.angaben dt { color: var(--text-2); }
.angaben dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 599px) { .angaben { grid-template-columns: 1fr; gap: 2px; } .angaben dd { margin-bottom: 10px; } }

.berichte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .berichte { grid-template-columns: 1fr 1fr; } }
.bericht-karte { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.bericht-karte h2 { margin: 0; font-size: 1.2rem; }
.bericht-karte p { margin: 0 0 8px; color: var(--text-2); flex: 1; }
.bericht-karte .knopf { align-self: flex-start; }

.knopf-ki {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0; text-decoration: none; cursor: pointer;
  font: 700 1rem var(--schrift); color: #fff; background: var(--ki);
}
.knopf-ki span { color: var(--ki-hell); }
.knopf-ki:hover { background: #6a1219; }
.knopf-ki:disabled { opacity: .6; cursor: wait; }
.neu-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.neu-gesperrt { margin-top: 16px; color: var(--text-2); }
@media (max-width: 599px) { .neu-zeile .knopf-ki { width: 100%; min-height: 52px; } }

.bericht-gross { padding: 22px 24px; margin-bottom: 36px; border: 2px solid var(--rot); }
.bericht-gross h2 { font-size: 1.35rem; }
@media (max-width: 599px) { .bericht-gross { padding: 18px 16px; } .bericht-gross .knopf { width: 100%; } }

.beta-kopf { padding: 0 4px 8px; }
.beta-kopf h2 { font-size: 1.15rem; margin: 0; }
.beta-kopf p { margin: 0; color: var(--text-2); font-size: .92rem; }
.berichte.beta { gap: 12px; }
@media (min-width: 900px) { .berichte.beta { grid-template-columns: repeat(2, 1fr); } }
.berichte.beta .bericht-karte { padding: 16px 18px; gap: 6px; }
.berichte.beta h3 { margin: 0; font-size: 1.02rem; }
.berichte.beta p { font-size: .9rem; }
.berichte.beta .knopf-klein { align-self: flex-start; }
.beta-marke { align-self: flex-start; display: inline-block; padding: 1px 8px; border: 1px solid var(--text-2); border-radius: 6px;
  font: 700 .7rem var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); vertical-align: middle; }

.tabelle { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); overflow: hidden; }
.tabelle caption { text-align: left; color: var(--text-2); padding-bottom: 8px; }
.tabelle th { text-align: right; font-weight: 700; padding: 12px 14px; background: var(--flaeche-2); border-bottom: 2px solid var(--text); }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; }
.tabelle td { text-align: right; padding: 14px; border-bottom: 1px solid var(--rand-fein); }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.balken { display: inline-block; width: 90px; height: 12px; background: var(--rand-fein); border-radius: 6px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.balken span { display: block; height: 100%; width: var(--q); background: var(--gruen); }
@media (max-width: 599px) {
  .tabelle .weg-handy { display: none; }
  .tabelle th, .tabelle td { padding: 12px 6px; }
  .balken { width: 44px; }
}

.summe { font-size: 1.05rem; margin: 0 0 16px; padding: 0 4px; }
.summe b { font-size: 1.3rem; }

.stand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--text-2); font-size: .88rem; margin-top: 28px; padding: 0 4px; }
.stand form { margin: 0; }

.hinweis { padding: 16px 20px; border-radius: var(--rund); margin-bottom: 20px; }
.hinweis.fehler { background: var(--rot-hell); border: 2px solid #f5b5b0; color: #7f1d1d; }
.hinweis.achtung-kasten { background: var(--gelb-hell); border: 2px solid #fde68a; color: var(--gelb); }
.eintrag-zeile.hinweis-zeile { background: var(--gelb-hell); border-radius: 8px; padding: 8px 12px; margin-top: 6px; color: var(--gelb); }
.hinweis.ok-kasten { background: var(--gruen-hell); border: 2px solid #bbe3c6; color: #14532d; }
.knopf-zeile { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 16px; }
.knopf-zeile > :is(.knopf, .knopf-zweit),
.knopf-zeile > form:not(:has(select, textarea, input:not([type="hidden"]))) > :is(.knopf, .knopf-zweit) { min-width: 200px; }
@media (max-width: 600px) {
  .knopf-zeile > :is(.knopf, .knopf-zweit),
  .knopf-zeile > form:not(:has(select, textarea, input:not([type="hidden"]))) { flex: 1 1 100%; min-width: 0; }
  .knopf-zeile > form:not(:has(select, textarea, input:not([type="hidden"]))) > :is(.knopf, .knopf-zweit) { width: 100%; min-width: 0; }
}
.hinweis.ruhig { background: var(--flaeche); color: var(--text-2); box-shadow: var(--schatten); }
.leer { padding: 20px 4px; color: var(--text-2); }

:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

.ladebalken { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: none; }
body.laedt .ladebalken { display: block; }
.ladebalken::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, transparent, var(--rot-marke), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: laufen 1.1s linear infinite; }
.lade-karte { position: fixed; top: 38%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 30px 18px;
  border-radius: 20px; background: var(--flaeche); box-shadow: 0 10px 40px rgb(0 0 0 / 22%); font-weight: 700; color: var(--text);
  opacity: 0; transform: translate(-50%, -50%) scale(.92); pointer-events: none; white-space: nowrap; }
body.laedt .lade-karte { animation: karte-kommt .25s ease-out .9s forwards; }
.lade-logo { display: block; perspective: 500px; }
.lade-logo img { display: block; width: 64px; height: auto; animation: muenze 1.3s cubic-bezier(.45, .05, .25, 1) infinite; }
.marke { perspective: 400px; }
body.laedt .marke img, body.holt .marke img { animation: muenze 1.1s cubic-bezier(.45, .05, .25, 1) infinite; }
@keyframes muenze { 0% { transform: rotateY(0); } 40%, 100% { transform: rotateY(360deg); } }
@keyframes karte-kommt { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.start-intro { display: none; }
html.intro .start-intro { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--grund); pointer-events: none; animation: intro-weg .45s ease-in 1.25s forwards; }
.si-logo { display: block; perspective: 700px; }
.si-logo img { display: block; width: 132px; height: auto; filter: drop-shadow(0 8px 18px rgb(0 0 0 / 18%));
  animation: intro-logo .75s cubic-bezier(.2, 1.4, .4, 1) both; }
.si-linie { display: block; width: 180px; height: 6px; border-radius: 3px; background: var(--rot-marke); transform-origin: left center;
  animation: intro-linie .5s cubic-bezier(.6, 0, .2, 1) .45s both; }
@keyframes intro-logo { from { opacity: 0; transform: scale(.55) rotateY(-120deg); } to { opacity: 1; transform: none; } }
@keyframes intro-linie { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-weg { to { opacity: 0; visibility: hidden; } }
@keyframes laufen { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { .ladebalken::before { animation: none; background: var(--rot-marke); }
  .lade-logo img, body.laedt .marke img, body.holt .marke img { animation: none; } }

.installieren { padding: 22px 24px; max-width: 640px; }
.installieren h2 { font-size: 1.3rem; }
.schritte { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 16px; }
.schritte li { display: flex; gap: 14px; align-items: flex-start; }
.schritt-nr { flex: 0 0 auto; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--rot); color: #fff; font-weight: 700; font-size: 1.1rem; }
.symbol { vertical-align: -5px; margin: 0 2px; }
.fertig-hinweis { background: var(--gruen-hell); border-radius: 10px; padding: 12px 14px; color: #14532d; margin: 0; }
.hilfe { margin-top: 18px; }
.hilfe summary { cursor: pointer; font-weight: 700; color: var(--rot); }
.hilfe p { margin-top: 10px; }
.weiter-ohne { margin-top: 28px; }
.app-hinweis { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 2px dashed var(--text-2); border-radius: var(--rund); color: var(--text); font-weight: 700; text-decoration: none; }
.app-hinweis[hidden] { display: none; }
@media (max-width: 599px) { .installieren { padding: 18px 16px; } }

.breit .inhalt, .breit .kopf-innen, .breit .reiter-innen { max-width: 1440px; }
.nachfrage-spalten { display: grid; gap: 24px; }
.nachfrage-angebot { background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); padding: 16px 18px; }
.nachfrage-angebot h2 { font-size: 1.2rem; margin-bottom: 8px; }
.angebot-blatt { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.angebot-blatt img { width: 96px; height: auto; border: 1px solid var(--rand); border-radius: 4px; box-shadow: 0 2px 8px rgb(0 0 0 / 12%); background: #fff; }
.angebot-rahmen iframe { width: 100%; height: calc(100vh - 160px); min-height: 640px; border: 0; border-radius: 10px; background: var(--rand-fein); }
@media (min-width: 900px) {
  .nachfrage-spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 28px; }
  .nachfrage-angebot { position: sticky; top: 16px; }
  .nachfrage-angebot.mit-rahmen .angebot-blatt img { display: none; }
  .nachfrage-angebot.mit-rahmen .angebot-blatt { margin: 0 0 10px; }
}
@media (max-width: 899px) { .angebot-rahmen { display: none; } }


.reiter { position: relative; z-index: 20; }
.reiter:has(.alles[open]) { z-index: 65; }
.reiter a.nur-gross { display: flex; }
.reiter .reiter-zahl.nur-handy { display: none; }
.alles { margin-left: auto; }
.alles > summary { list-style: none; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: .92rem; color: var(--text-2); cursor: pointer; user-select: none; }
.alles > summary::-webkit-details-marker { display: none; }
.alles > summary:hover, .alles[open] > summary { background: var(--grund); color: var(--text); }
.alles.aktiv > summary { background: var(--text); color: #fff; }
.alles-panel { position: absolute; right: 16px; top: calc(100% + 6px); width: min(460px, calc(100vw - 24px)); padding: 16px;
  background: var(--flaeche); border-radius: 16px; box-shadow: 0 8px 28px rgb(0 0 0 / 22%), 0 0 0 1px var(--rand); }
@media (min-width: 600px) and (max-width: 1099px) {
  .reiter-innen { padding: 8px 16px; gap: 2px; }
  .reiter a, .alles > summary { padding: 0 11px; }
}
@media (min-width: 600px) and (max-width: 759px) { .reiter a.nur-breit { display: none; } }
@media (max-width: 1099px) { .reiter a.nur-pc { display: none; } }
@media (min-width: 760px) and (max-width: 1099px) { .reiter a, .alles > summary { padding: 0 7px; } .reiter-innen { padding: 8px 10px; } }
@media (max-width: 599px) {
  .reiter a.nur-gross { display: none; }
  .alles { margin-left: 0; flex: 0 1 auto; display: flex; }
  .alles > summary { flex: 1 1 auto; min-height: 44px; padding: 0 8px; font-size: 1rem; border-radius: 8px; gap: 5px; }
  .alles.aktiv-handy > summary { background: var(--text); color: #fff; }
  .alles-panel { right: 12px; left: 12px; width: auto; }
  .reiter .reiter-zahl.nur-handy { display: inline-block; }
  .alles > summary .reiter-zahl { right: 0; }
}
.nutzer small { font-size: .78rem; color: var(--text-2); }

.auswahl .reiter-zahl { position: static; }

.alles-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.alles-gruppen { display: grid; gap: 14px; }
.alles-panel .alles-gruppen { max-height: calc(100vh - 170px); overflow-y: auto; }
.alles-titel { margin: 0 0 6px 4px; font-size: .8rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.inhalt .alles-titel { font-size: .9rem; margin-bottom: 10px; }
.inhalt .alles-gruppen { gap: 26px; }
.inhalt .alles-kacheln { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.alles-kachel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 96px; padding: 12px 6px; border-radius: 12px; color: var(--text); text-decoration: none; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.alles-kachel:hover { background: var(--grund); }
.alles-kachel[aria-current="page"] { background: var(--flaeche-2); outline: 2px solid var(--text); }
.inhalt .alles-kachel { background: var(--flaeche); box-shadow: var(--schatten); }
.alles-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grund); color: var(--rot-marke); }
.alles-kachel .reiter-zahl { position: absolute; top: 6px; right: 10px; }
.alles-klein { font-weight: 400; color: var(--text-2); }
.alles-klein .alles-symbol { color: var(--text-2); }

.stempel { max-width: 560px; margin: 0 auto; }
.stempel-kopf { margin-bottom: 16px; }
.stempel-kopf h1 { font-size: 2rem; }
.stempel-kopf p { color: var(--text-2); margin: 0; }
.stempel-stand { padding: 18px 20px; border-radius: var(--rund); background: var(--flaeche); box-shadow: var(--schatten); margin-bottom: 14px; border-left: 8px solid var(--rand); }
.stempel-stand.stand-arbeit { border-left-color: var(--gruen); }
.stempel-stand.stand-pause { border-left-color: #b45309; }
.stempel-stand.stand-schlechtwetter { border-left-color: #5b6b82; }
.stempel-stand.stand-berufsschule, .stempel-stand.stand-lehrgang { border-left-color: var(--blau); }
.stand-gross { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.25; }
.stand-seit { font-weight: 400; color: var(--text-2); font-size: 1.1rem; }
.stand-seit b { color: var(--text); font-weight: 700; }
.stand-ort { margin: 6px 0 0; font-size: 1.1rem; }
.stempel-knoepfe { display: grid; gap: 12px; margin-bottom: 18px; }
.stempel-form { margin: 0; }
.stempel-knopf { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 16px; border: 3px solid transparent;
  font: 700 1.25rem/1.2 var(--schrift); cursor: pointer; text-align: left; min-height: 68px; background: var(--flaeche); color: var(--text); border-color: var(--text); }
.stempel-knopf-text { display: flex; flex-direction: column; gap: 2px; }
.stempel-knopf-text small { font-weight: 400; font-size: 1rem; opacity: .92; }
.stempel-knopf.haupt, .stempel-knopf.gruen { min-height: 104px; font-size: 1.6rem; background: var(--gruen); border-color: var(--gruen); color: #fff; box-shadow: 0 6px 16px rgb(30 91 46 / 30%); }
.stempel-knopf.rot { min-height: 104px; font-size: 1.6rem; background: var(--rot); border-color: var(--rot); color: #fff; box-shadow: 0 6px 16px rgb(179 18 26 / 28%); }
.stempel-knopf.wetter { background: #eef1f6; border-color: #5b6b82; color: #24324a; }
.stempel-knopf:active { transform: scale(.985); }
.stempel-quittung { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--rund);
  background: var(--gruen-hell); border: 2px solid #bbe3c6; color: #14532d; font-weight: 700; }
.stempel-quittung form { margin: 0 0 0 auto; }
.stempel-sync { padding: 12px 16px; border-radius: var(--rund); background: var(--gelb-hell); border: 2px solid #fde68a; color: var(--gelb); font-weight: 700; }
.stempel-sync.rot { background: var(--rot-hell); border-color: #f5b5b0; color: #7f1d1d; }
.stempel-frage h2 { font-size: 1.15rem; }
.stempel-uhrzeit { align-items: flex-end; }
.stempel-uhrzeit label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.stempel-uhrzeit input { min-height: 52px; font: inherit; padding: 0 12px; border: 2px solid var(--text-2); border-radius: 10px; }
.stempel-panel { margin-bottom: 18px; }
.panel-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-kopf h2 { margin: 0; }
.panel-kopf > button { flex-shrink: 0; white-space: nowrap; }
.wetter-baustelle { display: grid; gap: 6px; margin-bottom: 18px; font-weight: 700; }
.wetter-baustelle select { width: 100%; }
.wetter-warum { margin: 0 0 12px; }
.baustellen-liste { display: grid; gap: 10px; }
.baustelle-suche { width: 100%; min-height: 56px; margin-bottom: 12px; padding: 0 14px; font: inherit; border: 2px solid var(--text-2); border-radius: 12px; background: var(--flaeche); }
.stempel-kolonne summary { cursor: pointer; padding: 4px 0; }
.kolonne-liste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.kolonne-liste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kolonne-liste small { color: var(--text-2); }
.schalter { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 700; }
.schalter input { width: 28px; height: 28px; accent-color: var(--gruen); flex: none; }
.stempel-zahlen, .zahl-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.zahl-kachel { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--rund); background: var(--flaeche); box-shadow: var(--schatten); color: var(--text); text-decoration: none; }
.zahl-kachel span { color: var(--text-2); font-size: .92rem; }
.zahl-kachel b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.zahl-kachel small { color: var(--text-2); }
.zahl-kachel.gross b { font-size: 2rem; }
.zahl-kachel.gruen b { color: var(--gruen); }

.marke-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.marke-tag.gruen { background: var(--gruen-hell); color: var(--gruen); }
.marke-tag.rot { background: var(--rot-hell); color: var(--rot-dunkel); }
.marke-tag.blau { background: #e3e9fb; color: var(--blau); }
.marke-tag.grau { background: #eceae4; color: #3f3f3f; }
.marke-tag.gelb { background: var(--gelb-hell); color: var(--gelb); }
.marke-tag.lila { background: #ede7f9; color: #5b3fa8; }.eintrag.mit-hinweis { border-left: 6px solid #f59e0b; }
.eintrag.storniert { opacity: .6; }
.eintrag.storniert .eintrag-titel { text-decoration: line-through; }
.eintrag-link { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; margin-top: 4px; }
.eintraege.kompakt { gap: 8px; }
.abstand-oben { margin-top: 20px; }
.eintraege.kompakt .eintrag { box-shadow: none; border: 1px solid var(--rand-fein); }
.block-link { display: block; text-decoration: none; font-weight: 700; }
.punkt-status { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--rand); }
.punkt-status.arbeit { background: var(--gruen); }
.punkt-status.pause { background: #b45309; }
.punkt-status.wetter { background: #5b6b82; }
.punkt-status.schule { background: var(--blau); }
.punkt-status.fehlt { background: var(--rot); }

.formular { display: grid; gap: 14px; max-width: 760px; }
.formular label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.formular label small { font-weight: 400; color: var(--text-2); order: 2; }
.formular .baustelle-woanders > label { margin-top: 14px; }
.formular .baustelle-woanders > summary { font-weight: 700; cursor: pointer; padding: 10px 0; }
.formular input:not([type="checkbox"]):not([type="radio"]), .formular select, .formular textarea {
  font: inherit; min-height: 52px; padding: 8px 12px; border: 2px solid var(--text-2); border-radius: 10px; background: var(--flaeche); color: var(--text); width: 100%; }
.formular textarea { line-height: 1.5; }
.formular label, .formular input, .formular select, .formular textarea { min-width: 0; }
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"] {
  -webkit-appearance: none; appearance: none; max-width: 100%; text-align: left; }
.formular input[type="date"], .formular input[type="datetime-local"], .formular input[type="time"], .formular input[type="month"] { display: block; }
input[type="date"]::-webkit-date-and-time-value, input[type="datetime-local"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value, input[type="month"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.vorschlag-feld { position: relative; display: block; }
.vorschlag-liste { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  max-height: min(60vh, 440px); overflow-y: auto; background: var(--flaeche); border: 2px solid var(--text); border-radius: 12px; box-shadow: 0 8px 24px #0003; }
.vorschlag { display: grid; gap: 2px; min-height: 52px; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 400; overflow-wrap: anywhere; }
.vorschlag b, .vorschlag span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.vorschlag b { font-weight: 700; }
.vorschlag span { color: var(--text-2); font-size: .92rem; }
.vorschlag[aria-selected="true"], .vorschlag:hover { background: var(--flaeche-2); }
.vorschlag + .vorschlag { border-top: 1px solid var(--rand-fein); }
.formular label small.vorschlag-gewaehlt { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; color: var(--gruen); font-weight: 700; }
.formular label small.vorschlag-gewaehlt[hidden] { display: none; }
.vorschlag-gewaehlt a, .vorschlag-gewaehlt .knopf-text { display: inline-flex; align-items: center; min-height: 44px; font-weight: 400; }
.knopf-text { border: 0; padding: 0; background: none; color: var(--text); text-decoration: underline; font: inherit; cursor: pointer; }
.formular h2 { margin: 12px 0 0; }
.formular .schalter { flex-direction: row; }
@media (min-width: 760px) { .formular.zwei-spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; } .formular.zwei-spalten .breit { grid-column: 1 / -1; }
  .formular.zwei-spalten .zeile-allein { grid-column: 1 / -1; width: calc(50% - 10px); } }
.formular .knopf-gross { justify-self: start; }
@media (max-width: 599px) { .formular .knopf-gross { justify-self: stretch; } }
.mit-einheit { display: flex; align-items: center; gap: 10px; }
.mit-einheit input { max-width: 260px; }
.mit-einheit span { font-weight: 400; color: var(--text-2); white-space: nowrap; flex: none; }
.mit-einheit input { min-width: 0; }
.mit-einheit select.zeit-einheit { flex: none; width: auto; min-width: 92px; }
.mit-einheit input[hidden] { display: none; }
.einheit-feld { display: flex; gap: 6px; align-items: stretch; }
.einheit-feld input { flex: 1 1 auto; min-width: 0; }
.mit-einheit.einheit-feld { align-items: center; gap: 10px; }
.mit-einheit select.einheit-auswahl { flex: none; width: auto; min-width: 92px; }
.v2-bearb .einheit-feld select.einheit-auswahl { flex: none; width: 52px; padding: 0; text-align: center; text-align-last: center; cursor: pointer; appearance: none; -webkit-appearance: none; font-weight: 700; }
.mit-einheit .einheit-knopf { flex: none; min-width: 64px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche, transparent); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.einstellungen-formular label { padding-bottom: 12px; border-bottom: 1px solid var(--rand-fein); }
.saison-tabelle th, .saison-tabelle td { padding: 8px 10px; vertical-align: middle; }
.saison-tabelle thead th small { display: block; font-weight: 400; color: var(--text-2); white-space: nowrap; }
.formular .saison-tabelle input:not([type="checkbox"]):not([type="radio"]) { width: 4.6em; text-align: right; }
.saison-tabelle .saison-summe td { font-weight: 700; }
.saison-kw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
.klein-formular { margin-top: 14px; }
.gross-feld input { font-size: 1.3rem !important; min-height: 64px !important; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 700; margin-bottom: 8px; }
@supports selector(:has(*)) {
  .stimmt-nicht .nur-anfang, .stimmt-nicht .nur-baustelle { display: none; }
  .stimmt-nicht:has(input[value="Der Anfang stimmt nicht"]:checked) .nur-anfang,
  .stimmt-nicht:has(input[value="Falsche Baustelle"]:checked) .nur-baustelle { display: flex; }
}
.chip { flex-direction: row !important; align-items: center; gap: 8px !important; padding: 10px 14px; border: 2px solid var(--rand); border-radius: 999px; background: var(--flaeche); font-weight: 400 !important; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--text); background: var(--text); color: #fff; }

.entscheidungen li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; }
.entscheiden { display: inline-flex; gap: 8px; }
.entscheiden form { margin: 0; }
.ablehnen { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ablehnen input { min-height: 44px; padding: 0 10px; border: 2px solid var(--rand); border-radius: 10px; font: inherit; font-size: max(16px, .9rem); }

.tabelle-rahmen { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--rund); }
.tabelle.rechte td:not(:first-child), .tabelle.rechte th:not(:first-child) { text-align: center; }
.tabelle tfoot td { font-weight: 700; border-top: 2px solid var(--text); background: var(--flaeche-2); }
.jahres-tabelle th a { color: inherit; text-decoration: none; display: flex; align-items: center; min-height: 44px; margin-block: -11px; }
.jahres-tabelle th a:hover, .jahres-tabelle th[aria-sort] a { color: var(--rot); }
.jahres-tabelle th, .jahres-tabelle td { padding: 12px 10px; }
@media (max-width: 699px) { .jahres-tabelle .nur-gross { display: none; } }
@media (max-width: 400px) { .jahres-tabelle th, .jahres-tabelle td { padding: 10px 6px; font-size: .95rem; } }
.lohn-tabelle tr.mit-hinweis td { background: var(--gelb-hell); }
.lohn-tabelle .zeile-hinweis { display: block; font-size: .875rem; font-weight: 700; color: var(--gelb); }
.lohn-tabelle .zeile-hinweis-neben { display: block; font-size: .875rem; color: var(--text-2); }
.ki-zeichen { color: var(--ki); }
.ki-entwurf .eintrag { grid-template-columns: minmax(0, 1fr); }
.ki-entwurf .ki-wahl { align-items: center; font-weight: 400; }
.ki-entwurf .ki-wahl input { flex: none; }
.ki-entwurf .ki-unsicher-eintrag { background: var(--gelb-hell); border-radius: 10px; }
.ki-entwurf .kuerzel { font-size: .85rem; font-weight: 700; color: var(--text-2); }
.katalog-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 16px; border: 0; border-radius: var(--rund); background: var(--flaeche); color: var(--text); box-shadow: 0 12px 40px rgb(0 0 0 / 30%); }
.katalog-dialog::backdrop { background: rgb(20 16 12 / 45%); }
.mail-popup-form h2 { margin: 0; color: var(--rot); }
.mail-popup-form textarea, .mail-popup-form input { width: 100%; font-weight: 400; }
.mail-popup-form .hinweis { margin: 0; padding: 10px 14px; }
.mail-popup-form .mail-signatur { margin: 0; padding: 8px 12px; border-left: 3px solid var(--rand); font: inherit; font-size: 0.9em; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-popup .mail-popup-fuss { position: sticky; bottom: -16px; display: grid; gap: 10px; margin: 0 -16px -16px; padding: 10px 16px 16px; background: var(--flaeche); box-shadow: 0 -6px 12px rgb(0 0 0 / 8%); }
.mail-popup-form textarea { min-height: 6em; }
.katalog-dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.katalog-dialog-kopf h2 { margin: 0; }
.katalog-suche .suche-zeile { display: flex; flex-wrap: wrap; gap: 8px; }
.katalog-suche input[type="search"] { flex: 1 1 220px; min-width: 0; }
.katalog-suche select { flex: 0 1 200px; min-width: 0; min-height: 52px; font: inherit; padding: 0 10px; border: 2px solid var(--text-2); border-radius: 10px; background: var(--flaeche); color: var(--text); }
.katalog-treffer .eintrag { align-items: start; }
.katalog-einfuegen { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; grid-column: 1 / -1; margin-top: 6px; }
.katalog-einfuegen label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.katalog-einfuegen input { width: 5.5em; min-height: 44px; font-size: 1.0625rem; text-align: right; padding: 6px 8px; border: 2px solid var(--rand); border-radius: 8px; }
.katalog-treffer details summary { cursor: pointer; color: var(--text-2); }
.katalog-einfuegen .knopf-klein { margin-top: 0; }
.katalog-kacheln .zahl-kachel b { white-space: nowrap; }
.foto-lesen { margin: 0 0 16px; }
.foto-liest { margin: 0 0 16px; }
.foto-gelesen { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; }
.foto-gelesen img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; }
.foto-gelesen p { margin: 0; }
.foto-gelesen b { color: var(--ki); }
.formular .ki-unsicher { background: var(--gelb-hell); border-color: var(--gelb); }
.formular label small.iban-hinweis { font-weight: 700; }
.formular label small.iban-hinweis.ok { color: var(--gruen); }
.formular label small.iban-hinweis.falsch { color: var(--rot); }
.formular input[aria-invalid="true"] { border-color: var(--rot); }
.formular .wahl .wahl-zeile, .formular .plan-chip { flex-direction: row; align-items: center; }
.lohn-kacheln .zahl-kachel b { white-space: nowrap; font-size: clamp(1.15rem, 5.5vw, 1.6rem); }
.lohn-kacheln { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.lohn-kacheln.lohn-summe { margin-bottom: 12px; }
.lohn-kacheln .zahl-kachel.gross b { font-size: clamp(1.6rem, 8vw, 2rem); }
.tabelle td.text, .tabelle th.text { text-align: left; }
.wahl { border: 0; padding: 0; margin: 0 0 16px; }
.wahl legend { font-weight: 700; margin-bottom: 6px; }
.wahl .wahl-zeile { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 10px 12px; margin-bottom: 8px; border: 2px solid var(--rand); border-radius: 10px; font-size: 1.0625rem; cursor: pointer; }
.wahl .wahl-zeile:has(input:checked) { border-color: var(--text); background: var(--flaeche-2); }
.wahl .wahl-zeile input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--text); }
.wahl .wahl-zeile .wahl-feld { display: flex; align-items: center; gap: 12px; margin: -8px 0; }
.wahl .wahl-zeile .mit-einheit input { width: 5em; height: 40px; margin: 0; accent-color: auto; }
.vorlage-summe { font-size: 1.125rem; margin: 0 0 14px; }
.lohn-tabelle .feld-kurz { width: 5.5em; min-height: 44px; font-size: 1.125rem; text-align: right; padding: 6px 8px; border: 2px solid var(--rand); border-radius: 8px; }

.kalender { border-collapse: separate; border-spacing: 0; background: var(--flaeche); font-variant-numeric: tabular-nums; font-size: .9rem; }
.kalender th, .kalender td { min-width: 30px; height: 36px; text-align: center; border-bottom: 1px solid var(--rand-fein); border-right: 1px solid #f1efea; padding: 0 2px; }
.kalender thead th { font-size: .82rem; line-height: 1.1; padding: 6px 2px; }
.kalender thead th small { display: block; color: var(--text-2); font-weight: 400; }
.kalender .kal-name { position: sticky; left: 0; z-index: 1; background: var(--flaeche); text-align: left; padding: 0 10px; white-space: nowrap; min-width: 140px; font-weight: 700; }
.tabelle-rahmen.kal-rahmen { max-height: calc(100dvh - 16px); overflow: auto; overscroll-behavior-y: auto; }
.kalender thead th { position: sticky; top: 0; z-index: 2; background: var(--flaeche); box-shadow: inset 0 -1px 0 var(--rand); }
.kalender thead th.kal-we { background: #f7f5f0; }
.kalender thead th.kal-feiertag { background: #eceae4; }
.kalender thead th.kal-heute { box-shadow: inset 0 -3px 0 var(--rot); }
.kalender thead th.kal-name { z-index: 3; }
@media print { .tabelle-rahmen.kal-rahmen { max-height: none; overflow: visible; } }
.kal-we { background: #f7f5f0; color: #8d877c; }
.kal-feiertag { background: #eceae4; color: #5f5a50; font-weight: 700; }
.kal-heute { box-shadow: inset 0 -3px 0 var(--rot); }
td.kal-gruen, span.kal-gruen { background: var(--gruen); color: #fff; font-weight: 700; }
td.kal-blau, span.kal-blau { background: var(--blau); color: #fff; font-weight: 700; }
td.kal-rot, span.kal-rot { background: var(--rot); color: #fff; font-weight: 700; }
td.kal-grau, span.kal-grau { background: #8d877c; color: #fff; font-weight: 700; }
td.kal-wetter, span.kal-wetter { background: #5b6b82; color: #fff; font-weight: 700; }
td.kal-beantragt, span.kal-beantragt { background: #fdf0d5; color: var(--gelb); font-weight: 700; }
.kal-bearbeiten td[data-tag] { padding: 0; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.kal-bearbeiten td[data-tag] > a { display: grid; place-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.kal-bearbeiten td[data-tag]:hover { box-shadow: inset 0 0 0 2px var(--text); }
.kalender td.kal-auswahl { background: #fde68a; color: var(--text); box-shadow: inset 0 0 0 2px var(--gelb); }
.kal-tipp { margin: 8px 4px 0; }
.kal-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; color: var(--text-2); margin-top: 14px; }
.kal-legende .paar { white-space: nowrap; }
.kal-legende span:not(.paar) { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; margin-left: 10px; }
.kal-legende .paar:first-child span { margin-left: 0; }

.hochladen { margin-bottom: 16px; }
.arten-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.arten-wahl .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--rand); border-radius: 999px; background: var(--flaeche); cursor: pointer; }
.arten-wahl .chip:has(input:checked) { border-color: var(--text); background: var(--text); color: #fff; }
.datei-knopf { position: relative; overflow: hidden; }
.datei-knopf input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.wartet { opacity: .5; pointer-events: none; }
.hochladen-status { font-weight: 700; color: var(--gelb); }
.ziehen-hinweis { display: none; margin: 8px 0 0; color: var(--text-2); font-size: .9rem; }
@media (hover: hover) and (pointer: fine) { .mappe .ziehen-hinweis, .v2-anlagen .ziehen-hinweis { display: block; } }
.v2-anlagen:not(.kasten) { margin: 14px 0 18px; }
.v2-anlagen:not(.kasten) h2 { padding-top: 14px; border-top: 1px dashed var(--rand); }
.v2-anlagen h2 { font-size: 1rem; margin: 0 0 8px; }
.v2-anlagen .hochladen { margin: 8px 0 0; }
.v2-anlagen .v2-tipp { margin: 6px 0 0; }
.ziehen-ebene { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgb(255 255 255 / 86%); pointer-events: none; }
.ziehen-ebene[hidden] { display: none; }
.ziehen-ebene > div { width: min(560px, 100%); padding: 40px 24px; border: 4px dashed var(--rot); border-radius: var(--rund); background: var(--flaeche); text-align: center; box-shadow: 0 8px 30px rgb(0 0 0 / 12%); }
.ziehen-ebene p { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--rot); overflow-wrap: anywhere; }
.ziehen-ebene small { display: block; margin-top: 10px; font-size: 1rem; color: var(--text-2); overflow-wrap: anywhere; }
.ziehen-ebene.fehler { pointer-events: auto; cursor: pointer; }
.ziehen-ebene.fehler p { font-size: 1.15rem; color: var(--text); }
.bilder { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bild { display: flex; flex-direction: column; gap: 6px; }
.bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--rand-fein); display: block; }
.bild-unter { font-size: .85rem; color: var(--text-2); line-height: 1.3; }
.bild-aktion, .frei-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.frei-knopf { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--rand); background: var(--flaeche); font: 700 .82rem var(--schrift); color: var(--text-2); cursor: pointer; }
.frei-knopf.an { border-color: var(--gruen); background: var(--gruen-hell); color: var(--gruen); }
.notiz-karte { padding: 12px 14px; border-left: 5px solid var(--rand); background: var(--flaeche-2); border-radius: 8px; margin-bottom: 10px; }
.notiz-karte p { margin: 0 0 6px; white-space: pre-wrap; }
.notiz-form { margin-top: 16px; }
.umbruch { white-space: pre-wrap; }
.lt-z { display: block; }
.lt-strich { display: flex; }
.lt-strich > span:first-child { flex: none; width: 1em; }
.lt-strich > span:last-child { flex: 1; min-width: 0; overflow-wrap: break-word; }
.knopf-spalte { display: grid; gap: 10px; }
.knopf-spalte form { margin: 0; }
.knopf-spalte .knopf, .knopf-spalte .knopf-zweit { width: 100%; }
.heute-knoepfe { margin: 0 0 16px; }
.ki-chip-klein { display: inline-block; padding: 2px 10px; border-radius: 6px; background: var(--ki); color: var(--ki-hell); font-size: .82rem; font-weight: 700; }
.knopf-ki.knopf-klein { min-height: 44px; padding: 0 12px; font-size: .85rem; }

.blatt-spalten { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 900px) { .blatt-spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } .blatt-bilder { position: sticky; top: 16px; } }
.blatt-bilder { display: grid; gap: 12px; }
.blatt-bilder img { width: 100%; border-radius: 10px; box-shadow: var(--schatten); background: #fff; }
.blatt .kasten h2 { font-size: 1.1rem; margin-bottom: 8px; }
.blatt-tabelle td { text-align: left !important; vertical-align: top; }
.blatt-tabelle tr.unsicher td, .blatt-liste li.unsicher { background: #fff4c2; }
.blatt-tabelle small { color: var(--gelb); }
.blatt-liste { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.blatt-liste li { padding: 2px 6px; border-radius: 6px; }
.abschrift { white-space: pre-wrap; font: inherit; margin: 10px 0 0; }

.gespraech { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; }
.gespraech li { max-width: 640px; padding: 12px 16px; border-radius: 14px; background: var(--flaeche); box-shadow: var(--schatten); }
.gespraech li.ich { justify-self: end; background: #e8f0e9; }
.gespraech li p { margin: 0 0 6px; }
.gespraech li img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.gespraech small { color: var(--text-2); }
.gespraech li audio { display: block; width: 100%; max-width: 360px; margin: 6px 0; }
.gespraech li[data-gesendet] { scroll-margin: 90px 0; outline: 2px solid #bbe3c6; }
p.gespeichert, .gespraech li p.gespeichert { margin: 6px 0 0; color: var(--gruen); font-weight: 700; }
form.autosave-an [type="submit"]:not([formaction]) { display: none; }
.autosave-zeichen { display: block; margin-top: 4px; font-size: 1rem; font-weight: 700; color: var(--gruen); }
form.autosave-an .autosave-fertig { grid-column: 1 / -1; text-align: center; }
.autosave-zeichen.fehler { color: var(--rot, #b3261e); font-weight: 600; }
.feld-gespeichert { border-color: #4caf6a !important; box-shadow: 0 0 0 2px #bbe3c6 !important; animation: feld-gespeichert 2.5s ease-out; }
label.feld-gespeichert { border-radius: 8px; }
@keyframes feld-gespeichert { from { background-color: #d6f0dc; } }
@media (prefers-reduced-motion: reduce) { .feld-gespeichert { animation: none; } }
.push-zeile { color: var(--text-2); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.push-zeile[hidden] { display: none; }
.push-leiste { background: var(--gelb-hell); border-bottom: 2px solid #fde68a; color: var(--gelb); }
.push-leiste[hidden], .push-leiste [hidden] { display: none; }
.push-leiste-innen { max-width: 1180px; margin: 0 auto; padding: 8px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .95rem; font-weight: 700; }
.push-leiste-innen svg { flex: none; }
.push-leiste-innen span { flex: 1 1 12em; }
.push-leiste .knopf-klein { flex: none; }
@media (max-width: 599px) { .push-leiste-innen { padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); } }
@media print { .push-leiste { display: none !important; } }

.hilfe-knopf {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0;
  border-radius: 50%; background: var(--rot); color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
}
.hilfe-knopf:hover { background: var(--rot-dunkel); }
body:has(.hilfe-knopf) .inhalt { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media print { .hilfe-knopf { display: none !important; } }
@media print { body:has(.hilfe-knopf) .inhalt, .inhalt { padding-bottom: 0; } }

.mit-vorschlaegen { position: relative; }
.vorschlaege {
  position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  max-height: min(70vh, 520px); overflow-y: auto; background: var(--flaeche); border: 2px solid var(--rand);
  border-radius: var(--rund); box-shadow: 0 8px 24px rgb(0 0 0 / 18%); text-align: left;
}
.vorschlaege a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline;
  min-height: 48px; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none;
}
.vorschlaege a:hover, .vorschlaege a[aria-selected="true"] { background: var(--grund); }
.vorschlaege b { overflow-wrap: anywhere; }
.vorschlaege small { grid-column: 1 / -1; color: var(--text-2); font-size: .88rem; }
.vorschlag-art { color: var(--text-2); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.vorschlag-leer { padding: 10px 12px; color: var(--text-2); }
.vorschlag-stand { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #e3e9fb; color: var(--blau); white-space: nowrap; }
.vorschlag-stand.entwurf { background: #eceae4; color: #3f3f3f; }

.einblendungen {
  position: fixed; z-index: 60; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top));
  display: grid; justify-items: center; gap: 10px; padding: 0 16px; pointer-events: none;
}
.einblendung {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; width: min(560px, 100%);
  padding: 14px 10px 14px 18px; border-radius: var(--rund); border: 2px solid; box-shadow: 0 6px 20px rgb(0 0 0 / 22%);
  transition: opacity .3s, transform .3s;
}
.einblendung.ok { background: var(--gruen-hell); border-color: #bbe3c6; color: #14532d; }
.einblendung.achtung { background: var(--gelb-hell); border-color: #fde68a; color: var(--gelb); }
.einblendung.fehler { background: var(--rot-hell); border-color: #f5b5b0; color: #7f1d1d; }
.einblendung.geht { opacity: 0; transform: translateY(-12px); }
.einblendung-text { flex: 1; display: grid; gap: 10px; justify-items: start; }
.einblendung-zu { flex: none; width: 44px; height: 44px; margin: -10px 0; border: 0; background: none; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hinweis.fehler .einblendung-melden { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .einblendung { transition: none; } }
@media print { .einblendungen { display: none !important; } }

.ansicht-balken { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 10px 16px; background: var(--gelb-hell); border-bottom: 2px solid #fde68a; color: var(--gelb); font-size: 1.05rem; }
.ansicht-balken form { margin: 0; }
@media print { .ansicht-balken { display: none; } }

.knopf-zeile-hilfe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopf-zeile-hilfe > * { flex: 1 1 220px; }
.aufnahme-knopf.laeuft { background: var(--rot); border-color: var(--rot); color: #fff; }
.aufnahme-status { margin: 0; color: var(--text-2); }

.angebot-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .angebot-spalten { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .angebot-seite { position: sticky; top: 12px; } }
.positionen { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.pos { background: var(--flaeche); border-radius: 12px; box-shadow: var(--schatten); padding: 10px 14px; scroll-margin: 90px 0; }
.pos-kopf { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto auto auto; gap: 4px 14px; align-items: baseline; }
.pos-nr { color: var(--text-2); font-variant-numeric: tabular-nums; }
.pos-text small { color: var(--text-2); }
.pos-menge, .pos-ep, .pos-gp { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pos-gp { font-weight: 700; min-width: 7.5em; }
.pos-gp.ausserhalb { color: var(--text-2); font-weight: 400; }
.pos-ep small { color: var(--text-2); }
.pos-titel { background: var(--flaeche-2); border-left: 6px solid var(--text); }
.pos-titel .pos-text b { font-size: 1.08rem; }
.pos-direkt { display: grid; gap: 4px; }
.pos-direkt :is(input, textarea) { width: 100%; }
.pos-titel .pos-direkt input { font-weight: 700; font-size: 1.08rem; }
textarea[data-wachsen] { resize: vertical; }
.pos-text-zeile, .pos.pos-text { box-shadow: none; background: transparent; padding-left: 0; }
.pos.pos-zwischensumme { background: var(--flaeche-2); border-top: 2px solid var(--text); }
.pos-zwischensumme .pos-gp { grid-column: -2 / -1; text-align: right; }
.pos-bearbeiten summary { cursor: pointer; color: var(--rot); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.pos-formular { margin-top: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: none; display: grid; }
.pos-formular .breit { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .pos-kopf { grid-template-columns: 2.6em minmax(0, 1fr); }
  .pos-menge, .pos-ep, .pos-gp { grid-column: 2; text-align: left; }
}
.pos-neu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; background: var(--flaeche); padding: 12px 14px; border-radius: 12px; box-shadow: var(--schatten); margin-bottom: 12px; }
.pos-neu label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9rem; }
.pos-neu label { min-width: 0; }
.pos-neu input { width: 100%; min-width: 0; min-height: 52px; font: inherit; font-size: max(16px, 1rem); padding: 0 12px; border: 2px solid var(--text-2); border-radius: 10px; }
.pos-neu-text { grid-column: 1 / -1; }
.pos-neu .knopf { grid-column: 1 / -1; justify-self: start; }
.summe-kasten dd { text-align: right; font-variant-numeric: tabular-nums; }
.summe-kasten .angaben { grid-template-columns: 1fr auto; }
.hinweise-kasten ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.hinweise-kasten li.schwer, .hinweise-kasten li.schwer a { color: var(--rot-dunkel); font-weight: 700; }
.ok-zeile { display: flex; align-items: center; gap: 8px; color: var(--gruen); font-weight: 700; }

.brief-blatt { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px 48px; box-shadow: var(--schatten); font-size: 15px; line-height: 1.45; }
.brief-kopf-druck { display: flex; gap: 16px; align-items: center; justify-content: flex-end; text-align: right; font-size: 13px; border-bottom: 3px solid var(--rot-marke); padding-bottom: 12px; }
.absender-zeile { font-size: 10px; color: var(--text-2); margin: 28px 0 4px; text-decoration: underline; }
.brief-blatt address { font-style: normal; min-height: 5.5em; margin-bottom: 18px; }
.brief-datum { text-align: right; }
.brief-betreff { font-size: 1.25rem; margin: 18px 0 10px; }
.druck-pos { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.druck-pos th { text-align: left; border-bottom: 2px solid var(--text); padding: 6px 4px; }
.druck-pos td { border-bottom: 1px solid var(--rand-fein); padding: 6px 4px; vertical-align: top; }
.druck-pos .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.druck-titel td { padding-top: 14px; }
.druck-pos tfoot td { border: 0; padding: 4px; }
.druck-pos tfoot td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.druck-gesamt td { font-weight: 700; border-top: 2px solid var(--text) !important; }
.brief-fuss { margin-top: 30px; padding-top: 10px; border-top: 1px solid var(--rand); font-size: 11px; color: var(--text-2); }
@media (max-width: 700px) { .brief-blatt { padding: 20px 16px; } }
.druck-bild figure { margin: 6px 0; }
.druck-bild img { display: block; max-width: 100%; max-height: 110mm; }
.druck-bild figcaption { font-size: 13px; color: var(--text-2); margin-top: 4px; }
@media print { .neue-seite { break-before: page; } .druck-bild { break-inside: avoid; } }
.brief-bilder { margin: 14px 0 18px; }
.brief-bilder.bilder-halb, .brief-bilder.bilder-klein { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.brief-bilder.bilder-halb > .druck-bild { width: calc(50% - 6px); }
.brief-bilder.bilder-klein > .druck-bild { width: calc((100% - 24px) / 3); }
.brief-bilder.bilder-halb > .druck-bild img { max-height: 80mm; }
.brief-bilder.bilder-klein > .druck-bild img { max-height: 55mm; }
@media screen { .brief-blatt + .brief-blatt { margin-top: 24px; } }
.pos-vorschau { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; vertical-align: middle; }

.brief-blatt.ansicht { max-width: 800px; }
.ansicht-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 800px; margin: 0 auto 12px; }
.ansicht-leiste .zurueck { margin: 0; }
.ansicht-status { margin-left: auto; font-weight: 700; color: var(--gruen); min-height: 1.4em; }
.ansicht-status.fehler { color: var(--rot-dunkel); }
.ansicht .az-feld { display: block; width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; font-size: max(16px, 1em); color: inherit; background: transparent; border: 1px dashed var(--rand-fein); border-radius: 6px; padding: 8px 8px; margin: 0; resize: vertical; }
.ansicht .az-feld:hover { border-color: var(--rand); }
.ansicht .az-feld:focus { outline: none; border: 1px solid var(--rot-marke); background: #fffdf7; }
.ansicht .az-betreff { margin-top: 4px; font-weight: 700; }
.ansicht .az-brieftext { margin: 8px 0; }
.ansicht-pos { list-style: none; margin: 14px 0; padding: 0; border-top: 2px solid var(--text); }
.az { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 6px; padding: 8px 0; border-bottom: 1px solid var(--rand-fein); background: #fff; }
.az.zieht { box-shadow: var(--schatten); z-index: 2; opacity: .95; }
.az.neue-seite { border-top: 2px dashed var(--rot-marke); }
.az-griff { grid-row: 1 / span 2; align-self: start; width: 44px; height: 44px; margin-left: -8px; border: 0; background: transparent; color: var(--text-2); font-size: 20px; cursor: grab; touch-action: none; border-radius: 6px; }
.az-griff:hover, .az-griff:focus-visible { background: var(--flaeche); color: var(--text); }
.az-inhalt { min-width: 0; }
.az-titel-zeile, .az-position { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: start; }
.az-position { grid-template-columns: auto 1fr auto; }
.az-zwischensumme { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; border-top: 1px solid var(--text); padding-top: 6px; }
.az-zwischensumme .az-feld { flex: 1 1 12em; min-width: 0; font-weight: 700; }
.az-zs-betrag { margin-left: auto; font-variant-numeric: tabular-nums; }
.az-nr { font-variant-numeric: tabular-nums; padding-top: 11px; min-width: 2.2em; }
.az-titel-feld, .az-kurz { font-weight: 700; }
.az-zahlen { display: grid; justify-items: end; gap: 2px; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 11px; }
.az-texte { display: grid; gap: 4px; min-width: 0; }
.az-bild { margin: 0; }
.az-bild img { display: block; max-width: 100%; max-height: 360px; border-radius: 6px; }
.az-unterschrift { color: var(--text-2); margin-top: 4px !important; }
.az-werkzeug { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.az-werkzeug form { margin: 0; }
.az-plus { min-height: 44px; border: 1px dashed var(--rand); background: transparent; border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.az-plus:hover, .az-plus:focus-visible { border-color: var(--rot-marke); color: var(--text); }
.einfuegen-kasten { max-width: 800px; margin: 16px auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.einfuegen-kasten > * { min-width: 0; }
.einfuegen-stelle select { width: 100%; min-width: 0; max-width: 100%; }
.ansicht .absender-zeile, .ansicht .tf-firma { font-size: 14px; }
.einfuegen-kasten h2 { margin: 0; }
.einfuegen-kasten.markiert { outline: 3px solid var(--rot-marke); }
.einfuegen-kasten.an-zeile { grid-column: 1 / -1; margin: 10px 0 4px; padding: 14px 12px; width: 100%; font-size: 1.0625rem; border: 2px solid var(--text); box-shadow: none; }
body:has(:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), textarea, select):focus) .hilfe-knopf { display: none; }
.einfuegen-stelle { display: grid; gap: 4px; font-weight: 700; max-width: 520px; }
.einfuegen-wahl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; background: var(--text); border: 2px solid var(--text); border-radius: 12px; overflow: hidden; }
.einfuegen-reiter { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; padding: 8px 2px 6px; font-weight: 700; font-size: .75rem; line-height: 1.15; cursor: pointer; background: var(--flaeche); text-align: center; hyphens: manual; }
.einfuegen-wahl:has(> :nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); }
.einfuegen-reiter > span:last-child { white-space: nowrap; }
.einfuegen-reiter:has(input[value="zwischensumme"]) > span:last-child { white-space: normal; }
.einfuegen-reiter .v2-chip-sym { width: 32px; height: 32px; }
.einfuegen-reiter:has(input:checked) .v2-chip-sym { box-shadow: 0 0 0 2px #fff; }
.einfuegen-reiter input { position: absolute; opacity: 0; pointer-events: none; }
.einfuegen-reiter:has(input:checked) { background: var(--text); color: #fff; }
.einfuegen-reiter:has(input:focus-visible) { outline: 3px solid var(--rot-marke); outline-offset: -5px; }
.einfuegen-form { display: grid; gap: 12px; max-width: 620px; margin: 0; }
.einfuegen-form .knopf { justify-self: start; }
.einfuegen-zeile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.einfuegen-form > label[for] { font-weight: 700; margin-bottom: -8px; }
.einfuegen-eins { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.einfuegen-eins input { min-width: 0; }
.einfuegen-eins .knopf { margin: 0; white-space: nowrap; }
@supports selector(:has(a)) {
  .einfuegen-form { display: none; }
  .einfuegen-kasten:has(input[value="position"]:checked) [data-art="position"],
  .einfuegen-kasten:has(input[value="text"]:checked) [data-art="text"],
  .einfuegen-kasten:has(input[value="titel"]:checked) [data-art="titel"],
  .einfuegen-kasten:has(input[value="bild"]:checked) [data-art="bild"],
  .einfuegen-kasten:has(input[value="zwischensumme"]:checked) [data-art="zwischensumme"] { display: grid; }
}
.az-mappe { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; max-height: 260px; overflow: auto; }
.az-mappe legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.az-mappe-bild { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 2px solid var(--rand); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--flaeche); }
.az-mappe-bild input { position: absolute; opacity: 0; pointer-events: none; }
.az-mappe-bild img { width: 100%; height: 100%; object-fit: cover; }
.az-mappe-bild:has(input:checked) { border-color: var(--rot-marke); box-shadow: 0 0 0 3px var(--rot-marke); }
.az-mappe-bild:has(input:focus-visible) { outline: 3px solid var(--text); }
.einfuegen-form .az-datei { justify-self: start; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; }
.az-bild-gewaehlt { margin: 0; font-weight: 700; color: var(--gruen); }
.az-bild-gewaehlt.az-bild-fehlt { color: var(--rot-marke); }
@media (max-width: 500px) {
  .einfuegen-zeile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .einfuegen-zeile > label:last-child { grid-column: 1 / -1; }
}
.az-groesse { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.ansicht .az-regler { flex: 1; max-width: 260px; min-height: 44px; border: 0; padding: 0; background: transparent; accent-color: var(--rot-marke); }
.az-groesse output { min-width: 3.5em; font-variant-numeric: tabular-nums; }
.az-bild { max-width: 100%; }
.az-bild[style] img, .druck-bild figure[style] img { width: 100%; max-height: none; }

.tf-kopf { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.tf-anschrift { min-width: 0; }
.tf-anschrift .absender-zeile { margin-top: 36px; }
.tf-firma { text-align: right; font-size: 12px; color: var(--text-2); flex: none; }
.tf-firma img { display: block; margin-left: auto; width: 110px; height: auto; }
.tf-firma p { margin: 8px 0 0; line-height: 1.35; }
.tf-beleg { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 14px 0 10px; }
.tf-art { font-size: 1.05rem; letter-spacing: .02em; margin: 0; }
.tf-angaben { display: grid; grid-template-columns: auto auto; gap: 0 12px; margin: 0; font-size: 13px; }
.tf-angaben dt { margin: 0; }
.tf-angaben dt::after { content: ":"; }
.tf-angaben dd { margin: 0; font-variant-numeric: tabular-nums; }
.tf-betreff { margin: 10px 0 2px; }
.tf-standort { margin: 0 0 10px; font-size: 14px; }
.tf-pos th { font-weight: 400; border-bottom: 1px solid var(--text); font-size: 13px; }
.tf-pos td { border-bottom: 0; padding: 7px 4px; }
.tf-pos td.zahl { vertical-align: bottom; }
.tf-pos td.tf-menge { vertical-align: top; }
.tf-pos th:first-child, .tf-pos td:first-child { width: 4.2em; font-variant-numeric: tabular-nums; }
.tf-titel td { text-align: center; font-weight: 700; padding-top: 18px; }
.tf-titelsumme td { border-top: 1px solid var(--text); padding-top: 6px; padding-bottom: 14px; }
.tf-titelsumme td.zahl { font-weight: 700; }
.tf-zwischensumme td { border-top: 1px solid var(--text); padding-top: 6px; padding-bottom: 10px; font-weight: 700; }
.tf-zusammen { margin-top: 18px; break-inside: avoid; }
.tf-zusammen h2 { font-size: 1.05rem; font-weight: 400; border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); padding: 6px 0; margin: 0 0 6px; }
.tf-zusammen-tabelle, .tf-summen { width: 100%; border-collapse: collapse; font-size: 14px; }
.tf-zusammen-tabelle td { padding: 2px 4px; }
.tf-zusammen-tabelle td:first-child { padding-left: 30%; }
.tf-summen { margin: 10px 0 18px; break-inside: avoid; }
.tf-summen td { padding: 3px 4px; }
.tf-summen td:first-child { padding-left: 45%; }
.tf-summen td.zahl { border-bottom: 1px solid var(--rand-fein); }
.tf-zusammen-tabelle .zahl, .tf-summen .zahl { width: 9em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tf-gesamt td { font-weight: 700; }
.tf-gesamt td.zahl { border-bottom: 3px double var(--text); }
.tf-fuss { border-top: 3px solid var(--rot-marke); }
.tf-hinweise { margin-top: 18px; }
.tf-schluss { margin: 28px 0 18px; font-size: 14px; line-height: 1.35; }
.tf-widerruf { font-size: 12px; line-height: 1.3; }
.tf-unterschrift { break-inside: avoid; page-break-inside: avoid; }
.tf-schluss p { margin: 0; }
.tf-schluss .tf-absatz { height: .7em; }
.tf-schluss-titel { font-size: 15px; margin: 0 0 6px; }
.tf-widerruf { margin: 10px 0 14px; }
.tf-ankreuzen { display: flex; gap: 8px; align-items: flex-start; }
.tf-kaestchen { flex: none; width: 13px; height: 13px; border: 1.5px solid var(--text); margin-top: 3px; }
.tf-kunde-titel { margin-top: 14px !important; }
.tf-kunde { font-style: normal; margin: 6px 0 18px; }
.tf-unterschrift-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tf-unterschrift-felder div { min-height: 64px; border-bottom: 1px solid var(--text); }
.tf-gruss { margin-top: 22px !important; }
.tf-belehrung { break-inside: avoid; page-break-inside: avoid; }
.tf-neutral .tf-anschrift { padding-top: 1.4em; }
@media (max-width: 700px) {
  .tf-kopf { flex-direction: column-reverse; gap: 4px; }
  .tf-firma { text-align: left; } .tf-firma img { margin-left: 0; }
  .tf-zusammen-tabelle td:first-child, .tf-summen td:first-child { padding-left: 0; }
}

.inhalt-liste { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.inhalt-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; min-height: 44px; background: #fff; border-radius: 6px; }
.inhalt-liste li.zieht { box-shadow: var(--schatten); opacity: .95; position: relative; z-index: 2; }
.inhalt-liste a { flex: 1 1 0; min-width: 0; min-height: 44px; box-sizing: border-box; display: block; padding: 11px 4px; line-height: 1.3; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.inhalt-liste a:hover { text-decoration: underline; }
.inhalt-titel { font-weight: 700; margin-top: 6px; }
.inhalt-zeile { padding-left: 28px; }
.inhalt-text a, .inhalt-bild a { color: var(--text-2); font-style: italic; }
.inhalt-zwischensumme { flex-wrap: wrap; }
.inhalt-zwischensumme a { font-weight: 700; }
.inhalt-nr { font-variant-numeric: tabular-nums; color: var(--text-2); }
.inhalt-summe { flex: 0 0 100%; text-align: right; margin-top: -10px; padding-bottom: 4px; box-sizing: border-box; font-size: 14px; font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; padding-right: 4px; }
.inhalt-griff, .inhalt-auf { flex: none; width: 40px; height: 44px; border: 0; background: transparent; color: var(--text-2); font-size: 17px; cursor: grab; touch-action: none; border-radius: 6px; padding: 0; }
.inhalt-auf { cursor: pointer; width: 32px; }
.inhalt-auf[aria-expanded="false"] { transform: rotate(-90deg); }
.inhalt-griff:hover, .inhalt-griff:focus-visible, .inhalt-auf:hover { background: var(--flaeche); color: var(--text); }
.inhalt-baum h2 { font-size: 1.05rem; margin: 0 0 6px; }
.inhalt-kasten .inhalt-baum h2 { display: none; }
.inhalt-kasten .inhalt-liste { max-height: 60vh; overflow: auto; }
@media (min-width: 1000px) { .angebot-spalten.mit-inhalt { grid-template-columns: minmax(0, 1fr) 300px; } .angebot-spalten.mit-inhalt > .angebot-inhalt { grid-column: 1 / -1; } }
@media (min-width: 1200px) {
  .angebot-spalten.mit-inhalt { grid-template-columns: 280px minmax(0, 1fr) 300px; }
  .angebot-spalten.mit-inhalt > .angebot-inhalt { grid-column: auto; position: sticky; top: 12px; }
  .angebot-inhalt .inhalt-liste { max-height: calc(100vh - 110px); }
}
.ansicht-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ansicht-inhalt { background: var(--flaeche); border-radius: 12px; padding: 12px; max-width: 800px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.ansicht-inhalt .inhalt-liste { max-height: 40vh; overflow: auto; }
.ansicht-inhalt .inhalt-liste li { background: transparent; }
@media (min-width: 1200px) {
  .ansicht-spalten { grid-template-columns: 240px minmax(0, 1fr) 330px; align-items: start; }
  .ansicht-rechts { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
  .ansicht-rechts .einfuegen-kasten { margin: 0; max-width: none; }
  .ansicht-rechts .einfuegen-zeile { gap: 8px; }
  .ansicht-rechts .einfuegen-kasten { gap: 10px; padding-top: 14px; }
  li.einfuegen-hier { box-shadow: inset 0 -3px 0 var(--rot-marke); }
  .ansicht-inhalt { position: sticky; top: 12px; margin: 0; max-height: calc(100vh - 24px); overflow: auto; }
  .ansicht-inhalt .inhalt-liste { max-height: none; overflow: visible; }
}
@media (max-width: 700px) {
  .ansicht.brief-blatt { padding: 16px 10px; }
  .az-position { grid-template-columns: auto minmax(0, 1fr); }
  .az-zahlen { grid-column: 2; justify-items: start; grid-auto-flow: column; gap: 10px; }
}
@media print {
  .ansicht .az-feld { border: 0 !important; padding: 0; margin: 0; resize: none; }
  .az { grid-template-columns: 1fr; }
}
@media print { .nicht-drucken { display: none !important; } }
@media print {
  .brief-blatt { box-shadow: none; padding: 0; max-width: none; }
  @page { size: A4; margin: 18mm 16mm; }
}
.papier-wahl { margin: 0 0 12px; }
.papier-titel { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 700; color: var(--text-2); }
.papier-wahl .auswahl { margin: 0; }
@media print {
  .vordruck .tf-kopf { display: block; height: 45mm; overflow: hidden; }
  .vordruck .absender-zeile { height: 5mm; margin: 0 0 3mm; overflow: hidden; white-space: nowrap; }
  .vordruck .tf-anschrift .absender-zeile { margin-top: 0; }
  .vordruck .tf-kopf address { min-height: 0; margin: 0; }
  .vordruck .rechnung-kopf-druck { display: block; }
  .vordruck .rechnung-kopf-druck address { height: 37mm; min-height: 0; overflow: hidden; margin: 0; }
  .vordruck .rechnung-angaben { max-width: 120mm; margin-bottom: 4mm; }
  .vordruck .rechnung-angaben dd { text-align: left; }
}

.warte-kreis { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--flaeche); box-shadow: var(--schatten); margin: 24px 0; color: var(--gruen); }

.druck-blatt h1 { font-size: 1.5rem; }
.druck-kopf, .druck-fuss { color: var(--text-2); font-size: .9rem; }
.tabelle.druck { font-size: .9rem; }
.tabelle.druck td, .tabelle.druck th { padding: 6px 8px; }
@media print {
  .kopf, .reiter, .nicht-drucken, .zurueck, .ladebalken, .hinweis.achtung-kasten { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .inhalt { padding: 0; max-width: none; }
  .tabelle { box-shadow: none; }
}

summary { min-height: 44px; padding-block: 10px; box-sizing: border-box; cursor: pointer; }
.eintrag-aktion input[type="text"], .eintrag-aktion input:not([type]) { min-height: 44px; font: inherit; font-size: max(16px, 1rem); padding: 6px 10px; border: 2px solid var(--rand); border-radius: 10px; }
.suche-zeile .feld { min-height: 48px; font-size: max(16px, 1rem); }
.kalender thead th small { font-size: .75rem; }
.bild-unter small { font-size: .75rem; }
.beta-marke { font-size: .75rem; }
.wichtig li > a, .wichtig li > span > a { display: inline-block; padding-block: 8px; }
@media screen { .druck-blatt, .brief-blatt { max-width: 100%; overflow-x: auto; } }
.zeigen-schalter { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; margin-bottom: 12px; border: 2px solid var(--text); border-radius: 10px; font-weight: 700; color: var(--text); text-decoration: none; cursor: pointer; }

.plan-frei h2, .plan-karte h2 { margin: 0 0 10px; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.plan-chip { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 2px solid var(--text); border-radius: 999px;
  background: var(--flaeche); font-weight: 700; cursor: pointer; user-select: none; }
.plan-chip input { position: absolute; opacity: 0; pointer-events: none; }
.plan-chip:has(input:checked) { background: var(--text); color: #fff; }
.plan-chip:has(input:focus-visible) { outline: 3px solid var(--rot-marke); outline-offset: 2px; }
.plan-chip small { font-weight: 400; margin-left: 4px; }
.plan-nicht-da { color: var(--text-2); margin: 12px 0 0; }
.plan-karte-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.plan-karte-kopf span { color: var(--text-2); }
.plan-leute { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.plan-person { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 4px 0 14px; border-radius: 999px; background: var(--grund); font-weight: 700; }
.plan-person.mit-hinweis { background: var(--gelb-hell); color: var(--gelb); }
.plan-person small { font-weight: 400; }
.plan-weg { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font: 700 1.3rem var(--schrift); color: var(--text-2); cursor: pointer; }
.plan-weg:hover { background: var(--flaeche); color: var(--rot); }
.plan-hinweis { background: var(--gelb-hell); color: var(--gelb); border-radius: 8px; padding: 8px 12px; font-weight: 700; }
.plan-treff { margin: 0 0 12px; }
.plan-mehr { margin-top: 12px; }
.plan-unten { margin-top: 8px; }
.plan-woche td.plan-zelle { min-width: 110px; }
.plan-zelle.baustelle { font-weight: 700; }
.plan-zelle.weg { color: var(--text-2); background: var(--flaeche-2); }
.plan-mich h2 { font-size: 1.15rem; margin: 0 0 6px; }
.plan-mich p { margin: 4px 0; }
.plan-mich-teil + .plan-mich-teil { border-top: 1px solid var(--rand-fein); margin-top: 14px; padding-top: 14px; }
.plan-mich-notiz { background: var(--gelb-hell); border-radius: 8px; padding: 8px 12px; }
.start-karte.start-karte-achtung { box-shadow: inset 4px 0 0 var(--gelb), var(--schatten); }

.zeilen-liste { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); }
.zeilen-liste li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 52px; padding: 6px 16px; border-bottom: 1px solid var(--rand-fein); }
.zeilen-liste li:last-child { border-bottom: 0; }
.zeilen-liste a { font-weight: 700; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.zeilen-text { margin-left: auto; color: var(--text-2); text-align: right; }
@media (max-width: 599px) { .zeilen-text { margin-left: 22px; text-align: left; flex-basis: 100%; } }
.zeiten-monat tr.mit-hinweis td { background: var(--gelb-hell); }
.zeiten-monat td.zeilen-knoepfe { white-space: nowrap; }
.zeiten-monat td.zeilen-knoepfe form { display: inline; }
@media (max-width: 700px) {
  .zeiten-monat td.zeilen-knoepfe { white-space: normal; padding-left: 4px; padding-right: 4px; }
  .zeiten-monat td.zeilen-knoepfe .zk-text { display: none; }
  .zeiten-monat td.zeilen-knoepfe .knopf-zweit, .zeiten-monat td.zeilen-knoepfe .knopf { padding: 8px 10px; min-width: 44px; justify-content: center; }
  .zeiten-monat td.zeilen-knoepfe form { display: block; margin-top: 6px; }
}
.zeiten-monat tr[id] { scroll-margin-top: 120px; }
.zeiten-monat tr.wochen-summe td { background: var(--flaeche-2); font-size: .95rem; border-bottom: 2px solid var(--rand); }

.summe-kasten dt { overflow-wrap: break-word; hyphens: auto; }
.summe-kasten .angaben { grid-template-columns: minmax(min-content, 1fr) minmax(0, auto); }
.rechnung-kopf .schalter input { flex: none; }
.eintrag-alter.ruhig { color: var(--text-2); }
.eintrag-alter.gelb-text { color: var(--gelb); }
.rechnung-kopf { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: none; }
.rechnung-kopf .breit, .eingang-formular .breit { grid-column: 1 / -1; }
.rechnung-kopf details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.rechnung-kopf details[open] { display: grid; gap: 14px; }
.eingang-formular { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: none; }
.feld-geld { width: 8em; }
.eingang-bild { width: 100%; height: auto; border-radius: var(--rund); box-shadow: var(--schatten); }
.rechnung-kopf-druck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 18px; }
.rechnung-angaben { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; font-size: 13px; align-content: start; }
.rechnung-angaben dt { color: var(--text-2); }
.rechnung-angaben dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.druck-pos caption { text-align: left; padding-bottom: 6px; }
@media (max-width: 599px) { .rechnung-kopf-druck { grid-template-columns: minmax(0, 1fr); } .rechnung-angaben dd { text-align: left; } }
.angebot-seite .eintrag { grid-template-columns: minmax(0, 1fr); }
.angebot-seite .eintrag-betrag { text-align: left; }

.online-geoeffnet { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); margin-bottom: .8rem; }
.online-geoeffnet.ja { color: var(--gruen); font-weight: 700; }
.online-geoeffnet .sym { margin-top: 3px; }
.online-qr { display: flex; gap: 12px; align-items: center; margin-bottom: .8rem; }
.online-qr svg { width: 104px; height: 104px; flex: none; border: 1px solid var(--rand-fein); border-radius: 6px; }
.online-link { font-size: .9rem; color: var(--text-2); margin: 0; user-select: all; overflow-wrap: anywhere; }
.online-zeile { color: var(--text-2); font-size: .9rem; }
.online-zeile.ja { color: var(--gruen); font-weight: 700; }
.kunden-nachricht.erledigt { opacity: .7; }
.druck-online { display: flex; gap: 14px; align-items: center; margin: 14px 0; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 8px; break-inside: avoid; }
.druck-online svg { width: 92px; height: 92px; flex: none; }
.druck-online p { margin: 0; font-size: 13px; line-height: 1.4; }
.druck-online-platz { border-style: dashed; color: var(--text-2); }
.druck-link { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.auswahl-bilder { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.auswahl-bilder label { display: grid; gap: 6px; cursor: pointer; }
.auswahl-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--rand-fein); }
.auswahl-video { display: grid; place-items: center; gap: 4px; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--flaeche-2); border: 1px solid var(--rand-fein); color: var(--text-2); text-align: center; padding: 8px; }
.auswahl-video small { font-size: .9rem; overflow-wrap: anywhere; }
.auswahl-bilder .schalter { font-size: .95rem; }
.auswahl-paar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.auswahl-paar label { display: grid; gap: 4px; font-weight: 700; }
.auswahl-notiz { display: flex; align-items: flex-start; font-weight: 400; padding: 6px 0; }
.auswahl-notiz input { flex: none; margin-top: 2px; }
.annahme-kasten { display: block; margin-bottom: .8rem; }
.annahme-kasten .knopf-zweit { margin-top: 8px; }

.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 4px 14px; font-size: .95rem; }
.brotkrumen a { color: var(--text); font-weight: 700; text-decoration-color: var(--rand); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.brotkrumen span:not(.brotkrumen-trenner) { color: var(--text-2); }
.brotkrumen-trenner { color: var(--text-2); }
.projekt-kopf h1 { overflow-wrap: anywhere; }
.projekt-kopf p { overflow-wrap: anywhere; }
.s-anfrage { --sf: #1F6FC4; --sh: #C9DCF3; --st: #0C447C; }
.s-besichtigung { --sf: #138A68; --sh: #BFE4D5; --st: #085041; }
.s-angebot { --sf: #5B4FC4; --sh: #D6D1F5; --st: #3C3489; }
.s-auftrag { --sf: #B87A12; --sh: #F0D9A8; --st: #633806; }
.s-ausfuehrung { --sf: #B8501F; --sh: #F2CDBB; --st: #712B13; }
.s-rechnung { --sf: #4A7F1A; --sh: #CDE2B0; --st: #27500A; }
.marke-tag[class*=" s-"] { background: var(--sh); color: var(--st); }
.stufen { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stufen li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .9rem; color: var(--text-2); position: relative; }
.stufen li::before { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px; background: var(--rand); z-index: 0; }
.stufen li:first-child::before { display: none; }
.stufen li.fertig::before, .stufen li.jetzt::before { background: var(--sf); }
.stufe-punkt { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--flaeche); border: 2px solid var(--sh); color: var(--sf); }
.stufe-punkt .sym { display: block; }
.stufe-haken { position: absolute; right: -7px; bottom: -7px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche); color: var(--sf); border: 2px solid var(--sf); }
.stufe-haken .sym { stroke-width: 3.2; }
.stufen li.fertig .stufe-punkt { background: var(--sf); border-color: var(--sf); color: #fff; }
.stufen li.jetzt .stufe-punkt { background: var(--sf); border-color: var(--sf); color: #fff; box-shadow: 0 0 0 4px var(--sh); }
.stufen li.jetzt { color: var(--st); font-weight: 700; }
.stufe-text { overflow-wrap: anywhere; hyphens: auto; }
.stufen-jetzt { margin: 0 4px 18px; font-weight: 700; }
@media (max-width: 699px) { .stufe-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (min-width: 700px) { .stufen { margin-bottom: 18px; } .stufen-jetzt { display: none; } }
.als-naechstes { border-left: 6px solid var(--rot); }
.als-naechstes h2 { margin-top: 0; }
.als-naechstes-text { font-size: 1.1rem; margin: 0 0 14px; }
.als-naechstes > .knopf-zeile { align-items: center; margin-bottom: 0; }
.als-naechstes .knopf-zeile form { margin: 0; }
.als-naechstes .hochladen .knopf-zeile { margin: 0; }
.als-naechstes .hochladen-status:not([hidden]) { margin: 8px 0 0; }
.keinumbruch { white-space: nowrap; }
a.route { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-weight: 700; min-height: 44px; padding: 0 12px; border: 1px solid var(--rand); border-radius: 999px; vertical-align: middle; text-decoration: none; }
a.route svg { flex-shrink: 0; }
.schritt > .kasten > h2:first-child::after { margin-left: 10px; vertical-align: middle; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.schritt.fertig > .kasten:first-child > h2:first-child::after { content: "✓ erledigt"; background: var(--gruen-hell); color: var(--gruen); }
.schritt.jetzt > .kasten:first-child > h2:first-child::after { content: "Jetzt dran"; background: var(--rot-hell); color: var(--rot-dunkel); }
.schritt.jetzt > .kasten:first-child { outline: 2px solid var(--rot); outline-offset: -2px; }
.absage, .stand-hand { margin-top: 14px; }
.absage summary, .stand-hand summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--text-2); font-weight: 700; }
.neues-projekt, .termin-form { display: grid; gap: 6px; margin-top: 14px; }
.neues-projekt label, .termin-form label { font-weight: 700; }
.neues-projekt .suche-zeile { display: flex; flex-wrap: wrap; gap: 10px; }
.neues-projekt .suche-zeile input { flex: 1 1 240px; min-width: 0; }
.termin-form .suche-zeile input { flex: 0 1 16em; min-width: min(16em, 100%); }
.suche-zeile.rechnung-suche { margin-bottom: 14px; }
.suche-zeile.rechnung-suche .feld { flex: 1 1 16em; width: 0; min-width: 0; max-width: 32em; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-chips .chip { display: inline-flex; min-height: 44px; text-decoration: none; color: var(--text); font-size: .95rem; }
.filter-chips .chip.an { border-color: var(--text); background: var(--text); color: #fff; }
.abgeschlossen { margin-top: 14px; }
.abgeschlossen summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--text-2); }
.ki-schritte.mit-zeile li::before { top: .8em; }
.ki-schritte.mit-zeile li.fertig::before { margin-top: -.6em; }
.ki-schritt-zeile { display: block; font-size: .9rem; color: rgb(255 255 255 / 60%); }
.ki-schritte li.aktiv .ki-schritt-zeile { color: #ffd9d6; }
.termin-form + .absage { margin-top: 18px; }
@supports (grid-template-rows: subgrid) {
  :is(.pos-formular, .rechnung-kopf) > label:not(.breit, .schalter) { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
  :is(.pos-formular, .rechnung-kopf) > label:not(.breit, .schalter) > small { grid-row: 3; }
  :is(.pos-formular, .rechnung-kopf) > label:not(.breit, .schalter) > :is(input, select, .mit-einheit) { grid-row: 2; align-self: end; }
}
.eintrag-aktion label:has(select) { display: flex; align-items: center; gap: 6px; flex: 1 1 16em; min-width: 0; }
.eintrag-aktion label:has(select) select { flex: 1 1 auto; width: 0; min-width: 0; margin-left: 0; }
.diktat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.diktat .diktat-knopf { min-height: 44px; gap: 6px; font-weight: 700; }
.diktat-knopf.laeuft { background: var(--rot); border-color: var(--rot); color: #fff; }
.diktat-status { color: var(--text-2); font-size: .95rem; font-weight: 400; }
.diktat-status:empty { display: none; }
@media print { .diktat { display: none; } }
.formular label > .diktat { font-weight: 400; margin-top: 0; }
.suche-zeile > .diktat, .eintrag-aktion > .diktat { margin-top: 0; }

.geraet-ort-text { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; overflow-wrap: anywhere; }
.geraet-ort .suche-zeile .feld, .knopf-reihe .suche-zeile .feld, #auf-dem-auto > .suche-zeile .feld, .abschnitt > .suche-zeile .feld { flex: 1 1 14em; width: 0; min-width: 0; max-width: 100%; }
.knopf-reihe > .suche-zeile { flex: 1 1 18em; min-width: 0; max-width: 100%; }
.geraet-ort form + form { margin-top: 10px; }
.ort-wahl { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.ort-wahl legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ort-wahl .chips { margin-bottom: 10px; }
.ort-liste { margin-top: 8px; }
.ort-liste .feld { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; font-size: max(16px, 1rem); }
.formular .ort-liste .feld { width: 100%; }
@supports selector(:has(a)) {
  .ort-wahl .ort-liste { display: none; }
  .ort-wahl:has(input[value="fahrzeug"]:checked) .ort-liste[data-ort="fahrzeug"],
  .ort-wahl:has(input[value="baustelle"]:checked) .ort-liste[data-ort="baustelle"],
  .ort-wahl:has(input[value="mitarbeiter"]:checked) .ort-liste[data-ort="mitarbeiter"] { display: block; }
}
.ort-form .knopf { margin-top: 0; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.knopf-reihe form { margin: 0; }
.knopf-reihe .knopf-klein, .eintrag-knoepfe .knopf-klein { margin-top: 0; }
.eintrag details.eintrag-knoepfe summary { color: var(--text-2); }
.abschlag-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.neue-pruefung { margin-top: 14px; }
.neue-pruefung > summary { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.geraet-foto img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; margin-bottom: 12px; object-fit: contain; }
.geraet-fotos { display: grid; gap: 16px; }
.geraet-foto-teil h3 { margin: 0 0 8px; font-size: 1rem; }
@media (min-width: 700px) { .geraet-fotos { grid-template-columns: 1fr 1fr; } .geraet-foto img { max-height: 280px; } }
.ki-schild { margin: 0 0 16px; padding: 16px; border: 2px solid var(--ki); border-radius: 12px; }
.ki-schild > p { margin: 0 0 8px; }
.ki-schild > p b { color: var(--ki); }
.ki-schild-liste { list-style: none; margin: 0 0 12px; padding: 0; }
.ki-schild-liste li { padding: 2px 8px; border-radius: 8px; }
.ki-schild-liste li.ki-unsicher { background: var(--gelb-hell); }
.ki-schild-liste .schalter { font-weight: 400; min-width: 0; }
.ki-schild-liste .schalter > span { min-width: 0; overflow-wrap: anywhere; }
.formular label.ki-unsicher input, .formular label.ki-unsicher textarea { background: var(--gelb-hell); border-color: var(--gelb); }
.verlauf > summary { font-size: 1.15rem; font-weight: 700; }
.verlauf-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.kasten h3 { margin: 18px 0 8px; }

.etikett { display: flex; align-items: center; gap: 16px; max-width: 520px; padding: 14px; background: #fff; border: 2px solid var(--text); border-radius: 10px; }
.etikett-qr { flex: none; width: 140px; }
.etikett-qr svg { display: block; width: 100%; height: auto; }
.etikett-text { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.etikett-text b { font-size: 1.3rem; line-height: 1.2; }
.etikett-text span { font-size: 1.1rem; font-weight: 700; }
.etikett-text small { color: var(--text-2); }
@media print { .etikett { width: 90mm; max-width: none; border-width: 1px; padding: 3mm; gap: 4mm; } .etikett-qr { width: 32mm; } .etikett-text b { font-size: 13pt; } }

.ba-blatt { --ba: #1f5fa8; background: var(--flaeche); border: 3px solid var(--ba); border-radius: 6px; padding: 0 0 12px; max-width: 900px; }
.ba-stoff { --ba: #d0550c; }
.ba-kopf { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); border-bottom: 3px solid var(--ba); }
.ba-kopf > div { padding: 8px 12px; }
.ba-kopf-titel { background: var(--ba); color: #fff; }
.ba-ueber { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.ba-grundlage { margin: 0; font-size: .9rem; }
.ba-kopf-nr { background: var(--ba); color: #fff; text-align: right; display: grid; align-content: center; gap: 2px; border-left: 1px solid rgba(255,255,255,.5); }
.ba-kopf-gegenstand { border-right: 1px solid var(--rand); }
.ba-kopf-gegenstand h1 { margin: 0; font-size: 1.4rem; overflow-wrap: anywhere; }
.ba-kopf-gegenstand p { margin: 2px 0 0; }
.ba-kopf-betrieb { display: grid; align-content: start; gap: 1px; font-size: .9rem; text-align: right; }
.ba-feld { display: block; color: var(--text-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.ba-abschnitt { padding: 0 12px; }
.ba-abschnitt h2 { margin: 12px -12px 6px; padding: 4px 12px; font-size: 1rem; background: var(--ba); color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.ba-abschnitt ul { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; overflow-wrap: anywhere; }
.ba-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin: 14px 12px 0; padding-top: 8px; border-top: 1px solid var(--rand); color: var(--text-2); font-size: .9rem; }
.ba-blatt .ba-freigabe, .ba-blatt .ba-unterschrift { margin-left: 12px; margin-right: 12px; }
@media (max-width: 560px) { .ba-kopf { grid-template-columns: 1fr; } .ba-kopf-nr, .ba-kopf-betrieb { text-align: left; } .ba-kopf-gegenstand { border-right: 0; } }
.pflichten-unterschriften.ba-unterschrift { margin-top: 32px; break-inside: avoid; }
.ba-blatt + .ba-blatt { margin-top: 24px; }
.ba-freigabe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; break-inside: avoid; color: var(--text-2); }
.ba-freigabe .unterschrift-klein { height: 48px; max-width: 180px; }
@media print {
  .ba-blatt { max-width: none; font-size: 9pt; line-height: 1.28; padding-bottom: 6px; }
  .ba-kopf-titel, .ba-kopf-nr, .ba-abschnitt h2 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ba-kopf > div { padding: 5px 9px; }
  .ba-ueber { font-size: 14pt; }
  .ba-kopf-gegenstand h1 { font-size: 15pt; }
  .ba-abschnitt { padding: 0 9px; }
  .ba-abschnitt h2 { margin: 6px -9px 3px; padding: 2px 9px; font-size: 9.5pt; }
  .ba-abschnitt ul { gap: 1px; }
  .ba-fuss { margin: 6px 9px 0; padding-top: 3px; font-size: 8.5pt; break-after: avoid; }
  .pflichten-unterschriften.ba-unterschrift { margin-top: 24px; gap: 24px; }
  .ba-ueber { white-space: nowrap; }
  .ba-abschnitt { break-inside: avoid; }
  .ba-abschnitt h2 { break-after: avoid; }
  .ba-blatt .ba-freigabe { margin-top: 4px; gap: 4px 10px; font-size: 8.5pt; break-before: avoid; }
  .ba-blatt .ba-freigabe .unterschrift-klein { height: 30px; }
  .ba-abschnitt:last-of-type { break-after: avoid; }
  .ba-blatt .ba-freigabe, .ba-blatt .ba-unterschrift { margin-left: 9px; margin-right: 9px; }
  .ba-vorlage { display: block !important; }
}

.unterschrift { display: grid; gap: 8px; }
.unterschrift-text { margin: 0; font-weight: 700; }
.unterschrift-flaeche { display: block; width: 100%; max-width: 640px; aspect-ratio: 600 / 220; height: auto; background: #fff; border: 2px dashed var(--text-2); border-radius: 12px; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
@media (max-width: 700px) { .unterschrift-flaeche { aspect-ratio: 3 / 2; } }
.unterschrift .knopf-zeile { margin: 0; }
.unterschrift-bild { display: block; max-width: 260px; width: 100%; height: auto; background: #fff; border: 1px solid var(--rand-fein); border-radius: 6px; margin-top: 6px; }
.unterschriften .eintrag-zeile { display: grid; gap: 2px; }

.gb-formular { max-width: 860px; }
.gb-punkt { margin: 0; display: grid; gap: 12px; border: 2px solid var(--rand-fein); min-width: 0; }
.gb-punkt legend { font-weight: 700; font-size: 1.1rem; padding: 0 6px; overflow-wrap: anywhere; }
.gb-punkt.trifft-zu { border-color: #f0b54a; }
.gb-punkt textarea { field-sizing: content; min-height: 3.2em; }
.zwei-felder { display: grid; gap: 14px; }
@media (min-width: 760px) { .zwei-felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; } }
@media print { .gb-punkt { break-inside: avoid; } .gb-formular .diktat, .gb-formular .chip:not(:has(input:checked)) { display: none; } }

.datei-leiste { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.datei-titel { font-size: 1.2rem; margin: 6px 0 10px; overflow-wrap: anywhere; }
.datei-inhalt { background: var(--flaeche); border-radius: 12px; box-shadow: var(--schatten); padding: 8px; }
.datei-rahmen { display: block; width: 100%; height: max(70vh, 480px); border: 0; border-radius: 8px; background: #fff; }
.pdfa { position: relative; }
.pdfa-status { margin: 8px 0; color: var(--text-2); }
.pdfa-zaehler { position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 2; width: fit-content; margin: 0 0 8px auto; padding: 4px 12px;
  border-radius: 999px; background: rgb(0 0 0 / 72%); color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.pdfa-seiten { display: flex; flex-direction: column; gap: 12px; }
.pdfa-seite { position: relative; width: 100%; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); overflow: hidden; -webkit-touch-callout: none; }
.pdfa-seite canvas { display: block; width: 100%; height: 100%; }
.pdfa-seitenfehler { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; color: var(--text-2); text-align: center; }
.datei-pdf.als-bilder { display: flex; flex-direction: column; gap: 12px; }
.datei-seite { display: block; width: 100%; height: auto; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.datei-laedt { margin: 8px 0; color: var(--text-2); }
.datei-bild { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 8px; }
img[src^="/datei/"], .datei-bild, .datei-seite, a[href^="/datei/"], a[href$="/pdf"], a[href$="/datei"] { -webkit-touch-callout: none; }
.eintrag-zeile.scans { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.eintrag-zeile.scans .frei-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.eintrag-zeile.scans > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.eintrag .eintrag-zeile.scans .knopf-klein { margin-top: 0; }

.akte h2 { margin-bottom: 4px; }
.akte-kopf { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; padding: 8px 12px; font-size: .85rem; font-weight: 700; color: var(--text-2); }
.akte-kopf span:last-child { text-align: right; }
.akte-kopf.mit-vorschau { padding-right: 148px; }
.akte-ordner { margin-top: 0; }
.akte-ordner > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; border-bottom: 2px solid var(--text); }
.akte-ordner > summary::-webkit-details-marker { display: none; }
.akte-ordner > summary::before { content: "▸"; display: inline-block; width: 1em; color: var(--text-2); }
.akte-ordner[open] > summary::before { content: "▾"; }
.akte-zahl { font-weight: 400; color: var(--text-2); }
.akte-liste { list-style: none; margin: 0 0 4px; padding: 0; display: grid; }
.akte-zeile { border-bottom: 1px solid var(--rand-fein); }
.akte-zeile > a:not(.akte-vorschau), .akte-zeile > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; grid-template-areas: "datum titel betrag" ". unter ."; gap: 2px 14px; align-items: baseline; padding: 10px 12px; color: var(--text); text-decoration: none; }
.akte-zeile .akte-titel { grid-area: titel; }
.akte-datum { grid-area: datum; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.akte-zeile .akte-betrag { grid-area: betrag; }
.akte-zeile .akte-unter { grid-area: unter; }
.akte-zeile > a:not(.akte-vorschau):hover { background: var(--flaeche-2); }
.akte-zeile.mit-vorschau { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.akte-zeile .akte-vorschau { margin: 0 4px 0 0; white-space: nowrap; }
.akte-zeile > a:hover .akte-titel { color: var(--rot); text-decoration: underline; }
.akte-titel { font-weight: 700; overflow-wrap: anywhere; }
.akte-titel .sym { vertical-align: -3px; }
.akte-haken { color: var(--gruen); margin-right: 6px; }
.akte-schloss { color: var(--text-2); margin-left: 6px; }
.akte-betrag { font-weight: 700; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.akte-unter { color: var(--text-2); overflow-wrap: anywhere; }
.akte-angebote .akte-zeile { background: #d6f2dc; }
.akte-zeile.storniert { opacity: .6; }
.akte-zeile.storniert .akte-titel { text-decoration: line-through; }
.akte-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px 12px; }
.akte-knoepfe form { margin: 0; }
@media (max-width: 599px) {
  .akte-kopf { display: none; }
  .akte-zeile.mit-vorschau { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .akte-zeile .akte-vorschau { justify-self: start; margin: 0 0 10px 4px; }
  .akte-ordner > summary { padding: 0 4px; }
  .akte-zeile > a:not(.akte-vorschau), .akte-zeile > div { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "titel betrag" "datum datum" "unter unter"; padding: 10px 4px; }
  .akte-knoepfe { margin-left: 0; }
}

.mail-verwerfen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; min-width: 0; margin: 0; }
.mail-grund { font: inherit; font-size: max(16px, 1rem); min-height: 44px; padding: 0 10px; border: 2px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: var(--text); max-width: 100%; }
.mail-grund-text { flex: 1 1 14em; min-width: 0; width: auto; }
.tb-art { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 2px 0 6px; }
.tb-gruppe { margin: 0; display: grid; gap: 12px; border: 0; min-width: 0; }
.tb-gruppe legend { font-weight: 700; font-size: 1.1rem; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.formular label.tb-person, .tb-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rand-fein); }
.tb-person-name { overflow-wrap: anywhere; }
.tb-person-name small { display: block; font-weight: 400; color: var(--text-2); }
.formular .tb-std input:not([type="checkbox"]):not([type="radio"]) { width: 4.6em; text-align: right; }
.tb-weitere { grid-template-columns: minmax(0, 1fr) 6.6em; align-items: end; border-bottom: 0; padding-bottom: 4px; }
.tb-dazu { justify-self: start; margin-top: 4px; }
.tb-weitere .tb-name { grid-column: 1 / -1; }
.tb-weitere .tb-name[hidden] { display: none; }
.formular .tb-wahl select { width: 100%; min-width: 0; }
.tb-material { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rand-fein); }
.tb-material .tb-was { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .tb-material { grid-template-columns: minmax(0, 1fr) 7em 7em; }
  .tb-material .tb-was { grid-column: auto; }
}
.tb-foto { display: grid; gap: 6px; font-weight: 400; }
.tb-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.tb-summe { margin: 12px 0 0; }
.tb-angaben { margin-bottom: 20px; }
.tb-baustelle form { margin: 0 0 12px; }
.tb-projekt { margin-top: 16px; }
@media print { .tb-teil, .tb-unterschrift { break-inside: avoid; } }
.mail-gruppe > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 8px; cursor: pointer; list-style: none; }
.mail-gruppe > summary::-webkit-details-marker { display: none; }
.mail-gruppe > summary::before { content: "▾"; color: var(--rot-dunkel); font-weight: 700; }
.mail-gruppe:not([open]) > summary::before { content: "▸"; }
.mail-gruppe > summary h2 { margin: 0; }
.mail-gruppe .weitere-zeilen { margin-top: 8px; }

.vollbild { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px); border: 0; background: #111; display: none; }
.vollbild[open] { display: flex; flex-direction: column; gap: 12px; }
.vollbild::backdrop { background: #111; }
.vollbild .vollbild-zu { align-self: flex-end; min-height: 52px; padding: 10px 22px; font-size: 1.125rem; }
.vollbild img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }

.v2-titel-art select { min-height: 44px; font: inherit; font-size: max(16px, 1em); padding: 0 8px; border: 2px solid var(--text-2); border-radius: 10px; background: var(--flaeche); }
.v2-kalk textarea[name="aufmass"] { font-variant-numeric: tabular-nums; }
.tf-aufmass h2 { font-size: 1.1rem; margin: 0 0 10px; }
.tf-aufmass-tabelle { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 13px; }
.tf-aufmass-tabelle th { text-align: left; border-bottom: 1px solid var(--text); padding: 4px 0; }
.tf-aufmass-tabelle td { padding: 2px 0; }
.tf-aufmass-tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-aufmass-summe td { border-top: 1px solid var(--text); font-weight: 700; }
.ki-schritte { font-size: 1.05rem; line-height: 1.5; padding-left: 1.4em; }
.ki-schritte li { margin: 6px 0; }

.v2 { --v2-spalten: 3.6em minmax(0, 1fr) 4.8em 4.2em 6.8em 7.6em; --v2-oben: 72px; }
.v2-leiste { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; margin: -8px -16px 16px; padding: 10px 16px; background: var(--grund); border-bottom: 1px solid var(--rand-fein); }
.v2-leiste form { margin: 0; }
.v2-zurueck, .v2-symbol { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); color: var(--text); cursor: pointer; font: inherit; font-size: 22px; font-weight: 700; line-height: 1; list-style: none; }
.v2-zurueck:hover, .v2-symbol:hover, .v2-symbol[aria-pressed="true"] { border-color: var(--text); }
.v2-symbol[aria-pressed="true"] { background: var(--text); color: #fff; }
.v2-leiste-titel { min-width: 0; }
.v2-leiste h1 { margin: 0; font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.v2-pfad { font-size: 14px; color: var(--text-2); }
.v2-pfad a { color: inherit; }
.v2-pfad > * { margin: 0; }
.v2-stand { font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e3eefc; color: #1d4a7a; }
.v2-gespeichert { font-size: 14px; font-weight: 400; color: var(--gruen); }
.v2-gespeichert.fehler { color: var(--rot); font-weight: 700; }
.v2-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.v2-ki-knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); color: var(--text); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.v2-ki-knopf:hover { border-color: var(--ki); }
.v2-ki-knopf .ki-stern { font-size: 1.15em; }
.v2-weiter { white-space: nowrap; }
.v2-hinweis-zeile { margin: 0 0 12px; }
.v2-menue { position: relative; }
.v2-menue > summary { list-style: none; }
.v2-menue > summary::-webkit-details-marker { display: none; }
.v2-menue-liste { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; min-width: 280px; display: grid; padding: 6px; background: var(--flaeche); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / 18%), 0 0 0 1px var(--rand-fein); }
.v2-menue-liste form { margin: 0; }
.v2-menue-punkt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: .95rem; text-align: left; text-decoration: none; cursor: pointer; }
.v2-menue-punkt:hover, .v2-menue-punkt:focus-visible { background: var(--grund); }
.v2-menue-weg { color: var(--rot); }
.v2-menue-liste .v2-titel-art, .v2-menue-liste .v2-verschieben { display: grid; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--rand-fein); border-bottom: 1px solid var(--rand-fein); margin: 4px 0; }
.v2-menue-liste .v2-titel-art label, .v2-menue-liste .v2-verschieben label { display: grid; gap: 4px; font-size: 15px; font-weight: 700; }
.v2-menue-liste .v2-verschieben select { width: 100%; }
.v2-menue-liste .v2-titel-art + .v2-verschieben { border-top: 0; margin-top: 0; }
.v2-menue-liste .v2-titel-art select, .v2-menue-liste .v2-verschieben select { min-height: 44px; font: inherit; font-size: max(16px, 1em); padding: 0 8px; border: 1px solid var(--rand); border-radius: 8px; background: var(--flaeche); }
.v2-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.v2-inhalt { display: none; }
.v2-dok { background: #fff; border-radius: 4px; box-shadow: 0 2px 12px rgb(0 0 0 / 10%); font-size: 17px; overflow: clip; padding-bottom: 24px; min-width: 0; }
.v2-dok-kopf { display: grid; gap: 6px; padding: 10px 36px 10px; }
.v2-brief-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 32px 36px 4px; align-items: start; }
.v2-absender { display: inline-block; margin: 0 0 6px 10px; padding-bottom: 2px; border-bottom: 1px solid var(--rand); font-size: 14px; color: var(--text-2); }
.v2-brief-anschrift .v2-empfaenger { display: grid; gap: 0; justify-items: start; padding: 8px 10px; border: 1px dashed transparent; border-radius: 8px; background: transparent; line-height: 1.45; }
.v2-brief-anschrift .v2-empfaenger:hover { border-color: var(--rand); background: var(--flaeche-2); }
.v2-brief-anschrift .v2-empfaenger span { color: var(--text); }
.v2-brief-anschrift .v2-empfaenger .v2-aendern { margin-top: 6px; color: var(--rot); font-size: 15px; text-decoration: underline; }
.v2-brief-firma { display: grid; justify-items: end; gap: 12px; }
.v2-brief-firma img { display: block; height: auto; }
.v2-brief-firma dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; font-size: 15px; align-items: baseline; }
.v2-brief-firma dt:has(+ dd .v2-gueltig), .v2-brief-firma dd:has(.v2-gueltig) { height: 44px; display: flex; align-items: center; align-self: center; }
.v2-brief-firma dd:has(.v2-gueltig) { justify-content: flex-end; }
.v2-brief-firma dt { color: var(--text-2); white-space: nowrap; }
.v2-brief-firma dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.v2-dok .v2-gueltig { width: auto; height: 44px; min-height: 44px; box-sizing: border-box; padding: 4px 6px; text-align: right; border-color: var(--rand-fein); }
.v2-brief-titel { margin: 14px 0 4px 10px; font-size: 1.25em; letter-spacing: .03em; }
.v2-art-wahl { display: inline-flex; margin: 10px 0 0 10px; border: 2px solid var(--text-2); border-radius: 12px; overflow: hidden; }
.v2-art-wahl button { min-height: 44px; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 700; border: 0; background: var(--flaeche); color: var(--text); cursor: pointer; }
.v2-art-wahl button + button { border-left: 2px solid var(--text-2); }
.v2-art-wahl button[aria-pressed="true"] { background: var(--text); color: var(--flaeche); }
.v2-brief-zeile { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); align-items: center; gap: 4px; margin: 0; }
.v2-brief-zeile > .v2-label { padding-left: 10px; color: var(--text); }
.v2-dok .v2-brief-zeile .v2-eingabe { border-color: var(--rand-fein); background: transparent; }
.v2-feld { display: grid; gap: 6px; }
.v2-label { font-size: 15px; font-weight: 700; color: var(--text-2); }
.v2-empfaenger { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche-2); color: var(--text); text-decoration: none; }
.v2-empfaenger:hover { border-color: var(--text); }
.v2-empfaenger span { color: var(--text-2); }
.v2-dok .az-feld { display: block; width: 100%; min-height: 40px; margin: 0; padding: 6px 9px; font: inherit; font-size: max(16px, 1em); color: inherit; background: transparent; border: 1px solid transparent; border-radius: 8px; resize: none; }
.v2-dok .az-feld:hover { background: var(--flaeche-2); border-color: var(--rand-fein); }
.v2-dok .az-feld:focus { outline: none; background: #fff; border-color: var(--text-2); box-shadow: 0 0 0 3px rgb(0 0 0 / 6%); }
.v2-dok .v2-eingabe { min-height: 48px; padding: 10px 14px; border-color: var(--rand); background: var(--flaeche); font-weight: 700; }
.v2-dok-text { padding: 6px 27px; }
.v2-zahlung { margin: 8px 9px; color: var(--text-2); }
.v2-tabelle { margin-top: 14px; }
.v2-kopfband { position: sticky; top: var(--v2-oben); z-index: 20; display: grid; grid-template-columns: var(--v2-spalten); gap: 0 10px; padding: 10px 52px 8px 44px; background: #fff; border-bottom: 2px solid var(--text); font-size: 15px; font-weight: 700; }
.v2-kopfband span:nth-child(2) { padding-left: 10px; }
.v2-r { text-align: right; padding-right: 9px; }
.v2-zeilen { list-style: none; margin: 0; padding: 8px 8px 0; }
.v2-z.az { position: relative; display: block; padding: 12px 44px 12px 36px; border: 1px solid var(--rand); border-radius: 10px; margin-bottom: 8px; background: transparent; }
.v2-z-zeile { display: grid; grid-template-columns: var(--v2-spalten); grid-template-areas: "nr text menge einheit preis gesamt"; gap: 0 10px; align-items: start; }
.v2-z-zeile > .v2-nr { grid-area: nr; }
.v2-z-zeile > .v2-text { grid-area: text; }
.v2-z-zeile > .v2-menge { grid-area: menge; }
.v2-z-zeile > .v2-einheit { grid-area: einheit; }
.v2-z-zeile > .v2-preis { grid-area: preis; }
.v2-z-zeile > .v2-gesamt { grid-area: gesamt; }
.v2-z-titel .v2-einheit, .v2-z-text .v2-einheit, .v2-z-bild .v2-einheit { display: none; }
.v2-nr, .v2-einheit, .v2-gesamt { padding-top: 8px; font-variant-numeric: tabular-nums; }
.v2-gesamt { text-align: right; padding-right: 9px; }
.v2-leise { color: var(--text-2); }
.v2-zahl { display: grid; justify-items: end; align-content: start; gap: 6px; min-height: 40px; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-variant-numeric: tabular-nums; text-align: right; cursor: pointer; }
.v2-zahl:hover { background: var(--flaeche-2); border-color: var(--rand-fein); }
.v2-text { min-width: 0; display: grid; gap: 2px; }
.v2-z-zeile > .v2-text-breit { grid-column: 2 / -1; }
.v2-inline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: end; align-content: start; min-width: 0; }
.v2-z-zeile > .v2-einheit.v2-inline { padding-top: 0; justify-items: start; }
.v2-inline > .v2-inl { justify-self: stretch; }
.v2-inline .v2-marke[hidden] { display: none; }
.v2-inl { width: 100%; min-width: 0; min-height: 44px; padding: 7px 6px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; }
.v2-inl-links { text-align: left; }
.v2-inl::placeholder { color: var(--text-2); }
.v2-inl:placeholder-shown { border: 1px dashed var(--rand-fein); }
.v2-inl:hover { background: var(--flaeche-2); border-color: var(--rand-fein); }
.v2-inl:focus { outline: none; border-color: var(--text); background: #fff; }
.v2-z .az-kurz { font-weight: 700; }
.v2-z .az-lang { color: var(--text); }
.v2-z .az-lang:placeholder-shown { display: none; }
.v2-z.offen .az-lang:placeholder-shown, .v2-z:focus-within .az-lang:placeholder-shown { display: block; }
.v2-marke { display: inline-block; justify-self: end; padding: 3px 8px; border-radius: 6px; background: #3b3b3b; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.v2-marken { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 9px 0; }
.v2-marke-hell { background: var(--gelb-hell); color: var(--gelb); border: 1px solid #e9dfa8; }
.v2-marken[hidden] { display: none; }
.v2-anteil { display: none; }
.v2:has([data-anteile-schalter]:checked) span.v2-anteil { display: block; padding: 4px 9px 0; color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.v2:has([data-anteile-schalter]:checked) tr.v2-anteil { display: table-row; }
.v2-anteile-schalter, .v2-lohnausweis .schalter { font-weight: 400; }
.v2-lohnausweis { margin: 0; }
.tf-anteil { color: #555; font-variant-numeric: tabular-nums; }
.efb-tabelle th, .efb-tabelle td { padding: 6px 6px; vertical-align: middle; }
.efb-tabelle thead th { font-size: 14px; }
.formular .efb-tabelle input { width: 4.2em; text-align: right; }
.efb-hinweis ul { margin: 6px 0; padding-left: 20px; }
.efb-formular .efb-zuschlaege { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.efb-formular .efb-zuschlaege legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.efb-formular .efb-223 > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.efb-formular .efb-223 > summary::-webkit-details-marker { display: none; }
.efb-formular .efb-223 > summary::before { content: "▸"; margin-right: 8px; }
.efb-formular .efb-223[open] > summary::before { content: "▾"; }
.stunden-tabelle td.zahl, .stunden-tabelle th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stunden-tabelle .stunden-titel th { text-align: left; padding-top: 16px; }
.stunden-tabelle .stunden-summe td, .stunden-tabelle .stunden-gesamt td { font-weight: 700; border-top: 1px solid var(--text); }
.stunden-tabelle .stunden-aus { color: var(--text-2); }
.stunden-nr { color: var(--text-2); font-variant-numeric: tabular-nums; }
.stunden-tabelle td.stunden-text { width: 100%; }
.stunden-tabelle td.stunden-text small { font-size: 14px; }
@media (max-width: 599px) { .stunden-tabelle th, .stunden-tabelle td { padding: 10px 4px; font-size: 15px; } .stunden-tabelle .stunden-nr { display: block; } }
.v2-aus .v2-gesamt, .v2-aus .v2-preis { color: var(--text-2); }
.v2-z-titel.az { padding-top: 26px; }
.v2-z-titel .az-titel-feld { font-weight: 700; font-size: 1.1em; }
.v2-z-zwischensumme .v2-z-zeile { border-top: 1px solid var(--text); padding-top: 4px; }
.v2-z-zwischensumme .az-feld { font-weight: 700; }
.v2-titelsumme { display: grid; grid-template-columns: var(--v2-spalten); gap: 0 10px; margin-top: 14px; font-weight: 700; }
.v2-titelsumme span { grid-column: 2 / 6; padding-left: 10px; }
.v2-titelsumme b { grid-column: 6; text-align: right; padding-right: 9px; font-variant-numeric: tabular-nums; }
.v2-z .az-bild { margin: 0 0 4px; }
.v2-z .az-bild img { display: block; max-width: 100%; max-height: 360px; border-radius: 8px; }
.v2-z .az-bild[style] img { width: 100%; height: auto; max-height: none; }
.v2-bildgroesse { display: flex; gap: 8px; }
.v2-bild-knopf { width: 44px; height: 44px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); color: var(--text); font: inherit; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; }
.v2-bild-knopf:disabled { opacity: 0.35; cursor: default; }
.v2-bildgroesse output { min-width: 3.5em; text-align: center; }
.v2-z .az-griff { position: absolute; left: 0; top: 12px; width: 36px; height: 44px; margin: 0; }
.v2-z > .v2-menue { position: absolute; right: 2px; top: 12px; }
.v2-z > .v2-menue > summary { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 8px; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--text-2); }
.v2-z > .v2-menue > summary:hover, .v2-z > .v2-menue[open] > summary { background: var(--grund); color: var(--text); }
.v2-leer { margin: 18px 44px 6px; padding: 28px; border: 2px dashed var(--rand); border-radius: 12px; color: var(--text-2); text-align: center; }
@media (hover: hover) and (min-width: 1000px) {
  .v2-z .az-griff, .v2-z > .v2-menue { visibility: hidden; }
  .v2-z:hover .az-griff, .v2-z:hover > .v2-menue, .v2-z:focus-within .az-griff, .v2-z:focus-within > .v2-menue, .v2-z.offen > .v2-menue, .v2-z > .v2-menue[open] { visibility: visible; }
  .v2-z:hover:not(.offen) { background: var(--flaeche-2); cursor: pointer; }
}
.v2-z.offen { box-shadow: inset 0 0 0 2px var(--text); border-radius: 10px; background: #fff; }
.v2-z.v2-markiert:not(.offen) { border-color: var(--rot-marke); box-shadow: inset 0 0 0 1px var(--rot-marke); background: var(--rot-hell); }
.v2-z.v2-stelle { box-shadow: inset 0 -3px 0 var(--rot-marke); }
.v2 .v2-z.v2-ziel-vor { box-shadow: inset 0 3px 0 var(--rot-marke); }
.v2 .v2-z.v2-ziel-nach { box-shadow: inset 0 -3px 0 var(--rot-marke); }
.v2 .ansicht-pos.v2-ziel-leer { outline: 2px dashed var(--rot-marke); outline-offset: -4px; border-radius: 12px; }
body.v2-zieht .v2-dok { box-shadow: 0 0 0 3px var(--rot-hell), 0 1px 3px rgb(0 0 0 / 8%); }
.v2-kalk > .v2-kalk-auf { display: none; }
.v2-bearb { margin: 14px 0 2px; padding: 18px 20px; border-radius: 12px; background: #f3f2ee; display: grid; gap: 4px; font-size: 16px; }
.v2-bearb label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.v2-bearb small { font-weight: 400; font-size: 14px; color: var(--text-2); }
.v2-bearb input:not([type="checkbox"]), .v2-bearb select, .v2-bearb textarea { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--rand); border-radius: 8px; background: #fff; font: inherit; font-size: max(16px, 1em); font-weight: 400; }
.v2-bearb textarea { font-variant-numeric: tabular-nums; }
.v2-bearb .mit-einheit input { max-width: none; }
.v2-bearb-reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 12px; }
.v2-bearb-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-teil { border-top: 1px solid var(--rand); padding: 4px 0; }
.v2-teil > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; }
.v2-teil > summary::-webkit-details-marker { display: none; }
.v2-schalter { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #bdb8ae; transition: background .15s; }
.v2-schalter::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 25%); transition: left .15s; }
.v2-teil[open] > summary .v2-schalter { background: var(--gruen); }
.v2-teil[open] > summary .v2-schalter::after { left: 21px; }
.v2-teil-inhalt { padding: 0 0 12px 58px; }
.v2-teile, .v2-preiswahl { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: 4px 14px; }
.v2-teile:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.v2-teile { border-top: 1px solid var(--rand); padding: 6px 0; }
.v2-bearb label.v2-teil-knopf { display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; font-size: 16px; cursor: pointer; }
.v2-bearb .v2-teil-knopf input, .v2-bearb .v2-preiswahl input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--gruen); }
.v2-bearb :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea):focus { outline: none; background: var(--gruen-hell); border-color: var(--gruen); box-shadow: 0 0 0 3px rgb(30 91 46 / 18%); }
.v2-bearb .v2-teile + .v2-teil-inhalt,.v2-bearb .v2-teil-inhalt + .v2-teil-inhalt { padding-left: 0; }
.v2-bearb:not(:has([data-teil-an="aufmass"]:checked)) [data-teil-inhalt="aufmass"],
.v2-bearb:not(:has([data-teil-an="kalk"]:checked)) [data-teil-inhalt="kalk"],
.v2-bearb:not(:has([data-teil-an="markieren"]:checked)) [data-teil-inhalt="markieren"] { display: none; }
.v2-preiswahl { padding: 0 0 10px; }
.v2-bearb .v2-preiswahl label { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 16px; cursor: pointer; }
.v2-teile label > span, .v2-preiswahl label > span { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.v2-preiswahl b { white-space: nowrap; }
.v2-bearb .v2-teil-zeile { display: flex; border-top: 1px solid var(--rand); padding-top: 4px; font-size: 16px; }
.v2-bearb .schalter { display: inline-flex; font-size: 16px; }
.v2-bearb-fuss { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rand); }
.v2-teil-inhalt:has(> .kz) { padding-left: 0; }
@media (min-width: 1000px) { .v2-bearb[data-autospeichern] .v2-teil-inhalt { padding-left: 0; } }
.kz { display: grid; gap: 10px; grid-column: 1 / -1; container-type: inline-size; min-width: 0; }
.kz-kopf { margin: 6px 0 0; font-size: 17px; }
.kz-kopf small { font-weight: 400; color: var(--text-2); }
.kz-zeilen { display: grid; gap: 0; min-width: 0; }
.kz-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "art menge" "einheit preis" "text text" "gesamt weg"; gap: 8px 10px; align-items: end; padding: 10px 0; border-top: 1px dashed var(--rand); min-width: 0; }
.kz-zeile label { display: grid; gap: 4px; margin: 0; font-size: 14px; color: var(--text-2); min-width: 0; }
.kz-zeile input, .kz-zeile select { color: var(--text); min-width: 0; width: 100%; }
.kz .mit-einheit { min-width: 0; }
.kz .mit-einheit input { flex: 1 1 auto; min-width: 0; width: 100%; }
.kz [data-kz-frei] { display: block; min-width: 0; }
.kz [data-kz-frei][hidden] { display: none; }
.kz .einheit-feld { min-width: 0; }
.kz .einheit-feld input { flex: 1 1 auto; width: 100%; min-width: 0; }
.kz-art { grid-area: art; } .kz-menge { grid-area: menge; } .kz-einheit { grid-area: einheit; } .kz-text { grid-area: text; }
.kz-preis { grid-area: preis; } .kz-gesamt { grid-area: gesamt; display: grid; gap: 4px; }
.kz-gesamt small { font-size: 14px; color: var(--text-2); }
.kz-gesamt output { min-height: 44px; display: flex; align-items: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.kz-preis input[readonly] { background: var(--flaeche-2); border-style: dashed; }
.kz-weg { grid-area: weg; justify-self: end; width: 44px; height: 44px; border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-2); }
.kz-weg:hover { color: var(--rot); border-color: var(--rot); }
.kz-dazu { display: flex; flex-wrap: wrap; gap: 8px; }
.kz-verkauf { display: grid; gap: 8px; padding: 10px 12px; background: var(--flaeche-2); border: 1px solid var(--rand-fein); border-radius: 10px; min-width: 0; }
.kz-v-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; align-items: center; font-variant-numeric: tabular-nums; min-width: 0; }
.kz-v-zeile output { text-align: right; }
.kz-v-zeile > .kz-v-name { grid-row: 1; grid-column: 1; font-weight: 700; }
.kz-v-zeile > output[data-kz-vk], .kz-v-zeile > output[data-kz-ep] { grid-row: 1; grid-column: 2; }
.kz-v-zeile > .kz-plus, .kz-v-zeile > .kz-gleich, .kz-v-zeile > output[data-kz-summe], .kz-v-summe > output[data-kz-euro-alle], .kz-v-summe > output[data-kz-prozent-alle] { display: none; }
.kz-rechnung { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.kz-rechnung > output::before { content: "Einkauf "; color: var(--text-2); }
.kz-rechnung > .kz-plus { color: var(--text-2); }
.kz-rechnung > .kz-zuschlag { flex: 0 0 6.5em; }
.kz-rechnung-summe { font-weight: 400; }
.kz-rechnung-summe > output[data-kz-summe]::before { content: "Kosten "; }
.kz-rechnung-summe > output[data-kz-prozent-alle]::before { content: none; }
.kz-v-zeile[hidden], .kz-preis[hidden] { display: none; }
.kz-zuschlag { margin: 0; min-width: 0; }
.kz-gruppe { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--text-2); min-width: 0; }
.kz-gruppe select { flex: 1; min-width: 0; color: var(--text); }
.kz-v-summe { border-top: 1px solid var(--rand); padding-top: 6px; font-weight: 700; }
.kz-zeit { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }
@container (min-width: 520px) {
  .kz-zeile { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "art menge einheit" "text text text" "preis gesamt weg"; }
  .kz-gesamt { text-align: right; } .kz-gesamt output { justify-content: flex-end; }
  .kz-v-zeile { grid-template-columns: 8.5em minmax(4em, 1fr) 1em minmax(0, 1.3fr) 1em minmax(4.5em, 1fr); gap: 6px; }
  .kz-v-zeile > * { grid-row: auto !important; grid-column: auto !important; }
  .kz-v-zeile > .kz-plus, .kz-v-zeile > .kz-gleich, .kz-v-zeile > output[data-kz-summe], .kz-v-summe > output[data-kz-euro-alle], .kz-v-summe > output[data-kz-prozent-alle] { display: block; }
  .kz-plus, .kz-gleich { text-align: center; color: var(--text-2); }
  .kz-v-zeile > output[data-kz-summe="lohn"] { display: none; }
  .kz-v-zeile > .kz-gruppe { grid-column: 2 / 5 !important; }
  .kz-rechnung { display: contents; }
  .kz-rechnung > output::before { content: none; }
}
@container (min-width: 820px) {
  .kz-zeile { grid-template-columns: 8.5em 5em 7.5em minmax(8em, 1fr) 7em 6em 44px; grid-template-areas: "art menge einheit text preis gesamt weg"; padding: 6px 0; border-top: 0; }
  .kz-zeile + .kz-zeile .kz-gesamt small { display: none; }
  .kz-zeile + .kz-zeile label { font-size: 0; gap: 0; }
  .kz-zeile + .kz-zeile label > * { font-size: 1rem; }
}
.v2-summen { display: grid; justify-items: end; gap: 12px; padding: 22px 52px 6px 36px; }
.v2-summen table { border-collapse: collapse; min-width: 340px; font-variant-numeric: tabular-nums; }
.v2-summen th { text-align: left; font-weight: 700; padding: 4px 24px 4px 0; }
.v2-summen td { text-align: right; padding: 4px 0; white-space: nowrap; }
.v2-summen .v2-leise th { font-weight: 400; }
.v2-summen .v2-brutto th, .v2-summen .v2-brutto td { border-top: 2px solid var(--text); padding-top: 8px; font-weight: 700; font-size: 1.05em; }
.v2-ziel-auf { display: grid; justify-items: end; gap: 10px; }
.v2-ziel-auf > summary { list-style: none; cursor: pointer; }
.v2-ziel-auf > summary::-webkit-details-marker { display: none; }
.v2-ziel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; max-width: 460px; }
.v2-ziel label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.v2-ziel input, .v2-ziel select { min-height: 46px; width: 100%; min-width: 0; font: inherit; font-size: max(16px, 1em); padding: 0 10px; border: 1px solid var(--rand); border-radius: 8px; background: var(--flaeche); }
.v2-ziel .knopf-klein { margin: 0; }
.v2-akte-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); grid-template-areas: "papier seite"; gap: 20px; align-items: start; }
.v2-akte-seite { grid-area: seite; display: grid; gap: 14px; }
.v2-akte-seite .kasten { margin: 0; }
.v2-akte-spalten > .v2-papier { grid-area: papier; min-width: 0; }
@media (max-width: 999px) { .v2-akte-spalten { grid-template-columns: minmax(0, 1fr); grid-template-areas: "seite" "papier"; } }
.v2-kunde-wahl { display: grid; gap: 10px; }
.v2-kunde-wahl .knopf-zeile { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-pauschal { display: grid; gap: 8px; justify-items: start; max-width: 460px; width: 100%; }
.v2-pauschal > label:not(.schalter) { display: grid; gap: 4px; font-weight: 700; font-size: 15px; width: 100%; }
.v2-pauschal input[name="preis"] { min-height: 46px; width: 100%; min-width: 0; font: inherit; font-size: max(16px, 1em); padding: 0 10px; border: 1px solid var(--rand); border-radius: 8px; background: var(--flaeche); }
.v2-pauschal .knopf-klein { margin: 0; }
.v2-tipp { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.v2-angaben { max-width: none; grid-template-columns: minmax(0, 1fr); }
.v2-summen .abschlag-aendern { margin: 0; justify-self: stretch; width: 100%; }
.v2-seite { display: grid; gap: 10px; min-width: 0; }
.v2-panel-kopf { display: flex; align-items: center; gap: 8px; }
.v2-reiter { flex: 1 1 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; background: var(--flaeche); border-radius: 14px; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.v2-reiter-knopf { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 0 4px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.v2-reiter-knopf input { position: absolute; opacity: 0; pointer-events: none; }
.v2-reiter-knopf:hover { background: var(--grund); color: var(--text); }
.v2-reiter-knopf:has(input:checked) { background: var(--text); color: #fff; }
.v2-reiter-ki:has(input:checked) { background: var(--ki); }
.v2-reiter-ki .ki-stern { font-size: 20px; line-height: 20px; }
.v2-reiter-ki:has(input:checked) .ki-stern { color: var(--ki-hell); }
.v2-reiter-knopf:has(input:focus-visible) { outline: 3px solid var(--rot-marke); outline-offset: -3px; }
.v2-tab { padding: 16px; background: var(--flaeche); border-radius: 14px; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.v2-tab h2 { margin: 14px 0 8px; font-size: 1.05rem; }
.v2-tab h2:first-child { margin-top: 0; }
.v2-einfuege-bereich { display: grid; gap: 8px; }
.v2-panel-titel { margin: 2px 4px 0; font-size: 0.95rem; color: var(--text-2); }
.v2-einfuege-bereich .v2-chip { min-height: 46px; gap: 10px; }
.v2-einfuege-bereich .v2-chip-sym { width: 30px; height: 30px; border-radius: 8px; }
.v2-einfuege-bereich .v2-baustein-plus { width: 48px; height: 46px; }
.v2-einfuege-bereich .v2-bausteine { gap: 6px; }
@supports selector(:has(a)) {
  .v2-tab { display: none; }
  .v2-seite[data-reiter="suche"] [data-tab="suche"],
  .v2-seite[data-reiter="angebot"] [data-tab="angebot"],
  .v2-seite[data-reiter="angaben"] [data-tab="angaben"],
  .v2-seite[data-reiter="ki"] [data-tab="ki"] { display: block; }
}
.v2-bausteine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v2-baustein { display: flex; align-items: center; background: var(--flaeche); border-radius: 12px; box-shadow: 0 1px 3px rgb(0 0 0 / 12%); }
.v2-baustein form { margin: 0; }
.v2-chip { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 1rem; text-align: left; cursor: grab; touch-action: none; }
.v2-chip::before { content: "⠿"; color: var(--text-2); font-size: 1.2em; }
.v2-baustein-plus { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-left: 1px solid var(--rand-fein); background: transparent; color: var(--text); cursor: pointer; border-radius: 0 12px 12px 0; }
.v2-baustein:hover { box-shadow: 0 0 0 2px var(--text); }
.v2-baustein-plus:hover { background: var(--grund); }
.v2-chip.zieht { opacity: .5; }
.v2-chip:has(.v2-chip-sym)::before { content: none; }
.v2-chip-sym { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; }
.v2-chip-sym.titel { background: #5b3fa8; color: #fff; }
.v2-chip-sym.position { background: #fbe4e2; color: #a3271c; }
.v2-chip-sym.text { background: #e3e9fb; color: #2f4fa8; }
.v2-chip-sym.zwischensumme { background: #e3f1ea; color: #23704a; }
.v2-chip-sym.bild { background: #fbeedd; color: #9a5a12; }
.v2-mehr { background: var(--flaeche); border-radius: 12px; box-shadow: 0 1px 3px rgb(0 0 0 / 12%); }
.v2-mehr > summary { display: flex; align-items: center; min-height: 52px; padding: 0 16px; font-weight: 700; font-size: .95rem; color: var(--text-2); cursor: pointer; }
.v2-mehr[open] > summary { color: var(--text); border-bottom: 1px solid var(--rand-fein); }
.v2-seite .einfuegen-kasten { max-width: none; margin: 0; padding: 14px 16px 16px; box-shadow: none; border-radius: 0 0 12px 12px; }
.v2-seite .einfuegen-kasten h2 { display: none; }
.v2-seite .einfuegen-kasten :is(input, select, textarea) { font-size: max(16px, 1em); }
.v2-seite .einfuegen-zeile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-seite .einfuegen-stelle { max-width: none; }
.v2-suche input[type="search"] { width: 100%; }
.v2-treffer { margin-top: 10px; max-height: 60vh; overflow: auto; }
.v2-treffer h3 { margin: 12px 0 6px; font-size: 14px; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.v2-treffer .eintrag { position: relative; padding: 10px 12px 10px 44px; }
.v2-treffer .eintrag-betrag { font-size: .95rem; }
.v2-treffer .eintrag-zeile { font-size: 15px; }
.v2-treffer .v2-langtext { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; grid-column: 1 / -1; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.v2-treffer .v2-varianten { grid-column: 1 / -1; margin-top: 6px; }
.v2-treffer .v2-varianten > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text-2); }
.v2-treffer .v2-varianten .eintrag { padding-left: 12px; background: var(--flaeche-2); }
.v2-treffer .eintrag:hover { outline: 2px solid var(--text); }
.v2-griff { position: absolute; left: 2px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-2); font-size: 20px; cursor: grab; touch-action: none; border-radius: 6px; }
.v2-einfuegen { display: flex; align-items: end; gap: 8px; grid-column: 1 / -1; margin-top: 4px; }
.v2-einfuegen form { margin: 0; display: contents; }
.v2-einfuegen label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.v2-einfuegen input { width: 5em; min-height: 44px; font-size: max(16px, 1rem); text-align: right; padding: 4px 8px; border: 1px solid var(--rand); border-radius: 8px; }
.v2-treffer { max-height: none; overflow: visible; }
.v2-treffer .eintraege.kompakt { gap: 4px; }
.v2-treffer .eintrag { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 10px; align-items: center; padding: 6px 6px 6px 36px; }
.v2-treffer .eintrag-titel { grid-column: 1 / 3; grid-row: 1; font-size: 1rem; white-space: normal; overflow-wrap: break-word; line-height: 1.3; }
.v2-treffer .eintrag-betrag { grid-column: 2; grid-row: 2; text-align: right; white-space: nowrap; font-size: .95rem; }
.v2-treffer .eintrag-zeile { grid-column: 1; grid-row: 2; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.v2-treffer .v2-einfuegen { grid-column: 3; grid-row: 1 / 3; margin: 0; align-self: center; }
.v2-treffer .v2-einfuegen label, .v2-treffer .v2-einfuegen-wort { display: none; }
.v2-treffer .v2-einfuegen .knopf { min-width: 44px; min-height: 44px; margin: 0; padding: 0 10px; justify-content: center; }
.v2-treffer .v2-griff { top: 50%; left: 0; width: 34px; height: 44px; transform: translateY(-50%); }
.v2-treffer .eintrag-zeile { white-space: normal; overflow: visible; }
.v2-treffer .eintrag > .v2-langtext { grid-column: 1 / -1; grid-row: 3; }
.v2-treffer .eintrag > .v2-varianten { grid-column: 1 / -1; grid-row: 4; }
.v2-treffer .eintrag:has(> .v2-varianten) > .v2-griff { top: 8px; transform: none; }
.v2-treffer .v2-varianten .eintrag { padding-left: 10px; }
.v2-treffer .v2-ausblenden { margin: 8px 0 4px; }
.v2-treffer .v2-wieder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.v2-ohne-mwst { margin: 8px 0; }
.feld-treffer { margin: 0; }
.feld-treffer:empty { display: none; }
.feld-treffer .eintrag { padding-left: 10px; cursor: pointer; }
.feld-treffer h3 { margin: 6px 0 4px; }
.feld-treffer .feld-plus { grid-column: 3; grid-row: 1 / 3; align-self: center; justify-self: end; min-width: 44px; min-height: 44px; margin: 0; padding: 0; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.v2-geist { position: fixed; z-index: 100; pointer-events: none; padding: 10px 16px; border-radius: 12px; background: var(--text); color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 10px 28px rgb(0 0 0 / 28%); transform: translate(-50%, -120%); white-space: nowrap; }
.v2-tab-inhalt { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rand-fein); }
.v2-tab-inhalt .inhalt-liste { max-height: 36vh; overflow: auto; }
.v2-tab-inhalt .inhalt-summe { display: none; }
.v2-tab .angaben dd { white-space: nowrap; }
.v2-ki { display: grid; gap: 10px; }
.v2-ki textarea { width: 100%; min-height: 110px; font: inherit; font-size: max(16px, 1em); padding: 12px; border: 1px solid var(--rand); border-radius: 12px; resize: vertical; }
.v2-ki textarea:focus { outline: none; border-color: var(--ki); box-shadow: 0 0 0 3px rgb(74 13 18 / 12%); }
.v2-ki .knopf-ki { justify-self: end; }
.v2-ki-ideen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v2-ki-idee { min-height: 44px; padding: 6px 14px; border: 0; border-radius: 999px; background: #f6e8e6; color: var(--ki); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.v2-ki-idee:hover { background: #efd6d3; }
.ki-stern { color: var(--ki); }
.v2-nur-schmal { display: none; }
.v2-papier .brief-blatt { max-width: 880px; margin: 0 auto 40px; box-shadow: 0 1px 2px rgb(0 0 0 / 10%), 0 14px 40px rgb(40 30 20 / 14%); }
.anlagen-seiten { margin-top: 24px; }
.anlagen-seiten > .anlage-seite { max-width: 880px; margin: 0 auto 40px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 10%), 0 14px 40px rgb(40 30 20 / 14%); }
.anlagen-seiten > .anlage-seite > img { display: block; width: 100%; height: auto; }
@page anlage { size: A4; margin: 6mm; }
@media print {
  .anlagen-seiten { margin: 0; }
  .anlagen-seiten > .anlage-seite { page: anlage; break-before: page; break-inside: avoid; max-width: none; margin: 0; box-shadow: none; }
  .anlagen-seiten > .anlage-seite > img { width: auto; max-width: 100%; height: auto; max-height: 280mm; margin: 0 auto; }
}
@media (min-width: 1000px) {
  .v2-spalten { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .v2-seite { position: sticky; top: calc(var(--v2-oben) + 8px); max-height: calc(100dvh - var(--v2-oben) - 20px); overflow: auto; padding: 2px; }
  .v2-panel-kopf { display: none; }
}
@media (max-width: 1439px) { [data-v2-gliederung] { display: none; } }
@media (min-width: 1440px) {
  .v2.mit-gliederung .v2-spalten { grid-template-columns: 200px minmax(0, 1fr) 300px; }
  .v2.mit-gliederung .v2-inhalt { display: block; position: sticky; top: calc(var(--v2-oben) + 8px); max-height: calc(100dvh - var(--v2-oben) - 20px); overflow: auto; }
  .v2.mit-gliederung .v2-tab-inhalt { display: none; }
}
.v2-dok { container-type: inline-size; }
@container (max-width: 900px) {
  .v2-dok > * { font-size: 16px; }
  .v2-dok :is(.v2-kopfband, .v2-z-zeile, .v2-titelsumme) { --v2-spalten: 3.2em minmax(0, 1fr) 4.2em 3.6em 6em 6.8em; }
  .v2-dok .v2-kopfband { padding: 10px 44px 8px 34px; }
  .v2-dok .v2-zeilen { padding: 8px 4px 0; }
  .v2-dok .v2-z.az { padding: 12px 40px 12px 30px; }
  .v2-dok .v2-z .az-griff { width: 30px; }
  .v2-dok .v2-dok-kopf { padding: 8px 24px 8px; }
  .v2-dok .v2-brief-kopf { padding: 24px 24px 4px; }
  .v2-dok .v2-dok-text { padding: 6px 15px; }
  .v2-dok .v2-summen { padding: 22px 44px 6px 24px; }
}
@media (max-width: 1279px) { .nur-breit { display: none; } }
@media (max-width: 999px) {
  .v2-nur-schmal { display: inline-flex; }
  .v2-leiste { flex-wrap: wrap; }
  .v2-rechts { flex-wrap: wrap; }
  .v2-seite { display: none; }
  .v2.panel-offen .v2-seite { display: grid; }
  .v2.panel-offen .v2-dok, .v2.panel-offen .v2-inhalt { display: none; }
  .v2-reiter-knopf svg { display: none; }
  .v2-reiter-knopf { min-height: 48px; }
}
@media (max-width: 699px) {
  .v2-leiste { gap: 8px; }
  .v2-ki-knopf { min-height: 44px; padding: 0 12px; }
  .v2-dok { font-size: 16px; }
  .v2-dok-kopf { padding: 6px 12px 6px; }
  .v2-brief-kopf { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 12px 4px; }
  .v2-brief-firma { justify-items: start; grid-template-columns: auto minmax(0, 1fr); align-items: start; padding-left: 10px; }
  .v2-brief-firma img { width: 64px; }
  .v2-brief-firma dl { font-size: 14px; }
  .v2-brief-firma dd { text-align: left; }
  .v2-brief-firma dd:has(.v2-gueltig) { justify-content: flex-start; }
  .v2-absender { display: none; }
  .v2-brief-titel { margin-left: 4px; }
  .v2-brief-zeile { grid-template-columns: minmax(0, 1fr); }
  .v2-brief-zeile > .v2-label { padding-left: 4px; font-size: 14px; color: var(--text-2); }
  .v2-dok-text { padding: 6px 7px; }
  .v2-kopfband { display: none; }
  .v2-zeilen { padding: 6px 4px 0; }
  .v2-z.az { padding: 12px 44px 12px 34px; }
  .v2-z-zeile { grid-template-columns: 3.4em auto minmax(0, 1fr) auto; grid-template-areas: "nr text text text" ". menge preis gesamt"; }
  .v2-nr { grid-area: nr; }
  .v2-text { grid-area: text; }
  .v2-text-breit { grid-column: auto; }
  .v2-menge { grid-area: menge; justify-items: start; }
  .v2-einheit { display: none; }
  .v2-menge.v2-zahl::after { content: attr(data-einheit); }
  .v2-preis { grid-area: preis; }
  .v2-gesamt { grid-area: gesamt; font-weight: 700; }
  .v2-z-inline { grid-template-columns: 3.2em auto auto minmax(0, 1fr); grid-template-areas: "nr text text text" ". menge einheit preis" ". gesamt gesamt gesamt"; }
  .v2-z-inline > .v2-einheit.v2-inline { display: grid; }
  .v2-z-inline > .v2-preis.v2-inline { justify-items: start; }
  .v2-z-inline > .v2-gesamt { justify-self: end; }
  .v2-inline .v2-marke { display: none; }
  .v2-titelsumme { grid-template-columns: minmax(0, 1fr) auto; }
  .v2-titelsumme span { grid-column: 1; padding-left: 0; }
  .v2-titelsumme b { grid-column: 2; }
  .v2-summen { padding: 18px 16px 6px; }
  .v2-summen table { min-width: 0; width: 100%; }
  .v2-ziel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .v2-ziel .knopf-klein { grid-column: 1 / -1; }
  .v2-bearb { padding: 14px; }
  .v2-bearb-reihe, .v2-bearb-raster { grid-template-columns: minmax(0, 1fr); }
  .v2-teil-inhalt { padding-left: 0; }
  .v2-bearb label.v2-teil-knopf, .v2-bearb .v2-preiswahl label { font-size: 15px; }
}
.v2-dok .az-feld, .v2-zahl { min-height: 44px; }
.v2-dok textarea.az-feld, .v2-dok input.az-feld { min-width: 0; width: 100%; }
.v2-text > * { min-width: 0; }
@media (max-width: 999px) and (min-width: 700px) {
  .v2 { --v2-spalten: 3.2em minmax(0, 1fr) 4.2em 3.6em 6em 6.8em; }
  .v2-dok { font-size: 16px; }
  .v2-dok-kopf { padding: 8px 24px 8px; }
  .v2-brief-kopf { padding: 24px 24px 4px; }
  .v2-dok-text { padding: 6px 15px; }
}
@media (max-width: 699px) {
  .v2-lang { display: none; }
  .v2-rechts { flex: 1 1 100%; margin-left: 0; position: relative; }
  .v2-rechts > .v2-weiter { margin-left: auto; }
  .v2-mehr-menue { position: static; }
  .v2-mehr-menue .v2-menue-liste { left: 0; right: 0; min-width: 0; }
  .v2-zahl .v2-marke { display: none; }
}
@media (max-width: 699px) {
  .v2-leiste-titel { flex: 1 1 0; }
  .v2-z-zeile { grid-template-columns: 3.2em minmax(0, 1fr) auto auto; grid-template-areas: "nr text text text" ". menge preis gesamt"; }
  .v2-zahl, .v2-gesamt { white-space: nowrap; }
  .v2-menge { justify-items: start; }
}
@media (max-width: 699px) { .v2-menge.v2-zahl { display: flex; align-items: flex-start; } }
@media (max-width: 699px) {
  .v2-z-zeile { grid-template-columns: 3.2em auto auto minmax(0, 1fr); }
  .v2-z-zeile > .v2-preis.v2-zahl { justify-items: start; }
  .v2-z-zeile > .v2-preis.v2-zahl::before { content: "je "; color: var(--text-2); }
  .v2-z-zeile > .v2-preis.v2-zahl { display: flex; gap: 4px; }
  .v2-z-zeile.v2-z-inline { grid-template-columns: 3.2em auto auto minmax(0, 1fr); grid-template-areas: "nr text text text" ". menge einheit preis" ". gesamt gesamt gesamt"; }
  .v2-z-inline > .v2-preis.v2-inline { display: flex; align-items: center; gap: 4px; }
  .v2-z-inline > .v2-preis.v2-inline::before { content: "je"; color: var(--text-2); flex: none; }
  .v2-z-inline > .v2-menge.v2-inline { width: 2.8em; }
  .v2-z-inline > .v2-einheit.v2-inline { width: 4.3em; }
  .v2-z-inline .v2-inl { padding-left: 4px; padding-right: 4px; }
  .v2-z-inline > .v2-preis.v2-inline { min-width: 0; }
  .v2-z-inline > .v2-preis.v2-inline > .v2-inl { flex: 1 1 4em; min-width: 0; padding-left: 4px; padding-right: 4px; }
}

.forderungen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.forderung { display: grid; gap: 2px; padding: 14px 16px; background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); color: var(--text); text-decoration: none; border: 2px solid transparent; }
.forderung:hover { border-color: var(--text); }
.forderung-titel { font-size: 15px; font-weight: 700; color: var(--text-2); }
.forderung-betrag { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.forderung-anzahl { font-size: 15px; color: var(--text-2); }
.forderung-achtung .forderung-betrag { color: var(--rot); }
@media (max-width: 599px) { .forderungen { grid-template-columns: minmax(0, 1fr); } .forderung { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; } .forderung-anzahl { grid-column: 1 / -1; } }
.eintrag > div.eintrag-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.eintrag > div.eintrag-knoepfe form { margin: 0; }
.mahn-teil { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rand-fein); display: grid; gap: 8px; }
.mahn-teil h3 { margin: 0; font-size: 1rem; }
.mahn-teil form { margin: 0; }
.mahn-girocode { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }
.mahn-girocode svg { width: 104px; height: 104px; flex: none; }
.mahn-girocode p { margin: 0; max-width: 260px; }

.ab-mangel { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rand-fein); }
.formular label.ab-zu { font-weight: 400; }
.ab-liste { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 8px; }
.ab-liste small { color: var(--text-2); }
.ab-verjaehrung { margin: 0 0 16px; }
.ab-unterschrift + .ab-unterschrift { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rand-fein); }
.tf-angaben.ab-druck-angaben { grid-template-columns: max-content minmax(0, 1fr); gap: 2px 16px; margin: 0 0 10px; font-size: 14px; }
.ab-druck-teil { margin-top: 10px; }
.ab-druck-teil p { margin: 0 0 6px; }
.ab-druck-unterschriften { margin-top: 24px; }
.ab-druck-unterschriften .tf-unterschrift-felder div { display: flex; align-items: flex-end; }
.ab-druck-unterschriften .unterschrift-bild { border: 0; max-height: 80px; width: auto; max-width: 100%; }
.ab-druck-namen p { margin: 4px 0 0; font-size: 13px; }
.ab-druck-wann { font-size: 13px; margin: 6px 0 0; }
.ab-druck-fotos { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
@media print { .ab-druck-fotos .bild { break-inside: avoid; } }
.mz { display: grid; gap: 12px; grid-column: 1 / -1; }
.mz-zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; padding: 10px 0 0; border-top: 1px dashed var(--rand); }
.mz-zeile label { display: grid; gap: 6px; margin: 0; }
.mz-dazu { justify-self: start; }

.teilen-knoepfe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.teilen-knoepfe form { margin: 0; display: contents; }
.teilen-knoepfe .knopf, .teilen-knoepfe .knopf-zweit { width: 100%; min-width: 0; box-sizing: border-box; justify-content: center; padding-inline: 12px; gap: 8px; white-space: normal; text-align: center; }
.teilen-knoepfe :is(.knopf, .knopf-zweit) svg { flex: none; }
.teilen-knoepfe .knopf-zweit { background: #fff; }
.teilen-kasten .weitere-zeilen > summary { font-size: 1rem; }
.kontakt-knoepfe { margin-top: 16px; }
@media (max-width: 600px) { .neues-projekt .suche-zeile > button { width: 100%; justify-content: center; } }
.teilen-kasten .klein { margin: 10px 0 0; }
.teilen-kasten form:last-child { margin-top: 10px; }

.v2.v2-auswahl-an .v2-z > .v2-wahl { position: absolute; inset: 0; z-index: 3; display: block; margin: 0; border-radius: 8px; cursor: pointer; }
.v2-wahl input { position: absolute; left: 3px; top: 14px; width: 24px; height: 24px; margin: 0; accent-color: var(--rot); cursor: pointer; }
.v2-wahl input:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.v2.v2-auswahl-an .v2-z .az-griff, .v2.v2-auswahl-an .v2-z > .v2-menue { visibility: hidden !important; }
.v2.v2-auswahl-an .v2-z:hover:not(.gewaehlt) { background: var(--flaeche-2); }
.v2.v2-auswahl-an .v2-z.gewaehlt { background: var(--rot-hell); box-shadow: inset 0 0 0 2px var(--rot); border-radius: 8px; }
.v2-auswahl-leiste { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 8px; margin: 0;
  padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--flaeche); border-top: 1px solid var(--rand); box-shadow: 0 -6px 20px rgb(0 0 0 / 12%); }
.v2-auswahl-leiste[hidden], .v2-auswahl-tipp[hidden] { display: none; }
.v2-auswahl-tipp { margin: 0; color: var(--text-2); font-weight: 700; }
.v2-auswahl-knoepfe { display: flex; gap: 12px; width: 100%; max-width: 560px; }
.v2-auswahl-knoepfe > * { flex: 1 1 auto; min-height: 56px; padding-inline: 14px; }
.v2-auswahl-knoepfe > [data-auswahl-ende] { flex: 0 0 auto; }
.v2-auswahl-knoepfe .knopf:disabled { opacity: .45; cursor: default; }
body.auswahl-an .hilfe-knopf { display: none; }
body.auswahl-an .inhalt { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
@media print { .v2-auswahl-leiste { display: none !important; } }

.inv-kopf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; }
.inv-summe { margin: 10px 0; }
.inv-bereich h2 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inv-bereich-summe { font-size: 1rem; font-weight: 700; margin: 0; }
.inv-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inv-zeile { border: 1px solid var(--rand); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; min-width: 0; }
.inv-form { display: grid; gap: 6px; min-width: 0; margin: 0; }
.inv-bez { font-weight: 700; overflow-wrap: anywhere; }
.inv-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
.inv-zahlen label { display: grid; gap: 2px; font-size: .9rem; color: var(--text-2); min-width: 0; }
.inv-zahlen label input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .inv-mehr label input, .inv-treffer-form select, .inv-frei label select { font: inherit; font-size: max(16px, 1rem); min-height: 44px; padding: 0 8px; border: 2px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: var(--text); width: 100%; min-width: 0; box-sizing: border-box; }
.inv-wert { font-weight: 700; text-align: right; align-self: center; white-space: nowrap; }
.inv-mehr summary { cursor: pointer; color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.inv-mehr label { display: grid; gap: 2px; margin-top: 6px; }
.inv-mehr .knopf-zeile { margin-top: 10px; }
.inv-neu .suche-zeile input { flex: 1 1 260px; min-width: 0; }
.inv-treffer-form { display: grid; gap: 4px; margin: 0; min-width: 0; }
.inv-treffer-form .knopf-zeile select { width: auto; max-width: 100%; }
.inv-frei summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.inv-ganz-loeschen { margin-top: 24px; }
.inv-pos { display: inline-block; min-width: 2.2em; margin-right: 4px; padding: 0 6px; border-radius: 8px; background: var(--rand); color: var(--text); font-size: .9rem; text-align: center; font-variant-numeric: tabular-nums; }
.inv-verschieben { display: flex; align-items: end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.inv-mehr .inv-verschieben label { margin: 0; }
.inv-mehr .inv-verschieben input { width: 6em; }
.inv-ueberschriften summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.inv-ub-gruppe { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; }
.inv-ub-gruppe legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
@media (max-width: 560px) {
  .inv-zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inv-wert { grid-column: 1 / -1; }
}
.inv-blatt { background: var(--flaeche); border-radius: 14px; padding: 18px 20px; }
.inv-blatt-rahmen { max-width: 100%; overflow: hidden; }
.inv-blatt-rahmen > .inv-blatt { width: 1060px; box-sizing: border-box; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.inv-blatt-rahmen .inv-tabelle-rahmen { overflow: visible; }
.inv-blatt-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 3px solid var(--rot-marke); padding-bottom: 8px; }
.inv-blatt-kopf h1 { margin: 0; }
.inv-blatt-firma { display: flex; align-items: flex-end; gap: 14px; text-align: right; font-size: 14px; line-height: 1.35; color: var(--text-2); flex: none; }
.inv-blatt-firma img { display: block; width: 100px; height: auto; }
.inv-blatt-firma p { margin: 0; order: -1; }
.inv-blatt-firma b { color: var(--text); font-size: 15px; }
.inv-blatt-firma a { color: inherit; text-decoration: none; }
.inv-blatt .brief-fuss { margin-top: 24px; font-size: 14px; }
.inv-blatt-angaben { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 20px; margin: 12px 0; }
.inv-blatt-angaben dt { font-weight: 700; font-size: .9rem; }
.inv-blatt-angaben dd { margin: 0; border-bottom: 1px solid var(--text); min-height: 1.5em; }
.inv-tabelle-rahmen { overflow-x: auto; max-width: 100%; }
.inv-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.inv-tabelle th, .inv-tabelle td { border: 1px solid var(--text); padding: 3px 6px; text-align: left; vertical-align: top; }
.inv-tabelle thead th { background: #eee; color: #161616; }
.inv-tabelle .zahl { text-align: right; white-space: nowrap; }
.inv-tabelle .inv-gruppe th { background: #f2f2f2; color: #161616; }
.inv-tabelle .inv-zwischen td, .inv-tabelle tfoot td { font-weight: 700; }
.inv-unterschriften { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; font-size: .9rem; }
.inv-unterschriften span { border-top: 1px solid var(--text); padding-top: 4px; }
@page inventur { size: A4 landscape; margin: 12mm; }
@media print {
  .inv-blatt { page: inventur; padding: 0; border-radius: 0; background: #fff; color: #000; zoom: 1 !important; }
  .inv-blatt-rahmen > .inv-blatt { width: auto; }
  .inv-blatt-rahmen { overflow: visible; }
  .inv-tabelle { font-size: 9pt; }
  .inv-blatt-firma { font-size: 9pt; } .inv-blatt-firma b { font-size: 10pt; }
  .inv-blatt .brief-fuss { font-size: 8pt; }
  .inv-tabelle thead { display: table-header-group; }
  .inv-tabelle tr { break-inside: avoid; }
  .inv-tabelle-rahmen { overflow: visible; }
}
.inv-stichtag-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-bottom: 12px; }
.inv-stichtag-form label { flex: 0 1 220px; }
.inv-masse summary { cursor: pointer; color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.inv-masse-felder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.inv-masse-felder label { display: grid; gap: 2px; font-size: .9rem; color: var(--text-2); min-width: 0; }
.inv-masse-felder label input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .inv-zahlen label select { font: inherit; font-size: max(16px, 1rem); min-height: 44px; padding: 0 8px; border: 2px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: var(--text); width: 100%; min-width: 0; box-sizing: border-box; }
.inv-formel { display: block; margin-top: 6px; color: var(--text-2); font-size: .9rem; }
.inv-zahlen input.inv-gerechnet { background: var(--hintergrund, #f4f2ee); color: var(--text); font-weight: 700; }
@media (max-width: 560px) { .inv-masse-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gb-bereich { margin: 24px 0 8px; font-size: 1.15rem; }
.unterschrift-klein { height: 36px; width: auto; max-width: 140px; vertical-align: middle; background: #fff; }
.angaben dd.mehrzeilig { white-space: pre-line; font-weight: 400; }
.bg-nachweise .eintrag-alter .marke-tag { white-space: nowrap; }
.mappe-teil h3 { margin: 16px 0 6px; font-size: 1rem; }
.mappe-deckblatt { text-align: left; }
.deckblatt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid var(--rot-marke); }
.deckblatt-logo { display: block; margin: 0; height: auto; }
.deckblatt-anschrift { margin: 0; text-align: right; color: var(--text-2); line-height: 1.45; }
.deckblatt-anschrift b { color: var(--text); }
.deckblatt-titel { margin: 56px 0 36px; padding-left: 18px; border-left: 6px solid var(--rot-marke); }
.mappe-deckblatt h1 { font-size: 2.8rem; margin: 0; letter-spacing: -.01em; }
.deckblatt-unter { font-size: 1.2rem; margin: 6px 0 4px; color: var(--text-2); }
.deckblatt-stand { margin: 0; font-weight: 700; }
.deckblatt-daten { border-collapse: collapse; width: 100%; margin-bottom: 30px; }
.deckblatt-daten th, .deckblatt-daten td { text-align: left; vertical-align: top; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rand-fein); font-weight: 400; }
.deckblatt-daten th { width: 36%; color: var(--text-2); }
.deckblatt-h2 { font-size: 1.1rem; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.deckblatt-inhalt { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.deckblatt-inhalt li { display: flex; align-items: baseline; gap: 12px; }
.deckblatt-reg { flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--rot-marke); color: #fff; font-weight: 700; font-size: .9em; }
.mappe-inhalt { margin: 0 0 6px; color: var(--text-2); }
@media print { .mappe-deckblatt { break-after: page; } .nur-bildschirm { display: none; }
  .deckblatt-kopf, .deckblatt-titel, .deckblatt-reg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mappe-deckblatt { font-size: 10.5pt; } .mappe-deckblatt h1 { font-size: 30pt; } .deckblatt-titel { margin: 40px 0 30px; } }
.lz-kopf { padding: 10px 14px; border: 2px dashed var(--rot-marke); border-radius: 8px; margin-bottom: 14px; }
.lz-kopf h2 { margin: 0 0 2px; }
.lz-kopf p { margin: 0; color: var(--text-2); }
.lz-block { border: 1px solid var(--rand); border-radius: 8px; padding: 8px 14px 10px; margin-bottom: 12px; break-inside: avoid; }
.lz-block h3 { margin: 0 0 6px; font-size: 1rem; }
.lz-block > p { margin: 0 0 6px; color: var(--text-2); }
.lz-box { flex: 0 0 auto; display: inline-block; width: 13px; height: 13px; border: 1.5px solid var(--text); border-radius: 2px; margin-top: 3px; }
.lz-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.lz-liste li { display: flex; gap: 8px; align-items: flex-start; }
.lz-spalten { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.lz-tabelle { border-collapse: collapse; width: 100%; }
.lz-tabelle th, .lz-tabelle td { text-align: left; vertical-align: top; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--rand-fein); font-weight: 400; }
.lz-tabelle tr:last-child > * { border-bottom: 0; }
.lz-tabelle th { font-weight: 700; width: 30%; }
.lz-haken { width: 22px; }
.lz-maengel { background: var(--flaeche-2, #f6f6f4); border-left: 5px solid var(--rot-marke); }
.lz-punkte { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
@media print { .mappe-laufzettel { break-after: page; font-size: 9.5pt; }
  .lz-kopf, .lz-maengel { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.uw-offen { display: inline-block; height: 1.4em; }
@media print { .uw-offen { height: 10mm; } }
@media print { .mappe-teil { break-inside: auto; } .mappe-teil + .mappe-teil { break-before: page; } .mappe-teil tr { break-inside: avoid; } .mappe-teil h2, .mappe-teil h3 { break-after: avoid; } .druck-gruppe { break-inside: avoid; } }

details.info { display: inline-block; vertical-align: middle; }
details.info > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -10px 0; color: var(--blau); font-size: 1.375rem; font-weight: 700; }
details.info > summary::-webkit-details-marker { display: none; }
details.info[open] { display: block; }
details.info .info-text { margin: 4px 0 12px; padding: 12px 14px; border-left: 4px solid var(--blau); border-radius: 8px; background: #eef2ff; color: var(--text); font-size: 1rem; line-height: 1.5; font-weight: 400; }
details.info .info-text ul { margin: 6px 0 0 1.1em; padding: 0; }
a.unterweisung-hinweis { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--gelb); }
a.unterweisung-hinweis svg { flex: none; }
a.unterweisung-hinweis span { text-decoration: underline; text-underline-offset: 3px; }

.bg-fahrplan { display: grid; gap: 16px; margin-bottom: 28px; }
.bg-kopf { padding: 18px 20px; border-radius: var(--rund); background: var(--gelb-hell); border: 2px solid #fde68a; }
.bg-kopf.bg-fertig { background: var(--gruen-hell); border-color: #a7d7b4; }
.bg-kopf h2 { margin: 0 0 4px; font-size: 1.375rem; }
.bg-countdown { margin: 0; font-weight: 700; color: var(--gelb); }
.bg-fertig .bg-countdown { color: var(--gruen); }
.bg-gesamt { margin: 8px 0; font-size: 1.125rem; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.bg-kopf progress { width: 100%; height: 14px; accent-color: var(--gruen); }
.bg-einleitung summary { font-weight: 700; cursor: pointer; }
.bg-einleitung ol, .bg-einleitung ul { padding-left: 1.3em; }
.bg-inhalt h2 { margin: 0 0 8px; font-size: 1.125rem; }
.bg-inhalt ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.bg-inhalt li a { font-weight: 700; margin-right: 6px; }
.bg-teil { border-left: 6px solid var(--rand); scroll-margin-top: 80px; }
.bg-teil.bg-ok { border-left-color: var(--gruen); }
.bg-teil.bg-teil { border-left-color: #e0a800; }
.bg-teil.bg-offen { border-left-color: var(--rot); }
.bg-teil-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bg-teil-kopf h2 { margin: 0; font-size: 1.25rem; display: flex; gap: 10px; align-items: center; }
.bg-teil-kopf details.info[open] { flex-basis: 100%; }
.bg-nr { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: #fff; font-size: 1rem; }
.bg-teil-stand { margin: 6px 0; }
.bg-offen { margin: 4px 0 12px; padding-left: 1.2em; display: grid; gap: 4px; }
.bg-offen-titel { margin: 8px 0 0; }
details.info.info-mit-wort > summary { gap: 6px; min-height: 44px; margin: 0; }
details.info .info-wort { font-size: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bg-teil-kopf details.info { flex-basis: 100%; }

.pruef-nachricht { margin: 8px 0; padding: 10px 12px; border-left: 4px solid var(--blau); background: #eef2ff; border-radius: 8px; }
.pruef-nachricht p { margin: 0 0 6px; }
.pruef-liste .knopf-zeile form { display: inline; }
.tag-ueberblick h2 { margin-top: 0; }
.tag-folge { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.tag-folge li { padding: 8px 10px; border-left: 4px solid var(--rand); background: var(--grund); border-radius: 6px; }
.tag-folge li.fehlt { border-left-color: var(--rot); background: var(--rot-hell); color: var(--rot-dunkel); font-weight: 700; }
.zwei-spalten-innen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
[data-nur-azubi][hidden] { display: none; }

.plan-formular .plan-zeile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 10px 12px;
  border: 1px solid var(--rand-fein); border-radius: 12px; background: var(--flaeche-2); }
.plan-formular .plan-zeile label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-weight: 400; font-size: .9rem; color: var(--text-2); }
.plan-formular .plan-zeile input[type="time"], .plan-formular .plan-zeile select { width: 100%; min-width: 0; min-height: 44px; font-size: max(16px, 1rem); color: var(--text); }
.plan-formular .plan-tag { grid-column: 1 / -1; font-weight: 700; }
.plan-formular .plan-zeile input[type="time"] { padding-inline: 8px; }
.plan-formular .plan-zeile input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
.plan-formular .plan-zeile select { padding-inline: 8px; }
.plan-liste { list-style: none; margin: 0; padding: 0; }
.plan-liste > li { border-top: 1px solid var(--rand); padding: 10px 0; }
.plan-liste .plan-kopf { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.plan-liste .plan-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: start; }
.plan-liste .plan-aktionen form { margin: 0; }
.plan-liste li.plan-aus .plan-kopf span { text-decoration: line-through; }
.sonder-eintragen > summary { cursor: pointer; font-weight: 700; color: var(--rot, #b3121b); min-height: 44px; display: flex; align-items: center; }
.sonder-eintragen .formular { margin-top: 8px; }
.sonder-eintragen { display: block; font-size: 1rem; color: var(--text); }
.sonder-eintragen input[type="date"] { font-size: max(16px, 1rem); }
.eintrag-aktion.stempel-aktion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; font-size: 1rem; }
.eintrag-aktion.stempel-aktion > label { display: flex !important; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; font-weight: 700; font-size: .95rem; color: var(--text); }
.eintrag-aktion.stempel-aktion > label > input, .eintrag-aktion.stempel-aktion > label > select { width: 100%; min-width: 0; min-height: 48px; margin-left: 0; font: inherit; font-weight: 400; font-size: max(16px, 1rem); padding: 6px 12px; border: 2px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: var(--text); flex: none; }
.eintrag-aktion.stempel-aktion > label > .diktat { margin-top: 2px; }
.eintrag .eintrag-aktion.stempel-aktion > button { grid-column: 2; grid-row: 1; justify-self: end; margin-top: calc(.95rem * 1.4 + 4px); min-height: 48px; }
.v2-marke-warn { background: #fdecec; color: var(--rot); border: 1px solid #f3b4b4; white-space: normal; }
.projekt-kacheln { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0; }
@media (min-width: 640px) { .projekt-kacheln { grid-template-columns: 1fr 1fr; } }
.projekt-kachel { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px; background: var(--flaeche); border: 1px solid var(--rand-fein);
  border-radius: var(--rund); box-shadow: var(--schatten); color: var(--text); text-decoration: none; }
.projekt-kachel:hover, .projekt-kachel:focus-visible { border-color: var(--rot); }
.pk-symbol { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--rot); color: #fff; }
.pk-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 14px; border-left: 1px solid var(--rand-fein); }
.pk-text b { font-size: 1.05rem; }
.pk-text span { color: var(--text-2); font-size: .9rem; }

.alles-symbol { border-radius: 12px; background: var(--rot); color: #fff; }
.alles-kachel[aria-current="page"] .alles-symbol { background: var(--text); }
.alles-klein .alles-symbol { background: var(--grund); color: var(--text-2); }
.alles-kachel .reiter-zahl { box-shadow: 0 0 0 2px var(--flaeche); }
.bg-kachel { border-left: 6px solid var(--rand); }
.bg-kachel.bg-k-ok { border-left-color: var(--gruen); }
.bg-kachel.bg-k-teil { border-left-color: #e0a800; }
.bg-kachel.bg-k-offen { border-left-color: var(--rot); }
.bg-kachel .pk-text > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bg-kachel.bg-k-ok .pk-symbol { background: var(--gruen); }
.eintrag.stufen-streifen { box-shadow: inset 6px 0 0 var(--sf), var(--schatten); }
.eintrag.stufen-streifen.s-erledigt { box-shadow: inset 6px 0 0 var(--rand), var(--schatten); }
.tag-eintrag.tag-art { box-shadow: inset 6px 0 0 var(--tag-farbe, var(--rand)), var(--schatten); }
.tag-eintrag.tag-art.mit-hinweis { box-shadow: var(--schatten); }
.tag-arbeit { --tag-farbe: #B8501F; }
.tag-gruen { --tag-farbe: var(--gruen); }
.tag-rot { --tag-farbe: var(--rot); }
.tag-blau { --tag-farbe: var(--blau); }
.tag-grau { --tag-farbe: #9a968c; }
.tag-wetter { --tag-farbe: #5b6b7f; }
.zahl-kachel.mit-symbol { position: relative; padding-right: 64px; }
.zahl-kachel .zk-symbol { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--rot); color: #fff; font-style: normal; }
.bm-punkt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border-radius: 12px;
  background: var(--flaeche); box-shadow: var(--schatten); color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.bm-punkt:hover { box-shadow: 0 2px 8px rgb(0 0 0 / 14%); }
.bm-punkt[aria-current="page"] { outline: 2px solid var(--text); }
.bm-symbol { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--rot); color: #fff; }
.bm-text { min-width: 0; overflow-wrap: break-word; word-break: normal; -webkit-hyphens: auto; hyphens: auto; }
.bereich-kacheln .bm-punkt { gap: 8px; padding: 8px; font-size: .9rem; }
.bm-punkt .reiter-zahl { position: static; margin-left: auto; flex: none; }
.bereich-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.bereich-kacheln .bm-gruppe { grid-column: 1 / -1; margin: 6px 0 0 2px; font-size: .8rem; font-weight: 700; color: var(--text-2); }
.bereich-leiste { display: none; }
@media (min-width: 1100px) {
  .bereich-rahmen .bereich-kacheln { display: none; }
  .bereich-kacheln { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .bereich-rahmen { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 8px; max-width: 1460px; margin: 0 auto; padding-left: 24px; }
  .bereich-rahmen > .inhalt { margin: 0; max-width: 1180px; width: 100%; }
  .bereich-leiste { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 12px; align-self: start; padding: 36px 0 24px; }
  .bm-gruppe { margin: 10px 0 0 4px; font-size: .78rem; font-weight: 700; color: var(--text-2); }
  .bm-titel { margin: 0 0 6px 4px; font-size: .85rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
  .bereich-leiste .bm-punkt { box-shadow: none; background: transparent; min-height: 46px; }
  .bereich-leiste .bm-punkt:hover { background: var(--flaeche); }
  .bereich-leiste .bm-punkt[aria-current="page"] { background: var(--flaeche); box-shadow: var(--schatten); outline: none; }
  .bereich-rahmen .spalten .formular.zwei-spalten { grid-template-columns: minmax(0, 1fr); }
  .bereich-rahmen .spalten .formular.zwei-spalten .zeile-allein { width: auto; }
}
.personen .formular.zwei-spalten { grid-template-columns: minmax(0, 1fr); }
.baustelle-symbol { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 9px; background: #B8501F; color: #fff; vertical-align: middle; }
.start-symbol { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--rot); color: #fff; }
.start-karte.start-karte-achtung .start-symbol { background: var(--gelb); }
.wichtig li:has(a[href^="/anfragen"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12H8l-4 4z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/angebote"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/zeiten"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href="/zeiten/pruefen"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/kalender"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href$="/einstempeln"], a[href*="/einstempeln?"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/rechnungen"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/lohn"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 9v.01M18 15v.01'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/mitarbeiter"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20a6 6 0 0 1 12 0'/%3E%3Cpath d='M16 4.5a3.2 3.2 0 0 1 0 6.2M18 14a6 6 0 0 1 3 6'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/sicherheit"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8-8 9-4.6-1-8-4.5-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/projekte"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='2.5' width='13' height='6.5' rx='1.5'/%3E%3Cpath d='M16 4.5h2.5A2.5 2.5 0 0 1 21 7'/%3E%3Cpath d='M9.5 9v12.5'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="/anfragen/e/"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.8 4.5-2.3 1.4a11 11 0 0 0 6.1 6.1l1.4-2.3L20 15.5V19a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }
.wichtig li:has(a[href^="tel:"]) { --zt-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.8 4.5-2.3 1.4a11 11 0 0 0 6.1 6.1l1.4-2.3L20 15.5V19a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }
.bg-offen-teil { font-size: 1rem; margin: 18px 0 4px; }
.bg-offen-teil:first-of-type { margin-top: 4px; }
.sicherheit-raster { display: grid; gap: 20px; align-items: start; }
.sicherheit-raster > .kasten { margin: 0; min-width: 0; }
@media (min-width: 1000px) { .sicherheit-raster { grid-template-columns: minmax(0, 1fr) 320px; } }
.bg-block > h2, .vb-block > h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.bg-block > .bg-termin { margin: 0; color: var(--text-2); }
.bg-block > .bg-offen-kopf { margin: 24px 0 4px; }
.bg-block > .bg-wer-zeile { margin: 0 0 8px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.bg-block > .bg-offen-einfach { padding-left: 0; list-style: none; gap: 0; }
.bg-offen-einfach > li { display: flex; align-items: baseline; gap: 10px; }
.bg-offen-einfach > li > span:not(.bg-wer) { flex: 1 1 auto; min-width: 0; }
.bg-offen-einfach > li > span > a { display: block; padding: 9px 0; }
.bg-block .bg-wer { font-size: max(.85rem, 15px); }
.bg-offen-einfach > li > .bg-wer { flex: 0 0 auto; min-width: 6.6em; justify-content: center; }
.vb-block > p { margin: 0 0 14px; color: var(--text-2); }
@media (max-width: 599px) {
  .bg-block > .bg-offen-einfach { gap: 10px; }
  .bg-offen-einfach > li { display: block; }
  .bg-offen-einfach > li > span > a { display: inline; padding: 0; }
  .bg-offen-einfach > li > .bg-wer { min-width: 0; margin-right: 6px; }
}
@media (max-width: 999px) { .sicherheit-raster > .vb-block { order: -1; } }
.bg-dok h3 { margin: 16px 0 6px; font-size: 1rem; }
.bg-dok-liste { margin: 0 0 10px; padding-left: 1.4em; display: grid; gap: 5px; }
.bg-dok-leer { min-width: 70px; }
.pflichten h2 { font-size: 1.05rem; margin: 18px 0 6px; }
.pflichten ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.pflichten ol + p { margin-top: 16px; }
.pflichten-schluss { break-inside: avoid; margin-top: 28px; }
.pflichten-unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.pflichten-linie { display: block; border-top: 1.5px solid var(--text); margin-bottom: 6px; }

.pflichten-unterschriften .unterschrift-bild { border: 0; max-height: 70px; width: auto; max-width: 100%; margin: 0 0 2px; }
@media print { .pflichten { font-size: 10.5pt; } .pflichten h2 { margin-top: 12px; } .pflichten-schluss { margin-top: 20px; } .pflichten-unterschriften { margin-top: 40px; } }

.mail-adressfeld { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.mail-adressfeld .knopf-klein { white-space: nowrap; }
.mail-adressen-hinweis { margin-top: -4px; }

.v2-notizen { margin: 0 0 14px; padding: 8px 12px; background: #fff8e1; border: 1px solid #f0d58a; border-radius: 10px; }
.v2-notizen > summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; min-height: 44px; }
.v2-notizen ul { list-style: none; margin: 6px 0 0; padding: 0; }
.v2-notizen li { padding: 8px 0; border-top: 1px solid #f0d58a; }
.v2-notizen li p { margin: 2px 0 0; }
.v2-notiz-wann { font-size: max(14px, 0.85em); color: var(--text-2); }
.t-gross { font-size: 1.3em; }
.t-klein { font-size: 0.85em; }
.fmt { margin: 8px 0; }
.fmt-leiste { position: fixed; z-index: 70; display: none; flex-wrap: nowrap; align-items: center; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--rand); border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / 18%); }
.fmt-leiste.offen { display: flex; }
.fmt-knopf { min-width: 44px; min-height: 44px; padding: 0 10px; font: inherit; font-size: 17px; line-height: 1; color: var(--text); background: var(--flaeche-2, #f4f2ee); border: 1px solid var(--rand-fein); border-radius: 8px; cursor: pointer; }
.fmt-knopf:hover { border-color: var(--rand); }
.fmt-knopf[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.fmt-knopf .fmt-a-klein { font-size: 14px; }
.fmt-knopf .fmt-a-gross { font-size: 21px; font-weight: 600; }
.fmt-trenner { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--rand-fein); }
.fmt-text { display: block; width: 100%; box-sizing: border-box; min-height: 64px; margin: 0; padding: 6px 9px; font: inherit; font-size: max(16px, 1em); font-weight: 400; font-style: normal; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--rand-fein); border-radius: 8px; cursor: text; }
.fmt-text:hover { border-color: var(--rand); }
.fmt-text:focus { outline: none; border-color: var(--text-2); box-shadow: 0 0 0 3px rgb(0 0 0 / 6%); }
.fmt-text:empty::before { content: attr(data-platzhalter); color: var(--text-3, #888); pointer-events: none; }
.v2-dok .fmt-text { background: transparent; border-color: transparent; }
.v2-dok .fmt-text:hover { background: var(--flaeche-2); border-color: var(--rand-fein); }
.v2-dok .fmt-text:focus { background: #fff; border-color: var(--text-2); }
@media print { .fmt-leiste { display: none !important; } .fmt-text { border: 0 !important; padding: 0; } }
.fmt + textarea[data-format], textarea[data-format][hidden] { display: none !important; }

.lohn-tage td { font-size: .8rem; padding: 0; }
.lohn-tage td { min-width: 34px; }
.lohn-tage td > a { display: grid; place-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.lohn-tage th.kal-name a { color: inherit; }
td.lohn-fehlt, span.lohn-fehlt { background: #fde68a; color: var(--text); font-weight: 700; }
td.lohn-hinweis, span.lohn-hinweis { box-shadow: inset 0 0 0 2px var(--rot); }

.rund-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
