.rb-home { container: rb-home-page / inline-size; color: var(--rb-text); }
.rb-home__section > .rb-container--public { container: rb-home-section / inline-size; }
.rb-home a { text-decoration: none; }
.rb-home__section, .rb-home__hero { padding-block: var(--rb-public-section-space, 80px); }
.rb-home__hero-frame { container: rb-home-hero / inline-size; }
.rb-home__hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 56px; align-items: center; }
@container rb-home-hero (min-width: 960px) {
  .rb-home__hero-grid { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .rb-home .rb-editor-preview img { transform: scale(1.16); }
}
.rb-home__hero-copy { max-width: 600px; }
.rb-home .rb-home__eyebrow { margin: 0 0 14px; font-size: .875rem; }
.rb-home h1, .rb-home h2, .rb-home h3 { color: var(--rb-text); font-family: var(--rb-font-sans); font-weight: 600; letter-spacing: -.03em; }
.rb-home h1 { margin: 0 0 20px; font-size: clamp(2.6rem, 4.2vw, 4rem); line-height: 1.06; }
.rb-home h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.18; }
.rb-home h3 { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.35; letter-spacing: -.015em; }
.rb-home p { margin: 0; color: var(--rb-muted); font-size: 1rem; line-height: 1.6; }
.rb-home__hero-copy > p { max-width: 60ch; font-size: 1.0625rem; }
.rb-home__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }

/* Facts directly under the hero actions. */
.rb-home__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--rb-text); font-size: .9rem; font-weight: 500; }
.rb-home__facts li { display: inline-flex; align-items: center; gap: 8px; }
.rb-home__facts .lni { color: var(--rb-muted); font-size: 1rem; }

.rb-home__origin { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: flex-end; }
.rb-home__origin-link { display: block; width: min(100%, 300px); border-radius: var(--rb-radius-sm); }
.rb-home__origin-link:focus-visible, .rb-home__group-modules a:focus-visible, .rb-home__moment a:focus-visible, .rb-home__story-link:focus-visible { outline: 2px solid var(--rb-focus); outline-offset: 4px; }
.rb-home__origin img { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 5 / 1; object-fit: cover; }
@media (max-width: 767px) { .rb-home__origin { justify-content: center; } }
@container rb-home-hero (max-width: 767px) { .rb-home__origin { justify-content: center; } }
.rb-home__text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--rb-text); font-weight: 500; text-underline-offset: 4px; }
.rb-home__text-link .lni { margin-right: 8px; font-size: .9rem; }
.rb-home__text-link:hover { text-decoration: underline; }
.rb-home .rb-home__story-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 32px; color: var(--rb-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.rb-home__preview { display: grid; place-items: center; min-height: 340px; padding: 32px; border-radius: var(--rb-radius-lg); background: var(--rb-surface-soft); color: var(--rb-muted); text-align: center; }
.rb-home .rb-editor-preview { box-shadow: var(--rb-shadow-lg); }
.rb-home__preview p { max-width: 32ch; }
.rb-home .rb-home__preview-caption { margin-top: 12px; font-size: .875rem; }
.rb-home__section-intro { max-width: 720px; margin-bottom: 48px; }
.rb-home__section-intro > p:last-child { max-width: 62ch; }

/* A working day: inverted band, the one dark moment of the page. */
.rb-home__day { background: var(--rb-text); }
.rb-home__day h2, .rb-home__day h3 { color: var(--rb-bg); }
.rb-home__day p, .rb-home .rb-home__day .rb-home__eyebrow { color: color-mix(in srgb, var(--rb-bg) 72%, transparent); }
.rb-home__timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--rb-bg) 22%, transparent); }
.rb-home__moment { display: grid; align-content: start; gap: 16px; padding: 28px 28px 8px 0; }
.rb-home__moment + .rb-home__moment { padding-left: 28px; border-left: 1px solid color-mix(in srgb, var(--rb-bg) 22%, transparent); }
.rb-home__moment time { color: var(--rb-bg); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.rb-home__moment p { font-size: .95rem; }
.rb-home__moment a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--rb-bg); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.rb-home__day .rb-home__moment a:focus-visible { outline-color: var(--rb-bg); }

/* Domain entry. */
.rb-home__domain { background: var(--rb-surface-soft); }
.rb-home__domain-inner { max-width: 960px; }
.rb-home__domain-intro { margin-bottom: 24px; }
.rb-home__domain-intro p { max-width: 65ch; }
.rb-home__domain label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 600; }
.rb-home__domain-row { display: flex; align-items: stretch; gap: 12px; }
.rb-home__domain .rb-input { flex: 1 1 auto; min-width: 0; }
.rb-home__domain-row .rb-btn { flex: 0 0 auto; }
.rb-home .rb-home__domain-status { margin-top: 10px; font-size: .875rem; }

