/* =====================================================================
   PALOMA – NEUE DESIGNSPRACHE (Flyer / Landingpage /demo)

   Gemeinsames Stylesheet der Website. Alles ist unter .rd-page gescopet und
   mit rd- präfixiert.

   Eingebunden wird die Datei von jeder Seite – nur /demo bringt ihre eigenen,
   in der Seite stehenden d-Styles mit.

   Bausteine:
     Tokens · Basis · Typografie · Buttons · Header · Sektionen · Karten
     · Kennzahlen · Schritte · Formular · Footer · Responsive
   ===================================================================== */

.rd-page {
    --rd-blue: #18007F;
    --rd-blue-dk: #0F0060;
    --rd-magenta: #F600C3;
    --rd-mint: #74E2B8;
    --rd-offwh: #F8F7FF;
    --rd-lavend: #F0EEFF;
    --rd-ink: #1C1C2E;
    --rd-ink-mid: #3D3D5C;
    --rd-gray: #6B6B8A;
    --rd-on-dark: #C4BCEE;
    --rd-rule: rgba(24, 0, 127, .12);
    --rd-rule-dark: rgba(255, 255, 255, .14);
    --rd-max: 1180px;

    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--rd-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.rd-page *, .rd-page *::before, .rd-page *::after {
    box-sizing: border-box;
}

/* :where() hält die Spezifität bei 0, damit die Regeln unten ohne
   !important greifen. */
.rd-page :where(p, h1, h2, h3, h4, ul, ol, figure) {
    margin: 0;
}

.rd-page :where(ul) {
    padding: 0;
    list-style: none;
}

.rd-page :where(a) {
    color: var(--rd-magenta);
}

.rd-wrap {
    max-width: var(--rd-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* Sprungziel für „Zum Inhalt springen" und Anker unter der klebenden Leiste */
.rd-page :where([id]) {
    scroll-margin-top: 96px;
}

/* =====================================================================
   TYPOGRAFIE
   ===================================================================== */

.rd-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rd-magenta);
}

.rd-h1 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 62px;
    line-height: 1.05;
    letter-spacing: -1.4px;
    color: #fff;
    text-wrap: balance;
}

.rd-h1 em {
    display: block;
    font-style: normal;
    color: var(--rd-magenta);
}

.rd-h2 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1.1px;
    color: var(--rd-blue);
    text-wrap: balance;
}

.rd-h2.on-dark {
    color: #fff;
}

.rd-h2 em {
    font-style: normal;
    color: var(--rd-magenta);
}

.rd-h3 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    color: var(--rd-blue);
}

.rd-h3.on-dark {
    color: #fff;
}

.rd-lead {
    font-size: 18px;
    line-height: 1.62;
    color: var(--rd-ink-mid);
}

.rd-lead.on-dark {
    color: #B8B0E4;
}

.rd-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--rd-ink-mid);
}

.rd-text.on-dark {
    color: var(--rd-on-dark);
}

/* =====================================================================
   SEKTIONEN
   ===================================================================== */

.rd-section {
    padding: 104px 0;
}

.rd-section.tight {
    padding: 76px 0;
}

.rd-section.on-blue {
    background: var(--rd-blue);
}

.rd-section.on-offwhite {
    background: var(--rd-offwh);
}

.rd-section-head {
    max-width: 720px;
    margin: 0 auto 56px auto;
    text-align: center;
}

.rd-section-head.left {
    margin-left: 0;
    text-align: left;
}

.rd-section-head .rd-h2 {
    margin: 14px 0 18px 0;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: Ubuntu, 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.rd-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.rd-btn.small {
    padding: 13px 20px;
    font-size: 14px;
}

.rd-btn-primary {
    background: var(--rd-magenta);
    color: #fff;
    box-shadow: 0 10px 30px rgba(246, 0, 195, .3);
}

.rd-btn-primary:hover {
    background: #ff1ad2;
    color: #fff;
}

.rd-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.rd-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.rd-btn-mint {
    background: var(--rd-mint);
    color: var(--rd-blue);
    box-shadow: 0 10px 30px rgba(116, 226, 184, .28);
}

.rd-btn-mint:hover {
    color: var(--rd-blue);
}

.rd-btn-outline {
    background: transparent;
    color: var(--rd-blue);
    border-color: rgba(24, 0, 127, .25);
}

.rd-btn-outline:hover {
    border-color: var(--rd-blue);
    color: var(--rd-blue);
}

/* =====================================================================
   HEADER (header-rd.njk)
   ===================================================================== */

.rd-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--rd-blue-dk);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rd-topbar .rd-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 88px;
}

.rd-topbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.rd-topbar-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.rd-topbar-by {
    font-size: 12px;
    line-height: 1.3;
    color: #A090D8;
    border-left: 1px solid rgba(255, 255, 255, .18);
    padding-left: 14px;
    margin-left: -14px;
    flex-shrink: 0;
}

.rd-topbar-spacer {
    flex: 1 1 auto;
}

.rd-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.rd-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.rd-nav a:hover {
    color: #fff;
    text-decoration: none;
    border-bottom-color: var(--rd-magenta);
}

