/* ==========================================================================
   Homewind – site styles (design "F": emotional + factual)
   Fonts are self-hosted (no requests to Google).
   ========================================================================== */

@font-face { font-family: "Anybody"; src: url("../fonts/Anybody-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-style: normal; font-display: swap; }
@font-face { font-family: "Anybody"; src: url("../fonts/Anybody-Variable-Italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #12142a;
  --ink-2: #1a1d36;
  --pink: #f00f66;
  --pink-dark: #c40a52;
  --pink-light: #ff5c98;
  --plum: #42102d;
  --paper: #f4f3ef;
  --line: #e2dfd8;
  --muted: #45495f;
  --muted-2: #5b5f76;
  --sky: #4cb8f0;
  --w-page: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--pink-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
input[type=range] { accent-color: var(--pink); height: 28px; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .9em; padding: .1em .35em; border-radius: 6px; background: rgba(18,20,42,.06); word-break: break-all; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.vh, .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: 16px; top: -80px; z-index: 2000; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* --- Type --- */
.hero-title { font-family: "Anybody", Inter, sans-serif; font-style: italic; font-stretch: 150%; font-variation-settings: "wdth" 150; font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; line-height: .9; -webkit-text-stroke: 0.035em currentColor; paint-order: stroke fill; }
.hero-title .l2 { display: inline-block; color: var(--pink); -webkit-text-stroke-color: var(--pink); text-shadow: 0.06em 0.07em 0 var(--ink); transform: rotate(-2deg); transform-origin: left center; margin-top: .08em; }
.hero-title.mixed { text-transform: none; letter-spacing: -0.03em; }
.hero-title.mixed .l2 { transform-origin: center; }
.headline { font-family: "Anybody", Inter, sans-serif; font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.label { font-family: "Anybody", Inter, sans-serif; font-stretch: 120%; font-variation-settings: "wdth" 120; text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; font-size: 11px; white-space: nowrap; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.fact { font-family: Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

/* --- Scroll animations (CSS scroll-driven; static where unsupported) --- */
@keyframes f-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes f-line { from { stroke-dashoffset: 2600; } to { stroke-dashoffset: 0; } }
@supports (animation-timeline: view()) {
  .reveal { animation: f-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  .chart-line { stroke-dasharray: 2600; animation: f-line linear both; animation-timeline: view(); animation-range: entry 15% entry 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .chart-line { animation: none !important; }
}

/* --- Layout helpers --- */
.wrap { width: 100%; max-width: calc(var(--w-page) + 48px); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--light { background: #fff; }
.section--paper { background: var(--paper); }
.fan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .fan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:hover { background: var(--pink-light); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1eee8; color: var(--ink); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); color: #fff; background: none; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.btn--outline { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); background: none; }
.btn--disabled { opacity: .5; cursor: not-allowed; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header --- */
.hw-header { position: sticky; top: 0; z-index: 50; background: rgba(244,243,239,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hw-header__bar { max-width: calc(var(--w-page) + 48px); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 24px; }
.hw-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Anybody", Inter, sans-serif; font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase; font-size: 16px; letter-spacing: .01em; }
.hw-logo:hover { color: var(--ink); }
.hw-nav { margin-left: auto; }
.hw-nav__list { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.hw-nav__list a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; }
.hw-nav__list a:hover { color: var(--pink-dark); }
.hw-nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.hw-nav__toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; }
.hw-lang { display: flex; gap: 2px; }
.hw-lang a, .hw-lang span { padding: 14px 6px; font-family: "Anybody", Inter, sans-serif; font-stretch: 120%; font-variation-settings: "wdth" 120; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-decoration: none; color: var(--muted-2); }
.hw-lang span[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--pink); }
.hw-header__cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hw-header__cta:hover { background: var(--pink); color: #fff; }
@media (max-width: 960px) {
  .hw-header__bar { gap: 12px; }
  .hw-nav { order: 3; margin-left: 0; position: relative; }
  .hw-lang { margin-left: auto; }
  .hw-nav__toggle { display: block; }
  .hw-nav__list { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; flex-direction: column; gap: 0; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -12px rgba(18,20,42,.35); }
  .hw-nav.is-open .hw-nav__list { display: flex; }
  .hw-nav__list a { padding: 12px 16px; border-radius: 8px; }
  .hw-nav__list a:hover { background: var(--paper); }
  .hw-header__cta { display: none; }
}

/* --- Sub-pages --- */
.page-head { padding: 72px 0 48px; background: #fff; border-bottom: 1px solid var(--line); }
.page-head .section-title { margin: 0; max-width: 22ch; font-family: "Anybody", Inter, sans-serif; font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 900; letter-spacing: -0.035em; line-height: 1; font-size: clamp(36px, 5vw, 64px); }
.page-head .lead { margin: 16px 0 0; max-width: 640px; font-size: 19px; color: var(--muted); }
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--muted-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b9b5ad; }
.crumbs a { color: var(--muted-2); }
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; font-family: "Anybody", Inter, sans-serif; font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(24px, 2.6vw, 32px); }
.prose h3 { margin-top: 32px; font-size: 20px; font-weight: 700; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose a { font-weight: 600; }
.prose strong { color: var(--ink); }
.prose figure { margin: 32px 0; }
.prose figure img { width: 100%; border-radius: 24px; }
.callout { padding: 16px 20px; border-radius: 16px; background: #fff; box-shadow: inset 4px 0 0 var(--pink), 0 0 0 1px var(--line); color: var(--ink) !important; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 16px; color: var(--ink); background: var(--paper); }
.compare tbody th { font-weight: 700; width: 28%; }
.compare td { color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.faq { display: grid; gap: 8px; max-width: 52rem; }
.faq__group { margin: 48px 0 12px; font-family: "Anybody", Inter, sans-serif; font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 900; letter-spacing: -0.03em; font-size: 26px; }
.faq__group:first-child { margin-top: 0; }
.guide-list { display: grid; gap: 8px; }
.guide-step { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.guide-step[open] { box-shadow: 0 0 0 1.5px var(--ink); }
.guide-step summary { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.guide-step summary::-webkit-details-marker { display: none; }
.guide-step summary::after { content: ""; margin-left: auto; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.guide-step[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.guide-step__body { padding: 0 20px 16px; color: var(--muted); }
.cta-band { margin-top: 64px; padding: 32px; border-radius: 32px; background: var(--ink); color: #fff; }
.cta-band h2 { margin: 0; font-family: "Anybody", Inter, sans-serif; font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 900; letter-spacing: -0.03em; font-size: 28px; color: #fff; }
.cta-band p { margin: 8px 0 0; color: #c3c6dc; }
.cta-band .btn-pair { margin-top: 20px; }
.legal { display: grid; gap: 16px; }
@media (min-width: 960px) { .legal { grid-template-columns: 1fr 1fr; } }
.legal__card { padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.legal__card p + p, .legal__card p + ul { margin-top: 12px; }
.legal__title { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: var(--ink); }
.legal__sub { margin: 24px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.legal__list { padding-left: 1.2em; }
.legal__muted { font-size: 13px; color: var(--muted-2); }
#ki-hinweis { box-shadow: 0 0 0 1.5px var(--pink); }

/* --- Footer --- */
.hw-footer { background: var(--paper); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.hw-footer a { color: var(--ink); font-weight: 600; }
.hw-footer h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---- Tablet & mobile: home page layout overrides (inline styles come from the design source) */
@media (min-width: 640px) {
  .fact-strip > * { flex: 1 1 0 !important; min-width: 0; }
}
@media (max-width: 899px) {
  .ui-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 16px !important; }
}
@media (min-width: 900px) {
  .ui-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
/* How it works: stacked steps with downward arrows below 1180px */
@media (max-width: 1179px) {
  .how-flow { flex-direction: column !important; flex-wrap: nowrap !important; }
  .how-step { flex: none !important; display: grid !important; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 40px; }
  .how-step > :first-child { grid-column: 1; grid-row: 1 / 6; }
  .how-step > :nth-child(2) { grid-column: 2; grid-row: 2; margin-top: 0 !important; }
  .how-step > :nth-child(3) { grid-column: 2; grid-row: 3; }
  .how-step > :nth-child(4) { grid-column: 2; grid-row: 4; }
  .how-arrow { flex: none !important; width: min(380px, 100%); height: 96px !important; padding: 0 !important; min-width: 0 !important;
               display: flex !important; flex-direction: row !important; justify-content: center; align-items: center; gap: 36px !important; }
  .how-arrow > div { position: static !important; display: flex; align-items: center; gap: 2px; }
  .how-arrow svg { transform: rotate(90deg); width: 60px; height: 18px; margin: 0 -18px; }
  .how-arrow .label, .how-arrow span { order: 2; }
}
@media (max-width: 639px) {
  .how-step { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .how-step > * { grid-column: 1 !important; grid-row: auto !important; }
  .how-step > :nth-child(2) { margin-top: 20px !important; }
  .how-arrow { width: 100%; height: 88px !important; }
}
.how-step h3 { line-height: 1.15 !important; }
@media (min-width: 640px) and (max-width: 1023px) {
  .fact-strip > * { padding: 24px !important; }
  .fact-strip .hero-title { font-size: 60px !important; }
}

/* ---- Mobile refinements */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* Hero: one split button on small screens */
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .hero-cta { width: 100%; flex-wrap: nowrap !important; gap: 0 !important; }
  .hero-cta > a { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; height: 52px !important; padding: 0 10px !important; font-size: 15px; white-space: nowrap; }
  .hero-cta > a:first-child { border-radius: 999px 0 0 999px !important; }
  .hero-cta > a:last-child { border-radius: 0 999px 999px 0 !important; background: #ffffff; }
}
@media (max-width: 360px) { .hero-cta > a { font-size: 14px; padding: 0 6px !important; } }

/* Range tool: chart first, sliders below it (until side by side) */
@media (max-width: 999px) {
  .range-row { flex-direction: column; align-items: stretch !important; gap: 0 !important; }
  .range-copy { display: contents; }
  .range-copy > h2 { order: 1; }
  .range-copy > p { order: 2; }
  .range-panel { order: 3; flex: none !important; margin-top: 28px; }
  .range-ctrl { order: 4; margin-top: 28px !important; }
}

/* Phone screens: horizontal scroller on small screens */
@media (max-width: 640px) {
  .ui-grid { display: flex !important; gap: 16px !important; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
             margin-left: -24px; margin-right: -24px; padding: 0 24px 12px; scroll-padding: 0 24px; scrollbar-width: none; }
  .ui-grid::-webkit-scrollbar { display: none; }
  .ui-grid > * { flex: 0 0 52%; scroll-snap-align: start; }
  .ui-grid--esp > * { flex: 0 0 40%; }
  .ui-grid--esp img { width: 100% !important; height: auto; }
}

/* How it works: arrows centred; labels sit beside without shifting the line */
@media (max-width: 1179px) {
  .how-arrow { position: relative; }
  .how-arrow:not(.how-arrow--two) > .label { position: absolute; left: calc(50% + 16px); top: 50%; transform: translateY(-50%); }
  .how-arrow--two > div { position: relative !important; top: auto !important; left: auto !important; width: 24px; height: 60px; justify-content: center; }
  .how-arrow--two > div > .label { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); margin: 0 !important; }
  .how-arrow svg { margin: 0 -18px; flex: none; }
}
@media (max-width: 639px) {
  .how-arrow { height: 76px !important; }
}

/* Tighter vertical rhythm on phones */
@media (max-width: 640px) {
  #main > section { padding-top: 64px !important; padding-bottom: 64px !important; }
  #main > section > div[style*="padding: 1"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  #main > section:has(> div[style*="padding: 1"]) { padding-top: 0 !important; padding-bottom: 0 !important; }
  .fact-strip > * { padding: 24px !important; }
  .fact-strip .hero-title { font-size: 56px !important; }
  #main > section#top { padding-top: 28px !important; padding-bottom: 28px !important; }
  #main > section:nth-of-type(2) { padding-top: 8px !important; }
  #main [style*="margin-top: 72px"], #main [style*="margin-top: 64px"], #main [style*="margin: 64px 0 0"] { margin-top: 40px !important; }
  #main [style*="margin-top: 56px"], #main [style*="margin: 48px 0 0"], #main [style*="margin-top: 44px"] { margin-top: 32px !important; }
  #main [style*="padding-top: 48px"] { padding-top: 32px !important; }
  #main #guide { gap: 28px !important; }
}
@media (max-width: 1179px) { .how-arrow svg { max-width: none !important; } }

/* Range tool on phones: panel + sliders fit one screen */
@media (max-width: 640px) {
  .range-panel { margin-top: 24px !important; border-radius: 24px !important; }
  .range-panel > div:first-of-type { flex-wrap: nowrap !important; gap: 12px !important; padding: 12px 16px !important; }
  .range-panel > div:first-of-type > svg { width: 64px; height: 54px; flex: none; }
  .range-panel > div:first-of-type > div { flex: 1 1 auto !important; min-width: 0; }
  .range-panel > div:first-of-type > div > div:last-child { font-size: 38px !important; }
  .range-panel > div:first-of-type dl { font-size: 11px !important; gap: 3px 10px !important; }
  .range-panel > div:last-child { padding: 4px 2px 10px !important; }
  .range-ctrl { margin-top: 16px !important; gap: 8px !important; }
  .range-ctrl > div:last-child { padding-top: 8px !important; }
  .range-ctrl input[type="range"] { margin: 4px 0; }
}

/* ---- Consent banner (Google Analytics opt-in) */
.hw-footer__link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hw-footer__link[hidden] { display: none; }
.hw-consent { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px;
  background: #12142a; color: #ffffff; border-radius: 24px; padding: 20px 24px; box-shadow: 0 24px 60px -20px rgba(18,20,42,.55); }
.hw-consent[hidden] { display: none; }
.hw-consent__title { margin: 0; font-weight: 700; font-size: 17px; }
.hw-consent__text { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #c3c6dc; }
.hw-consent__text a { color: #ffffff; text-underline-offset: 3px; }
.hw-consent__actions { margin-top: 16px; display: flex; gap: 12px; }
.hw-consent__btn { flex: 1 1 0; height: 48px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  background: #ffffff; color: #12142a; }
.hw-consent__btn:focus-visible { outline: 3px solid #4cb8f0; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .hw-consent { animation: hw-consent-in .35s ease-out both; } }
@keyframes hw-consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- Support: header link + band on guide pages */
.hw-nav__support a { display: inline-flex; align-items: center; gap: 6px; }
.hw-nav__support svg { flex: none; }
.support-band { margin: 56px 0 0; }
.support-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 24px 28px !important; border-radius: 24px; background: #f00f66; color: #ffffff; max-width: 1232px; }
.support-band__inner p { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.95) !important; }
.support-band__btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px;
  background: #ffffff; color: #c40a52 !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.support-band__btn svg { color: #f00f66; }
.faq a[href*="paypal"], .guide-step__body a[href*="paypal"] { font-weight: 700; }

/* ---- Subpages: calmer head, Inter section headings, table of contents */
.page-head { padding: 40px 0 8px !important; background: transparent !important; border-bottom: 0 !important; }
.page-head .lead { margin-top: 12px; }
.page-body { background: transparent !important; padding-block: 32px 96px !important; }
.prose h2, .faq__group { font-family: Inter, system-ui, sans-serif !important; font-stretch: 100% !important; font-variation-settings: normal !important;
  font-weight: 700 !important; letter-spacing: -0.01em !important; font-size: clamp(22px, 2.2vw, 26px) !important; line-height: 1.2 !important; scroll-margin-top: 96px; }
.cta-band h2 { font-family: Inter, system-ui, sans-serif !important; font-stretch: 100% !important; font-variation-settings: normal !important; font-weight: 700 !important; letter-spacing: -0.01em !important; font-size: 24px !important; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 46rem) 240px; gap: 72px; justify-content: space-between; align-items: start; }
.doc-main { min-width: 0; }
.doc-toc { position: sticky; top: 96px; font-size: 15px; }
.doc-toc p { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.doc-toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.doc-toc li + li { margin-top: 8px; }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--pink-ink, #c40a52); text-decoration: underline; }
@media (max-width: 1023px) { .doc-layout { display: block; } .doc-toc { display: none; } }
@media (max-width: 640px) { .range-panel > div:first-of-type > div:last-child { font-size: 40px !important; } }
@media (max-width: 640px) { .range-panel > div:first-of-type > div:last-child { flex: none !important; } }

/* ---- Interface showcase: phone stage + bars stage */
.ui-dots { display: none; justify-content: center; gap: 2px; margin-top: 12px; }
.ui-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.ui-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #3a3f66; transition: width .2s, background .2s; }
.ui-dots button[aria-current="true"]::before { width: 22px; background: #f00f66; }
@media (max-width: 1023px) {
  .ix-stage { grid-template-columns: minmax(0, 1fr) !important; }
  .ix-bars { padding: 40px 28px !important; }
}
@media (max-width: 640px) {
  .ix-phones > div[aria-hidden] { display: none; }
  .ix-phones > figure { margin-top: 0 !important; flex: 0 0 66% !important; }
  .ui-dots { display: flex; }
  .ix-bars { padding: 28px 20px !important; border-radius: 24px !important; }
  .ix-device img { width: 168px !important; }
  .ix-thumbs { justify-content: space-between; gap: 8px !important; }
  .ix-thumbs img { width: 82px !important; }
}
@media (max-width: 640px) {
  .ui-dots { margin-top: 4px; }
  .ix-thumbs { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; }
  .ix-thumbs figcaption { font-size: 12px !important; line-height: 1.3; }
  .ix-thumbs img { width: 100% !important; height: auto; }
  .ix-thumbs figure > div { display: block !important; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .ix-phones { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }
  .ix-phones > figure:nth-of-type(even) { margin-top: 36px !important; }
  .ix-phones figcaption { font-size: 14px; }
}
@media (max-width: 640px) {
  .route-fig { overflow-x: auto; padding: 20px 14px 16px !important; scrollbar-width: thin; }
  .route-fig svg { min-width: 700px; }
}
@media (max-width: 640px) {
  .route-fig::before { content: "Swipe to see the whole ride →"; display: block; position: sticky; left: 0; margin: 0 0 8px; font-size: 13px; color: #8f94b3; }
  html[lang="de"] .route-fig::before { content: "Wischen für die ganze Fahrt →"; }
}

/* ---- Hero: live values as a readable list on phones (the drawing's callouts get too small) */
.hs-readout { display: none; }
@media (max-width: 640px) {
  .hs-callouts { display: none; }
  .hs-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 16px 20px 20px;
    border-top: 1px solid var(--line); font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
  .hs-readout dt { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted-2); }
  .hs-readout dd { margin: 2px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted-2); }
  .hs-readout .hs-value { margin-top: 4px; font-size: 20px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--ink); }
}

/* ---- Headings break into even lines instead of leaving one word behind */
.headline, .fact, .hero-title { text-wrap: balance; }
