/* Ratgeber „KI-Telefonassistent“ (scripts/seiten/rg_kitelefon.py). Präfix rgk-. */
.rgk-kopf, .rgk-sec { --k-ink: #131722; --k-ink7: #3d4659; --k-ink5: #687184; --k-ink4: #9aa1ae; --k-hair: #e6e8ee; }

/* ---------- Kopf: Antwort und Vergleich ---------- */
body .hero-stage.rgk-kopf:not(#_) { padding-top: 56px; }
body .hero-stage.rgk-kopf h1:not(#_):not(#__) { font-size: clamp(31px, 4.2vw, 54px); line-height: 1.08; max-width: 22ch; margin-bottom: 22px; hyphens: manual; -webkit-hyphens: manual; text-wrap: balance; }
body .hero-stage.rgk-kopf .lede:not(#_) { max-width: 760px; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; }
.rgk-stand { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); }

.rgk-tool { max-width: 1000px; margin: 40px auto 0; padding: 28px; border-radius: 28px; border: 1px solid var(--hair); background: linear-gradient(180deg, #F6F4EE, #EFECE4); text-align: left; }
.rgk-ann { max-width: 820px; margin: 18px 4px 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.rgk-vs { display: flex; flex-direction: column; gap: 18px; color: var(--k-ink); }
.rgk-anrufer { display: flex; align-items: flex-start; gap: 12px; align-self: center; width: min(100%, 560px); padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(19,23,34,.05), 0 20px 40px -28px rgba(19,23,34,.35); transform: translateY(8px); }
.k-flow .rgk-anrufer.on { transform: none; }
.rgk-av { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: #eef0f4; color: var(--k-ink5); font-size: 13px; font-weight: 600; }
.rgk-anrufer-t { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; min-width: 0; }
.rgk-anrufer-t b { font-size: 14.5px; font-weight: 600; }
.rgk-anrufer-t > span:last-child { grid-column: 1 / -1; font-size: 16px; line-height: 1.45; }
.rgk-welle { display: flex; align-items: center; gap: 3px; height: 16px; }
.rgk-welle i { width: 3px; height: calc(var(--h) * 1px); border-radius: 2px; background: #4f46e5; animation: kcWave 1s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -70ms); }

.rgk-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rgk-sp { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.55); border: 1px solid rgba(19,23,34,.06); }
.rgk-ki, .rgk-pat { max-width: 88%; margin: 0; padding: 9px 13px; font-size: 14.5px; line-height: 1.4; transform: translateY(8px); }
.rgk-ki { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: #4f46e5; color: #fff; }
.rgk-pat { align-self: flex-start; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 0 0 1px rgba(19,23,34,.06); }
.k-flow .rgk-ki.on, .k-flow .rgk-pat.on { transform: none; }

.rgk-mail, .rgk-kal { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(19,23,34,.06), 0 18px 36px -26px rgba(19,23,34,.4); transform: translateY(10px); }
.k-flow .rgk-mail.on, .k-flow .rgk-kal.on { transform: none; }
.rgk-mail-h { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eef0f4; }
.rgk-mail-h i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #f0f3f9; color: var(--k-ink5); }
.rgk-mail-h svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rgk-mail-h span { display: flex; flex-direction: column; min-width: 0; }
.rgk-mail-h b { font-size: 13.5px; font-weight: 600; }
.rgk-mail-h small { font-size: 12px; color: var(--k-ink5); }
.rgk-mail-h time { margin-left: auto; font-size: 12px; color: var(--k-ink4); }
.rgk-mail-s { font-size: 14.5px; font-weight: 600; }
.rgk-mail p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--k-ink7); }
.rgk-mail .k-badge, .rgk-kal .k-badge { align-self: flex-start; margin-top: 2px; }
.rgk-kal .k-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rgk-kal-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #eef0f4; }
.rgk-kal-h b { font-size: 14px; font-weight: 600; }
.rgk-kal-h small { font-size: 12px; }
.rgk-kal-r { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; }
.rgk-kal-r time { font-size: 11.5px; color: var(--k-ink4); font-variant-numeric: tabular-nums; }
.rgk-t { display: flex; flex-direction: column; min-width: 0; padding: 5px 9px; border-radius: 6px; border-left: 3px solid #c5cad6; background: #f4f5f8; font-size: 12.5px; line-height: 1.3; }
.rgk-t.ruhig { padding: 8px 9px; }
.rgk-t.neu { border-left-color: #17998a; background: #e6f5f2; color: #0d5249; }
.rgk-t.neu b { font-size: 13px; font-weight: 600; }
.rgk-t.neu small { font-size: 12px; opacity: .8; }
.k-flow .rgk-kal.on .rgk-t.neu { animation: rgkPop .9s var(--ease) both .2s; }
@keyframes rgkPop { 0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(23,153,138,.45); } 60% { transform: none; } 100% { box-shadow: 0 0 0 10px rgba(23,153,138,0); } }

/* ---------- Abschnitte ---------- */
.rgk-sec .sec-head h2 { hyphens: manual; -webkit-hyphens: manual; }
.rgk-sec .sec-head p { max-width: 680px; }
.rgk-link { margin: 16px 0 0 !important; }
.rgk-link a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--accent-deep); }
.rgk-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tabellen */
.rgk-tab { width: 100%; max-width: 1000px; 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; }
.rgk-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); }
.rgk-tab tbody th, .rgk-tab td { padding: 18px 22px; vertical-align: top; border-bottom: 1px solid var(--hair); }
.rgk-tab tbody tr:last-child > * { border-bottom: 0; }
.rgk-tab tbody th { width: 24%; font-weight: 600; color: var(--ink); }
.rgk-tab td { color: var(--ink-2); }
.rgk-tab-preis td:nth-child(2) { width: 34%; }
.rgk-tab-preis td b { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.rgk-tab-krit td:nth-child(2) { width: 36%; color: var(--ink); }
.rgk-fuss { max-width: 1000px; margin: 14px auto 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }

.rgk-preis { max-width: 1000px; margin: 28px auto 0; padding: 32px 36px; border-radius: 24px; background: var(--paper-2); border: 1px solid var(--hair); text-align: left; }
.rgk-preis h3 { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.rgk-preis p { max-width: 820px; margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }

/* Fachrichtungen */
.rgk-fachs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1100px; margin: 40px auto 0; }
.rgk-fach { display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: 22px; border: 1px solid var(--hair); background: #fff; text-align: left; }
.rgk-fach h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.rgk-fach p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.rgk-fach-l { display: flex; flex-direction: column; gap: 6px; margin: auto 0 0 !important; padding-top: 14px; border-top: 1px solid var(--hair); }
.rgk-fach-l a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent-deep); }
.rgk-fach-l svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Datenschutz */
.rgk-ds { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 56px; max-width: 1100px; margin: 0 auto; padding: 48px; border-radius: 24px; background: var(--paper-2); border: 1px solid var(--hair); }
.rgk-ds h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.025em; font-weight: 500; margin: 0 0 16px; }
.rgk-ds-t p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.rgk-call { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(19,23,34,.05), 0 24px 48px -28px rgba(19,23,34,.35); text-align: left; color: var(--k-ink); }
.rgk-call-h { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid #eceef3; }
.rgk-call-h b { font-size: 15.5px; font-weight: 600; }
.rgk-call-h .rgk-welle { margin-left: auto; }
.rgk-l { display: flex; max-width: 88%; margin: 0; font-size: 15px; line-height: 1.4; transform: translateY(8px); }
.rgk-l span { padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: #f1f2f6; }
.rgk-l.p { align-self: flex-end; }
.rgk-l.p span { border-radius: 16px 16px 5px 16px; background: #4f46e5; color: #fff; }
.k-flow .rgk-l.on { transform: none; }
.rgk-call-f { display: flex; justify-content: flex-end; margin-top: 2px; }

/* Einführung */
.rgk-mini { max-width: 220px; }
.rgk-steps .sx-step-g { min-height: 236px; }
.rgk-mini .k-row span { font-size: 13px; color: var(--k-ink7); }
.rgk-mini .k-badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Praxishub */
.rgk-ph { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; max-width: 1100px; margin: 0 auto; padding: 56px 72px 0 64px; border-radius: 32px; border: 1px solid var(--hair); overflow: hidden;
  background: radial-gradient(620px 420px at 82% 30%, rgba(79,70,229,.13), transparent 70%), linear-gradient(180deg, #F6F4EE, #EFECE4); }
.rgk-ph-t { padding-bottom: 56px; }
.rgk-ph h2 { max-width: 560px; margin: 0 0 18px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.rgk-ph-t > p { max-width: 520px; margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.rgk-ph-g { align-self: end; width: 290px; margin-bottom: -34px; }
.rgk-ph-g .k-flow { width: 100%; }
.rgk-phone { width: 100%; }
.rgk-phone .kp-screen { position: absolute; inset: 9px; height: auto; }
.rgk-phone .kc-talk { -webkit-mask-image: linear-gradient(transparent, #000 26px); mask-image: linear-gradient(transparent, #000 26px); }
.rgk-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; max-width: 1000px; margin: 34px auto 0; }
.rgk-links a { position: relative; display: block; padding: 16px 30px 16px 0; border-top: 1px solid var(--hair); color: var(--ink); text-align: left; }
.rgk-links b { display: block; font-size: 17px; font-weight: 600; color: var(--accent-deep); }
.rgk-links span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.rgk-links svg { position: absolute; right: 2px; top: 20px; width: 17px; height: 17px; fill: none; stroke: var(--accent-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rgk-links a:hover svg { transform: translateX(3px); }
.rgk-sec .hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 34px 0 0; }

.rgk-q-sec { padding: 36px 0 8px; }
.rgk-quellen { max-width: 860px; margin: 0 auto; text-align: center; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.rgk-quellen a { color: var(--accent-deep); font-weight: 600; }

@media (max-width: 960px) {
  .rgk-fachs { grid-template-columns: 1fr; max-width: 680px; }
  .rgk-ds { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
  .rgk-ph { padding: 44px 40px 0; gap: 32px; }
  .rgk-ph-g { width: 270px; }
  .rgk-links { grid-template-columns: 1fr; max-width: 680px; }
  .rgk-links a:last-child { border-bottom: 1px solid var(--hair); }
}
@media (max-width: 720px) {
  body .hero-stage.rgk-kopf:not(#_) { padding-top: 36px; }
  body .hero-stage.rgk-kopf .hs-copy:not(#_) { text-align: left; }
  body .hero-stage.rgk-kopf h1:not(#_):not(#__) { margin-left: 0; margin-bottom: 16px; }
  .rgk-stand { margin-top: 12px; }
  .rgk-tool { margin-top: 26px; padding: 12px; border-radius: 22px; }
  .rgk-ann { margin: 12px 6px 6px; font-size: 13.5px; }
  .rgk-anrufer { padding: 12px 14px; }
  .rgk-anrufer-t > span:last-child { font-size: 15px; }
  .rgk-spalten { grid-template-columns: 1fr; gap: 10px; }
  .rgk-sp { padding: 12px; border-radius: 16px; }
  .rgk-ki, .rgk-pat { font-size: 14px; }

  .rgk-sec .sec-head { text-align: left; }
  .rgk-sec .sec-head p { margin-left: 0; font-size: 16.5px; }

  .rgk-tab { margin-top: 24px; display: block; border: 0; border-radius: 0; background: none; overflow: visible; }
  .rgk-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rgk-tab tbody { display: grid; gap: 8px; }
  .rgk-tab tr { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 16px 14px; border-radius: 16px; border: 1px solid var(--hair); background: #fff; }
  .rgk-tab tbody th, .rgk-tab td { display: block; width: auto !important; padding: 0; border: 0; }
  .rgk-tab tbody th { font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .rgk-tab td { font-size: 15px; }
  .rgk-tab-preis td b { font-size: 22px; }
  .rgk-tab-krit tbody th { font-size: 16px; color: var(--ink); }
  .rgk-tab td:last-child { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--hair); }
  .rgk-tab-preis td:last-child { color: var(--ink); }
  .rgk-fuss { font-size: 13px; }
  .rgk-preis { padding: 22px 18px; border-radius: 20px; }
  .rgk-preis p { font-size: 16px; }

  .rgk-fachs { margin-top: 24px; gap: 12px; }
  .rgk-fach { padding: 22px 18px 18px; border-radius: 18px; }

  .rgk-ds { padding: 24px 14px 14px; border-radius: 20px; }
  .rgk-ds-t { padding: 0 6px; }
  .rgk-ds-t p { font-size: 16px; }
  .rgk-call { padding: 14px 14px 16px; border-radius: 16px; }
  .rgk-l { max-width: 92%; font-size: 14.5px; }

  .rgk-ph { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 20px 0; border-radius: 24px; }
  .rgk-ph-t { padding-bottom: 0; }
  .rgk-ph h2 { font-size: 32px; }
  .rgk-ph-t > p { font-size: 16.5px; }
  .rgk-ph-g { justify-self: center; width: 270px; margin-bottom: -30px; }
  .rgk-sec .hero-cta { flex-direction: column; }
  .rgk-sec .hero-cta .btn { width: 100%; }
  .rgk-quellen { text-align: left; font-size: 12.5px; }
  .rgk-steps .sx-step { flex-direction: column; }
  .rgk-steps .sx-step-g { flex: none; min-height: 0; padding: 18px 14px; }
  .rgk-mini { max-width: 260px; }
  .rgk-q-sec { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .rgk-welle i { animation: none; }
  .k-flow .rgk-kal.on .rgk-t.neu { animation: none; }
}