.rd-nav a[aria-current="page"] {
    color: var(--rd-magenta);
    border-bottom-color: var(--rd-magenta);
}

.rd-topbar-cta {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.rd-topbar-cta .rd-btn {
    white-space: nowrap;
}

.rd-topbar-phone {
    text-decoration: none;
    white-space: nowrap;
}

.rd-topbar-phone .label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rd-magenta);
    margin-bottom: 3px;
}

.rd-topbar-phone .value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.rd-topbar-phone:hover .value {
    color: var(--rd-magenta);
}

/* Nur im aufgeklappten Menü sichtbar (siehe Responsive-Block unten) */
.rd-nav-only-mobile {
    display: none;
}

/* Mobiles Menü – reines CSS über eine versteckte Checkbox */
.rd-nav-toggle {
    display: none;
}

.rd-nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

/* =====================================================================
   HERO – Text links, Beistellinhalt rechts (Diagonale wie im Flyer)
   ===================================================================== */

.rd-hero {
    --rd-hero-pt: 76px;
    --rd-hero-pb: 84px;

    position: relative;
    background: var(--rd-blue);
    overflow: hidden;
    padding: var(--rd-hero-pt) 0 var(--rd-hero-pb) 0;
}

/* Off-white Keil rechts – Zitat der Flyer-Diagonale. Die Kanten liegen
   bewusst im 100px-Spalt zwischen den beiden Spalten, damit die Diagonale
   bei jeder Fensterbreite dazwischen verläuft und nie durch Text schneidet. */
.rd-hero.with-wedge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--rd-offwh);
    clip-path: polygon(calc(50% + 18px) 0, 100% 0, 100% 100%, calc(50% - 66px) 100%);
    z-index: 0;
}

/* Magenta-Akzentlinie am linken Rand – Zitat des Flyers */
.rd-hero::after {
    content: "";
    position: absolute;
    left: max(32px, calc((100% - var(--rd-max)) / 2 + 32px));
    top: var(--rd-hero-pt);
    bottom: var(--rd-hero-pb);
    width: 3px;
    background: var(--rd-magenta);
    z-index: 1;
}

/* Kompakter Hero ohne Beistellinhalt – für Seiten, die nur eine Überschrift
   und einen Einleitungstext tragen (Impressum, Datenschutz, …). */
.rd-hero.compact {
    --rd-hero-pt: 62px;
    --rd-hero-pb: 66px;
}

.rd-hero.compact .rd-wrap {
    display: block;
}

.rd-hero.compact .rd-hero-copy {
    max-width: 780px;
}

.rd-hero.compact .rd-h1 {
    font-size: 52px;
}

.rd-hero .rd-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 100px;
    align-items: center;
}

.rd-hero-copy {
    padding-left: 28px;
}

.rd-hero .rd-h1 {
    margin: 20px 0 22px 0;
}

.rd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.rd-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--rd-rule-dark);
    font-size: 14px;
    color: var(--rd-on-dark);
}

.rd-hero-facts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rd-hero-facts span::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--rd-mint);
    flex-shrink: 0;
}

/* Weiße Karte, die im Hero auf dem Keil liegt */
.rd-floatcard {
    background: #fff;
    border-radius: 10px;
    padding: 36px 34px;
    box-shadow: 0 26px 70px rgba(15, 0, 96, .28);
}

.rd-floatcard > h2 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
    color: var(--rd-blue);
    margin-bottom: 22px;
}

/* Zeile „Icon – Label – Wert" innerhalb einer hellen Karte */
.rd-lines {
    display: flex;
    flex-direction: column;
}

.rd-lines > * {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--rd-rule);
    text-decoration: none;
}

.rd-lines > *:first-child {
    border-top: none;
    padding-top: 0;
}

.rd-lines img {
    width: 26px;
    height: 26px;
    margin-top: 4px;
    flex-shrink: 0;
}

.rd-lines .label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rd-magenta);
    margin-bottom: 5px;
}

.rd-lines .value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--rd-blue);
    line-height: 1.25;
    word-break: break-word;
}

.rd-lines a:hover .value {
    color: var(--rd-magenta);
}

.rd-lines .hint {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rd-gray);
    margin-top: 5px;
}

/* =====================================================================
   ZWEISPALTIGE SEKTION (Intro links, Inhalt rechts)
   ===================================================================== */

.rd-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 72px;
    align-items: start;
}

.rd-panel.split {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* Hakenliste (wie die Agenda auf /demo) */
.rd-checklist {
    display: grid;
    gap: 18px 32px;
}

.rd-checklist.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.rd-checklist li {
    font-size: 15px;
    line-height: 1.55;
    color: var(--rd-ink-mid);
    padding-left: 26px;
    position: relative;
}

.rd-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--rd-magenta);
    border-bottom: 2px solid var(--rd-magenta);
    transform: rotate(-45deg);
}

.rd-checklist li strong {
    display: block;
    font-weight: 700;
    color: var(--rd-blue);
}

.rd-checklist.on-dark li {
    color: var(--rd-on-dark);
}

.rd-checklist.on-dark li strong {
    color: #fff;
}

