/* Demo "Physiotherapie": Posteingang, Terminplan, Verordnungen, Patienten-Portal, Überblick (Grundlage: Heizung/Sanitär) */
.pb-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--lime-hell); color: var(--gruen); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pb-ico.gross { width: 44px; height: 44px; }
.abschnitt-h3 { font-size: 16px; margin: 18px 0 8px; }

/* Posteingang */
.original { margin: 12px 0; padding: 12px 14px; background: #fffefa; border: 1px solid #e3ddc9; border-radius: 8px; }
.original-text { white-space: pre-line; font-size: 15px; margin: 0; }
.foto-reihe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.foto-reihe .attrappe, .tel-foto .attrappe { width: 110px; }
.attrappe { display: block; border-radius: 8px; }
.angaben { margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.angaben > div { background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.angaben dt { font-size: 14px; color: var(--muted); }
.angaben dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.angaben dd .pille { margin-right: 4px; }
.akte-eintraege { margin: 0 0 8px; padding-left: 18px; font-size: 14.5px; }
.vorschlag-satz { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 0 0 8px; }
.vorschlag-satz > .ico { color: var(--erfolg); margin-top: 2px; flex: none; }
.begruendung { background: #f6fbe6; border: 1px solid #c9df86; border-radius: 10px; padding: 10px 12px; font-size: 15px; margin: 8px 0; }
.ablage-liste { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ablage-liste li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.ablage-liste li > .ico { color: var(--gruen); margin-top: 2px; flex: none; }
.ablage-liste li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.ablage-liste .pille, .ep-pillen .pille, .w-ohne .pille { white-space: normal; }
.vergleich-zwei { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.vergleich-zwei > div { flex: 1 1 150px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.vergleich-zwei b { font-size: 18px; }
.vergleich-zwei span { font-size: 14px; color: var(--muted); }
.zwei-listen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.haken-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.haken-liste li { display: flex; gap: 8px; align-items: flex-start; }
.haken-liste .ico { color: var(--erfolg); flex: none; margin-top: 2px; }
.haken-liste.fehlt .ico { color: #8a5a12; }
.nachricht { margin: 6px 0; }
.nachricht > summary { list-style: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.nachricht > summary::-webkit-details-marker { display: none; }
.wirkung .knopf { margin-top: 6px; }

/* Einsatzplan */
.tag-wahl { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; }
.tag-knopf { min-height: 52px; border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); color: var(--tinte); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 4px; }
.tag-knopf b { font-size: 15px; } .tag-knopf span { font-size: 14px; color: var(--muted); }
.tag-knopf.an { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.tag-knopf.an span { color: #e8efe9; }
.tag-knopf:disabled { cursor: default; opacity: .75; }
.tag-knopf.an:disabled { opacity: 1; }
.abschnitt-h { margin: 6px 0 10px; }
.monteur-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.ep-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ep-spalte { padding: 14px; }
.ep-kopf { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.ep-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ep-fahrt, .ep-pause { font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; padding: 2px 0 2px 10px; border-left: 2px dashed var(--linie); margin-left: 22px; }
.ep-pause { color: #7a4f0f; }
.ep-einsatz { width: 100%; text-align: left; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); color: var(--tinte); font: inherit; cursor: pointer; }
.ep-einsatz:hover { border-color: var(--gruen); }
.ep-einsatz.stoerung { border-color: #e6bdb5; background: #fdf6f4; }
.ep-einsatz.neu { border: 2px solid #b5d35a; background: #f6fbe6; box-shadow: 0 0 0 3px #eef5d6; }
.ep-zeit { display: flex; flex-direction: column; min-width: 50px; }
.ep-zeit b { font-size: 17px; } .ep-zeit span { font-size: 14px; color: var(--muted); }
.ep-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14.5px; }
.ep-text > b { font-size: 15px; }
.ep-pillen { display: flex; gap: 4px; flex-wrap: wrap; }
.ep-weicht { font-size: 14px; background: #fbf3e2; border-radius: 8px; padding: 6px 10px; display: flex; gap: 6px; align-items: flex-start; }
.optionen { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.option { width: 100%; text-align: left; min-height: 48px; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); color: var(--tinte); font: inherit; cursor: pointer; }
.option span { font-size: 14px; color: var(--muted); }
.option.an { border-color: var(--gruen); box-shadow: inset 3px 0 0 var(--gruen); background: var(--lime-hell); }

/* Wartungen */
.w-ohne { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.w-ohne li { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; background: #f6f7f2; border-radius: 10px; padding: 8px 12px; font-size: 14.5px; }
.w-tage { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin: 12px 0; }
.w-tag { padding: 12px 14px; }
.w-tag h3 { margin-bottom: 8px; }
.w-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.w-vorschlag { border-bottom: 1px solid var(--linie-hell); padding-bottom: 8px; }
.w-vorschlag.aus { opacity: .7; }
.w-wahl { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: 44px; }
.w-wahl input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--gruen); }
.w-wahl > span { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; min-width: 0; }

/* Kundenportal */
.kunden-raster { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
.tel-ueberschrift { display: flex; align-items: center; gap: 8px; font-weight: 650; margin: 0 0 10px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.tel-rahmen { border: 10px solid #1c2522; border-radius: 42px; background: #1c2522; box-shadow: var(--schatten-gross); overflow: hidden; max-width: 400px; }
.tel-app { background: #f4f6f1; border-radius: 32px; overflow: hidden; min-height: 640px; display: flex; flex-direction: column; }
.tel-appkopf { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: var(--gruen); color: #fff; }
.tel-appkopf b { flex: 1; font-size: 16px; }
.tel-marke { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); color: var(--gruen); display: inline-flex; align-items: center; justify-content: center; }
.tel-inhalt { padding: 14px 14px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tel-gruss { font-size: 22px; font-weight: 650; margin: 2px 0 4px; }
.tel-h { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 0 0; }
.tel-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tel-karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.tel-klein { font-size: 14px; color: var(--muted); }
.tel-breit { width: 100%; margin-top: 4px; }
.tel-angebot { flex-direction: column; align-items: flex-start; height: auto; padding: 10px 14px; }
.tel-angebot span { font-weight: 400; font-size: 14px; }
.tel-gas { display: flex; gap: 8px; align-items: flex-start; background: #fbe9e5; border: 1px solid #e6bdb5; color: #6d241c; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 6px 0 0; }
.tel-gas .ico { flex: none; margin-top: 2px; }
.buero-sicht h2 .ico { color: var(--gruen); }

/* Chef-Überblick */
.al-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.al-monteur { display: flex; flex-direction: column; gap: 8px; }
.al-woche { display: flex; flex-direction: column; gap: 4px; }
.al-balken { height: 14px; border-radius: 7px; background: var(--linie-hell); overflow: hidden; display: flex; }
.al-balken i { display: block; height: 100%; }
.al-balken .v { background: var(--gruen); } .al-balken .f { background: #9cc6ad; }
.rg-liste, .rg-vorschau { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rg { border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); padding: 4px 12px; }
.rg-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 48px; cursor: pointer; list-style: none; }
.rg-kopf::-webkit-details-marker { display: none; }
.rg-kopf > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.rg-kopf .pille { white-space: normal; flex: none; max-width: 48%; }
.bericht { font-style: italic; font-size: 15px; }
.rg-tabelle { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0; }
.rg-tabelle th { text-align: left; font-weight: 400; padding: 5px 0; border-bottom: 1px solid var(--linie-hell); }
.rg-tabelle td { text-align: right; padding: 5px 0 5px 10px; white-space: nowrap; border-bottom: 1px solid var(--linie-hell); }
.rg-tabelle .summe th, .rg-tabelle .summe td { font-weight: 650; }
.rg-vorschau > li { border: 1px solid var(--linie); border-radius: 10px; padding: 8px 12px; }
.rg-vorschau details > summary { list-style: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

body :is(.eyebrow, .pille, .klein, .mini-h, .entwurf-label, .kennzahl span, .pz-text, .abschnitt-satz, .gedaempft.klein, .tel-h, .nav-gruppe, .fuss-text) { font-size: 14px; }
.kennzahlen { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

@media (max-width: 1180px) { .ep-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .al-liste { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .tag-wahl { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ep-raster { grid-template-columns: minmax(0, 1fr); }
  .kunden-raster { grid-template-columns: minmax(0, 1fr); }
  .tel-rahmen { max-width: none; border-width: 8px; border-radius: 34px; }
  .tel-app { border-radius: 26px; min-height: 0; }
  .zwei-listen { grid-template-columns: minmax(0, 1fr); }
  .w-tage { grid-template-columns: minmax(0, 1fr); }
  .kennzahlen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kennzahl b { font-size: 21px; }
  .aktionen-unten { background: #fbfdf5; border: 1px solid #c9df86; border-radius: 12px; padding: 8px; }
  .aktionen-unten .knopf { flex: 1 1 0; min-width: 0; }
}
.rg-paar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .rg-paar { grid-template-columns: minmax(0, 1fr); } }
.rg-hinweis { margin: 4px 0 8px; }
/* Der lange Titel passt am Handy nicht neben die Marke */
@media (max-width: 440px) { .kopf-trenner, .app-name { display: none; } }
.wirkung p { min-width: 0; max-width: 100%; }
.wirkung .pille, .buero-sicht .pille, .ki-kopf .pille, .ki-vorschlag .pille, .post-detail .pille, .blatt .pille { white-space: normal; }
@media (prefers-reduced-motion: reduce) { .ep-einsatz, .option, .tag-knopf { transition: none; } }

/* Physiotherapie */
.ep-raster.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ep-raster.vier .ep-spalte { padding: 12px; }
.ep-raster.vier .ep-einsatz { padding: 8px 10px; gap: 8px; }
.ep-raster.vier .ep-zeit { min-width: 58px; white-space: nowrap; }
.ep-raster.vier .ep-pause { margin-left: 0; }
.ep-einsatz.luecke { border: 2px dashed #e6bdb5; background: #fdf6f4; }
.ep-einsatz.luecke.neu { border-style: solid; }
.ep-einsatz.offen { background: #fffbf2; }
.woche-wahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; }
.woche-wahl .knopf { padding-left: 6px; padding-right: 6px; }
.tag-wahl { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.th-wahl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.th-wahl .knopf { padding-left: 4px; padding-right: 4px; }
.begruendung-liste { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.begruendung-liste li { padding-left: 14px; position: relative; }
.begruendung-liste li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--gruen); }
.serie-liste { margin: 6px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.serie-liste span { color: var(--muted); }
.w-tag.aus { opacity: .75; }
.w-tag .w-wahl { margin-bottom: 6px; }
.angaben.einspaltig { grid-template-columns: minmax(0, 1fr); }
.vb-paar { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; margin: 10px 0; }
.vb { margin: 0; background: #fbfcf8; border: 1px solid #c9d3c4; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; transform: rotate(-.6deg); }
.vb-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; border-bottom: 1px solid #c9d3c4; padding-bottom: 4px; margin-bottom: 2px; flex-wrap: wrap; }
.vb-kopf span { font-size: 14px; color: var(--muted); }
.vb-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.vb-feld { display: flex; flex-direction: column; border: 1px solid #dde3d8; border-radius: 6px; padding: 3px 8px; background: #fff; min-width: 0; }
.vb-label { font-size: 14px; color: var(--muted); }
.vb-wert { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.vb-feld.fehlt { border: 2px solid #d9a441; background: #fff8e8; }
.vb-feld.fehlt .vb-wert { color: #7a4f0f; }
.vp { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.vp p { margin: 0; }
.vp .hinweis-kasten { margin: 0; background: #fff8e8; border-color: #ecd49c; }
.vp-ok > summary { list-style: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.vp-ok > summary::-webkit-details-marker { display: none; }
.pk-termine { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.pk-termine li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.pk-termine li span:not(.pille) { color: var(--muted); }
.pk-vo + .pk-vo { border-top: 1px solid var(--linie-hell); margin-top: 8px; padding-top: 8px; }
.un-weg { background: #f6f7f2; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.un-weg p { margin: 0; }
.tel-hinweis { display: flex; gap: 8px; align-items: flex-start; background: var(--lime-hell); border: 1px solid #e1ebc4; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 6px 0 0; }
.tel-hinweis .ico { flex: none; margin-top: 2px; color: var(--gruen); }
.tel-karte .attrappe { width: 110px; }
.al-liste.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-kopf { cursor: default; }
.rg .haken-liste { margin: 0 0 8px; }
.rg .knopf { margin-bottom: 8px; }
.w-ohne li .knopf { margin-top: 6px; }
@media (max-width: 1280px) { .ep-raster.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ep-raster.vier { grid-template-columns: minmax(0, 1fr); }
  .woche-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-paar { grid-template-columns: minmax(0, 1fr); }
  .al-liste.vier { grid-template-columns: minmax(0, 1fr); }
  .vb { transform: none; }
}

/* aufklappbare Karten (wie Fahrschule) */
.summary-h { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; font-weight: 650; }
.auto-summary { list-style: none; cursor: pointer; min-height: 44px; position: relative; padding-right: 28px; }
.auto-summary::-webkit-details-marker { display: none; }
.auto-summary::after { content: '+'; position: absolute; right: 0; top: 4px; font-size: 22px; color: var(--muted); }
details[open] > .auto-summary::after { content: '–'; }
.auto-kurz { display: block; color: var(--tinte); margin-top: 2px; }
details.auto-karte[open] > .auto-summary { margin-bottom: 12px; }
.woche-wahl .knopf:disabled { opacity: 1; } .woche-wahl .knopf.sekundaer:disabled { opacity: .6; }
/* Frequenz: Abweichung gelb, Termine je Woche */
.hinweis-kasten.gelb { background: #fff8e8; border-color: #ecd49c; }
.hinweis-kasten.gelb .ico { color: #7a4f0f; }
[data-sv-wochen] { margin: 6px 0 0; color: var(--text-2, #45524b); }
.tel-zeilen { margin: 4px 0 6px; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }

/* s1: kompakte Zeile vor den Angaben */
.s1-kurz { margin: 10px 0 0; font-size: 1.05rem; }
.s1-stichpunkte { margin: 8px 0; }
.s1-stichpunkte > summary { list-style: none; }
