/* /pvs-anbindung/samedi/ – samedi als Web-App im Browser, nach marketing/pvs-referenzen/pvs_samedi.md:
   dunkelblaue Navigationsleiste mit rotem Sechseck, graue Werkzeugzeile, Spalten je Ressource im 5-Minuten-Raster mit Zeitleiste
   links und rechts, vollflächig farbige Termine, rechts die feste Seitenleiste (Monatskalender, Termin, Terminkette, Patienten).
   Darunter Umschalter mit vier Fällen, der geöffnete Patient mit den Listen liest/trägt ein, drei Stationen. Präfix sam-. */

.sam-hero, .sam-fall, .sam-rw-g, .sam-g {
  --nav: #0d3e85; --rot: #dc1257; --fl: #f1f1f1; --li: #d9d9d9; --zu: #e2e2e2; --hb: #00a5d7; --db: #006ab2; --link: #00a6d8; --dat: #5096c5;
  --sam-ink: #2f3338; --sam-2: #7b8087; --ph: #4F46E5; --rh: 10px; }

/* ---------- das Fenster */
.sx-pvs_samedi { padding-top: 48px; }
.sam-hero { position: relative; max-width: 1010px; margin: 0 auto; }
.sam-win { border-radius: 10px 10px 0 0; background: #fff; overflow: hidden; text-align: left; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 1.3; color: var(--sam-ink);
  box-shadow: 0 0 0 1px rgba(19,23,34,.12), 0 30px 60px -24px rgba(19,23,34,.35); }
.sam-win.flach { border-radius: 8px; box-shadow: 0 0 0 1px rgba(19,23,34,.14), 0 22px 44px -26px rgba(19,23,34,.4); }
.sam-win svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sam-win svg.sam-hex, .sam-hex { flex: 0 0 auto; fill: var(--rot); stroke: var(--rot); stroke-width: 3.4; stroke-linejoin: round; }
.sam-chrome { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #E4E6EA; }
.sam-chrome > i { width: 11px; height: 11px; border-radius: 50%; background: #C5C9D0; }
.sam-tab { display: flex; align-items: center; gap: 6px; align-self: flex-end; height: 28px; margin-left: 12px; padding: 0 22px 0 10px; border-radius: 8px 8px 0 0; background: #fff; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 12px; color: #3A4553; white-space: nowrap; }
.sam-tab .sam-hex { width: 14px; height: 14px; }
.sam-url { flex: 1; display: flex; align-items: center; height: 22px; max-width: 420px; margin-left: 10px; padding: 0 12px; border-radius: 11px; background: #F5F6F8; }
.sam-url .k-grau { background: #D6DAE0; }

/* Navigationsleiste: Sechseck und Name, Punkte mit Symbol, der aktive als weißer Kasten */
.sam-top { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 10px 0 9px; background: var(--nav); color: #fff; }
.sam-logo { display: flex; align-items: center; gap: 3px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.sam-logo .sam-hex { width: 21px; height: 21px; }
.sam-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.sam-nav span { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 2px; font-size: 12.5px; white-space: nowrap; }
.sam-nav svg { width: 14px; height: 14px; }
.sam-nav span.on { background: #fff; color: var(--nav); }
.sam-nav .mehr i { width: 5px; height: 5px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 1.3px 1.3px 0; transform: rotate(45deg); }
.sam-ic { display: flex; gap: 9px; margin-left: auto; padding-left: 6px; }
.sam-rw .sam-ic i:nth-child(2), .sam-rw .sam-ic i:nth-child(3) { display: none; }
.sam-ic i { display: grid; place-items: center; width: 20px; height: 20px; }
.sam-ic svg { width: 17px; height: 17px; }

.sam-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: var(--fl); }
.sam-body.nur { grid-template-columns: minmax(0, 1fr); }
.sam-body.mit { grid-template-columns: minmax(0, 1fr) 316px; }
.sam-body.mit .sam-cal { position: relative; }
.sam-body.mit .sam-cal-in { position: absolute; inset: 0; overflow: hidden; }

/* Werkzeugzeile */
.sam-cal { min-width: 0; background: var(--zu); }
.sam-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; background: var(--fl); white-space: nowrap; overflow: hidden; }
.sam-b-ic { display: grid; place-items: center; width: 18px; height: 18px; color: #6c7178; }
.sam-b-ic svg { width: 15px; height: 15px; }
.sam-b-heute { height: 21px; padding: 0 8px; margin-left: 3px; border: 1px solid #9a9fa6; border-radius: 3px; font-size: 11.5px; line-height: 19px; color: #4a4f55; }
.sam-b-nav { font-style: normal; font-size: 17px; line-height: 1; color: #6c7178; padding: 0 2px 2px; }
.sam-bar > b { margin-left: 5px; font-size: 13px; color: var(--nav); }
.sam-b-d { font-size: 13px; color: var(--dat); }
.sam-bar > em { margin-left: 3px; font-style: normal; font-size: 11px; color: #9a9fa6; }

/* Spaltenköpfe und Raster: Zeitleiste links und rechts, jede Zeile fünf Minuten */
.sam-ch, .sam-grid { display: flex; }
.sam-ch { height: 22px; background: var(--fl); border-bottom: 1px solid var(--li); }
.sam-ch > i, .sam-zeit { flex: 0 0 26px; }
.sam-ch span { flex: 1 1 0; min-width: 0; padding: 0 6px; border-left: 1px solid var(--li); font-size: 11.5px; font-weight: 700; line-height: 22px; color: #55595f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sam-ch > i:last-child { border-left: 1px solid var(--li); }
.sam-grid { position: relative; }
@media (min-width: 721px) { .sam-hero .sam-grid { max-height: 440px; overflow: hidden; } }
.sam-zeit { display: grid; grid-auto-rows: var(--rh); background: var(--fl); }
.sam-zeit:last-of-type { border-left: 1px solid var(--li); }
.sam-zeit time { padding-right: 5px; text-align: right; font-size: 8.5px; line-height: var(--rh); color: #9a9fa6; font-variant-numeric: tabular-nums; }
.sam-zeit time.h { font-size: 11px; font-weight: 700; color: #3c4046; }
.sam-zeit time.jetzt { background: #f7c9d8; color: #8b2346; }
.sam-col { flex: 1 1 0; min-width: 0; position: relative; display: grid; grid-template-rows: repeat(var(--rows), var(--rh)); grid-template-columns: minmax(0, 1fr); border-left: 1px solid var(--li); background-color: #fff;
  background-image: linear-gradient(180deg, #bcbcbc 1px, transparent 1px), linear-gradient(180deg, #e9e9e9 1px, transparent 1px);
  background-size: 100% calc(var(--rh) * 12), 100% var(--rh); background-position: 0 calc(var(--rh) * var(--off)), 0 0; }
.sam-col.ton { background-color: #ececdc; }
.sam-zu { grid-column: 1; background: var(--zu); }
.sam-jetzt { position: absolute; left: 0; right: 0; height: 2px; margin-top: -1px; background: var(--rot); z-index: 3; }
.sam-jetzt::after { content: ""; position: absolute; right: 9px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--rot); }

/* Termine: vollflächig farbig, Kästchen oben rechts, Name fett, Terminart, Dauer */
.sam-t { position: relative; grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0 2px 1px 0; padding: 2px 15px 0 4px; border-radius: 2px; background: var(--c); color: var(--tx, #fff); overflow: hidden; font-size: 10.5px; line-height: 12.5px; }
.sam-t b { max-width: 100%; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sam-t span { white-space: nowrap; }
.sam-t .k-grau { height: 4px; margin: 4px 0 4.5px; background: var(--ba, rgba(255,255,255,.5)); }
.sam-cb { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border: 1px solid var(--cb, #fff); border-radius: 1px; }
.sam-t.hb { --c: var(--hb); }
.sam-t.db { --c: var(--db); }
.sam-t.mg { --c: #b1298f; }
.sam-t.gn { --c: #2e8b57; }
.sam-t.gr { --c: #c5e6cb; --tx: #2f3338; --cb: #7d9a82; }
.sam-t.cr { --c: #eeeacc; --tx: #777468; --cb: #a9a58a; --ba: rgba(119,116,104,.3); }
.sam-t.kurz { padding-top: 0; line-height: calc(var(--rh) * 2 - 1px); }
.sam-t.kurz b { font-weight: 400; }
.sam-t.kurz .sam-cb { top: 50%; margin-top: -5px; }
.sam-t.wahl { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--nav); z-index: 2; overflow: visible; }
/* der Termin von Praxishub: gleiche Form, eigene Farbe und Marke */
.sam-t.neu { --c: var(--ph); z-index: 2; padding-right: 30px; box-shadow: 0 0 0 3px rgba(79,70,229,.25), 0 10px 20px -8px rgba(55,48,163,.6); overflow: visible; }
.sam-t.neu b { font-size: 11.5px; }
.sam-ph, .sam-phm { display: grid; place-items: center; border-radius: 6px; background: #fff; }
.sam-phm { box-shadow: 0 0 0 1px var(--hair), 0 4px 8px -4px rgba(19,23,34,.25); }
.sam-col .sam-t:not(.neu)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #fff; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.sam-grid:has(.sam-t.neu.on) .sam-t:not(.neu)::before { opacity: .5; }
.sam-t .sam-ph { position: absolute; right: 4px; bottom: 5px; width: 21px; height: 21px; }
.k-flow .sam-t.neu[data-at] { transform: scale(.82); transform-origin: 50% 50%; transition: opacity .3s var(--ease), transform .6s cubic-bezier(.2,1.5,.35,1); }
.k-flow .sam-t.neu[data-at].on { transform: none; }
.sam-t.neu.on::after { content: ""; position: absolute; inset: -3px; border-radius: 5px; border: 2px solid var(--ph); animation: samRing 1.3s ease-out 2 both; pointer-events: none; }
@keyframes samRing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.14, 1.5); } }
.sam-frei { grid-column: 1; z-index: 1; margin: 0 2px 1px 0; border-radius: 2px; border: 2px dashed var(--ph); background: rgba(79,70,229,.08); }
.k-flow .sam-frei.on { animation: samFrei 1s ease-in-out infinite alternate; }
@keyframes samFrei { from { background: rgba(79,70,229,.05); } to { background: rgba(79,70,229,.2); } }

/* Seitenleiste: zwei Monatskalender, Termin und Terminkette, Symbole, Patientenliste */
.sam-side { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--li); background: var(--fl); }
.sam-mon { padding: 0 8px 8px; }
.sam-mon-h { display: flex; align-items: center; height: 32px; font-size: 12px; color: var(--nav); }
.sam-mon-h i { font-style: normal; font-size: 17px; line-height: 1; color: #6c7178; padding-bottom: 2px; }
.sam-mon-h b { flex: 1; text-align: center; }
.sam-mon-h em { font-style: normal; font-size: 11.5px; color: var(--dat); }
.sam-mon-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sam-m-t { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; }
.sam-m-t i { font-style: normal; font-weight: 700; height: 16px; line-height: 16px; color: #6c7178; }
.sam-m-t span { height: 16px; line-height: 16px; background: #fff; color: #3c4046; }
.sam-m-t span:nth-of-type(7n+6), .sam-m-t span:nth-of-type(7n) { background: #c7c7c7; }
.sam-m-t span.heute { background: #0d3981; color: #fff; font-weight: 700; }
.sam-m-t span.wahl { background: var(--hb); color: #fff; font-weight: 700; }
.sam-akt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 8px 8px; }
.sam-akt span { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px var(--li); font-size: 12.5px; color: var(--link); white-space: nowrap; }
.sam-akt svg { width: 15px; height: 15px; }
.sam-mon + .sam-akt { padding-top: 0; }
.sam-side > .sam-akt:first-child { padding-top: 9px; }
.sam-sym { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--li); }
.sam-sym i { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 3px 3px 0 0; color: #8a8f96; }
.sam-sym i.on { background: #fff; color: var(--nav); box-shadow: inset 0 0 0 1px var(--li); margin-bottom: -1px; }
.sam-sym svg { width: 16px; height: 16px; }
.sam-such { height: 26px; margin: 8px 8px 0; padding: 0 9px; border-radius: 3px; background: #dcdcdc; font-size: 12px; line-height: 26px; color: #8a8f96; }
.sam-pl { flex: 1; margin-top: 8px; background: #fff; border-top: 1px solid var(--li); }
.sam-pr { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px 0 10px; border-bottom: 1px solid #e6e6e6; font-size: 12.5px; white-space: nowrap; }
.sam-pr b { font-weight: 400; }
.sam-pr > span { color: var(--sam-2); }
.sam-pr-k { display: grid; place-items: center; margin-left: auto; color: #9a9fa6; }
.sam-pr-k svg { width: 13px; height: 13px; }
.sam-pr .sam-ph + .sam-pr-k { margin-left: 6px; }
.sam-pr-p { width: 0; height: 0; margin-left: 4px; border: 5px solid transparent; border-left: 7px solid #46a546; border-right: 0; }
.sam-pr.neu { background: #ECEBFD; box-shadow: inset 3px 0 0 var(--ph), inset 0 0 0 1px rgba(79,70,229,.35); }
.sam-pr.neu b { font-weight: 700; color: #3730A3; }
.sam-pr .sam-ph { margin-left: auto; width: 20px; height: 20px; box-shadow: 0 0 0 1px rgba(79,70,229,.35); }
.sam-pr .sam-ph img { width: 12px; height: 12px; }
.k-flow .sam-pr[data-at] { display: none; }
.k-flow .sam-pr[data-at].on { display: flex; animation: samRein .5s var(--ease) both; }
@keyframes samRein { from { opacity: 0; height: 0; } to { opacity: 1; height: 28px; } }
.sam-knopf { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 3px; border: 1px solid #b9bdc3; background: #fff; font-size: 12px; color: #4a4f55; white-space: nowrap; }
.sam-knopf.rot { border-color: transparent; background: none; color: var(--rot); padding: 0 4px; }
.sam-knopf.rot i { position: relative; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.3px var(--rot); }
.sam-knopf.rot i::before, .sam-knopf.rot i::after { content: ""; position: absolute; left: 5.4px; top: 3px; width: 1.3px; height: 6px; background: var(--rot); transform: rotate(45deg); }
.sam-knopf.rot i::after { transform: rotate(-45deg); }

/* die Nachricht: schwebt über der rechten unteren Ecke des Fensters */
.sam-msg { position: absolute; z-index: 5; right: -26px; bottom: 30px; width: 318px; padding: 12px 12px 13px; border-radius: 20px; background: #EFEAE2; text-align: left; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 0 0 1px rgba(19,23,34,.07), 0 34px 60px -20px rgba(19,23,34,.5), 0 10px 20px -10px rgba(19,23,34,.25); }
.k-flow .sam-msg[data-at], .k-flow .sam-ruf[data-at] { transform: translateY(26px) scale(.95); transform-origin: 100% 100%; transition: opacity .35s var(--ease), transform .55s cubic-bezier(.2,1.2,.3,1); }
.k-flow .sam-msg[data-at].on, .k-flow .sam-ruf[data-at].on { transform: none; }
.sam-msg-h { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.sam-msg-h .kn-app { width: 28px; height: 28px; border-radius: 7px; flex: 0 0 auto; }
.sam-msg-h .kn-app svg { width: 17px; height: 17px; }
.sam-msg-h b { font-size: 14px; font-weight: 600; color: #111B21; }
.sam-msg-h time { margin-left: auto; font-size: 12px; color: #667781; }
.sam-b { width: fit-content; max-width: 90%; margin: 0 0 6px; padding: 7px 10px; border-radius: 10px; border-top-left-radius: 3px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); font-size: 14px; line-height: 1.36; color: #111B21; }
.sam-b.ph, .sam-b.tippt { margin-left: auto; margin-bottom: 0; border-radius: 10px; border-top-right-radius: 3px; background: #D9FDD3; }
.sam-b small { display: block; margin-top: 3px; font-size: 10.5px; color: #6B8A7A; }
.k-flow .sam-b[data-at] { display: none; }
.k-flow .sam-b[data-at].on { display: block; animation: kwIn .32s var(--ease) both; }
.k-flow .sam-b.tippt[data-at].on { display: flex; gap: 4px; padding: 11px 12px; }
.sam-b.tippt i { width: 6px; height: 6px; border-radius: 50%; background: #7FA08E; animation: kwDot 1s infinite; }
.sam-b.tippt i:nth-child(2) { animation-delay: .15s; } .sam-b.tippt i:nth-child(3) { animation-delay: .3s; }

/* ---------- Abschnitte */
.sam-sec .sec-head p { margin-top: 14px; }

/* ---------- Umschalter: vier Fälle */
.sam-wahl { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.sam-wahl button { height: 42px; padding: 0 18px; border-radius: 21px; 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; }
.sam-wahl button:hover { border-color: #CFCBBE; color: var(--ink); }
.sam-wahl button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sam-pick { display: none; }
.sam-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sam-panel { margin-top: 30px; }
.sam-case { display: none; }
.sam-case.on { display: block; }
.sam-fall { display: flex; flex-direction: column; max-width: 660px; min-height: 500px; margin: 0 auto; }
.sam-fall .sam-msg.klein, .sam-ruf { position: relative; z-index: 5; right: auto; bottom: auto; align-self: flex-end; margin: -26px -28px 0 0; }
.sam-msg.klein { width: 330px; }
.sam-msg.klein .sam-b { max-width: 100%; margin-bottom: 0; }
.sam-ruf { display: flex; align-items: center; gap: 11px; height: 56px; padding: 0 20px 0 9px; border-radius: 28px; background: #1C1C1E; color: #fff; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 30px 50px -20px rgba(19,23,34,.55), 0 10px 20px -10px rgba(19,23,34,.3); }
.sam-ruf-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #34C759; }
.sam-ruf-i svg { width: 19px; height: 19px; fill: #fff; stroke: none; }
.sam-ruf.on .sam-ruf-i { animation: samKlingel .5s ease-in-out 6 alternate; }
@keyframes samKlingel { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.sam-ruf b { font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.sam-welle { display: flex; align-items: center; gap: 3px; height: 18px; margin-left: 4px; }
.sam-welle i { width: 3px; height: calc(var(--h) * 1px); border-radius: 2px; background: #34C759; animation: samWelle .9s ease-in-out infinite alternate; }
.sam-welle i:nth-child(2n) { animation-delay: .3s; } .sam-welle i:nth-child(3n) { animation-delay: .55s; }
@keyframes samWelle { from { transform: scaleY(.4); } to { transform: scaleY(1.2); } }
.sam-fall .sam-body.nur { --rh: 11px; }
.sam-fall .sam-body.mit { min-height: 372px; }
.sam-fall .sam-side { padding-bottom: 30px; }
.sam-body.mit .sam-bar > .sam-b-ic, .sam-body.mit .sam-bar > em { display: none; }
.sam-body.mit .sam-b-heute { margin-left: 0; }
.sam-body.mit .sam-bar > b, .sam-body.mit .sam-b-d { font-size: 12px; }

/* Fall 2: Terminformular in der Seitenleiste */
.sam-entw { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--li); font-size: 12.5px; }
.sam-entw b { margin-right: auto; }
.sam-entw span { order: 3; flex: 0 0 100%; font-size: 11.5px; color: var(--sam-2); }
.sam-entw i { display: grid; place-items: center; color: #9a9fa6; }
.sam-entw svg { width: 14px; height: 14px; }
.sam-form { margin: 8px; border: 1px solid var(--li); border-radius: 3px; background: #fff; }
.sam-form-h { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 9px; border-bottom: 1px solid var(--li); color: var(--nav); }
.sam-form-h b { margin-right: auto; font-size: 12.5px; }
.sam-form-h i { display: grid; place-items: center; color: #8a8f96; }
.sam-form-h svg { width: 14px; height: 14px; }
.sam-form-h i.auf { width: 7px; height: 7px; margin-top: 4px; border: solid #8a8f96; border-width: 1.5px 0 0 1.5px; transform: rotate(45deg); }
.sam-form-b { padding: 9px 9px 2px; }
.sam-zuw { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12px; color: #4a4f55; }
.sam-zuw i { position: relative; flex: 0 0 auto; width: 26px; height: 14px; border-radius: 7px; background: #c9c9c9; }
.sam-zuw i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.sam-form-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px 9px; }
.sam-f { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 24px; margin-bottom: 7px; }
.sam-f label { font-size: 11.5px; color: #6c7178; white-space: nowrap; }
.sam-f > span { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 24px; padding: 2px 8px; border: 1px solid #c4c8cd; border-radius: 3px; background: #fff; font-size: 12px; }
.sam-f.wahl > span::after { content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin: -3px 1px 0 auto; border: solid #8a8f96; border-width: 0 1.3px 1.3px 0; transform: rotate(45deg); }
.sam-f.hoch { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.sam-f .sam-komm { position: relative; display: block; min-height: 62px; padding: 7px 34px 7px 9px; font-size: 13px; line-height: 1.4; }
.sam-rand { position: absolute; inset: -2px; border: 2px solid var(--ph); border-radius: 4px; box-shadow: 0 0 0 4px rgba(79,70,229,.16); pointer-events: none; }
.sam-komm .sam-ph { position: absolute; right: 7px; top: 7px; width: 21px; height: 21px; box-shadow: 0 0 0 1px rgba(79,70,229,.35); }

/* Fall 4 und Abschnitt 2: der geöffnete Patient in der Seitenleiste */
.sam-pat { flex: 1; display: flex; flex-direction: column; background: #fff; }
.sam-pat-n { padding: 11px 12px 0; font-size: 16px; color: var(--sam-ink); }
.sam-pat-n small { font-size: 12px; font-weight: 400; color: var(--sam-2); }
.sam-pat-ic { display: flex; gap: 12px; padding: 6px 12px 8px; color: #8a8f96; }
.sam-pat-ic i { display: grid; place-items: center; }
.sam-pat-ic svg { width: 15px; height: 15px; }
.sam-pat-k { position: relative; padding: 2px 12px 9px; border-bottom: 1px solid var(--li); }
.sam-kz { display: flex; align-items: center; gap: 8px; min-height: 25px; font-size: 13px; color: var(--link); }
.sam-kz > i { flex: 0 0 auto; display: grid; place-items: center; color: #8a8f96; }
.sam-kz svg { width: 14px; height: 14px; }
.sam-tausch { position: relative; display: flex; align-items: center; flex: 1; min-height: 25px; margin: 0 -6px; padding: 0 6px; border-radius: 4px; }
.sam-tausch s { color: #9a9fa6; text-decoration-color: var(--rot); }
.k-flow .sam-tausch s[data-at]:not(.on) { display: none; }
.sam-wert { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 13.5px; color: #3730A3; }
.k-flow .sam-wert[data-at] { display: none; }
.k-flow .sam-wert[data-at].on { display: flex; animation: kwIn .35s var(--ease) both; }
.sam-tausch:has(.sam-wert.on) { box-shadow: 0 0 0 2px var(--ph), 0 0 0 5px rgba(79,70,229,.16); }
.sam-wert .sam-ph { margin-left: auto; width: 19px; height: 19px; box-shadow: 0 0 0 1px rgba(79,70,229,.35); }
.sam-wert .sam-ph img { width: 12px; height: 12px; }
.sam-scan { position: absolute; inset: 0 6px 5px; border-radius: 4px; border: 2px solid #F08A00; background: rgba(240,138,0,.07); pointer-events: none; }
.sam-ptl { flex: 1; }
.sam-pt { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; min-height: 30px; padding: 5px 12px; border-bottom: 1px solid #e6e6e6; font-size: 12.5px; }
.sam-pt > span { white-space: nowrap; }
.sam-pt time { margin-left: auto; color: var(--sam-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sam-pt.alt, .sam-pt.alt time { color: #9a9fa6; }
.sam-pt.neu { background: #ECEBFD; box-shadow: inset 3px 0 0 var(--ph); padding-right: 40px; }
.sam-pt.neu > span { font-weight: 700; color: #3730A3; }
.sam-pt .sam-ph { position: absolute; right: 10px; top: 5px; width: 20px; height: 20px; box-shadow: 0 0 0 1px rgba(79,70,229,.35); }
.sam-pt .sam-ph img { width: 12px; height: 12px; }
.sam-pt-k { flex: 0 0 100%; display: flex; align-items: flex-start; gap: 7px; margin: 5px 0 2px; font-size: 12.5px; line-height: 1.4; color: #2f3338; }
.sam-pt-k i { flex: 0 0 auto; display: grid; place-items: center; margin-top: 1px; color: var(--ph); }
.sam-pt-k svg { width: 14px; height: 14px; }
.k-flow .sam-pt[data-at] { display: none; }
.k-flow .sam-pt[data-at].on { display: flex; animation: kwIn .4s var(--ease) both; }
.k-flow .sam-pt-k[data-at] { display: none; }
.k-flow .sam-pt-k[data-at].on { display: flex; animation: kwIn .35s var(--ease) both; }
.sam-pat-f { display: flex; align-items: center; gap: 6px; padding: 9px 10px 10px; background: var(--fl); border-top: 1px solid var(--li); }
.sam-pat-f .rot { margin-left: auto; }

/* ---------- Abschnitt 2: Fenster links, Listen rechts */
.sam-rw { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 48px; text-align: left; }
.sam-rw .sam-body.mit { grid-template-columns: minmax(0, 1fr) 300px; min-height: 380px; }
.sam-listen { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sam-li h3 { margin: 0 0 12px; font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.sam-li ul { margin: 0; padding: 0; list-style: none; }
.sam-li li { position: relative; padding: 0 0 0 24px; margin-bottom: 9px; font-size: 16px; line-height: 1.35; color: var(--ink-2); }
.sam-li li::before { content: ""; position: absolute; left: 1px; top: .32em; width: 11px; height: 11px; border-radius: 50%; }
.sam-li.liest li::before { box-shadow: inset 0 0 0 2px #F08A00; }
.sam-li.schreibt li::before { background: var(--accent); }
.sam-doku { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--hair); }
.sam-doku p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.sam-doku a { color: var(--accent); }
.sam-post { border-radius: 14px; border: 1px solid var(--hair); background: #fff; overflow: hidden; box-shadow: 0 14px 26px -22px rgba(20,22,27,.4); }
.sam-post-h { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--hair); background: var(--paper-2); }
.sam-post-h i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.sam-post-h b { font-size: 14px; font-weight: 600; }
.sam-post-r { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.sam-post-r + .sam-post-r { border-top: 1px solid #EFEDE6; }
.sam-post-r em { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 40px; border-radius: 5px; background: #FDECEC; color: #C62828; font-style: normal; font-size: 10px; font-weight: 700; }
.sam-post-r > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.sam-bez { text-decoration: none; padding: 2px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 600; font-style: normal; }
.sam-post-r b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- Einrichtung: drei Stationen auf einer Linie */
.sam-wegf { max-width: 860px; margin: 48px auto 0; }
.sam-weg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: center; }
.sam-weg .sam-st[data-at] { opacity: 1; }
.sam-st { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.sam-st > b { margin-top: 12px; font-size: 16.5px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.sam-g { display: flex; align-items: center; justify-content: center; width: 100%; height: 112px; border-radius: 16px; border: 1px solid var(--hair); background: #fff; }
.sam-g.g1 { gap: 0; }
.sam-wort { display: flex; align-items: center; gap: 4px; padding: 5px 11px 5px 8px; border-radius: 4px; background: var(--nav); color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sam-wort .sam-hex { width: 18px; height: 18px; }
.sam-weg .sam-draht[data-at] { opacity: 1; width: 44px; height: 2px; margin: 0 8px; background: linear-gradient(90deg, var(--green) 50%, #DAD6CA 50%) 100% 0 / 200% 100%; transition: background-position .8s var(--ease); }
.sam-weg .sam-draht.on { background-position: 0 0; }
.sam-phm { width: 30px; height: 30px; border-radius: 8px; }
.sam-phm img { width: 17px; height: 17px; }
.sam-g.g2 { flex-direction: column; align-items: stretch; gap: 9px; padding: 0 22%; }
.sam-g.g2 span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sam-weg .sam-sw, .sam-sw { opacity: 1; position: relative; flex: 0 0 auto; width: 30px; height: 18px; border-radius: 9px; background: #D9D6CC; transition: background .3s; }
.sam-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .3s var(--ease); }
.sam-sw.on { background: #34C759; }
.sam-sw.on::after { left: 14px; }
.sam-g.g3 { gap: 10px; font-size: 20px; }
.sam-g.g3 b { font-weight: 600; letter-spacing: -.01em; }
.sam-uhr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.sam-uhr svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sam-pkt { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #DAD6CA; transition: background .3s, box-shadow .3s; }
.sam-ok { display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .4s cubic-bezier(.2,1.6,.3,1); }
.sam-ok svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sam-st.on .sam-pkt { background: var(--green); box-shadow: none; }
.sam-st.on .sam-ok { opacity: 1; transform: none; }
.sam-linie { position: absolute; left: 16.66%; right: 16.66%; top: 142px; height: 2px; background: #DAD6CA; }
.sam-weg .sam-linie > i[data-at] { display: block; opacity: 1; height: 100%; width: 0; background: var(--green); transition: width 4.2s linear; }
.sam-weg .sam-linie > i.on { width: 100%; }
.sam-weg .sam-linie > i:not(.on) { transition: none; }

@media (max-width: 1080px) {
  .sam-msg { right: -14px; }
  .sam-hero .sam-body { grid-template-columns: minmax(0, 1fr) 280px; }
  .sam-rw { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 660px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
  .sam-hero .sam-side { display: none; }
  .sam-hero .sam-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .sx-pvs_samedi { padding-top: 18px; }
  .sam-fall, .sam-rw-g { --rh: 11px; }
  .sam-chrome { height: 28px; padding: 0 10px; gap: 5px; }
  .sam-chrome > i { width: 8px; height: 8px; }
  .sam-tab { height: 22px; margin-left: 8px; font-size: 11px; padding: 0 14px 0 8px; }
  .sam-url { display: none; }
  .sam-top { gap: 8px; padding: 0 8px 0 6px; }
  .sam-logo { font-size: 17px; }
  .sam-logo .sam-hex { width: 19px; height: 19px; }
  .sam-nav span { gap: 4px; padding: 0 7px; font-size: 12px; }
  .sam-nav span:nth-child(3), .sam-ic i:nth-child(1), .sam-ic i:nth-child(2), .sam-ic i:nth-child(3) { display: none; }
  .sam-ic { gap: 7px; }
  .sam-hero .sam-nav .mehr { display: none; }
  .sam-bar { padding: 0 6px; gap: 5px; }
  .sam-bar > .sam-b-ic:nth-child(2) { display: none; }
  .sam-ch > i, .sam-zeit { flex-basis: 24px; }
  .sam-zeit time { padding-right: 4px; font-size: 9px; }
  .sam-zeit time.h { font-size: 11.5px; }
  .sam-hero .sam-ch .c2, .sam-hero .sam-col.c2, .sam-hero .sam-ch .c3, .sam-hero .sam-col.c3 { display: none; }
  .sam-t { font-size: 11px; line-height: 13.5px; padding-left: 5px; }
  .sam-t b { font-size: 11.5px; }
  .sam-t.neu b { font-size: 12px; }
  .sam-msg { left: 8px; right: 8px; bottom: 12px; width: auto; padding: 11px 11px 12px; border-radius: 18px; }
  .sam-b { font-size: 13.5px; }

  .sam-wahl { display: none; }
  .sam-pick { display: block; margin-top: 22px; }
  .sam-pick select { width: 100%; height: 50px; padding: 0 44px 0 16px; border-radius: 14px; border: 1px solid #CFCBBE; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314161B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center / 16px; font: inherit; font-size: 16.5px; font-weight: 600; color: var(--ink); -webkit-appearance: none; appearance: none; }
  .sam-panel { margin-top: 18px; }
  .sam-fall { min-height: 480px; }
  .sam-fall .sam-msg.klein, .sam-ruf { margin: -22px 6px 0 0; }
  .sam-msg.klein { width: auto; max-width: 318px; left: auto; }
  .sam-ruf { height: 52px; }
  /* am Handy zeigt das Fenster nur die Seitenleiste, wenn dort etwas passiert */
  .sam-body.mit, .sam-rw .sam-body.mit { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sam-body.mit .sam-cal { display: none; }
  .sam-body.mit .sam-side { border-left: 0; }
  .sam-fall .sam-body.nur .sam-ch .c2, .sam-fall .sam-body.nur .sam-col.c2 { display: none; }
  .sam-m-t { font-size: 11px; }
  .sam-m-t i, .sam-m-t span { height: 18px; line-height: 18px; }
  .sam-pr { height: 31px; font-size: 13px; }
  .sam-f { grid-template-columns: 124px minmax(0, 1fr); }
  .sam-f label { font-size: 12px; }
  .sam-f > span { font-size: 12.5px; }
  .sam-pt { font-size: 13px; }

  .sam-rw { margin-top: 28px; gap: 30px; }
  .sam-listen { gap: 14px; }
  .sam-li h3 { font-size: 15px; }
  .sam-li li { padding-left: 20px; font-size: 15px; margin-bottom: 8px; }
  .sam-doku { margin-top: 20px; padding-top: 22px; }

  .sam-wegf { margin-top: 28px; }
  .sam-weg { gap: 8px; }
  .sam-g { height: 84px; border-radius: 13px; }
  .sam-wort { padding: 3px 7px 3px 5px; font-size: 13px; gap: 2px; }
  .sam-wort .sam-hex { width: 13px; height: 13px; }
  .sam-weg .sam-draht[data-at] { width: 10px; margin: 0 4px; }
  .sam-phm { width: 22px; height: 22px; border-radius: 6px; }
  .sam-phm img { width: 13px; height: 13px; }
  .sam-g.g2 { padding: 0 12px; gap: 7px; }
  .sam-sw { width: 24px; height: 14px; }
  .sam-sw::after { width: 10px; height: 10px; }
  .sam-sw.on::after { left: 12px; }
  .sam-g.g3 { gap: 6px; font-size: 15px; }
  .sam-uhr { width: 26px; height: 26px; }
  .sam-uhr svg { width: 15px; height: 15px; }
  .sam-pkt { width: 22px; height: 22px; margin-top: 12px; }
  .sam-linie { top: 106px; }
  .sam-st > b { margin-top: 9px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sam-t.neu.on::after, .sam-frei, .sam-ruf.on .sam-ruf-i, .sam-welle i { animation: none; }
}