/* Auf dunklem Grund wirkt der Mint-Haken ruhiger als Magenta – wie die
   Aufzählung im Hero. */
.rd-checklist.on-dark li::before {
    border-left-color: var(--rd-mint);
    border-bottom-color: var(--rd-mint);
}

/* =====================================================================
   KARTEN-RASTER (Kontaktwege, Prinzipien, …)
   ===================================================================== */

.rd-grid {
    display: grid;
    gap: 28px;
}

.rd-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.rd-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rd-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.rd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rd-rule);
    border-top: 3px solid var(--rd-rule);
    border-radius: 0 0 8px 8px;
    padding: 30px 28px;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.rd-card:hover {
    text-decoration: none;
    border-top-color: var(--rd-magenta);
    box-shadow: 0 18px 44px rgba(15, 0, 96, .1);
    transform: translateY(-2px);
}

.rd-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

/* Kleine Überschrift über dem Kartentitel (Datum, Rubrik, Feldname …) */
.rd-card-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rd-magenta);
    margin-bottom: 10px;
}

.rd-card h3 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.2;
    color: var(--rd-blue);
    margin-bottom: 10px;
}

.rd-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--rd-ink-mid);
}

.rd-card .rd-card-value {
    display: block;
    margin-top: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--rd-magenta);
    word-break: break-word;
}

.rd-card .rd-card-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--rd-gray);
}

/* Karte auf dunklem Grund */
.rd-card.on-dark {
    background: rgba(255, 255, 255, .06);
    border-color: var(--rd-rule-dark);
    border-top-color: var(--rd-rule-dark);
}

.rd-card.on-dark:hover {
    background: rgba(255, 255, 255, .1);
    border-top-color: var(--rd-magenta);
}

.rd-card.on-dark h3 {
    color: #fff;
}

.rd-card.on-dark p {
    color: var(--rd-on-dark);
}

/* =====================================================================
   KENNZAHLEN
   ===================================================================== */

.rd-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rd-rule-dark);
    border-left: 1px solid var(--rd-rule-dark);
}

.rd-kpi {
    padding: 32px 26px;
    border-right: 1px solid var(--rd-rule-dark);
    border-bottom: 1px solid var(--rd-rule-dark);
}

.rd-kpi-val {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--rd-magenta);
    font-variant-numeric: tabular-nums;
}

.rd-kpi-lbl {
    font-size: 14px;
    line-height: 1.45;
    color: var(--rd-on-dark);
    margin-top: 14px;
}

/* =====================================================================
   SCHRITTE
   ===================================================================== */

.rd-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.rd-steps.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rd-steps.cols-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}

.rd-step {
    padding-top: 26px;
    border-top: 3px solid var(--rd-rule);
    transition: border-color .15s ease;
}

.rd-step:first-child,
.rd-step:hover {
    border-top-color: var(--rd-magenta);
}

.rd-step-num {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--rd-blue);
    opacity: .18;
}

.rd-step h3 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.2;
    color: var(--rd-blue);
    margin: 12px 0 10px 0;
}

.rd-steps.cols-6 .rd-step h3 {
    font-size: 19px;
}

.rd-step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--rd-ink-mid);
}

.rd-step-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rd-magenta);
    border: 1px solid rgba(246, 0, 195, .4);
    padding: 4px 8px;
}

/* =====================================================================
   HERVORGEHOBENER KASTEN (Zitat des Flyer-Balkens)
   ===================================================================== */

.rd-panel {
    background: var(--rd-lavend);
    border-left: 4px solid var(--rd-magenta);
    border-radius: 0 8px 8px 0;
    padding: 44px 48px;
}

.rd-panel.on-dark {
    background: rgba(255, 255, 255, .06);
    border-left-color: var(--rd-mint);
}

/* =====================================================================
   DIREKTE KONTAKTWEGE (dunkler Grund)
   ===================================================================== */

.rd-direct {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rd-direct a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--rd-rule-dark);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.rd-direct a:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
}

.rd-direct img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    /* Die Icons sind in Dunkelblau angelegt – auf dunklem Grund weiß einfärben. */
    filter: brightness(0) invert(1);
    opacity: .85;
}

.rd-direct .label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rd-magenta);
    margin-bottom: 5px;
}

.rd-direct .value {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}

.rd-direct .hint {
    display: block;
    font-size: 13px;
    color: var(--rd-on-dark);
    margin-top: 4px;
}

/* Ansprechpartner */

.rd-person {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rd-person img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rd-person-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--rd-blue);
}

.rd-person.on-dark .rd-person-name {
    color: #fff;
}

.rd-person-role {
    font-size: 14px;
    color: var(--rd-gray);
    margin-top: 4px;
}

.rd-person.on-dark .rd-person-role {
    color: var(--rd-on-dark);
}

/* =====================================================================
   SPRUNGMARKEN-LEISTE UNTER DEM HERO
   ===================================================================== */

/* Die Leiste steckt in einem eigenen Balken, weil dessen Hintergrund und
   Trennlinie über die ganze Fensterbreite laufen müssen: ab 1180px bleibt der
   Balken beim Scrollen unter der Kopfleiste kleben (siehe unten) und muss den
   durchlaufenden Inhalt vollständig abdecken. */
