/* ==========================================================
   hypotheken-schweiz.ch – Cura Wealth GmbH
   Farben und Schrift gemäss Cura Group Corporate Design
   ========================================================== */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Cura Wealth – Blau (CI) */
  --cw-900: #000b25;
  --cw-800: #00203e;
  --cw-700: #003761;
  --cw-600: #00528c;
  --cw-500: #0062a7;
  --cw-100: #dde7f1;   /* heller Schwung-Ton */
  --cw-50:  #f2f6fa;

  --ink:    #231f20;   /* CI-Schwarz */
  --muted:  #56606d;
  --line:   #d5dee8;
  --paper:  #ffffff;

  --ok:     #0f6e56;  --ok-bg:   #e3f4ee;
  --warn:   #8a5300;  --warn-bg: #fbf0dc;
  --bad:    #a32d2d;  --bad-bg:  #fbeaea;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cw-500); text-underline-offset: 3px; }
a:hover { color: var(--cw-700); }
:focus-visible { outline: 3px solid var(--cw-500); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; color: var(--cw-800); }
h1 { font-weight: 300; font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.015em; }
h2 { font-weight: 300; font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--cw-800); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font);
  padding: 15px 26px; border-radius: var(--radius);
  border: 2px solid var(--cw-500); background: var(--cw-500); color: #fff;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--cw-700); border-color: var(--cw-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--cw-500); }
.btn-ghost:hover { background: var(--cw-50); color: var(--cw-700); }
.btn-light { background: #fff; border-color: #fff; color: var(--cw-800); }
.btn-light:hover { background: var(--cw-100); border-color: var(--cw-100); color: var(--cw-900); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── Header ───────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand img { width: 152px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 400; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--cw-500); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--cw-500); color: var(--cw-800); font-weight: 600; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--cw-600) !important; font-weight: 600 !important; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .header-inner { min-height: 70px; }
  .brand img { width: 128px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: var(--cw-800); position: relative; transition: transform .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-phone { margin-top: 16px; }
}

/* ── Hero (Startseite) ────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--cw-900); color: #e8eef5;
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero-swoosh { position: absolute; z-index: -1; right: -6%; bottom: -2px; width: 82%; height: 78%; }
.hero-swoosh path { fill: url(#swooshGrad); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-lead { font-size: 1.2rem; font-weight: 300; color: #c9d6e4; max-width: 46ch; margin-bottom: 1.6em; }
.hero-points { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 12px; align-items: baseline; color: #dfe8f1; }
.hero-points li::before { content: ""; flex: 0 0 auto; width: 14px; height: 7px; border-radius: 0 0 14px 14px / 0 0 7px 7px; background: var(--cw-500); transform: translateY(-2px) rotate(-18deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }

/* Schnellcheck */
.quickcheck {
  background: #fff; color: var(--ink); border-radius: 6px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.quickcheck h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: .25em; }
.quickcheck > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.2em; }
.qc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.qc-result { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.qc-figure { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.qc-figure .num { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 300; line-height: 1; color: var(--cw-800); font-variant-numeric: tabular-nums; }
.qc-figure .num.ok { color: var(--ok); } .qc-figure .num.warn { color: var(--warn); } .qc-figure .num.bad { color: var(--bad); }
.qc-figure .lbl { font-size: .9rem; color: var(--muted); text-align: right; max-width: 22ch; line-height: 1.4; }
.qc-gauge { position: relative; height: 8px; background: var(--cw-50); border-radius: 8px; margin: 16px 0 6px; overflow: hidden; }
.qc-gauge span { position: absolute; inset: 0 auto 0 0; border-radius: 8px; transition: width .35s ease, background .35s; }
.qc-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.qc-verdict { margin: 14px 0 18px; font-size: .95rem; }
.qc-verdict strong { color: var(--cw-800); }

/* ── Formfelder (allgemein) ───────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: .875rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
  border: 1px solid #b9c6d4; border-radius: var(--radius); background: #fff;
  padding: 11px 12px; min-height: 46px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cw-500); box-shadow: 0 0 0 3px rgba(0, 98, 167, .18); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.field .error { font-size: .82rem; color: var(--bad); }
.input-chf { position: relative; }
.input-chf input { padding-left: 50px; font-variant-numeric: tabular-nums; }
.input-chf::before { content: "CHF"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: .85rem; color: var(--muted); pointer-events: none; }
.field label.check, .check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--cw-500); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 4px; }
.radio-row label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ink); font-size: .95rem; }
.radio-row input { accent-color: var(--cw-500); width: 18px; height: 18px; }

.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: .95rem; }
.form-status.show { display: block; }
.form-status.ok  { background: var(--ok-bg);  color: var(--ok);  border-left: 4px solid var(--ok); }
.form-status.bad { background: var(--bad-bg); color: var(--bad); border-left: 4px solid var(--bad); }

@media (max-width: 640px) {
  .form-grid, .qc-fields { grid-template-columns: 1fr; }
}

/* ── Abschnitte ───────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--cw-50); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Leistungen als Liste mit Linien */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 80px); border-top: 1px solid var(--line); }
.service { padding: 28px 0 30px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; }
.service svg { width: 36px; height: 36px; color: var(--cw-500); margin-top: 2px; }
.service h3 { margin-bottom: .35em; }
.service p { margin: 0; color: var(--muted); }

