@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-800-normal.woff2) format('woff2'); }

:root {
  --navy: #0f1a12;
  --navy-2: #1d2e1b;
  --orange: #7f9c22;
  --orange-d: #647d17;
  --grund: #f3f5f8;
  --karte: #ffffff;
  --text: #15202b;
  --leise: #5b6b7b;
  --linie: #dfe4ea;
  --gruen: #1f8a5b;
  --rot: #c0392b;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(14, 34, 54, .06), 0 8px 24px rgba(14, 34, 54, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Manrope, system-ui, sans-serif; color: var(--text); background: var(--grund); line-height: 1.5; }
a { color: var(--navy-2); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }

.kopf { background: var(--navy); color: #fff; }
.kopf .innen { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.marke { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.marke .zeichen { width: 40px; height: 40px; border-radius: 10px; background: var(--orange); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 15px; letter-spacing: -.02em; }
.marke b { display: block; font-size: 16px; }
.marke small { display: block; font-size: 12px; opacity: .75; }
.kopf .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.seite { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.schmal { max-width: 680px; }

.held { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.held .innen { max-width: 1100px; margin: 0 auto; padding: 48px 16px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.held h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; }
.held p { color: #d5dee8; font-size: 17px; max-width: 34em; }
.held .marker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }

.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px; }
.held .karte { color: var(--text); }
.karte + .karte { margin-top: 16px; }

label { display: block; font-size: 13px; font-weight: 700; color: var(--leise); margin: 0 0 6px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #c9d2dc; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
textarea { resize: vertical; min-height: 80px; }
.feld { margin-bottom: 14px; }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.code-feld { font-size: 22px; letter-spacing: .18em; text-transform: uppercase; text-align: center; font-weight: 700; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer;
  background: var(--orange); color: var(--navy); text-decoration: none; transition: background .15s, transform .1s; }
.knopf:hover { background: #f59a3d; }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: .5; cursor: default; }
.knopf.zweit { background: #e8edf2; color: var(--navy); }
.knopf.zweit:hover { background: #dce3ea; }
.knopf.hell { background: rgba(255, 255, 255, .12); color: #fff; }
.knopf.rot { background: #fbe7e4; color: var(--rot); }
.knopf.klein { padding: 7px 12px; font-size: 14px; }
.knopf.breit { width: 100%; }

.hinweis { font-size: 14px; color: var(--leise); }
.fehler { color: var(--rot); font-weight: 600; font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
.ok-text { color: var(--gruen); font-weight: 600; }

.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.schritt { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; }
.schritt .nr { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.schritt p { margin: 0; color: var(--leise); font-size: 15px; }

/* Kundenseite */
.objekt { display: grid; gap: 4px; }
.objekt .adresse { font-size: 20px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #e8edf2; color: var(--navy-2); }
.chip.orange { background: #fdebd8; color: var(--orange-d); }
.chip.gruen { background: #dff3ea; color: var(--gruen); }

.gebucht { border: 2px solid var(--gruen); background: #f2fbf7; border-radius: 12px; padding: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gebucht .wann { font-size: 18px; font-weight: 800; }
.gebucht .art { font-size: 13px; font-weight: 700; color: var(--gruen); text-transform: uppercase; letter-spacing: .05em; }

.tage { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.tag { flex: 0 0 auto; scroll-snap-align: start; min-width: 76px; text-align: center; border: 1px solid var(--linie); background: #fff; border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.tag b { display: block; font-size: 20px; }
.tag small { display: block; font-size: 12px; color: var(--leise); }
.tag[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag[aria-pressed="true"] small { color: #c7d3df; }
.zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.zeit { border: 1px solid #c9d2dc; background: #fff; border-radius: 10px; padding: 10px; font-weight: 700; cursor: pointer; }
.zeit:hover { border-color: var(--orange); }
.zeit[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--navy); }

.chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px; }
.blase { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.blase small { display: block; font-size: 11px; opacity: .65; margin-top: 3px; }
.blase.ich { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.blase.du { align-self: flex-start; background: #e8edf2; border-bottom-left-radius: 4px; }
.blase.system { align-self: center; background: transparent; color: var(--leise); font-size: 13px; text-align: center; max-width: 100%; }
.schreiben { display: flex; gap: 8px; margin-top: 10px; }
.schreiben textarea { min-height: 46px; height: 46px; }

.fuss { text-align: center; font-size: 13px; color: var(--leise); padding: 24px 16px; }
.fuss a { color: var(--leise); }

/* Dashboard */
.leiste { display: flex; gap: 4px; flex-wrap: wrap; }
.leiste button { background: transparent; color: #c7d3df; border: 0; padding: 8px 12px; border-radius: 8px; font-weight: 700; cursor: pointer; position: relative; }
.leiste button[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.zahl { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: var(--navy); font-size: 12px; margin-left: 4px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; }
.kachel b { display: block; font-size: 28px; font-weight: 800; }
.kachel span { color: var(--leise); font-size: 14px; }
.tabelle-huelle { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); background: #f8fafb; position: sticky; top: 0; }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover td { background: #fbf6f0; }
td input, td select { padding: 6px 8px; font-size: 13px; min-width: 90px; }
.werkzeug { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.werkzeug input[type="search"] { max-width: 280px; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #e8edf2; white-space: nowrap; }
.status.offen { background: #fdebd8; color: var(--orange-d); }
.status.eingeladen { background: #e6eefb; color: #2856a3; }
.status.begehung, .status.montage { background: #dff3ea; color: var(--gruen); }
.status.fertig { background: #1f8a5b; color: #fff; }
.status.abgesagt { background: #fbe7e4; color: var(--rot); }
.zwei-spalten { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.ablage { border: 2px dashed #b8c3cf; border-radius: var(--radius); padding: 28px; text-align: center; background: #fff; cursor: pointer; }
.ablage.drueber { border-color: var(--orange); background: #fff8f1; }
.versteckt { display: none !important; }
.overlay { position: fixed; inset: 0; background: rgba(14, 34, 54, .45); display: grid; place-items: start center; padding: 40px 12px; overflow-y: auto; z-index: 20; }
.overlay .karte { width: min(900px, 100%); }
.tagliste h3 { font-size: 15px; margin: 18px 0 8px; }
.slot { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linie); border-radius: 8px; padding: 5px 8px; margin: 0 6px 6px 0; font-size: 13px; background: #fff; }
.slot.belegt { background: #f2fbf7; border-color: #b9e2cf; }
.slot button { border: 0; background: none; color: var(--leise); cursor: pointer; padding: 0 2px; font-size: 15px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 40; box-shadow: var(--schatten); }

@media (max-width: 820px) {
  .held .innen, .zwei-spalten { grid-template-columns: 1fr; }
  .schritte { grid-template-columns: 1fr; }
  .held .innen { padding: 32px 16px 40px; gap: 24px; }
}
@media print { .kopf, .fuss, .nicht-drucken { display: none !important; } body { background: #fff; } }

/* ---------- Gestaltung 2 (21.11.2026) ---------- */
.kopf { position: sticky; top: 0; z-index: 10; background: rgba(14, 34, 54, .96); backdrop-filter: blur(8px); }
.knopf.hell { border: 1px solid rgba(255, 255, 255, .18); }
.knopf.hell:hover { background: rgba(255, 255, 255, .2); }
.knopf.gross { padding: 14px 20px; font-size: 17px; }
.knopf:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--orange); }

.held { position: relative; overflow: hidden; background:
  radial-gradient(900px 420px at 85% -10%, rgba(240, 138, 36, .16), transparent 60%),
  radial-gradient(700px 400px at 0% 110%, rgba(56, 120, 180, .25), transparent 60%),
  linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.held::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.held .innen { position: relative; z-index: 1; padding: 64px 16px 72px; }
.held h1 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.025em; text-wrap: balance; }
.held .akzent { color: var(--orange); }
.held .karte p.hinweis { color: var(--leise); font-size: 14px; margin: 2px 0 0; }
.vorteile { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.vorteile li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #e6edf4; }
.vorteile svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(240, 138, 36, .18); fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.code-karte { padding: 26px; border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .12); }
.code-kopf { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.code-kopf h2 { margin: 0; font-size: 21px; }
.code-symbol { flex: 0 0 48px; height: 48px; border-radius: 12px; background: #fdebd8; display: grid; place-items: center; }
.code-symbol svg { width: 26px; height: 26px; fill: none; stroke: var(--orange-d); stroke-width: 2; stroke-linejoin: round; }
.code-feld { font-size: 24px; padding: 14px 12px; background: #f8fafb; border-width: 2px; }
.code-feld::placeholder { color: #b5c0cb; }
.klein-text { font-size: 13px; text-align: center; margin: 14px 0 0; }

.abschnitt { padding: 72px 0; }
.abschnitt.hell { background: #fff; border-block: 1px solid var(--linie); }
.abschnitt > .innen { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.abschnitt > .schmal-innen { max-width: 780px; }
.marker.dunkel { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); margin-bottom: 10px; }
.gross-titel { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 28px; text-wrap: balance; }

.ablauf { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.haus-bild { background: linear-gradient(180deg, #e9eff5, #f6f8fa); border: 1px solid var(--linie); border-radius: 22px; padding: 28px 24px 0; overflow: hidden; }
.haus-bild svg { display: block; width: 100%; height: auto; }
.faser { stroke-dasharray: 10 8; animation: faser 3s linear infinite; }
@keyframes faser { to { stroke-dashoffset: -36; } }
@media (prefers-reduced-motion: reduce) { .faser { animation: none; } }

.zeitleiste { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.zeitleiste li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; padding-bottom: 26px; }
.zeitleiste li:not(:last-child)::before { content: ''; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: linear-gradient(var(--orange), #f6c999); }
.zeitleiste .punkt { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; box-shadow: 0 0 0 5px #fdebd8; }
.zeitleiste h3 { font-size: 19px; margin: 9px 0 4px; }
.zeitleiste h3 small { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--orange-d); background: #fdebd8; padding: 2px 8px; border-radius: 99px; vertical-align: 2px; }
.zeitleiste p { margin: 0; color: var(--leise); }

.tipps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tipp { background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .tipp:hover { transform: translateY(-2px); box-shadow: var(--schatten); } }
.tipp h3 { font-size: 17px; margin: 14px 0 6px; }
.tipp p { margin: 0; color: var(--leise); font-size: 15px; }
.tipp-symbol { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.tipp-symbol svg { width: 24px; height: 24px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.fragen { display: grid; gap: 10px; }
.fragen details { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 0 20px; }
.fragen details[open] { box-shadow: var(--schatten); }
.fragen summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.5px solid var(--orange-d); border-bottom: 2.5px solid var(--orange-d); transform: rotate(45deg); transition: transform .2s ease; }
.fragen details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.fragen details p { margin: 0 0 18px; color: var(--leise); }

.gross-fuss { background: var(--navy); color: #c7d3df; text-align: left; padding: 36px 16px; }
.gross-fuss .innen { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.gross-fuss a { color: #e6edf4; text-decoration: none; }
.gross-fuss a:hover { color: var(--orange); }
.fuss-kontakt, .fuss-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.fuss-links a { color: #9fb0c1; font-weight: 500; }

/* Terminseite */
#bereiche { display: grid; gap: 16px; margin: 16px 0; }
#inhalt > .karte + #bereiche { margin-top: 16px; }
.fortschritt { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: f; }
.fortschritt li { position: relative; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--leise); }
.fortschritt li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: #e3e8ee; }
.fortschritt li.erledigt::before { background: var(--gruen); }
.fortschritt li.jetzt::before { background: linear-gradient(90deg, var(--orange) 50%, #e3e8ee 50%); }
.fortschritt li.erledigt { color: var(--gruen); }
.fortschritt li.jetzt { color: var(--text); }
.gebucht { border-width: 0; border-left: 5px solid var(--gruen); }
.tag { transition: border-color .15s, background .15s; }
@media (hover: hover) { .tag:hover { border-color: var(--orange); } }
.zeit { transition: border-color .15s, background .15s; }
.chat { background: var(--grund); border-radius: 12px; padding: 12px; min-height: 90px; }

@media (max-width: 820px) {
  .ablauf { grid-template-columns: 1fr; gap: 32px; }
  .tipps { grid-template-columns: 1fr; }
  .abschnitt { padding: 52px 0; }
  .held .innen { padding: 36px 16px 44px; }
  .nur-gross { display: none; }
  .gross-fuss .innen { flex-direction: column; align-items: flex-start; }
}

#bereiche > .karte + .karte { margin-top: 0; }
.fehler:empty { min-height: 0; margin: 0; }


/* ---------- Mitarbeiter und Erklärung (21.11.2026) ---------- */
.foto-rund { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; background: #e3e8ee; overflow: hidden; display: grid; place-items: center; font-weight: 800; color: var(--navy-2); font-size: 22px; }
.foto-rund img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-rund.klein { width: 44px; height: 44px; flex-basis: 44px; font-size: 14px; }
.foto-wahl { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.m-liste { display: grid; gap: 8px; }
.m-eintrag { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.m-eintrag:hover, .m-eintrag.aktiv { border-color: var(--orange); background: #fffaf4; }
.m-eintrag b, .m-eintrag small { display: block; }
.m-eintrag small { color: var(--leise); }
.m-eintrag .status { margin-left: auto; }

.techniker { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 12px; background: #fff; }
.techniker .foto-rund { width: 56px; height: 56px; flex-basis: 56px; font-size: 17px; }
.techniker b, .techniker small, .techniker .hinweis { display: block; }
.techniker b { font-size: 17px; }
.techniker small { color: var(--leise); font-size: 13px; }

.team-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.person { margin: 0; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.person-bild { aspect-ratio: 1; background: linear-gradient(160deg, var(--navy), var(--navy-2)); display: grid; place-items: center; color: var(--orange); font-size: 44px; font-weight: 800; }
.person-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person figcaption { padding: 14px 16px 16px; }
.person b, .person small { display: block; }
.person small { color: var(--leise); }

.erklaer { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.erklaer:has(.video-platz:not(.versteckt)) { grid-template-columns: 1.1fr 1fr; }
.einleitung { font-size: 18px; color: var(--text); max-width: 40em; margin: -12px 0 24px; }
.begriffe { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.begriffe > div { border-left: 4px solid var(--orange); background: var(--grund); border-radius: 0 12px 12px 0; padding: 14px 16px; }
.begriffe dt { font-weight: 800; margin-bottom: 4px; }
.begriffe dd { margin: 0; color: var(--leise); font-size: 15px; }
.video-platz { border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--schatten); }
.video-platz video { display: block; width: 100%; height: auto; max-height: 78vh; }
@media (max-width: 820px) {
  .erklaer:has(.video-platz:not(.versteckt)) { grid-template-columns: 1fr; }
  .begriffe { grid-template-columns: 1fr; }
}

.team-raster { grid-template-columns: repeat(auto-fill, minmax(150px, 220px)); }
@media (max-width: 520px) { .team-raster { grid-template-columns: repeat(2, 1fr); } }


/* ---------- Mitarbeiter-Dashboard und Dateien (21.11.2026) ---------- */
.zugang { border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px 12px; margin: 4px 0 16px; background: var(--grund); }
.zugang legend { font-weight: 800; padding: 0 6px; }
.dateien { display: grid; gap: 8px; margin-top: 12px; }
.datei { display: flex; gap: 8px; align-items: center; }
.datei-name { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.datei-name:hover { border-color: var(--orange); }
.datei-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datei-name small { display: block; color: var(--leise); font-size: 12px; }
.datei-name > span:last-child { min-width: 0; }
.datei-typ { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--orange); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tag-titel { font-size: 15px; margin: 22px 0 10px; color: var(--navy-2); }
.tag-titel.alt { color: var(--leise); }
.einsatz { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--schatten); }
.einsatz:hover { border-color: var(--orange); }
.einsatz-zeit { flex: 0 0 62px; text-align: center; }
.einsatz-zeit b { display: block; font-size: 19px; }
.einsatz-zeit small { color: var(--leise); font-size: 12px; }
.einsatz-text { flex: 1; min-width: 0; }
.einsatz-text b { display: block; margin-top: 4px; font-size: 16px; }
.einsatz-text small { display: block; color: var(--leise); }
.notiz-intern { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff8ec; border: 1px solid #f6d9b0; font-size: 14px; }
#detail > .karte, #dTermine > .karte { margin-top: 16px; }
@media (max-width: 520px) { .einsatz { flex-wrap: wrap; } .einsatz .status { margin-left: 76px; } }

/* ---------- 3D-Fassung (21.11.2026) ---------- */
.held-3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.held-3d .gl-flaeche { width: 100%; height: 100%; display: block; }
.held::after { z-index: 0; }
.haus-bild { position: relative; }
.haus-bild.mit-3d { padding: 0; aspect-ratio: 4 / 3.4; cursor: grab; touch-action: pan-y; background: #e9eff5; }
.haus-bild.mit-3d:active { cursor: grabbing; }
.haus-bild.mit-3d svg { display: none; }
.haus-bild .gl-flaeche { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: inherit; }
.dreh-hinweis { display: none; position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: 12px; font-weight: 700; color: var(--navy-2); background: rgba(255,255,255,.85); padding: 5px 10px; border-radius: 99px; }
.haus-bild.mit-3d .dreh-hinweis { display: block; }
.zeitleiste li { cursor: pointer; border-radius: 14px; padding: 10px 10px 26px; margin: 0 -10px; transition: background .25s ease; outline-offset: 2px; }
.zeitleiste li:not(:last-child)::before { left: 31px; top: 56px; }
.zeitleiste li.aktiv { background: #fff; box-shadow: var(--schatten); }
.zeitleiste li.aktiv .punkt { background: var(--orange); color: var(--navy); }
@media (min-width: 821px) { .ablauf { align-items: start; } .haus-bild.mit-3d { position: sticky; top: 92px; } }
@media (max-width: 820px) {
  .haus-bild.mit-3d { position: sticky; top: 68px; z-index: 3; aspect-ratio: auto; height: 42vh; min-height: 240px; box-shadow: 0 10px 24px rgba(14,34,54,.18); }
  .ablauf { gap: 20px; }
}

.zeichen-bild { width: 40px; height: 40px; border-radius: 10px; display: block; flex: 0 0 40px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }


/* ---------- Account erstellen (21.11.2026) ---------- */
.unterschrift-feld { position: relative; height: 150px; border: 2px dashed #b8c3cf; border-radius: 12px; background: #fff; touch-action: none; }
.unterschrift-feld canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.unterschrift-linie { position: absolute; left: 16px; right: 16px; bottom: 28px; border-top: 1px solid #c9d2dc; padding-top: 4px; font-size: 12px; color: #8a98a7; pointer-events: none; }
.unterschrift-feld.hat .unterschrift-linie { color: transparent; }
.zustimmung { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text); font-size: 14px; margin: 6px 0 16px; line-height: 1.45; }
.zustimmung input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.kopf-anmelden { color: #c7d3df; font-weight: 700; font-size: 14px; text-decoration: none; padding: 7px 8px; }
.kopf-anmelden:hover { color: #fff; }
@media (max-width: 520px) { .kopf-anmelden { display: none; } }

.konto-info { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; background: #fbfcfd; }
.konto-info img { display: block; margin-top: 8px; max-width: 100%; height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--linie); border-radius: 8px; }


/* ---------- Echtzeit-Kalender (Kunde) ---------- */
.kal-kopf { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 4px 0 12px; }
.live-punkt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gruen); background: #e4f4ec; padding: 4px 10px 4px 8px; border-radius: 99px; flex: 0 0 auto; }
.live-punkt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 0 rgba(31, 138, 91, .5); animation: livePuls 2.4s ease-out infinite; }
@keyframes livePuls { 0% { box-shadow: 0 0 0 0 rgba(31, 138, 91, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(31, 138, 91, 0); } }
.kal { display: grid; grid-template-columns: repeat(var(--spalten, 5), 1fr); gap: 6px; }
.kal-wt { font-size: 12px; font-weight: 800; color: var(--leise); text-align: center; padding: 2px 0 4px; }
.kal-monat { grid-column: 1 / -1; font-size: 13px; font-weight: 800; color: var(--navy-2); margin: 8px 0 2px; text-transform: capitalize; }
.kal-tag { aspect-ratio: 1 / 1; min-height: 52px; border-radius: 12px; border: 1px solid var(--linie); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; font: inherit; color: var(--text); }
.kal-tag b { font-size: 18px; line-height: 1; }
.kal-tag small { font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; }
.kal-tag.zu { background: transparent; border-style: dashed; color: #b6c0ca; }
.kal-tag.zu b { font-weight: 600; }
button.kal-tag { cursor: pointer; transition: transform .15s ease, border-color .15s, background .15s, box-shadow .15s; }
.kal-tag.frei { border-color: #9fd4b9; background: #f1faf5; }
.kal-tag.frei small { color: var(--gruen); }
.kal-tag.wenig { border-color: #f4c38f; background: #fff6ec; }
.kal-tag.wenig small { color: var(--orange-d); }
.kal-tag.voll { background: #f1f3f6; color: #9aa6b2; cursor: not-allowed; }
.kal-tag[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(14, 34, 54, .25); transform: translateY(-2px); }
.kal-tag[aria-pressed="true"] small { color: #c4dd5c; }
@media (hover: hover) { button.kal-tag:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--orange); transform: translateY(-1px); } }
button.kal-tag:active:not(:disabled) { transform: scale(.97); }
.kal-legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--leise); margin: 10px 0 0; }
.kal-legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid; }
.kal-legende .frei::before { background: #f1faf5; border-color: #9fd4b9; }
.kal-legende .wenig::before { background: #fff6ec; border-color: #f4c38f; }
.kal-legende .voll::before { background: #f1f3f6; border-color: var(--linie); }
.kal-wahl { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; display: flex; flex-direction: column; }
.kal-wahl span { font-size: 12px; color: #c4dd5c; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kal-wahl b { font-size: 18px; }
.kal-hilfe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }
.kal-hilfe span { font-weight: 700; color: var(--leise); margin-right: auto; }
@media (max-width: 420px) { .kal { gap: 4px; } .kal-tag { min-height: 46px; border-radius: 10px; } .kal-tag small { font-size: 9.5px; } }
@media (prefers-reduced-motion: reduce) { .live-punkt::before { animation: none; } .kal-tag { transition: none; } }

/* ---------- Foto bei Account erstellen ---------- */
.foto-wahl { display: flex; gap: 14px; align-items: center; }
.foto-rund.gross { width: 92px; height: 92px; flex-basis: 92px; font-size: 13px; color: var(--leise); border: 2px dashed #c4ced8; }
.foto-rund.gross:has(img) { border: 3px solid var(--orange); }

/* ---------- App laden ---------- */
.knopf-app { display: inline-flex; align-items: center; gap: 6px; }
.knopf-app svg { flex: 0 0 auto; }
.app-fenster .karte { width: min(460px, 100%); text-align: center; }
.app-symbol { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgba(14, 34, 54, .25); margin: 4px auto 14px; display: block; }
.app-schritte { text-align: left; margin: 16px 0; padding: 0; list-style: none; counter-reset: s; }
.app-schritte li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.app-schritte li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #c4dd5c; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.app-vorteile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; }
.app-vorteile div { background: var(--grund); border-radius: 12px; padding: 10px 6px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.app-vorteile svg { display: block; margin: 0 auto 4px; color: var(--orange-d); }

/* App-Leiste unten (nur in der installierten App) */
.app-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(14, 34, 54, .97); backdrop-filter: blur(10px); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
.app-leiste a, .app-leiste button { background: none; border: 0; color: #c7d3df; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; font-size: 11.5px; font-weight: 700; padding: 6px 2px; border-radius: 10px; cursor: pointer; }
.app-leiste a.aktiv, .app-leiste a:hover, .app-leiste button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.app-leiste .anruf { color: #c4dd5c; }
body.hat-app-leiste { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.hat-app-leiste .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- Kapazitäts-Kalender (Dashboard) ---------- */
.kk-werkzeug { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.kk-werkzeug .kk-titel { font-weight: 800; font-size: 17px; min-width: 150px; text-align: center; text-transform: capitalize; }
.kk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.kk-wt { font-size: 12px; font-weight: 800; color: var(--leise); text-align: center; }
.kk-tag { min-height: 92px; border: 1px solid var(--linie); border-radius: 12px; background: #fff; padding: 7px 8px; text-align: left; font: inherit; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.kk-tag:hover { border-color: var(--orange); }
.kk-tag.fremd { opacity: .45; }
.kk-tag.heute { box-shadow: inset 0 0 0 2px var(--navy-2); }
.kk-tag.gewaehlt { box-shadow: 0 0 0 3px var(--orange); }
.kk-tag .nr { font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; }
.kk-tag .nr small { font-weight: 700; font-size: 11px; color: var(--leise); }
.kk-tag .balken { height: 6px; border-radius: 9px; background: #e8edf2; overflow: hidden; }
.kk-tag .balken i { display: block; height: 100%; border-radius: 9px; background: var(--gruen); }
.kk-tag.wenig .balken i { background: var(--orange); }
.kk-tag.voll .balken i, .kk-tag.ueber .balken i { background: var(--rot); }
.kk-tag .kk-zahl { font-size: 12px; font-weight: 700; color: var(--leise); }
.kk-tag.zu { background: #f6f8fa; border-style: dashed; }
.kk-tag.zu .kk-zahl { color: #a4afba; }
.kk-detail h3 { margin-bottom: 4px; }
.kk-buchung { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.kk-buchung > div { flex: 1; min-width: 0; }
.kk-buchung small { display: block; color: var(--leise); }
.kk-buchung input[type="time"] { width: 110px; }
.kk-zusammen { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.kk-zusammen .chip { font-weight: 700; }
.erinnerung-vorschau { background: var(--grund); border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.erinnerung-vorschau b { display: block; margin-bottom: 6px; }
.erinnerung-vorschau p { margin: 0 0 8px; color: var(--leise); }
.fortschritt-balken { height: 10px; border-radius: 9px; background: #e8edf2; overflow: hidden; margin: 10px 0; }
.fortschritt-balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffb867); width: 0; transition: width .3s; }
@media (max-width: 700px) { .kk { gap: 3px; } .kk-tag { min-height: 64px; padding: 5px; border-radius: 9px; } .kk-tag .kk-zahl { font-size: 10px; } .kk-tag .nr small { display: none; } }
/* ---------- App-Band auf der Startseite ---------- */
.app-band { background: radial-gradient(1200px 500px at 85% 20%, rgba(240, 138, 36, .16), transparent 60%), linear-gradient(160deg, #0b1c2e 0%, var(--navy-2) 100%); color: #fff; overflow: hidden; }
.app-band-innen { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.app-band .gross-titel { color: #fff; }
.app-band p { color: #c7d3df; font-size: 17px; }
.app-liste { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 14px; }
.app-liste li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.app-liste li::before { content: ""; grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: rgba(240, 138, 36, .16) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23f6b26b" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 5 5 9-10"/></svg>') center / 18px no-repeat; }
.app-liste b { font-size: 16px; }
.app-liste span { color: #b9c7d5; font-size: 14.5px; }
.handy-modell { justify-self: center; width: 290px; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 11px; background: linear-gradient(145deg, #2b3e52, #0a1622); box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .12); transform: perspective(1200px) rotateY(-14deg) rotateX(4deg); }
.hm-schirm { height: 100%; border-radius: 32px; background: var(--grund); overflow: hidden; display: flex; flex-direction: column; color: var(--text); position: relative; }
.hm-kopf { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 7px; padding: 22px 14px 12px; font-size: 13px; }
.hm-kopf img { border-radius: 6px; background: #fff; }
.hm-live { margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #7be0ad; display: flex; align-items: center; gap: 4px; }
.hm-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3fd08a; animation: livePuls 2.4s ease-out infinite; }
.hm-karte { background: #fff; margin: 10px; border-radius: 14px; padding: 11px; box-shadow: var(--schatten); }
.hm-karte small { color: var(--orange-d); font-weight: 800; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; }
.hm-karte > b { display: block; font-size: 12.5px; margin: 2px 0 8px; }
.hm-kal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.hm-kal i { font-style: normal; font-size: 8.5px; font-weight: 800; color: var(--leise); text-align: center; }
.hm-kal span { aspect-ratio: 1; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 1px solid; }
.hm-kal .f { background: #f1faf5; border-color: #9fd4b9; }
.hm-kal .w { background: #fff6ec; border-color: #f4c38f; }
.hm-kal .v { background: #f1f3f6; border-color: var(--linie); color: #a4afba; }
.hm-kal .z { border-style: dashed; border-color: var(--linie); color: #c2cad3; }
.hm-kal .gew { background: var(--navy); border-color: var(--navy); color: #fff; animation: hmWahl 6s ease-in-out infinite; }
@keyframes hmWahl { 0%, 30% { background: #f1faf5; color: var(--text); border-color: #9fd4b9; } 40%, 100% { background: var(--navy); color: #fff; border-color: var(--navy); } }
.hm-wahl { margin-top: 8px; font-size: 10.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: 8px; padding: 6px 8px; }
.hm-knopf { margin-top: 6px; background: var(--orange); color: var(--navy); font-weight: 800; font-size: 11px; text-align: center; border-radius: 8px; padding: 7px; }
.hm-chat { margin: 0 10px; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; }
.hm-chat span { padding: 7px 9px; border-radius: 11px; max-width: 85%; line-height: 1.35; }
.hm-chat .du { background: #fff; align-self: flex-start; box-shadow: var(--schatten); }
.hm-chat .ich { background: var(--navy); color: #fff; align-self: flex-end; }
.hm-leiste { margin-top: auto; background: var(--navy); color: #9fb0c1; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 9.5px; font-weight: 800; padding: 10px 4px 16px; }
.hm-leiste .an { color: #fff; }
.hm-leiste .or { color: #c4dd5c; }
@media (max-width: 820px) {
  .app-band-innen { grid-template-columns: 1fr; gap: 36px; }
  .handy-modell { width: 250px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-kal .gew, .hm-live::before { animation: none; } }
/* ---------- Team live (Dashboard und Mitarbeiter-App) ---------- */
.tc-knopf { position: fixed; right: 18px; bottom: 18px; z-index: 18; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 11px 16px 11px 14px;
  background: var(--navy); color: #fff; font: inherit; font-weight: 800; box-shadow: 0 12px 30px rgba(14, 34, 54, .35); cursor: pointer; transition: transform .15s ease; }
.tc-knopf:hover { transform: translateY(-2px); }
.tc-knopf:active { transform: scale(.97); }
.tc-online { font-size: 12px; font-weight: 700; color: #7be0ad; display: flex; align-items: center; gap: 5px; }
.tc-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fd08a; animation: livePuls 2.4s ease-out infinite; }
.tc-neu { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--orange); color: var(--navy); font-size: 12px; display: grid; place-items: center; padding: 0 6px; box-shadow: 0 0 0 3px #fff; }
.tc-fenster { position: fixed; right: 18px; bottom: 18px; z-index: 19; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 100px)); background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(14, 34, 54, .35); display: flex; flex-direction: column; overflow: hidden; }
.tc-fenster[hidden], .tc-knopf[hidden], .tc-neu[hidden], .tc-online[hidden] { display: none; }
.tc-fenster header { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.tc-fenster header b { display: block; font-size: 16px; }
.tc-fenster header small { color: #7be0ad; font-weight: 700; font-size: 12px; }
.tc-zu { background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.tc-leute { display: flex; gap: 10px; overflow-x: auto; padding: 12px 14px; border-bottom: 1px solid var(--linie); flex: 0 0 auto; }
.tc-person { display: flex; flex-direction: column; align-items: center; min-width: 58px; text-align: center; opacity: .6; }
.tc-person.an { opacity: 1; }
.tc-bild { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #e3e8ee; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--navy-2); }
.tc-bild img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tc-bild i { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #b6c0ca; box-shadow: 0 0 0 2.5px #fff; }
.tc-person.an .tc-bild i { background: #3fd08a; }
.tc-name { font-size: 12px; font-weight: 800; margin-top: 4px; white-space: nowrap; }
.tc-person small { font-size: 10.5px; color: var(--leise); white-space: nowrap; }
.tc-person.an small { color: var(--gruen); font-weight: 700; }
.tc-verlauf { flex: 1; overflow-y: auto; padding: 12px 14px; background: var(--grund); display: flex; flex-direction: column; gap: 8px; }
.tc-leer { color: var(--leise); font-size: 14px; text-align: center; margin: auto 10px; }
.tc-blase { background: #fff; border-radius: 14px 14px 14px 4px; padding: 8px 11px; max-width: 85%; align-self: flex-start; box-shadow: 0 1px 2px rgba(14, 34, 54, .08); font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.tc-blase b { display: block; font-size: 12px; color: var(--navy-2); }
.tc-blase.buero b { color: var(--orange-d); }
.tc-blase.ich { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 14px 14px 4px 14px; }
.tc-blase small { display: block; font-size: 10.5px; opacity: .6; margin-top: 2px; text-align: right; }
.tc-schreiben { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--linie); }
.tc-schreiben input { flex: 1; min-width: 0; }
.tc-fehler { color: var(--rot); font-size: 13px; margin: 0 14px 8px; min-height: 0; }
.tc-fehler:empty { display: none; }
@media (max-width: 520px) { .tc-fenster { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } .tc-knopf .tc-text { display: none; } }
body.hat-app-leiste .tc-knopf { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .tc-online::before { animation: none; } }
/* ---------- Abnahme mit Unterschrift ---------- */
.abnahme { border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px 14px; margin: 0 0 14px; }
.abnahme legend { font-weight: 800; color: var(--navy); padding: 0 6px; }
.abnahme-punkte { display: grid; gap: 4px; margin-bottom: 10px; }
.abnahme-punkte .zustimmung { margin: 0; }
.abnahme-karte { display: flex; gap: 14px; align-items: center; justify-content: space-between; border: 1px solid var(--linie); border-left: 4px solid var(--gruen); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.abnahme-karte small { display: block; color: var(--leise); }
.abnahme-karte img { width: 170px; max-width: 40%; height: auto; background: #fff; border: 1px solid var(--linie); border-radius: 8px; }
#fertigFenster .karte { max-height: calc(100vh - 40px); overflow-y: auto; }
/* ---------- Projekt-Auswahl im Dashboard ---------- */
.projekt-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--linie); border-left: 5px solid var(--orange); border-radius: 14px; padding: 10px 14px; margin: 0 0 16px; box-shadow: var(--schatten); }
.pl-titel { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); }
.projekt-leiste select { max-width: 260px; font-weight: 800; }
/* ---------- Einsatz-Ablauf Techniker: vor Ort, Fotos, fertig ---------- */
.einsatz-ablauf { display: grid; gap: 10px; margin-top: 14px; }
.einsatz-schritt { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 800; }
.einsatz-schritt.an { background: #fff6ec; color: var(--orange-d); margin-top: 0; }
.einsatz-schritt.fertig { background: #e4f4ec; color: var(--gruen); }
.karte.einsatz-vorort { border-left: 5px solid var(--orange); }
.karte.einsatz-fertig { border-left: 5px solid var(--gruen); }
.knopf.gruen { background: var(--gruen); color: #fff; }
.knopf.gruen:hover { background: #18734b; }
#aSchnell .chip { cursor: pointer; border: 1px solid var(--linie); font: inherit; font-size: 13px; font-weight: 700; }
#aSchnell .chip:hover { border-color: var(--orange); }
.status-vorort { background: #fff6ec; color: var(--orange-d); }
.status-fertig { background: #e4f4ec; color: var(--gruen); }.tc-meldung { position: fixed; top: 84px; right: 18px; z-index: 40; max-width: min(380px, calc(100vw - 24px)); background: #fff; border-left: 6px solid var(--orange); border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(14, 34, 54, .28); cursor: pointer; font-size: 14.5px; animation: tcRein .35s ease-out; }
.tc-meldung.fertig { border-left-color: var(--gruen); }
.tc-meldung b { display: block; font-size: 12px; color: var(--leise); }
@keyframes tcRein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tc-meldung { animation: none; } }
/* ---------- Personaldaten ---------- */
.reg-abschnitt { font-size: 18px; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--linie); }
.personal-gruppe { border: 1px solid var(--linie); border-radius: 12px; padding: 8px 12px 2px; margin: 0 0 10px; }
.personal-gruppe legend { font-weight: 800; font-size: 13.5px; color: var(--navy-2); padding: 0 6px; }
.personal-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.personal-box { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.personal-box summary { cursor: pointer; font-weight: 800; color: var(--navy); display: flex; gap: 8px; align-items: center; }
.personal-box[open] summary { margin-bottom: 10px; }
/* ---------- H.S. Bau GPS-Kamera Download ---------- */
.app-karte { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.app-karte img { border-radius: 14px; box-shadow: var(--schatten); }
.app-karte small { display: block; color: var(--leise); }
.app-karte details { grid-column: 1 / -1; }
.app-karte summary { cursor: pointer; font-weight: 700; color: var(--navy-2); font-size: 14px; }
/* ---------- H.S. Bau Akademie ---------- */
.ak-held { background: linear-gradient(150deg, #0b1c2e, var(--navy-2)); color: #fff; border-radius: 18px; padding: 24px 22px; margin: 18px 0 16px; }
.ak-held h1 { color: #fff; margin: 8px 0; }
.ak-held p { color: #c7d3df; margin: 0; }
.ak-kurs { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.ak-kurs small { display: block; color: var(--leise); margin-top: 2px; }
.ak-kurs .status { margin-top: 6px; display: inline-block; }
.ak-symbol { width: 52px; height: 52px; border-radius: 14px; background: #fff3e6; display: grid; place-items: center; font-size: 26px; }
.ak-link { text-decoration: none; color: inherit; }
.ak-balken { height: 8px; border-radius: 9px; background: #e8edf2; overflow: hidden; margin: 6px 0 16px; }
.ak-balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffb867); transition: width .3s; }
.ak-punkte { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.ak-punkte li { background: var(--grund); border-radius: 12px; padding: 12px 14px 12px 40px; position: relative; font-size: 16px; line-height: 1.5; }
.ak-punkte li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.ak-hinweis { background: #fff6ec; border-left: 4px solid var(--orange); border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14.5px; }
.ak-frage { border: 1px solid var(--linie); border-radius: 14px; padding: 10px 14px 12px; margin: 0 0 12px; }
.ak-frage legend { font-weight: 800; padding: 0 4px; line-height: 1.4; }
.ak-antwort { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.ak-antwort:hover { background: var(--grund); }
.ak-antwort input { width: auto; margin-top: 4px; }
.ak-ergebnis { border-radius: 14px; padding: 16px; background: #fdecea; margin-bottom: 14px; display: grid; gap: 4px; }
.ak-ergebnis.ok { background: #e4f4ec; }
.ak-ergebnis b { font-size: 24px; }
.ak-auswertung { border-left: 4px solid var(--rot); padding: 8px 12px; margin: 8px 0; background: #fff; border-radius: 8px; display: grid; gap: 2px; }
.ak-auswertung.richtig { border-left-color: var(--gruen); }
.ak-auswertung small { color: var(--leise); }.ak-h2 { font-size: 16px; margin: 20px 0 10px; color: var(--navy-2); }
.ak-zert { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; margin-bottom: 12px; }
.ak-zert small { display: block; color: var(--leise); }
.ansage { background: linear-gradient(90deg, #7f9c22, #ffb867); color: #0f1a12; font-weight: 800; text-align: center; padding: 10px 16px; font-size: 15px; }

/* ---------- Website gestalten und Einstellungen ---------- */
.web-editor { align-items: start; }
.web-vorschau-karte { position: sticky; top: 16px; }
.web-vorschau { border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; height: 72vh; }
.web-vorschau iframe { width: 166%; height: 166%; border: 0; transform: scale(.6); transform-origin: 0 0; }
.e-projekt { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.e-projekt small, .e-admin small { display: block; color: var(--leise); }
.e-loeschen { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fdecea; border-radius: 10px; padding: 10px; }
.e-loeschen input { max-width: 200px; }
.e-admin { border: 1px solid var(--linie); border-radius: 12px; padding: 12px; margin-bottom: 10px; display: grid; gap: 8px; }
.e-rechte { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.e-rechte label { font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.e-rechte input { width: auto; }
#leiste { flex-wrap: wrap; gap: 2px; }
#leiste button { padding: 7px 10px; font-size: 14.5px; }
@media (max-width: 1250px) { #leiste button { padding: 6px 8px; font-size: 13.5px; } }

/* ---------- Live-Übersicht ---------- */
.live-raster { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-bottom: 16px; }
.live-karte { margin: 0; }
.live-kopf { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.live-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.live-zahlen div { background: var(--grund); border-radius: 12px; padding: 10px; text-align: center; }
.live-zahlen b { display: block; font-size: 26px; color: var(--navy); }
.live-zahlen span { font-size: 12.5px; color: var(--leise); font-weight: 700; }
.live-team { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; }
.live-team > div { display: grid; grid-template-columns: 12px auto 1fr; gap: 8px; align-items: center; opacity: .65; }
.live-team > div.an { opacity: 1; }
.live-team i { width: 10px; height: 10px; border-radius: 50%; background: #b6c0ca; }
.live-team .an i { background: #3fd08a; box-shadow: 0 0 0 3px #3fd08a33; }
.live-team small { color: var(--leise); }
@media (max-width: 820px) { .live-raster { grid-template-columns: 1fr; } }
/* ---------- Info-Seite für Kunden ---------- */
.info-held { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.info-held .innen { max-width: 1100px; margin: 0 auto; padding: 48px 16px 52px; }
.info-held h1 { font-size: clamp(30px, 5vw, 48px); margin: 10px 0; color: #fff; }
.info-held p { color: #c7d3df; font-size: 18px; max-width: 640px; }
.weg-bild { margin: 18px 0 0; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--schatten); }
.weg-bild svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.sv-t { font: 700 15px Manrope, sans-serif; fill: #3a4856; }
.sv-w { font: 800 13px Manrope, sans-serif; fill: #fff; }
.sv-nr circle { fill: #7f9c22; stroke: #fff; stroke-width: 3; }
.sv-nr text { font: 800 16px Manrope, sans-serif; fill: #0f1a12; text-anchor: middle; }
.weg-fluss { animation: wegFluss 1.6s linear infinite; }
@keyframes wegFluss { to { stroke-dashoffset: -48; } }
.weg-legende { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 14px 4px 4px; margin: 0; list-style: none; counter-reset: w; }
.weg-legende li { counter-increment: w; background: var(--grund); border-radius: 12px; padding: 10px 12px 10px 44px; position: relative; font-size: 14px; color: var(--leise); }
.weg-legende li::before { content: counter(w); position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.weg-legende b { display: block; color: var(--navy); }
.info-schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.info-schritte article { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--schatten); position: relative; }
.info-schritte .nr { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #c4dd5c; font-weight: 800; display: grid; place-items: center; margin-bottom: 8px; }
.info-schritte p { color: var(--leise); margin: 0; font-size: 15px; }
.info-dank { text-align: center; max-width: 720px; }
.info-dank p { color: var(--leise); font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .weg-fluss { animation: none; } }
/* QA: Handy-Breite, erledigte Termine */
.zwei-spalten > *, .live-raster > *, main > section, .karte { min-width: 0; }
.tabelle-huelle { overflow-x: auto; max-width: 100%; }
#naechste table { min-width: 0; width: 100%; }
@media (max-width: 600px) { #naechste td:nth-child(3) { display: none; } #naechste td { font-size: 13.5px; padding: 8px 6px; } }
.gebucht.erledigt { background: #e4f4ec; border-color: var(--gruen); }
.gebucht.erledigt .art { color: var(--gruen); }