.rd-jump-bar {
    background: #fff;
    border-bottom: 1px solid var(--rd-rule);
}

.rd-jump {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 22px 0;
}

.rd-jump-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rd-gray);
    margin-right: 6px;
}

.rd-jump a {
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-blue);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--rd-rule);
    border-radius: 40px;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.rd-jump a:hover {
    border-color: var(--rd-magenta);
    color: var(--rd-magenta);
    background: #fff;
    text-decoration: none;
}

/* Klebende Sprungmarkenleiste – ab 1180px, also sobald der Inhalt seine
   Maximalbreite erreicht hat. Darunter bleibt die Leiste im Seitenfluss: dort
   brechen die Pills in mehrere Zeilen um und würden den halben Bildschirm
   belegen, und die Kopfleiste ist nicht mehr 88px hoch, sondern wächst mit dem
   aufgeklappten Menü – `top: 88px` wäre dort falsch. */
@media screen and (min-width: 1180px) {
    .rd-jump-bar {
        position: sticky;
        /* Höhe der klebenden Kopfleiste */
        top: 88px;
        /* unter der Kopfleiste (50), über dem Inhalt */
        z-index: 40;
    }

    /* Flacher, weil die Leiste dauerhaft Platz am oberen Rand kostet. */
    .rd-jump {
        padding: 14px 0;
    }

    /* Anker müssen zusätzlich um die Höhe der Leiste tiefer scrollen, sonst
       verschwindet die Überschrift des Abschnitts dahinter. Bemessen für eine
       zweizeilige Leiste (114px) – mehr Zeilen passen bei dieser Breite nicht
       zusammen; bei einzeiligen Leisten ist der Abstand entsprechend großzügig. */
    .rd-page:has(.rd-jump-bar) :where([id]) {
        scroll-margin-top: 220px;
    }
}

/* =====================================================================
   RECHTSTEXTE (Impressum, Datenschutz)

   Zweispaltig: links ein mitlaufendes Inhaltsverzeichnis, rechts der
   Fließtext. Unter 1100px steht das Verzeichnis als normaler Block darüber.
   ===================================================================== */

.rd-legal {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.rd-toc {
    display: block;
    position: sticky;
    /* Höhe der klebenden Kopfleiste (88px) plus etwas Luft */
    top: 112px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.rd-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rd-gray);
    margin-bottom: 14px;
}

.rd-toc-list a {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 0 8px 16px;
    border-left: 2px solid var(--rd-rule);
    color: var(--rd-ink-mid);
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.rd-toc-list a:hover {
    border-left-color: var(--rd-magenta);
    color: var(--rd-blue);
    text-decoration: none;
}

/* Fließtext mit ruhiger Zeilenlänge – auch außerhalb von .rd-legal nutzbar. */
.rd-prose {
    max-width: 760px;
}

.rd-prose h2 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    color: var(--rd-blue);
    margin-top: 56px;
    padding-top: 30px;
    border-top: 1px solid var(--rd-rule);
}

.rd-prose > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.rd-prose h3 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.25;
    color: var(--rd-blue);
    margin-top: 38px;
}

/* Kurzer Magenta-Strich über der Zwischenüberschrift – gliedert lange
   Rechtstexte, ohne so schwer zu wirken wie die Linie über h2. */
.rd-prose h3::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    background: var(--rd-magenta);
    margin-bottom: 14px;
}

.rd-prose p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--rd-ink-mid);
    margin-top: 14px;
}

.rd-prose ul {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.rd-prose li {
    position: relative;
    padding-left: 22px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--rd-ink-mid);
}

.rd-prose li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .68em;
    width: 6px;
    height: 6px;
    background: var(--rd-magenta);
}

.rd-prose strong {
    color: var(--rd-blue);
}

.rd-prose a {
    text-decoration: underline;
    word-break: break-word;
}

/* Zwischennotiz im Fließtext – hebt hervor, was für Leser wirklich zählt. */
.rd-note {
    margin-top: 20px;
    padding: 20px 24px;
    background: var(--rd-lavend);
    border-left: 3px solid var(--rd-magenta);
    border-radius: 0 6px 6px 0;
}

.rd-note p {
    margin-top: 0;
    font-size: 15px;
}

.rd-note p + p {
    margin-top: 12px;
}

/* =====================================================================
   FRAGEN & ANTWORTEN (Akkordeon)

   Reines <details>/<summary> ohne JavaScript – wie die Einwandliste auf
   /demo. Die Antworten stehen also auch dann im Quelltext, wenn sie
   zugeklappt sind (Suchmaschinen und die Seitensuche des Browsers finden
   sie über Strg+F trotzdem).
   ===================================================================== */

.rd-faq {
    border-top: 1px solid var(--rd-rule);
}

.rd-faq-item {
    border-bottom: 1px solid var(--rd-rule);
}

.rd-faq-item summary {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 4px;
    cursor: pointer;
    /* Ohne list-style/marker zeichnet der Browser sonst sein eigenes Dreieck. */
    list-style: none;
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--rd-blue);
    hyphens: auto;
}