/* Bankregeln */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.rule { border-top: 3px solid var(--cw-500); padding-top: 22px; }
.rule .figure { font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 300; line-height: 1; color: var(--cw-800); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.rule h3 { font-size: 1.1rem; }
.rule p { color: var(--muted); margin: 0; }
.rules-note { margin-top: 36px; font-size: .95rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 860px) { .rules, .services { grid-template-columns: 1fr; } }

/* Modelle-Tabelle */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.models { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .98rem; }
.models th, .models td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.models thead th { font-weight: 600; color: var(--cw-800); font-size: 1.05rem; border-bottom: 2px solid var(--cw-800); }
.models tbody th { font-weight: 600; color: var(--muted); width: 18%; font-size: .92rem; }

/* Bildband mit Ablauf */
.band { position: relative; color: #fff; background: var(--cw-800); overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .9; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 11, 37, .96) 0%, rgba(0, 32, 62, .88) 48%, rgba(0, 32, 62, .1) 100%); }
.band .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.band h2 { color: #fff; max-width: 18ch; }
.band .lead { color: #c9d6e4; max-width: 50ch; font-size: 1.1rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; max-width: 560px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(step); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 300; color: #fff;
}
.steps h3 { color: #fff; margin: 4px 0 .2em; font-size: 1.08rem; }
.steps p { margin: 0; color: #c9d6e4; font-size: .98rem; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-weight: 600; color: var(--cw-800); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--cw-500); border-bottom: 2px solid var(--cw-500); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 70ch; }

/* CTA-Streifen */
.cta-strip { background: var(--cw-500); color: #fff; }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.cta-strip h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-strip p { margin: 0; color: #dbe8f4; }

/* ── Unterseiten ──────────────────────────────────────── */
.page-head { background: var(--cw-800); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5vw, 64px); }
.page-head .hero-swoosh { width: 60%; height: 130%; right: -10%; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .3em; max-width: 20ch; }
.page-head p { color: #c9d6e4; font-size: 1.1rem; max-width: 60ch; margin: 0; }

.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: 1.55rem; margin-top: 2.2em; font-weight: 400; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.6em; font-size: 1.08rem; }
.legal p, .legal li { color: #3a3f47; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .data-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .97rem; }
.legal .data-table th, .legal .data-table td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .data-table th { color: var(--muted); font-weight: 600; width: 38%; }
.legal .data-table th, .legal .data-table td, .legal p { overflow-wrap: anywhere; hyphens: auto; }
.legal .stand { color: var(--muted); font-size: .92rem; margin-top: 3em; }

.contact-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(32px, 6vw, 80px); }
.contact-aside { border-left: 3px solid var(--cw-500); padding-left: 28px; align-self: start; }
.contact-aside h2 { font-size: 1.3rem; font-weight: 600; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 18px; }
.contact-aside dd { margin: 4px 0 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } .contact-aside { order: -1; } }

.notfound { padding: clamp(80px, 12vw, 160px) 0; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--cw-900); color: #b9c7d6; font-size: .95rem; padding-top: 64px; }
.footer-swoosh { position: absolute; z-index: -1; right: 0; bottom: 0; width: 70%; height: 100%; }
.footer-swoosh path { fill: rgba(0, 82, 140, .16); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .9fr; gap: 36px; padding-bottom: 48px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; }
.footer-title { font-size: .95rem; font-weight: 600; color: #fff; margin: 0 0 12px; }
.site-footer address { font-style: normal; }
.site-footer a { color: #dfe8f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 28px; font-size: .85rem; color: #8ea0b4; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-swoosh { width: 120%; height: 50%; }
}

/* ── Druck (Rechner-Ergebnis) ─────────────────────────── */
@media print {
  .site-header, .site-footer, .send-block, .r-actions, .skip-link, .page-head .hero-swoosh { display: none !important; }
  .page-head { background: none; color: #000; padding: 0 0 12px; }
  .page-head h1, .page-head p { color: #000; }
  body { font-size: 11pt; }
  .r-card { break-inside: avoid; }
}

/* ── Tragbarkeitsrechner ──────────────────────────────── */
.rechner-section { background: var(--cw-50); padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.rechner-wrap { max-width: 820px; margin: 0 auto; }
.r-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 3vw, 28px); margin-bottom: 16px; }
.r-section-label { font-size: 1.05rem; font-weight: 600; color: var(--cw-800); margin: 0 0 1rem; }
.r-label-note { font-weight: 400; color: var(--muted); font-size: .92rem; margin-left: 6px; }
.r-field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 560px) { .r-field-grid-2 { grid-template-columns: 1fr; } }

.r-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.r-metric { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--cw-600); border-radius: 6px; padding: 14px 16px; }
.r-metric .lbl { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.r-metric .val { font-size: 1.55rem; font-weight: 300; color: var(--cw-800); font-variant-numeric: tabular-nums; line-height: 1.2; }
.r-metric .sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.r-metric.ok   { border-top-color: var(--ok); }   .r-metric.ok .val   { color: var(--ok); }
.r-metric.warn { border-top-color: #e0951f; }      .r-metric.warn .val { color: var(--warn); }
.r-metric.bad  { border-top-color: var(--bad); }  .r-metric.bad .val  { color: var(--bad); }

.r-verdict { border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; border: 1px solid transparent; }
.r-verdict.ok   { background: var(--ok-bg);   border-color: #a6dcc8; }
.r-verdict.bad  { background: var(--bad-bg);  border-color: #f0c0c0; }
.r-verdict.warn { background: var(--warn-bg); border-color: #f2cf8f; }
.r-verdict h3 { font-size: 1.1rem; margin-bottom: 4px; }
.r-verdict h3.ok { color: var(--ok); } .r-verdict h3.bad { color: var(--bad); } .r-verdict h3.warn { color: var(--warn); }
.r-verdict p { font-size: .95rem; color: #3a3f47; margin-bottom: 10px; }
.r-bar-wrap { height: 8px; background: rgba(0,0,0,.08); border-radius: 8px; overflow: hidden; margin: 6px 0 4px; }
.r-bar-fill { height: 100%; border-radius: 8px; transition: width .35s ease, background .35s; }
.r-bar-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

.r-fintable, .r-detail-table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.r-fintable td { padding: 9px 0; border-bottom: 1px solid #edf1f5; color: #3a3f47; vertical-align: top; }
.r-fintable td:last-child { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; padding-left: 12px; }
.r-fintable tr:last-child td { border-bottom: none; }
.r-fintable tr.divider td { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; color: var(--cw-800); }
.r-fintable .sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.r-fintable tr.indent td { font-size: .85rem; }
.r-fintable tr.indent td:first-child { padding-left: 16px; color: var(--muted); }
.r-fintable .hypo1-val { color: var(--cw-700) !important; }
.r-fintable .hypo2-val { color: var(--cw-500) !important; }
.r-fintable .ek-val { color: var(--ok) !important; }
.r-fintable .amber { color: var(--warn) !important; }
.r-fintable td.r-note { text-align: left !important; font-weight: 400 !important; white-space: normal !important; font-size: .85rem; padding-top: 12px; line-height: 1.5; }
.r-note.ok { color: var(--ok) !important; } .r-note.bad { color: var(--bad) !important; }

.r-detail-table { table-layout: fixed; min-width: 520px; }
.r-detail-table td { padding: 10px 0; border-bottom: 1px solid #edf1f5; color: #3a3f47; vertical-align: top; }
.r-detail-table td:not(:first-child) { text-align: right; font-weight: 600; color: var(--ink); width: 24%; padding-left: 8px; }
.r-detail-table tr.total td { font-weight: 600; color: var(--cw-800); font-size: .98rem; border-top: 1px solid var(--line); border-bottom: none; padding-top: 12px; }
.r-col-head { font-size: .82rem; font-weight: 600 !important; color: var(--muted) !important; border-bottom: 1px solid var(--line) !important; }
.r-col-sub { font-weight: 400; font-size: .72rem; }
.r-row-sub { color: var(--muted); font-size: .8rem; }
.r-raised { font-size: .75rem; color: var(--warn); }
.r-eff-val { color: var(--cw-500) !important; }

.r-info-box { background: var(--cw-50); border-left: 3px solid var(--cw-500); padding: 12px 14px; font-size: .88rem; color: var(--cw-800); margin-top: 1rem; line-height: 1.6; }
.r-actions { display: flex; justify-content: flex-end; margin: 4px 0 16px; }
.send-block { border-top: 4px solid var(--cw-500); }
.send-title { font-size: 1.45rem; font-weight: 400; margin-bottom: .3em; }
.send-intro { color: var(--muted); margin-bottom: 1.4em; }
.r-disclaimer { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 1.5rem; line-height: 1.6; }
