/* /pvs-anbindung/cgm-z1/ (scripts/seiten/pvs_z1.py). Präfix z1-. Farben gemessen, siehe marketing/pvs-referenzen/pvs_z1.md. */
.z1-hero, .z1-sec { --z-blau: #5797ca; --z-gruen: #1E9B59; --z-les: #0A6FD0; --z-navy: #213f59; }

.z1-lock { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 24px; padding: 7px 16px 7px 11px; border-radius: 99px; border: 1px solid var(--hair); background: #fff; font-size: 14.5px; line-height: 1; }
.z1-lock b { font-weight: 600; letter-spacing: -.01em; }
.z1-lock > i { font-style: normal; color: var(--ink-3); margin: 0 2px; }
.z1-lock .z1-logo { height: 13px; width: auto; display: block; }

/* ---------- Z1.PRO: schwarzer Rand, dunkelblaue Kopfzone, graublaue Arbeitsfläche mit hellen Tafeln */
.z1-win { position: relative; width: 100%; overflow: hidden; text-align: left; box-shadow: 0 30px 60px -28px rgba(0,20,40,.5), 0 10px 22px -14px rgba(0,20,40,.3); }
.z1-pro { border: 2px solid #000; border-radius: 3px; background: #445d6a; color: #000;
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 11.5px; line-height: 1.35; }
.z1-tb { display: flex; align-items: center; height: 24px; padding-left: 9px; background: linear-gradient(180deg, #386082, #2b4e6c); color: #fff; font-size: 11.5px; white-space: nowrap; }
.z1-tb > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.z1-wc { display: flex; flex: 0 0 auto; margin-left: auto; height: 100%; }
.z1-wc i { position: relative; width: 24px; height: 100%; }
.z1-wc i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 8px; margin: -4px 0 0 -5px; border: 1px solid #fff; box-sizing: border-box; }
.z1-wc i:nth-child(1)::before { box-shadow: inset 0 2px 0 #fff, inset 4px 0 0 rgba(255,255,255,.55); }
.z1-wc i:nth-child(2)::before { border-width: 1px 0; height: 7px; background: linear-gradient(#fff, #fff) 0 50% / 100% 1px no-repeat; }
.z1-wc i:nth-child(4)::before { border: 0; width: 11px; height: 11px; margin: -6px 0 0 -6px; background: linear-gradient(45deg, transparent 45%, #fff 45%, #fff 56%, transparent 56%), linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 56%, transparent 56%); }

.z1-sym { display: flex; padding: 4px 3px 3px; background: #213f59; }
.z1-sym span { flex: 1 1 auto; min-width: 0; padding: 0 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; font-size: 8px; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.z1-sym svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.z1-sym .rot circle { fill: #D8352B; stroke: none; }
.z1-sym .gruen circle { fill: #3FAA3F; stroke: none; }
.z1-sym .rot path, .z1-sym .gruen path { stroke-width: 1.7; }

.z1-fl { display: grid; gap: 5px; padding: 5px; }
.z1-oben { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 5px; align-items: start; }

/* Zahnschema */
.z1-zs { min-width: 0; }
.z1-zr { display: flex; gap: 2px; margin: 0; }
.z1-zr span, .z1-reiter span { padding: 1px 7px 2px; border-radius: 4px 4px 0 0; background: #cfe3f1; color: #2D6EA6; font-size: 10.5px; line-height: 1.35; white-space: nowrap; }
.z1-zr .an, .z1-reiter .an { background: #5797ca; color: #fff; }
.z1-zg { position: relative; display: grid; gap: 8px; padding: 4px; border-radius: 0 5px 5px 5px; background: #fff; }
.z1-zg::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: #000; }
.z1-zg::after { content: ""; position: absolute; top: 50%; left: 2px; right: 2px; height: 2px; margin-top: -1px; background: #000; }
.z1-zg > div { display: flex; gap: 6px; }
.z1-zg > div > span { flex: 1 1 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.z1-zg i { position: relative; aspect-ratio: 5 / 7; background: #dae1e9; }
.z1-zg i::before { content: ""; position: absolute; inset: 18% 16% 14%; border: 1px solid #8793A3; border-radius: 42% 42% 46% 46% / 30% 30% 70% 70%; background: #fff; }
.z1-zg > div:last-child i::before { transform: rotate(180deg); }
.z1-zg i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; margin: -17% 0 0 -17%; border-radius: 50%; }
.z1-zg i.g::after { background: #F2C230; }
.z1-zg i.n::after { background: #58B05A; }
.z1-zg i.o::after { background: #EF8A2E; }
.z1-zg i.r::after { background: #D8352B; }
.z1-zg i.k::before { background: #F6C56A; border-color: #B77A12; }

/* Reiter rechts oben: liegen übereinander und wechseln im Takt */
.z1-ob { display: grid; min-width: 0; }
.z1-tp { grid-area: 1 / 1; min-width: 0; }
.z1-reiter { display: flex; gap: 2px; overflow: hidden; }
.z1-reiter span { flex: 0 0 auto; padding-left: 5px; padding-right: 5px; font-size: 10px; }
.z1-tb2 { height: 84px; border-radius: 0 5px 5px 5px; background: #fff; overflow: hidden; }
.z1-r { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 0 7px; height: 22px; padding: 0 7px; border-bottom: 1px solid #E3E8EE; white-space: nowrap; }
.z1-r > * { position: relative; min-width: 0; }
.z1-r b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.z1-r.z1-kopfz { height: 18px; border: 0; background: #5797ca; color: #fff; font-size: 10.5px; }
.z1-dok .z1-r { grid-template-columns: 62px minmax(0, 1fr) auto; }
.z1-dok .z1-r:not(.z1-kopfz) > span:first-of-type { color: #1F4FBF; font-weight: 700; }
.z1-win .k-grau { background: #D5DCE5; }
.z1-win .z1-wash, .z1-win .z1-mw { position: absolute; inset: 0; }
.z1-win .z1-wash { background: #D5F0DE; box-shadow: inset 3px 0 0 var(--z-gruen); }
.z1-r.neu { background: #E3F4E9; box-shadow: inset 3px 0 0 var(--z-gruen); }
.k-flow .z1-r.neu[data-at] { transform: translateY(-6px); }
.k-flow .z1-r.neu[data-at].on { transform: none; }
.z1-st { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 400; color: #4A5568; }
.z1-st i { width: 7px; height: 7px; border-radius: 50%; background: #B4BECC; }
.z1-st.weg i { background: #E2A400; }
.z1-st.ok { color: #0F6B3A; font-weight: 700; }
.z1-st.ok i { background: var(--z-gruen); }
.z1-ok { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Reiter Archiv: Tabelle, Vorschau, sandgelbes Hinweisfenster */
.z1-arch { display: grid; grid-template-columns: minmax(0, 1fr) 92px; height: 100%; }
.z1-vorschau { position: relative; display: grid; place-items: center; padding: 6px 8px; background: #E4EAF0; border-left: 1px solid #C5CFDA; }
.z1-vorschau > span { display: block; width: 100%; height: 100%; }
.k-flow .z1-vorschau > span[data-at] { transform: scale(.9); }
.k-flow .z1-vorschau > span[data-at].on { transform: none; }
.z1-pop { position: absolute; right: 4px; bottom: 3px; width: 158px; border: 1px solid #D2A866; background: #f7e0af; font-size: 10px; line-height: 1.25; box-shadow: 0 3px 8px -3px rgba(0,0,0,.45); }
.z1-pop b { display: block; padding: 2px 5px 2px 18px; background: #ffe6c0 radial-gradient(circle at 9px 50%, #F08A1C 0 4.5px, transparent 5px); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z1-pop span { display: block; padding: 3px 5px 4px; }

/* Karteitabelle */
.z1-kt { border-radius: 5px; background: #fff; overflow: hidden; }
.z1-k { display: grid; grid-template-columns: 52px 38px 32px 32px minmax(0, 1fr) 20px 26px 24px; align-items: center; gap: 0 6px; min-height: 20px; padding: 0 7px; white-space: nowrap; font-weight: 700; }
.z1-k > * { min-width: 0; }
.z1-k.z1-kk { min-height: 18px; background: #5797ca; color: #fff; font-size: 10.5px; font-weight: 400; }
.z1-k.kom { align-items: start; padding-top: 2px; padding-bottom: 2px; background: #E3F4E9; box-shadow: inset 3px 0 0 var(--z-gruen); }
.z1-k.kom .tx { grid-column: 5 / -1; color: #1F8A3B; white-space: normal; }
.k-flow .z1-k.kom[data-at] { transform: translateY(-6px); }
.k-flow .z1-k.kom[data-at].on { transform: none; }

/* Pillenzeile */
.z1-pil { display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; }
.z1-pil span { flex: 0 0 auto; height: 17px; padding: 0 7px; border: 1px solid #9CC6E6; border-radius: 9px; color: #DCEBF7; font-size: 10px; line-height: 15px; }
.z1-pil .an { border-color: #509acf; background: #509acf; color: #fff; }
.z1-pil .dat { margin: 0 6px 0 3px; padding: 0 22px 0 6px; border: 0; border-radius: 2px; background: #fff linear-gradient(#5797ca, #5797ca) right 5px center / 9px 9px no-repeat; color: #000; line-height: 17px; }

/* Untere Tafeln */
.z1-unten { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 5px; }
.z1-unten > div { min-width: 0; padding-bottom: 4px; border-radius: 5px; background: #f7f3fa; overflow: hidden; }
.z1-unten p { margin: 0 0 3px; padding: 1px 7px; background: #5797ca; color: #fff; font-size: 10.5px; white-space: nowrap; }
.z1-unten span { display: block; padding: 1px 7px; line-height: 1.2; }

/* Fußzeile: flieder Eingabe, blaue Knöpfe, Stoppuhr, Risiko-Hinweis */
.z1-fuss { display: flex; align-items: center; gap: 7px; min-height: 22px; }
.z1-ein { flex: 0 1 96px; min-width: 56px; height: 20px; padding: 0 7px; border-radius: 3px; background: #c1a0f1; color: #4B2F7A; font-size: 10.5px; line-height: 20px; }
.z1-kn { display: flex; gap: 2px; }
.z1-kn i { width: 14px; height: 14px; border-radius: 3px; background: #5797ca; background: #5797ca radial-gradient(circle, #fff 0 2px, transparent 2.5px); }
.z1-fuss time { color: #fff; font-size: 10.5px; }
.z1-risk { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 10px; margin: 0 0 0 auto; padding: 2px 8px; border-radius: 4px; background: #fff; }
.z1-risk:empty { display: none; }
.z1-risk b { color: #E5613A; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.k-flow .z1-risk b[data-at] { transform: scale(.85); transform-origin: 100% 50%; }
.k-flow .z1-risk b[data-at].on { transform: none; }
.z1-risk:empty + .z1-gelb { margin-left: auto; }
.z1-gelb { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 3px; background: #F4C430 linear-gradient(#5A4500, #5A4500) 50% 35% / 2px 7px no-repeat; }

/* ---------- CGM PRAXISTIMER: klassisches Windows-Fenster */
.z1-pt { padding: 0 5px 5px; border: 1px solid #5B7BA4; border-radius: 7px 7px 4px 4px; background: linear-gradient(180deg, #D6E3F3, #BFD2E8 60px, #C6D7EB);
  font-family: Tahoma, "Segoe UI", Verdana, Arial, sans-serif; font-size: 10.5px; line-height: 1.2; color: #000; }
.z1-ptb { display: flex; align-items: center; gap: 6px; height: 24px; font-size: 11.5px; white-space: nowrap; }
.z1-pti { width: 13px; height: 13px; border: 1px solid #2F53A6; background: #fff; box-shadow: inset 0 4px 0 #3C64C8; }
.z1-pwc { display: flex; align-self: flex-start; margin-left: auto; }
.z1-pwc i { position: relative; width: 24px; height: 16px; border: 1px solid #5B7BA4; border-top: 0; background: linear-gradient(180deg, #E8F0FA, #C3D4EA); }
.z1-pwc i:first-child { border-radius: 0 0 0 4px; }
.z1-pwc i:last-child { width: 38px; border-radius: 0 0 4px 0; background: linear-gradient(180deg, #E08A7E, #C4372B); }
.z1-pwc i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 6px; margin: -3px 0 0 -4px; border: 1px solid #1B2B45; border-top-width: 2px; box-sizing: border-box; }
.z1-pwc i:first-child::before { height: 0; margin-top: 2px; border-width: 2px 0 0; }
.z1-pwc i:last-child::before { border: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: linear-gradient(45deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%); }
.z1-pm, .z1-psym, .z1-pd, .z1-pst { background: #f0f0f0; }
.z1-pm { display: flex; padding: 2px 3px 1px; border: 1px solid #8DA4C2; border-bottom: 0; white-space: nowrap; overflow: hidden; }
.z1-pm span { padding: 1px 6px; }
.z1-psym, .z1-pd, .z1-pk, .z1-pst { border: 1px solid #8DA4C2; border-width: 0 1px; }
.z1-psym { display: flex; align-items: center; gap: 4px; padding: 2px 6px 3px; border-bottom: 1px solid #D5D5D5; overflow: hidden; }
.z1-psym i { flex: 0 0 auto; width: 13px; height: 13px; box-sizing: border-box; }
.z1-psym b { flex: 0 0 auto; width: 1px; height: 14px; margin: 0 2px; background: #B8B8B8; }
.z1-psym .kb { border: 1px solid #2F53A6; background: #fff; box-shadow: inset 0 4px 0 #3C64C8; }
.z1-psym .kr { border: 1px solid #A3271F; background: #fff; box-shadow: inset 0 4px 0 #D0362F; }
.z1-psym .gl, .z1-psym .gr { background: #2FA23A; clip-path: polygon(0 50%, 100% 5%, 100% 95%); }
.z1-psym .gr { clip-path: polygon(100% 50%, 0 5%, 0 95%); }
.z1-psym .dr { border: 1px solid #555; border-radius: 2px; background: linear-gradient(#fff 0 35%, #9A9A9A 35%); }
.z1-psym .sm, .z1-sm { border: 1px solid #A67C00; border-radius: 50%; background: radial-gradient(circle at 33% 40%, #3A2A00 0 1px, transparent 1.3px), radial-gradient(circle at 67% 40%, #3A2A00 0 1px, transparent 1.3px), #FFD92E; }
.z1-psym .uh { border: 1.5px solid #555; border-radius: 50%; background: #fff linear-gradient(#555, #555) 50% 30% / 1.5px 5px no-repeat; }
.z1-psym .fr { border-radius: 50%; background: #2F6BD8; }
.z1-pd { display: flex; align-items: center; gap: 6px; padding: 3px 6px 4px; white-space: nowrap; }
.z1-pd .sel { position: relative; padding: 1px 22px 1px 5px; border: 1px solid #ADADAD; background: #fff; }
.z1-pd .sel::after { content: ""; position: absolute; right: 5px; top: 50%; margin-top: -2px; border: 4px solid transparent; border-top-color: #333; border-bottom: 0; }
.z1-pd .alle { padding: 1px 8px; border: 1px solid #ADADAD; border-radius: 2px; background: linear-gradient(#F8F8F8, #E2E2E2); }
.z1-pd b { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 700; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.z1-pk { display: grid; grid-template-columns: minmax(0, 1fr) 122px; background: #f0f0f0; border-top: 1px solid #A0A0A0; border-bottom: 1px solid #A0A0A0; }

.z1-grid { --zh: 12px; position: relative; display: grid; grid-template-columns: 20px 15px repeat(var(--n), minmax(0, 1fr)); grid-template-rows: 17px repeat(var(--zl), var(--zh)); background: #fff; }
.z1-ch { display: flex; align-items: center; justify-content: center; background: #f0f0f0; border-bottom: 1px solid #A0A0A0; border-right: 1px solid #C8C8C8; font-size: 10px; white-space: nowrap; }
.z1-h { grid-column: 1; padding: 1px 1px 0 0; background: #f0f0f0; border-top: 1px solid #5bcbcb; font-size: 13px; font-weight: 700; line-height: 1; text-align: right; }
.z1-h.vor { border-top: 0; color: #777; }
.z1-grid small { grid-column: 2; background: #f0f0f0; border-right: 1px solid #A0A0A0; font-size: 8px; line-height: var(--zh); text-align: center; color: #222; }
.z1-lin { position: absolute; inset: 17px 0 0 35px; pointer-events: none;
  background: linear-gradient(180deg, #5bcbcb 1px, transparent 1px) 0 calc(var(--zh) * 2) / 100% calc(var(--zh) * 6),
              linear-gradient(90deg, transparent calc(100% - 1px), #C8C8C8 calc(100% - 1px)) 0 0 / calc(100% / var(--n)) 100%,
              linear-gradient(180deg, transparent calc(var(--zh) - 1px), #ECECEC calc(var(--zh) - 1px)) 0 0 / 100% var(--zh),
              linear-gradient(180deg, transparent 50%, rgba(0,0,0,.028) 50%) 0 0 / 100% calc(var(--zh) * 2); }
.z1-sperr { grid-column: 3 / -1; grid-row: 2 / span 2; background: #cccccc; box-shadow: inset 0 -1px 0 #5bcbcb; }
.z1-t { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 3px; min-width: 0; margin-right: 1px; padding: 0 3px 0 3px; border-left: 5px solid #fd803e; background: #f2d2c2; font-size: 10.5px; line-height: var(--zh); overflow: hidden; white-space: nowrap; }
.z1-t.bl { background: #c2c8f2; border-color: #5464c8; }
.z1-t.ro { background: #f2c2da; border-color: #800040; }
.z1-t.tu { background: #c2f2f2; border-color: #018080; }
.z1-t.vi { background: #e0cff1; border-color: #a553fa; }
.z1-t > * { flex: 0 0 auto; }
.z1-t .z1-sm { width: 9px; height: 9px; margin-top: calc((var(--zh) - 9px) / 2); box-sizing: border-box; }
.z1-t .k-grau { flex: 0 1 auto; min-width: 0; margin-top: calc((var(--zh) - .62em) / 2); background: rgba(20,30,60,.2); }
.z1-t b { flex: 0 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.z1-t em { margin-left: auto; font-style: normal; }
.z1-t em::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 2px; border: 1px solid #808080; background: #E6E6E6; }
.z1-t.neu, .z1-zieh.on .z1-t { z-index: 2; box-shadow: 0 0 0 2px var(--z-gruen); }
.k-flow .z1-t.neu[data-at] { transform: scale(.85); transform-origin: 30% 30%; }
.k-flow .z1-t.neu[data-at].on { transform: none; animation: z1Ring 1.5s ease-out .1s both; }
@keyframes z1Ring { 0% { box-shadow: 0 0 0 2px var(--z-gruen), 0 0 0 0 rgba(30,155,89,.5); } 100% { box-shadow: 0 0 0 2px var(--z-gruen), 0 0 0 16px rgba(30,155,89,0); } }

/* Seitenleiste: Minikalender, Mitarbeiter */
.z1-ps { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 3px; border-left: 1px solid #A0A0A0; font-size: 9.5px; }
.z1-mk { border: 1px solid #8C8C8C; background: #fff; }
.z1-mk p { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 2px 5px; background: #5654a9; color: #fff; font-weight: 700; }
.z1-mk p i { border: 4px solid transparent; border-right-color: #fff; border-left: 0; }
.z1-mk p i:last-child { border: 4px solid transparent; border-left-color: #fff; border-right: 0; }
.z1-mk > div { display: grid; grid-template-columns: 15px repeat(7, minmax(0, 1fr)); padding: 1px; }
.z1-mk > div span { font-size: 8.5px; line-height: 12px; text-align: center; }
.z1-mk .wo { background: #ECECF4; color: #5654a9; }
.z1-mk .wt { border-bottom: 1px solid #5654a9; }
.z1-mk .fremd { color: #A8A8A8; }
.z1-mk .heute { box-shadow: inset 0 0 0 1px #E02020; }
.z1-mk .wahl { background: #5654a9; color: #fff; }
.z1-mk small { display: block; padding: 2px; border-top: 1px solid #D0D0D0; font-size: 9px; text-align: center; }
.z1-ma { border: 1px solid #8C8C8C; background: #fff; }
.z1-ma p { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 4px; margin: 0; padding: 1px 4px; line-height: 13px; }
.z1-ma p b { font-weight: 400; }
.z1-ma .k { background: #f0f0f0; border-bottom: 1px solid #C8C8C8; }
.z1-ma .da b { color: #1A2FD0; font-weight: 700; }
.z1-pr { display: flex; margin: auto 0 0; }
.z1-pr span { padding: 1px 6px 2px; border: 1px solid #A0A0A0; border-radius: 0 0 3px 3px; background: #E4E4E4; }
.z1-pr .an { background: #fff; border-top-color: #fff; }
.z1-pst { display: flex; align-items: center; gap: 14px; padding: 3px 6px; border-bottom: 1px solid #8DA4C2; font-size: 10px; white-space: nowrap; overflow: hidden; }
.z1-pst u { color: #3125fc; font-weight: 700; }
.z1-pst .r { margin-left: auto; }
.z1-pst .r + .r { margin-left: 0; }

/* ---------- Kopf: Z1.PRO hinten, PRAXISTIMER davor */
.sx-stage.sx-pvs_z1 { padding: 44px 56px 62px; }
.z1-szene { position: relative; max-width: 980px; margin: 0 auto; padding-bottom: 66px; }
.z1-hpro { width: 64%; }
.z1-hpt { position: absolute; right: 0; top: 176px; width: 68%; }
.z1-hpt .z1-pk { grid-template-columns: minmax(0, 1fr) 116px; }
.z1-t.neu b { letter-spacing: -.02em; }
.z1-hpro .z1-oben { grid-template-columns: 250px minmax(0, 1fr); }
.z1-fokus { background: #b0dfe5; }
.z1-msg { position: absolute; z-index: 5; left: -34px; bottom: -40px; width: 286px; border-radius: 18px; background: #EFEAE2; overflow: hidden; text-align: left; font-family: var(--sans);
  box-shadow: 0 0 0 1px rgba(20,22,27,.07), 0 26px 50px -18px rgba(20,22,27,.45), 0 8px 18px -10px rgba(20,22,27,.3); display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
.k-flow .z1-msg[data-at] { transform: translateY(18px) scale(.94); transform-origin: 20% 100%; }
.k-flow .z1-msg[data-at].on { transform: none; }
.z1-msg-h { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; padding: 10px 12px; background: #fff; font-size: 13px; line-height: 1; }
.z1-msg-h img { width: 18px; height: 18px; }
.z1-msg-h b { font-weight: 600; }
.z1-msg-h span { color: var(--ink-3); }
.z1-b { align-self: flex-end; max-width: 88%; margin: 0 10px; padding: 7px 10px; border-radius: 11px 11px 3px 11px; background: #D9FDD3; box-shadow: 0 1px .5px rgba(11,20,26,.13); font-size: 13.5px; line-height: 1.36; color: #111B21; }
.z1-b.er { align-self: flex-start; border-radius: 11px 11px 11px 3px; background: #fff; }
.k-flow .z1-b.er[data-at] { transform: translateY(8px); }
.k-flow .z1-b.er[data-at].on { transform: none; }


/* ---------- Umschalter */
.z1-wahl { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.z1-wahl button { height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--hair); background: #fff; font: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.z1-wahl button:hover { border-color: #C9C5B8; color: var(--ink); }
.z1-wahl button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.z1-pick { display: none; }
.z1-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.z1-panel { margin-top: 24px; padding: 44px 40px; border-radius: 28px; border: 1px solid var(--hair); background: linear-gradient(180deg, #F6F4EE, #EFECE4); }
.z1-fall { display: none; }
.z1-fall.on { display: block; }
.z1-fs { display: flex; align-items: center; justify-content: center; min-height: 380px; }
.z1-fs > .z1-win { flex: 0 1 600px; min-width: 0; }
.z1-fs > .z1-win.z1-timer { flex-basis: 560px; }
.z1-fs > .z1-win.z1-brief { flex-basis: 500px; }
.z1-satz { max-width: 620px; margin: 22px auto 0; text-align: center; }
.z1-satz p { display: none; margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.z1-satz p.on { display: block; }

/* Meldung von Praxishub und Nachrichten neben dem Fenster */
.z1-zettel, .z1-wa { position: relative; z-index: 3; flex: 0 0 auto; order: -1; margin-right: 22px; font-family: var(--sans); text-align: left;
  box-shadow: 0 0 0 1px rgba(20,22,27,.07), 0 26px 50px -18px rgba(20,22,27,.45), 0 8px 18px -10px rgba(20,22,27,.3); }
.z1-zettel { display: flex; align-items: center; gap: 11px; width: 262px; padding: 13px 14px; border-radius: 18px; background: #fff; }
.z1-zettel img { width: 30px; height: 30px; flex: 0 0 auto; }
.z1-zettel span { display: grid; gap: 3px; min-width: 0; }
.z1-zettel b { font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.z1-zettel small { font-size: 13px; line-height: 1.25; color: var(--ink-3); }
.z1-zok { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: var(--z-gruen); color: #fff; }
.z1-zok .z1-ok { width: 13px; height: 13px; }
.k-flow .z1-zettel[data-at], .k-flow .z1-wa[data-at] { transform: translateX(-22px) scale(.95); }
.k-flow .z1-zettel[data-at].on, .k-flow .z1-wa[data-at].on { transform: none; }
.z1-wa { display: flex; flex-direction: column; gap: 6px; width: 262px; padding-bottom: 12px; border-radius: 18px; background: #EFEAE2; overflow: hidden; }
.z1-wa-h { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 9px 12px; background: #fff; font-size: 13.5px; line-height: 1; }
.z1-wa-h i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #DCE4EC; color: #47536A; font-size: 10px; font-weight: 700; font-style: normal; }
.z1-wa-h b { font-weight: 600; }
.z1-wa-h span { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.z1-ruf { background: #F4F3EF; }
.z1-ruf .z1-b { background: var(--ink); color: #fff; box-shadow: none; }
.z1-ruf .z1-b.er { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--hair); }
.z1-b.bild { display: grid; gap: 7px; padding: 5px 5px 7px; }
.z1-b.bild span { padding: 0 5px; }
.z1-b.bild .z1-blatt { width: 100%; height: 96px; }
.k-flow .z1-wa .z1-b[data-at] { transform: translateY(8px); }
.k-flow .z1-wa .z1-b[data-at].on { transform: none; }
.z1-blatt { display: grid; align-content: start; gap: 6px; padding: 12px 14px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #D8DEE6; overflow: hidden; }
.z1-b.bild .z1-blatt { background: linear-gradient(135deg, #F7F4EA, #E9E4D3); box-shadow: none; }
.z1-blatt i { height: 5px; border-radius: 9px; background: #C9D0DA; }
.z1-blatt i:first-child { width: 46%; height: 7px; background: #8E99A8; }
.z1-blatt i:nth-child(3) { width: 82%; }
.z1-blatt i:nth-child(5) { width: 64%; }

/* Arztbrief */
.z1-brief .z1-fl { padding: 14px 16px; }
.z1-papier { display: grid; gap: 12px; padding: 20px 24px 22px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); font-family: Calibri, Arial, sans-serif; font-size: 12.5px; }
.z1-papier p { display: grid; gap: 5px; margin: 0; }
.z1-papier .k-grau { width: fit-content; max-width: 100%; }
.z1-bk { justify-items: end; padding-bottom: 9px; border-bottom: 1px solid #C9D3DF; }
.z1-bk b { font-size: 14px; color: var(--z-navy); }
.z1-papier .z1-betr { display: block; font-size: 13px; }
.z1-papier dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 7px 10px; margin: 0; }
.z1-papier dt { padding-top: 5px; font-weight: 700; }
.z1-papier dd { position: relative; display: grid; gap: 3px; min-height: 44px; margin: 0; padding: 5px 9px; border: 1px dashed #B9C4D2; }
.z1-papier dd i { position: absolute; inset: -1px; background: #E3F4E9; box-shadow: inset 3px 0 0 var(--z-gruen); }
.z1-papier dd b { position: relative; font-weight: 600; }
.z1-papier dt:first-of-type + dd b { color: #E5613A; }

/* Verschobener Termin */
.z1-geist { position: relative; z-index: 1; margin: 1px 2px 1px 1px; border: 1.5px dashed #9A9A9A; }
.z1-win .z1-zieh { position: relative; z-index: 2; display: grid; opacity: 1; transition: transform .9s var(--ease); }
.z1-win .z1-zieh.on { transform: translateY(calc(var(--zh) * 6)); }
.z1-zieh .z1-t { transition: box-shadow .4s .6s; }

/* ---------- Akte: blau liest Praxishub, grün trägt es ein */
.z1-zwei { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 44px; margin-top: 52px; }
.z1-akteb { display: grid; gap: 12px; padding: 30px 28px; border-radius: 28px; border: 1px solid var(--hair); background: linear-gradient(180deg, #F6F4EE, #EFECE4); }
.z1-m.les .z1-mw { background: #D3E6FB; box-shadow: inset 3px 0 0 var(--z-les); }
.z1-m.schr .z1-mw { background: #E3F4E9; box-shadow: inset 3px 0 0 var(--z-gruen); }
.z1-m.schr > :not(.z1-mw) { transition: opacity .35s; }
.k-flow .z1-m.schr .z1-mw[data-at]:not(.on) ~ * { opacity: 0; }
.z1-stamm { width: 300px; max-width: 100%; }
.z1-form { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 5px 8px; padding: 10px 10px 11px; border-radius: 5px; background: #fff; }
.z1-form label { font-size: 10.5px; color: #33414E; }
.z1-form > span { position: relative; display: flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid #A9B8C6; background: #fff; overflow: hidden; white-space: nowrap; }
.z1-feld i { position: absolute; inset: 0; background: #E3F4E9; }
.z1-feld b { position: relative; font-weight: 700; transition: opacity .35s; overflow: hidden; text-overflow: ellipsis; }
.z1-feld.les i { background: #D3E6FB; box-shadow: inset 3px 0 0 var(--z-les); }
.z1-feld.schr i { box-shadow: inset 3px 0 0 var(--z-gruen); }
.k-flow .z1-feld.schr i[data-at]:not(.on) + b { opacity: 0; }
.z1-listen { display: grid; gap: 30px; text-align: left; }
.z1-listen h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.z1-listen h3 i { width: 12px; height: 12px; border-radius: 3px; background: var(--z-les); }
.z1-listen .schr h3 i { background: var(--z-gruen); }
.z1-listen ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.z1-listen li { padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; line-height: 1.4; color: var(--ink-2); }
.z1-listen a { color: inherit; text-decoration: underline; text-decoration-color: #C9C5B8; text-underline-offset: 3px; }
.z1-satz a { color: inherit; text-decoration: underline; text-decoration-color: #C9C5B8; text-underline-offset: 3px; }

.z1-satz a { color: inherit; text-decoration: underline; text-decoration-color: #C9C5B8; text-underline-offset: 3px; }

.z1-app { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; }
/* Einrichtung */
.z1-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 52px 0 0; padding: 0; list-style: none; counter-reset: z1; }
.z1-start li { counter-increment: z1; display: flex; flex-direction: column; border-radius: 24px; border: 1px solid var(--hair); background: #fff; overflow: hidden; }
.z1-sg { display: grid; place-items: center; min-height: 168px; padding: 24px 22px; background: linear-gradient(180deg, #F6F4EE, #EFECE4); }
.z1-start li > p { display: flex; gap: 12px; margin: 0; padding: 17px 22px 20px; font-size: 16.5px; line-height: 1.42; }
.z1-start li > p::before { content: counter(z1); flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.z1-inst { display: grid; gap: 11px; width: 100%; max-width: 250px; padding: 14px 15px 15px; border-radius: 8px; border: 1px solid #8C9BB0; background: #fff; font: 12.5px/1.25 "Segoe UI", Tahoma, sans-serif; color: #1B2230; box-shadow: 0 18px 34px -22px rgba(0,36,82,.4); text-align: left; }
.z1-inst p { display: flex; align-items: center; gap: 8px; margin: 0; }
.z1-inst p b { font-weight: 600; }
.z1-app.ph { background: var(--ink) url(/assets/logo.svg) center / 12px no-repeat; }
.z1-bar { height: 9px; border: 1px solid #AAB5C4; background: #EEF1F5; overflow: hidden; }
.k-flow .z1-bar i[data-at] { display: block; height: 100%; width: 0; background: #2EA043; opacity: 1; transition: width 1.6s linear; }
.k-flow .z1-bar i[data-at].on { width: 100%; }
.z1-verb { display: inline-flex; align-items: center; gap: 5px; color: #0F6B3A; font-weight: 600; }
.z1-regeln { display: grid; gap: 0; width: 100%; max-width: 250px; padding: 4px 15px; border-radius: 14px; border: 1px solid var(--hair); background: #fff; font-size: 14.5px; font-weight: 500; text-align: left; }
.z1-regeln p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.z1-regeln p:last-child { border-bottom: 0; }
.z1-einw { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 250px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--hair); background: #fff; text-align: left; box-shadow: inset 4px 0 0 var(--accent); }
.z1-einw > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); }
.z1-einw svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.z1-einw span { display: grid; gap: 2px; }
.z1-einw b { font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.z1-einw small { font-size: 13px; color: var(--ink-3); }

@media (max-width: 960px) {
  .sx-stage.sx-pvs_z1 { padding: 32px 28px 56px; }
  .z1-msg { left: -14px; }
  .z1-hpro { width: 70%; }
  .z1-hpro .z1-oben { grid-template-columns: 160px minmax(0, 1fr); }
  .z1-hpt .z1-grid { --n: 3 !important; }
  .z1-hpt .z1-grid .s4 { display: none; }
  .z1-hpt .z1-ps { display: none; }
  .z1-hpt .z1-pk { grid-template-columns: minmax(0, 1fr); }
  .z1-hpt .z1-pm span:nth-child(n+7) { display: none; }
  .z1-panel { padding: 32px 22px; }
  .z1-zwei { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .z1-listen { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .z1-lock { margin-bottom: 18px; }
  .sx-stage.sx-pvs_z1 { padding: 16px 10px 84px; }

  /* Z1.PRO als lesbarer Ausschnitt */
  .z1-pro { font-size: 12px; }
  .z1-sym .w { display: none; }
  .z1-sym span { font-size: 8.5px; }
  .z1-oben, .z1-hpro .z1-oben { grid-template-columns: minmax(0, 1fr); }
  .z1-reiter span { padding: 1px 4px 2px; }
  .z1-tb2 { height: 90px; }
  .z1-r { height: 24px; grid-template-columns: 52px minmax(0, 1fr) auto; }
  .z1-dok .z1-r { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .z1-info .z1-r:not(.z1-kopfz) { height: auto; min-height: 24px; padding-top: 3px; padding-bottom: 3px; align-items: start; white-space: normal; }
  .z1-info .z1-tb2, .z1-tp.z1-info .z1-tb2 { height: 90px; }
  .z1-arch { grid-template-columns: minmax(0, 1fr) 70px; }
  .z1-rg .z1-arch { grid-template-columns: minmax(0, 1fr); }
  .z1-rg .z1-vorschau { display: none; }
  .z1-vorschau { padding: 5px 6px; }
  .z1-risk b { font-size: 12px; }
  .z1-k { grid-template-columns: 54px 30px minmax(0, 1fr); min-height: 22px; }
  .z1-k .geb, .z1-k .lg, .z1-k .le, .z1-k .erf, .z1-k .abr { display: none; }
  .z1-k.kom .tx { grid-column: 3; }
  .z1-pil { justify-content: space-between; gap: 2px; }
  .z1-pil .pk, .z1-pil .dat { display: none; }
  .z1-pil span { padding: 0 4px; font-size: 9px; }
  .z1-kn, .z1-fuss time { display: none; }
  .z1-ein { flex: 0 0 62px; }
  .z1-risk { padding: 2px 7px; }

  /* Kopf: oben der Reiter Dok aus Z1.PRO, darunter der PRAXISTIMER */
  .z1-szene { display: grid; gap: 8px; padding-bottom: 0; }
  .z1-hpro, .z1-hpt { position: static; width: 100%; }
  .z1-hpro .z1-zs, .z1-hpro .z1-kt, .z1-hpro .z1-pil, .z1-hpro .z1-unten, .z1-hpro .z1-fuss { display: none; }
  .z1-hpro .z1-tb2 { height: auto; }
  .z1-pt { padding: 0 4px 4px; font-size: 11px; }
  .z1-pm span:nth-child(n+6), .z1-pd .alle, .z1-ps, .z1-pst .r { display: none; }
  .z1-pk, .z1-hpt .z1-pk { grid-template-columns: minmax(0, 1fr); }
  .z1-grid { --zh: 13px; grid-template-columns: 22px 16px repeat(var(--n), minmax(0, 1fr)); }
  .z1-lin { left: 38px; }
  .z1-grid small { font-size: 9px; }
  .z1-t { font-size: 11.5px; }
  .z1-pt .z1-grid { --n: 2 !important; }
  .z1-pt .z1-grid .s3, .z1-pt .z1-grid .s4 { display: none; }
  .z1-msg { left: auto; right: -2px; bottom: -72px; top: auto; width: 250px; border-radius: 16px; }
  .z1-b { font-size: 13px; }

  .z1-wahl { display: none; }
  .z1-pick { position: relative; display: block; margin: 22px auto 0; max-width: 340px; }
  .z1-pick select { width: 100%; height: 50px; padding: 0 44px 0 16px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); appearance: none; -webkit-appearance: none; }
  .z1-pick::after { content: ""; position: absolute; right: 19px; top: 19px; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
  .z1-panel { margin-top: 14px; padding: 16px 10px 18px; border-radius: 22px; }
  .z1-fs { flex-direction: column; align-items: stretch; justify-content: center; min-height: 540px; }
  .z1-fs > .z1-win, .z1-fs > .z1-win.z1-timer, .z1-fs > .z1-win.z1-brief { flex: 0 0 auto; }
  .z1-zettel, .z1-wa { align-self: flex-end; margin: 0 0 10px; width: 262px; }
  .k-flow .z1-zettel[data-at], .k-flow .z1-wa[data-at] { transform: translateY(-14px) scale(.95); }
  .z1-b.bild .z1-blatt { height: 62px; }
  .z1-brief .z1-fl { padding: 8px; }
  .z1-papier { padding: 14px 14px 16px; gap: 10px; }
  .z1-papier dl { grid-template-columns: 62px minmax(0, 1fr); }
  .z1-satz { margin-top: 16px; }
  .z1-satz p { font-size: 16.5px; }

  .z1-zwei { margin-top: 30px; gap: 26px; }
  .z1-akteb { padding: 14px 10px; border-radius: 22px; gap: 8px; }
  .z1-stamm { width: 100%; }
  .z1-form { grid-template-columns: 84px minmax(0, 1fr); }
  .z1-form label { font-size: 11.5px; }
  .z1-form > span { height: 24px; }
  .z1-listen { grid-template-columns: 1fr; gap: 24px; }
  .z1-listen h3 { font-size: 18px; }

  .z1-start { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; gap: 12px; margin: 30px -20px 0; padding: 0 20px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .z1-start::-webkit-scrollbar { display: none; }
  .z1-start li { scroll-snap-align: center; border-radius: 20px; }
  .z1-sg { min-height: 150px; padding: 20px 16px; }
  .z1-start li > p { padding: 14px 16px 16px; font-size: 15.5px; }
}