.rd-faq-item summary::-webkit-details-marker {
    display: none;
}

.rd-faq-item summary:hover {
    color: var(--rd-magenta);
}

.rd-faq-item summary::after {
    content: "+";
    margin-left: auto;
    font-size: 26px;
    line-height: 1;
    color: var(--rd-magenta);
    flex-shrink: 0;
}

.rd-faq-item[open] summary::after {
    content: "–";
}

.rd-faq-answer {
    padding: 0 46px 26px 4px;
}

.rd-faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--rd-ink-mid);
}

.rd-faq-answer p + p,
.rd-faq-answer ul,
.rd-faq-answer ul + p {
    margin-top: 14px;
}

.rd-faq-answer li {
    position: relative;
    padding-left: 22px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rd-ink-mid);
}

.rd-faq-answer li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    background: var(--rd-magenta);
}

.rd-faq-answer strong {
    color: var(--rd-blue);
}

.rd-faq-answer a {
    text-decoration: underline;
}

/* Ein Themenblock: links die Rubrik (läuft mit), rechts die Fragen.
   Unter 1100px steht die Rubrik als normale Überschrift darüber. */
.rd-faq-block {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.rd-faq-block-head {
    position: sticky;
    /* Höhe der klebenden Kopfleiste (88px) plus etwas Luft */
    top: 112px;
}

.rd-faq-block-head .rd-h2 {
    font-size: 34px;
    margin: 14px 0 16px 0;
}

/* =====================================================================
   FORMULAR
   ===================================================================== */

.rd-form-card {
    background: #fff;
    border-radius: 10px;
    padding: 44px;
    box-shadow: 0 26px 70px rgba(15, 0, 96, .3);
}

.rd-form-card h3 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.15;
    color: var(--rd-blue);
}

.rd-form-card > p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--rd-ink-mid);
    margin-top: 12px;
}

.rd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.rd-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rd-field.full {
    grid-column: 1 / -1;
}

.rd-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--rd-blue);
}

.rd-field label .opt {
    font-weight: 400;
    color: var(--rd-gray);
}

.rd-field input,
.rd-field select,
.rd-field textarea {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: var(--rd-ink);
    padding: 13px 14px;
    border: 1px solid rgba(24, 0, 127, .22);
    border-radius: 5px;
    background: #fff;
    width: 100%;
}

.rd-field textarea {
    min-height: 120px;
    resize: vertical;
}

.rd-field input:focus,
.rd-field select:focus,
.rd-field textarea:focus {
    outline: none;
    border-color: var(--rd-magenta);
    box-shadow: 0 0 0 3px rgba(246, 0, 195, .12);
}

.rd-field input:invalid:not(:placeholder-shown) {
    border-color: #D0004E;
}

/* Spam-Falle – für Besucher unsichtbar, für Bots ausfüllbar */
.rd-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rd-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--rd-ink-mid);
}

.rd-consent input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--rd-magenta);
}

.rd-consent a {
    color: var(--rd-blue);
    text-decoration: underline;
}

.rd-form-submit {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.rd-form-submit .note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--rd-gray);
}

.rd-form-status {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.rd-form-status.is-visible {
    display: block;
}

.rd-form-status.is-info {
    background: var(--rd-lavend);
    border-left: 3px solid var(--rd-blue);
    color: var(--rd-ink-mid);
}

.rd-form-status.is-success {
    background: #E8FBF3;
    border-left: 3px solid #16A97A;
    color: #0C5F45;
}

.rd-form-status.is-error {
    background: #FFF0F6;
    border-left: 3px solid var(--rd-magenta);
    color: #8A0063;
}

.rd-form-status a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

/* =====================================================================
   VIDEO

   Weiße Karte mit 16:9-Rahmen – wie im Hero von /demo. Solange das Video
   fehlt, liegt ein Schleier („Veil") mit Play-Symbol darüber; ist es da,
   wird der Schleier durch <video> oder <iframe> ersetzt.
   ===================================================================== */

.rd-video-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 26px 70px rgba(15, 0, 96, .28);
}

.rd-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: var(--rd-blue-dk);
}

.rd-video-frame > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: saturate(.55) blur(3px);
    transform: scale(1.04);
}

.rd-video-frame video,
.rd-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.rd-video-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 0, 127, .9) 0%, rgba(15, 0, 96, .82) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
}

.rd-video-play {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-video-play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 20px solid rgba(255, 255, 255, .75);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.rd-video-veil-title {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
    color: #fff;
}

.rd-video-veil-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--rd-on-dark);
    max-width: 400px;
}

.rd-video-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--rd-magenta);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rd-video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 6px 4px 6px;
}

.rd-video-meta-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--rd-blue);
}

.rd-video-meta-sub {
    font-size: 13px;
    color: var(--rd-gray);
    margin-top: 3px;
}

.rd-video-meta a {
    font-size: 14px;
    font-weight: 700;
    color: var(--rd-magenta);
    text-decoration: none;
    white-space: nowrap;
}