/* Module groups. */
.rb-home__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rb-home__group { display: flex; flex-direction: column; min-width: 0; }
.rb-home__group-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: var(--rb-radius-md); background: var(--rb-surface-soft); color: var(--rb-text); font-size: 1.25rem; }
.rb-home__group-modules { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rb-border); }
.rb-home__group-modules a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--rb-border); color: var(--rb-text); font-weight: 500; }
.rb-home__group-modules a .lni { color: var(--rb-muted); font-size: .85rem; transition: transform .15s ease; }
.rb-home__group-modules a:hover .lni { transform: translateX(3px); color: var(--rb-text); }

/* Two-column sections: operations and questions. */
.rb-home__split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rb-home__split > div:first-child > p { max-width: 46ch; }
.rb-home__care { background: var(--rb-surface-soft); }
.rb-home__care-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rb-border); }
.rb-home__care-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rb-border); }
.rb-home__care-list .lni { margin-top: 2px; color: var(--rb-text); font-size: 1.25rem; }
.rb-home__care-list strong { display: block; margin-bottom: 4px; color: var(--rb-text); font-weight: 600; }
.rb-home__care-list span { color: var(--rb-muted); line-height: 1.55; }

/* Tariff families. */
.rb-home__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rb-text); }
.rb-home__tier { padding: 28px 28px 0 0; }
.rb-home__tier + .rb-home__tier { padding-left: 28px; border-left: 1px solid var(--rb-border); }
.rb-home .rb-home__tier-price { margin: 4px 0 12px; color: var(--rb-text); }
.rb-home__tier-price strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em; }
.rb-home__tier-price small { display: block; margin-top: 2px; color: var(--rb-muted); font-size: .8125rem; }

/* Frequently asked questions: always visible. */
.rb-home__faq-list { display: grid; margin: 0; border-top: 1px solid var(--rb-border); }
.rb-home__faq-list > div { padding: 22px 0; border-bottom: 1px solid var(--rb-border); }
.rb-home__faq-list dt { margin-bottom: 6px; color: var(--rb-text); font-weight: 600; }
.rb-home__faq-list dd { margin: 0; color: var(--rb-muted); line-height: 1.6; }

/* Steps. */
.rb-home__steps-section { background: var(--rb-surface-soft); }
.rb-home__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.rb-home__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.rb-home__step-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--rb-text); color: var(--rb-bg); font-weight: 600; }
.rb-home__final-inner { max-width: 720px; }
.rb-home #ablauf { scroll-margin-top: 88px; }

@media (max-width: 959px) {
  .rb-home__hero-copy { max-width: 700px; }
  .rb-home__timeline, .rb-home__groups, .rb-home__tiers, .rb-home__steps { grid-template-columns: 1fr; }
  .rb-home__moment, .rb-home__moment + .rb-home__moment { padding: 24px 0; border-left: 0; border-bottom: 1px solid color-mix(in srgb, var(--rb-bg) 22%, transparent); }
  .rb-home__tier, .rb-home__tier + .rb-home__tier { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rb-border); }
  .rb-home__split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rb-home__hero-grid { gap: 32px; }
  .rb-home h1 { font-size: 2.1rem; }
  .rb-home__preview { min-height: 240px; padding: 24px; }
  .rb-home__domain-row { flex-direction: column; }
  .rb-home__domain-row .rb-btn { width: 100%; }
  .rb-home__actions .rb-btn { flex: 1 1 100%; }
}
@container rb-home-section (max-width: 959px) {
  .rb-home__timeline, .rb-home__groups, .rb-home__tiers, .rb-home__steps { grid-template-columns: 1fr; }
  .rb-home__moment, .rb-home__moment + .rb-home__moment { padding: 24px 0; border-left: 0; border-bottom: 1px solid color-mix(in srgb, var(--rb-bg) 22%, transparent); }
  .rb-home__tier, .rb-home__tier + .rb-home__tier { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rb-border); }
  .rb-home__split { grid-template-columns: 1fr; }
}
@container rb-home-section (max-width: 640px) {
  .rb-home__domain-row { flex-direction: column; }
  .rb-home__domain-row .rb-btn { width: 100%; }
}
@container rb-home-hero (max-width: 640px) {
  .rb-home h1 { font-size: 2.1rem; }
  .rb-home__hero-grid { gap: 32px; }
  .rb-home__preview { min-height: 240px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-home__group-modules a .lni { transition: none; }
}
