/* /physiotherapie/praxissoftware/ – Ratgeber Praxissoftware für Physiotherapie (scripts/seiten/rg_physiosoftware.py). Präfix rgs- */
.rgs-kopf, .rgs-sec { --k-ink: #131722; --k-ink7: #3d4659; --k-ink5: #687184; --k-ink4: #9aa1ae; --k-hair: #e6e8ee; }

/* ---------- Kopf ---------- */
body .rgs-kopf.hero-stage h1:not(#_):not(#__) { font-size: clamp(36px, 4.4vw, 56px); max-width: none; margin-bottom: 22px; hyphens: manual; -webkit-hyphens: manual; text-wrap: balance; }
body .rgs-kopf.hero-stage .lede:not(#_) { font-size: clamp(17.5px, 1.5vw, 19.5px); line-height: 1.6; max-width: 760px; }
.rgs-kopf .lede strong { color: var(--ink); font-weight: 600; }
.rgs-stand { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.sx-rg_physiosoftware { max-width: 820px; padding: 48px 24px 56px; }

/* Fenster einer Praxissoftware: Verordnung wird geprüft, Serie geplant */
.rgs-win { width: min(100%, 540px); margin: 0 auto; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20,22,27,.08), 0 34px 60px -32px rgba(20,22,27,.45); color: var(--k-ink); text-align: left; overflow: hidden; }
.rgs-win-top { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #F4F5F8; border-bottom: 1px solid var(--k-hair); }
.rgs-win-top > i { width: 10px; height: 10px; border-radius: 50%; background: #D9DCE3; }
.rgs-win-top span { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--k-ink7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rgs-win-body { padding: 8px 20px 20px; }
.rgs-pz { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f1f5; font-size: 14px; }
.rgs-pz span { color: var(--k-ink5); }
.rgs-pz b { font-weight: 600; color: var(--k-ink); min-width: 0; }
.rgs-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e6f4ec; }
.rgs-ok svg { width: 13px; height: 13px; fill: none; stroke: #1a9b59; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.k-flow .rgs-ok[data-at] { transform: scale(.5); transition: opacity .25s, transform .4s cubic-bezier(.2,1.5,.4,1); }
.k-flow .rgs-ok[data-at].on { transform: none; }
.rgs-fazit { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #F3FAF6; font-size: 14px; color: var(--k-ink7); }
.rgs-fazit .k-badge { padding: 3px 10px; font-size: 12px; }
.rgs-fazit b { font-weight: 650; color: var(--k-ink); white-space: nowrap; }
.k-flow .rgs-fazit[data-at] { transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.k-flow .rgs-fazit[data-at].on { transform: none; }
.rgs-serie { margin-top: 14px; }
.rgs-serie-h { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--k-ink5); }
.rgs-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.rgs-chips em { padding: 7px 4px; border-radius: 8px; background: #eef0fb; color: #4338ca; font-style: normal; font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; }
.k-flow .rgs-chips em[data-at] { transform: scale(.85); transition: opacity .25s, transform .35s cubic-bezier(.2,1.4,.4,1); }
.k-flow .rgs-chips em[data-at].on { transform: none; }

/* ---------- Abschnitte ---------- */
.rgs-sec .sec-head h2 { hyphens: manual; -webkit-hyphens: manual; }
.rgs-sec .sec-head p { max-width: 680px; }
.rgs-klein { max-width: 680px; margin: 24px auto 0; text-align: center; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.rgs-sec a:not(.btn) { color: var(--accent-deep); }

/* Tabellen */
.rgs-tab { width: 100%; max-width: 1040px; margin: 40px auto 0; border-collapse: separate; border-spacing: 0; border-radius: 20px; border: 1px solid var(--hair); background: #fff; overflow: hidden; text-align: left; font-size: 15.5px; line-height: 1.5; }
.rgs-tab thead th { padding: 14px 22px; font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--paper-2); border-bottom: 1px solid var(--hair); }
.rgs-tab tbody th, .rgs-tab td { padding: 18px 22px; vertical-align: top; border-bottom: 1px solid var(--hair); }
.rgs-tab tbody tr:last-child > * { border-bottom: 0; }
.rgs-tab tbody th { width: 21%; font-weight: 600; color: var(--ink); hyphens: manual; -webkit-hyphens: manual; }
.rgs-tab td { color: var(--ink-2); }
.rgs-tab td:nth-child(2) { width: 38%; }
.rgs-tab td a { font-weight: 600; }
.rgs-tab2 { max-width: 900px; }
.rgs-tab2 tbody th { width: 30%; }
.rgs-tab2 td:nth-child(2) { width: auto; }

/* Zeitleiste TI und eVO */
.rgs-zeit { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1000px; margin: 44px auto 0; padding: 0; list-style: none; text-align: left; }
.rgs-zeit::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 2px; background: linear-gradient(to right, var(--ink) 0 34%, #D6D2C6 34% 100%); }
.rgs-zeit li { position: relative; padding-top: 34px; }
.rgs-zeit li > i { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.rgs-zeit li.rgs-z-heute > i { background: var(--ink); box-shadow: 0 0 0 4px var(--paper, #FAF9F6); }
.rgs-zeit li.rgs-z-plan > i { border-style: dashed; border-color: #9C988C; }
.rgs-zeit time { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.rgs-zeit h3 { margin: 4px 0 8px; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.rgs-zeit p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Systeme */
.rgs-syse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 40px auto 0; text-align: left; }
.rgs-sys { display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: 20px; border: 1px solid var(--hair); background: #fff; }
.rgs-sys h3 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.rgs-sys small { margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
.rgs-sys p { flex: 1; margin: 14px 0 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.rgs-sys a { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 600; }
.rgs-sys a svg, .rgs-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rgs-sys a:hover svg { transform: translateX(3px); }

/* Wechsel */
.rgs-h3 { max-width: 900px; margin: 56px auto 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-align: left; }
.rgs-schritte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 18px auto 0; padding: 0; list-style: none; counter-reset: rgs; text-align: left; }
.rgs-schritte li { counter-increment: rgs; padding-top: 14px; border-top: 2px solid var(--ink); }
.rgs-schritte b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.rgs-schritte b::before { content: counter(rgs) ". "; color: var(--ink-3); }
.rgs-schritte p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* Praxishub: Anruf und Terminplan */
.rgs-buehne { max-width: 940px; margin: 40px auto 0; padding: 44px 24px; border-radius: 28px; border: 1px solid var(--hair); background: linear-gradient(180deg, #F6F4EE, #EFECE4); }
.rgs-ph { display: flex; flex-direction: column; align-items: center; gap: 0; }
.rgs-ph .kp { width: 268px; }
.rgs-pfeil { width: 0; height: 26px; border-left: 2px dashed #BDB9AC; }
.rgs-plan { width: min(100%, 360px); padding: 6px 16px 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--k-hair), 0 18px 34px -24px rgba(19,23,34,.4); color: var(--k-ink); text-align: left; }
.rgs-plan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 11px; border-bottom: 1px solid #f0f1f5; }
.rgs-plan-h b { font-size: 15px; font-weight: 600; }
.rgs-slot { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) 22px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f8; font-size: 13.5px; }
.rgs-slot:last-child { border-bottom: 0; }
.rgs-slot time { font-weight: 600; color: var(--k-ink7); font-variant-numeric: tabular-nums; }
.rgs-sw { display: grid; min-width: 0; }
.rgs-sw > .k-sw { min-width: 0; }
.rgs-sw .k-grau { margin-left: 10px; }
.rgs-bel { display: block; width: 100%; min-width: 0; padding: 6px 9px; border-radius: 8px; border-left: 3px solid #4f46e5; background: #f5f6fd; color: var(--k-ink7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rgs-bel b { font-weight: 650; color: var(--k-ink); }
.rgs-slot { min-height: 52px; }
.rgs-slot > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e6f4ec; }
.rgs-slot > i svg { width: 13px; height: 13px; fill: none; stroke: #1a9b59; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.k-flow .rgs-slot > i[data-at] { transform: scale(.5); transition: opacity .25s, transform .4s cubic-bezier(.2,1.5,.4,1); }
.k-flow .rgs-slot > i[data-at].on { transform: none; }

.rgs-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; max-width: 940px; margin: 34px auto 0; text-align: left; }
.rgs-links a { position: relative; display: block; padding: 16px 30px 16px 0; border-top: 1px solid var(--hair); color: var(--ink); }
.rgs-links b { display: block; font-size: 17px; font-weight: 600; color: var(--accent-deep); }
.rgs-links span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.rgs-links svg { position: absolute; right: 2px; top: 20px; width: 17px; height: 17px; stroke: var(--accent-deep); }
.rgs-links a:hover svg { transform: translateX(3px); }
.rgs-sec .hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 34px 0 0; }
.rgs-quellen { max-width: 860px; margin: 44px auto 0; text-align: center; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.rgs-sec .rgs-quellen a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 2px; }
.rgs-ph-sec { padding-bottom: 104px; }

@media (min-width: 881px) {
  .rgs-buehne { padding: 52px 40px; }
  .rgs-ph { flex-direction: row; justify-content: center; }
  .rgs-pfeil { flex: 0 1 70px; min-width: 30px; height: 0; border-left: 0; border-top: 2px dashed #BDB9AC; }
  .rgs-plan { flex: 0 0 360px; }
}
@media (max-width: 880px) {
  .rgs-syse { grid-template-columns: 1fr; max-width: 560px; }
  .rgs-schritte { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .rgs-links { grid-template-columns: 1fr; }
  .rgs-links a:last-child { border-bottom: 1px solid var(--hair); }
}
@media (max-width: 720px) {
  .rgs-br { display: none; }
  body .rgs-kopf.hero-stage .hs-copy:not(#_) { text-align: left; }
  body .rgs-kopf.hero-stage h1:not(#_):not(#__) { font-size: clamp(31px, 8.6vw, 40px); max-width: none; margin-left: 0; margin-bottom: 16px; }
  .rgs-stand { margin-top: 12px; }
  .sx-rg_physiosoftware { padding: 22px 12px 26px; }
  .rgs-win-body { padding: 4px 14px 14px; }
  .rgs-pz { grid-template-columns: minmax(0, 1fr) 22px; gap: 2px 10px; padding: 8px 0; font-size: 13.5px; }
  .rgs-pz span { grid-column: 1; font-size: 12px; }
  .rgs-pz b { grid-column: 1; }
  .rgs-pz .rgs-ok { grid-column: 2; grid-row: 1 / 3; }
  .rgs-fazit { padding: 10px 12px; font-size: 13.5px; }
  .rgs-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .rgs-sec .sec-head { text-align: left; }
  .rgs-sec .sec-head p { margin-left: 0; font-size: 16.5px; }
  .rgs-klein { margin-top: 18px; text-align: left; font-size: 15.5px; }

  .rgs-tab { margin-top: 24px; display: block; border: 0; border-radius: 0; background: none; overflow: visible; }
  .rgs-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rgs-tab tbody { display: grid; gap: 8px; }
  .rgs-tab tr { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 16px 16px 14px; border-radius: 16px; border: 1px solid var(--hair); background: #fff; }
  .rgs-tab tbody th, .rgs-tab td { display: block; width: auto !important; padding: 0; border: 0; }
  .rgs-tab tbody th { font-size: 17px; color: var(--ink); }
  .rgs-tab td { font-size: 15px; }
  .rgs-tab:not(.rgs-tab2) td:last-child { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--hair); color: var(--ink); }

  .rgs-zeit { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; padding-left: 34px; }
  .rgs-zeit::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(to bottom, var(--ink) 0 30%, #D6D2C6 30% 100%); }
  .rgs-zeit li { padding-top: 0; }
  .rgs-zeit li > i { left: -34px; top: 2px; }
  .rgs-zeit time { font-size: 20px; }

  .rgs-syse { margin-top: 24px; gap: 10px; }
  .rgs-sys { padding: 20px 18px 18px; border-radius: 18px; }
  .rgs-h3 { margin-top: 40px; font-size: 20px; }
  .rgs-schritte { grid-template-columns: 1fr; gap: 16px; }

  .rgs-buehne { margin-top: 24px; padding: 22px 14px; border-radius: 22px; }
  .rgs-ph .kp { width: 260px; }
  .rgs-slot { grid-template-columns: 5.2em minmax(0, 1fr) 22px; gap: 8px; font-size: 13px; }
  .rgs-plan { padding: 4px 12px 6px; }
  .rgs-sec .hero-cta { flex-direction: column; }
  .rgs-sec .hero-cta .btn { width: 100%; }
  .rgs-quellen { margin-top: 30px; text-align: left; font-size: 12.5px; }
  .rgs-ph-sec { padding-bottom: 64px; }
}