/* Transkript des Videos, eingeklappt in der weißen Videokarte. Die Untertitel
   selbst kommen aus der <track>-Datei; das Transkript ist die Fassung zum
   Lesen – und steht als Text im HTML, also auch für Suchmaschinen da. Zu ist
   es der Standard, damit die Karte den Hero nicht auseinanderzieht. */
.rd-video-transcript {
    border-top: 1px solid rgba(24, 0, 127, .1);
    margin: 6px 6px 0 6px;
    padding-top: 6px;
}

.rd-video-transcript > summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--rd-magenta);
    list-style: none;
}

/* Eigenes Dreieck, damit es in beiden Zuständen gleich aussieht (Safari zeigt
   den Standardmarker sonst anders als Chrome/Firefox). */
.rd-video-transcript > summary::-webkit-details-marker {
    display: none;
}

.rd-video-transcript > summary::before {
    content: "";
    display: inline-block;
    margin-right: 8px;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform .15s ease;
}

.rd-video-transcript[open] > summary::before {
    transform: rotate(90deg);
}

.rd-video-transcript-body {
    max-height: 320px;
    overflow-y: auto;
    margin-top: 12px;
    padding-right: 8px;
}

.rd-video-transcript-body p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--rd-gray);
    margin: 0 0 12px 0;
}

.rd-video-transcript-body p:last-child {
    margin-bottom: 0;
}

/* =====================================================================
   REFERENZLOGOS

   Weiße Karten, damit die unterschiedlich gefärbten Kundenlogos auch auf
   dunkelblauem Grund funktionieren. Die Zeile bricht um – es dürfen also
   jederzeit Logos dazukommen oder wegfallen.
   ===================================================================== */

.rd-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.rd-logo-card {
    background: #fff;
    border-radius: 6px;
    height: 88px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-logo-card img {
    max-height: 100%;
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
}

/* =====================================================================
   VERGLEICHSTABELLE

   Zwei Spalten: links Paloma, rechts „übliche Bestandssysteme". Bewusst
   eine echte <table> – die Zeilen sind Wertepaare, das soll ein Screenreader
   auch so vorlesen. Unter 760px klappt jede Zeile in eine Karte um; die
   Spaltenüberschriften werden dort über data-col wiederholt, weil ein
   umgeklappter <thead> sonst verloren geht.
   ===================================================================== */

.rd-compare {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.rd-compare th,
.rd-compare td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--rd-rule);
    vertical-align: top;
    font-size: 16px;
    line-height: 1.5;
}

.rd-compare thead th {
    font-family: Philosopher, Georgia, serif;
    font-size: 19px;
    color: var(--rd-blue);
    border-bottom: 2px solid var(--rd-blue);
    padding-bottom: 14px;
}

/* Die Paloma-Spalte wird durch Farbe und Gewicht als die gute markiert –
   ohne Häkchen-Icons, die auf der Gegenspalte ein Kreuz erzwingen würden. */
.rd-compare thead th.is-paloma {
    color: var(--rd-magenta);
    border-bottom-color: var(--rd-magenta);
}

.rd-compare tbody th {
    font-weight: 700;
    color: var(--rd-blue);
    width: 24%;
}

/* Leichter Magenta-Ton statt --rd-offwh: die Tabelle steht auf einer
   offwhite-Sektion, dort wäre offwhite unsichtbar. Der Ton trägt auch auf
   weißem Grund. */
.rd-compare td.is-paloma {
    background: rgba(246, 0, 195, .045);
    font-weight: 600;
    color: var(--rd-ink);
    width: 38%;
}

.rd-compare td.is-other {
    color: var(--rd-gray);
    width: 38%;
}

.rd-compare tbody tr:last-child th,
.rd-compare tbody tr:last-child td {
    border-bottom: none;
}

.rd-compare-note {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rd-gray);
}

/* =====================================================================
   KUNDENZITAT
   ===================================================================== */

/* Zwei Zitate nebeneinander; bei nur einem Zitat bleibt .rd-quote in seiner
   zentrierten Einzelform, deshalb sitzt das Grid auf einem eigenen Wrapper. */
.rd-quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
}

/* Beide Zitate füllen die Zeilenhöhe (grid-default stretch), damit die
   magentafarbenen Linien gleich lang sind, und die figcaption wird mit
   margin-top: auto nach unten gedrückt. So stehen die Porträts auf einer
   Linie, auch wenn die Zitate – es sind die Worte der Kassen – unterschiedlich
   lang sind. */
.rd-quotes .rd-quote {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.rd-quotes .rd-quote figcaption {
    margin-top: auto;
    padding-top: 22px;
}

.rd-quotes .rd-quote blockquote {
    font-size: 21px;
}

.rd-quote {
    max-width: 860px;
    margin: 0 auto;
    padding-left: 34px;
    border-left: 4px solid var(--rd-magenta);
}

.rd-quote blockquote {
    margin: 0;
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 27px;
    line-height: 1.38;
    color: var(--rd-blue);
    text-wrap: balance;
}

.rd-quote.on-dark blockquote {
    color: #fff;
}

/* Porträt links, Name und Funktion rechts daneben. Das Bild ist rund wie in
   .rd-person, aber kleiner – es begleitet das Zitat, es führt es nicht. */
.rd-quote figcaption {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--rd-gray);
}

.rd-quote-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--rd-rule);
}

.rd-quote.on-dark .rd-quote-avatar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .28);
}

.rd-quote.on-dark figcaption {
    color: var(--rd-on-dark);
}

.rd-quote figcaption strong {
    display: block;
    font-size: 16px;
    color: var(--rd-blue);
}

.rd-quote.on-dark figcaption strong {
    color: #fff;
}

/* =====================================================================
   FOOTER (footer-rd.njk)
   ===================================================================== */

.rd-footer {
    background: var(--rd-blue-dk);
    padding: 72px 0 44px 0;
    color: #fff;
}

.rd-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--rd-rule-dark);
}

.rd-footer-brand img {
    height: 46px;
    width: auto;
    display: block;
}

.rd-footer-brand p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #9F96CE;
}

.rd-footer-brand a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.rd-footer-brand a:hover {
    color: var(--rd-magenta);
}

.rd-footer-col h4 {
    font-family: Philosopher, Georgia, serif;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    margin-bottom: 18px;
}

.rd-footer-col a {
    display: block;
    font-size: 14px;
    line-height: 2.1;
    color: #C4BCEE;
    text-decoration: none;
}

.rd-footer-col a:hover {
    color: var(--rd-magenta);
    text-decoration: none;
}

.rd-footer-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 32px;
    padding-top: 32px;
}

.rd-footer-bottom .rd-footer-evonetic {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #8F86BE;
}

.rd-footer-bottom .rd-footer-evonetic img {
    height: 40px;
    width: auto;
    /* Die helle Variante ist für weißen Grund gezeichnet – hier weiß einfärben. */
    filter: brightness(0) invert(1);
    opacity: .85;
}

.rd-footer-bottom .rd-footer-copy {
    margin-left: auto;
    font-size: 13px;
    color: #8F86BE;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media screen and (max-width: 1100px) {
    .rd-hero.with-wedge::before {
        display: none;
    }

    .rd-hero .rd-wrap {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .rd-hero-copy {
        padding-left: 22px;
    }

    .rd-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Das Inhaltsverzeichnis rückt über den Text und läuft nicht mehr mit –
       sonst würde es auf schmalen Geräten den halben Bildschirm belegen. */
    .rd-legal {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rd-toc {
        position: static;
        max-height: none;
        padding-bottom: 8px;
    }

    .rd-toc-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }

    .rd-grid.cols-4,
    .rd-grid.cols-3 {
        grid-template-columns: 1fr 1fr;
    }

    /* Die Rubrik rückt über die Fragen und läuft nicht mehr mit – sonst
       würde sie auf schmalen Geräten den halben Bildschirm belegen. */
    .rd-faq-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rd-faq-block-head {
        position: static;
        max-width: 720px;
    }

    .rd-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .rd-steps,
    .rd-steps.cols-3,
    .rd-steps.cols-6 {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }

    .rd-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .rd-footer-brand {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 1300px) {
    .rd-topbar-by {
        display: none;
    }
}

/* Zwischenstufe: Die Leiste braucht in voller Breite rund 1070px. Damit sie
   knapp darüber nicht ins Quetschen kommt, rücken die Elemente zusammen. */
@media screen and (max-width: 1200px) {
    .rd-topbar .rd-wrap {
        gap: 20px;
    }

    .rd-nav {
        gap: 18px;
    }

    .rd-topbar-cta {
        gap: 16px;
    }
}

/* Ab hier klappt die Navigation ins Burger-Menü. */
@media screen and (max-width: 1100px) {
    .rd-topbar .rd-wrap {
        flex-wrap: wrap;
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 14px 18px;
    }

    .rd-topbar-by {
        display: none;
    }

    .rd-topbar-spacer {
        display: none;
    }

    .rd-nav-burger {
        display: flex;
    }

    .rd-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid var(--rd-rule-dark);
    }

    .rd-nav-toggle:checked ~ .rd-nav {
        display: flex;
    }

    .rd-nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--rd-rule-dark);
    }

    .rd-nav a:hover,
    .rd-nav a[aria-current="page"] {
        border-bottom-color: var(--rd-rule-dark);
    }

    /* Telefonnummer und Button wandern ins Menü, damit die klebende Leiste
       auf kleinen Bildschirmen einzeilig bleibt. */
    .rd-topbar-cta {
        display: none;
    }

    .rd-nav-only-mobile {
        display: block;
    }
}

@media screen and (max-width: 900px) {
    .rd-h1 {
        font-size: 48px;
    }

    .rd-hero.compact .rd-h1 {
        font-size: 42px;
    }

    .rd-h2 {
        font-size: 36px;
        letter-spacing: -.7px;
    }
}

@media screen and (max-width: 900px) {
    .rd-panel {
        padding: 34px 28px;
    }

    .rd-panel.split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rd-checklist.cols-2 {
        grid-template-columns: 1fr;
    }

    .rd-quotes {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .rd-compare th,
    .rd-compare td {
        padding: 14px 16px;
        font-size: 15px;
    }
}

@media screen and (max-width: 760px) {
    .rd-wrap {
        padding: 0 20px;
    }

    .rd-section {
        padding: 68px 0;
    }

    .rd-section.tight {
        padding: 52px 0;
    }

    .rd-h1 {
        font-size: 40px;
        letter-spacing: -.8px;
    }

    .rd-h2 {
        font-size: 32px;
        letter-spacing: -.6px;
    }

    .rd-lead {
        font-size: 16px;
    }

    .rd-hero {
        --rd-hero-pt: 44px;
        --rd-hero-pb: 56px;
    }

    .rd-hero::after {
        left: 20px;
    }

    .rd-hero.compact .rd-h1 {
        font-size: 36px;
        letter-spacing: -.6px;
    }

    .rd-hero-copy {
        padding-left: 18px;
    }

    .rd-hero-actions .rd-btn {
        width: 100%;
    }

    .rd-floatcard {
        padding: 26px 22px;
    }

    .rd-grid.cols-4,
    .rd-grid.cols-3,
    .rd-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .rd-kpis {
        grid-template-columns: 1fr;
    }

    .rd-kpi {
        padding: 24px 20px;
    }

    .rd-steps,
    .rd-steps.cols-3,
    .rd-steps.cols-6 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rd-jump {
        gap: 8px;
    }

    .rd-toc-list {
        grid-template-columns: 1fr;
    }

    .rd-faq-block-head .rd-h2 {
        font-size: 28px;
    }

    .rd-faq-item summary {
        font-size: 18px;
        gap: 14px;
    }

    .rd-faq-answer {
        padding-right: 4px;
    }

    .rd-prose h2 {
        font-size: 25px;
        margin-top: 44px;
        padding-top: 26px;
    }

    .rd-note {
        padding: 18px 20px;
    }

    .rd-video-card {
        padding: 8px;
    }

    .rd-video-veil-title {
        font-size: 20px;
    }

    .rd-video-play {
        width: 56px;
        height: 56px;
    }

    .rd-quote {
        padding-left: 20px;
    }

    .rd-quote blockquote {
        font-size: 21px;
    }

    .rd-quotes .rd-quote blockquote {
        font-size: 19px;
    }

    .rd-quote-avatar {
        width: 48px;
        height: 48px;
    }

    /* Zeile wird Karte: Merkmal als Überschrift, darunter die beiden Werte,
       jeder mit seiner Spaltenbezeichnung aus data-col davor. */
    .rd-compare thead {
        display: none;
    }

    .rd-compare,
    .rd-compare tbody,
    .rd-compare tr,
    .rd-compare th,
    .rd-compare td {
        display: block;
    }

    /* Die Prozentbreiten der Spalten haben Klassenselektoren – hier mit
       derselben Spezifität zurücknehmen, sonst bleiben die Zellen im
       umgeklappten Zustand schmale Säulen. */
    .rd-compare tbody th,
    .rd-compare td.is-paloma,
    .rd-compare td.is-other {
        width: auto;
    }

    .rd-compare tr {
        border: 1px solid var(--rd-rule);
        border-radius: 8px;
        margin-bottom: 14px;
        overflow: hidden;
    }

    .rd-compare tbody th {
        border-bottom: none;
        padding-bottom: 0;
    }

    .rd-compare td::before {
        content: attr(data-col);
        display: block;
        font-size: 12px;
        letter-spacing: .6px;
        text-transform: uppercase;
        color: var(--rd-gray);
        margin-bottom: 4px;
    }

    .rd-compare td.is-paloma::before {
        color: var(--rd-magenta);
    }

    .rd-compare tbody tr:last-child td {
        border-bottom: none;
    }

    .rd-form-card {
        padding: 26px 20px;
    }

    .rd-form-grid {
        grid-template-columns: 1fr;
    }

    .rd-form-submit .rd-btn {
        width: 100%;
    }

    .rd-person img {
        width: 72px;
        height: 72px;
    }

    .rd-footer {
        padding: 52px 0 36px 0;
    }

    .rd-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rd-footer-bottom .rd-footer-copy {
        margin-left: 0;
    }

    /* Untereinander wirken unterschiedlich breite Logokarten unruhig – hier
       bekommen alle dieselbe Breite, statt sich nach dem Logo zu richten. */
    .rd-logos {
        flex-direction: column;
        align-items: center;
    }

    .rd-logo-card {
        width: 100%;
        max-width: 300px;
    }
}

/* =====================================================================
   SEHR SCHMALE DISPLAYS

   Unter ~560px passen in die Sprungmarkenleiste je Zeile nur ein oder zwei
   Pills. Frei umbrechend franst die rechte Kante aus; deshalb wachsen die
   Pills hier auf die verbleibende Zeilenbreite und das Label bekommt eine
   eigene Zeile.
   ===================================================================== */

@media screen and (max-width: 560px) {
    .rd-jump-label {
        flex: 1 0 100%;
        margin-right: 0;
    }

    .rd-jump a {
        flex: 1 1 auto;
        text-align: center;
        padding: 9px 12px;
    }
}
