@charset "UTF-8";

/* ==========================================================================
   REInvest Holding — Redaktionsangebot
   Farben: #EDEDEA Papier, #101010 Tinte, #1B2CF0 Akzent und Rente,
   #A82412 Steuern (Text) / #D2331B Steuern (Platte), #0C6B45 Anlage,
   #7A5606 Immobilien, #E3E3DF getoente Flaechen.
   ========================================================================== */

:root {
    --paper:  #EDEDEA;
    --ink:    #101010;
    --accent: #1B2CF0;
    --panel:  #E3E3DF;
    --shell:  #DCDCD8;

    --rente:      #1B2CF0;
    --steuern:    #A82412;
    --steuern-pl: #D2331B;
    --anlage:     #0C6B45;
    --immo:       #7A5606;

    --g90: #33332F;
    --g70: #4A4A46;
    --g55: #6A6A64;
    --g40: #8A8A84;
    --g25: #B9B9B3;
    --g20: #C6C6C0;
    --g15: #D2D2CC;
    --g12: #D6D6D0;
    --g05: #2C2C28;

    --sans: 'Soehne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: 'SoehneMono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --rail: 300px;
    --gut:  40px;
}

/* ---------- Schriften ---------- */

@font-face {
    font-family: 'Soehne'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/soehne-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Soehne'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('fonts/soehne-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Soehne'; font-style: normal; font-weight: 600 700; font-display: swap;
    src: url('fonts/soehne-700.woff2') format('woff2');
}
@font-face {
    font-family: 'SoehneMono'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/soehne-mono-400.woff2') format('woff2');
}

/* ---------- Grundlagen ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--shell);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis-weight: none;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button, input { font-family: inherit; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.rh-skip {
    position: absolute; left: -9999px; top: 0; z-index: 60;
    background: var(--ink); color: var(--paper);
    padding: 12px 18px; font-size: 14px; font-weight: 700;
}
.rh-skip:focus { left: 0; color: var(--paper); }

.rh-i {
    width: 1em; height: 1em; flex: none;
    display: inline-block; vertical-align: -0.115em;
}

.rh-mono { font-family: var(--mono); font-weight: 400; }

/* Bild in fester Rahmenhoehe, Ausschnitt zentriert. */
.rh-img { width: 100%; height: 100%; object-fit: cover; background: var(--g20); }

/* ---------- Buehne ---------- */

.rh-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background: var(--paper);
}

/* ---------- Anzeigenleiste ---------- */

.rh-strip {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    background: var(--ink); color: var(--paper);
    padding: 9px 32px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.rh-strip-note { color: var(--g40); }
.rh-strip-right { display: flex; gap: 26px; align-items: center; }
.rh-strip-date { font-family: var(--mono); letter-spacing: 0.04em; text-transform: none; }
.rh-strip a { color: var(--paper); display: inline-flex; align-items: center; gap: 8px; }
.rh-strip a:hover { color: #FFFFFF; text-decoration: underline; }
.rh-strip a .rh-i { font-size: 14px; }

/* ---------- Raster: Seitenschiene und Inhalt ---------- */

.rh-shell {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    align-items: start;
    background: linear-gradient(to right,
        transparent calc(var(--rail) - 1px), var(--ink) calc(var(--rail) - 1px),
        var(--ink) var(--rail), transparent var(--rail));
}

.rh-rail {
    position: sticky; top: 0; align-self: start;
    padding: 30px 28px 40px 32px;
    max-height: 100vh; overflow-y: auto;
    scrollbar-width: thin;
}

.rh-main { min-width: 0; }

/* ---------- Wortmarke und Rubriknavigation ---------- */

.rh-brand {
    display: block;
    font-size: 38px; font-weight: 700; line-height: 0.94; letter-spacing: -0.045em;
}
.rh-brand--sm { font-size: 26px; letter-spacing: -0.04em; }
.rh-tagline {
    margin: 14px 0 0;
    font-size: 14px; line-height: 1.4; max-width: 15em; color: var(--g70);
}

.rh-nav {
    display: flex; flex-direction: column;
    margin-top: 32px;
    border-top: 3px solid var(--ink);
}
.rh-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--g25);
    font-size: 20px; font-weight: 700; letter-spacing: -0.03em;
}
.rh-nav .rh-i { font-size: 18px; }
.rh-nav a[aria-current="page"] { color: var(--accent); }
.rh-nav-n {
    margin-left: auto;
    font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--g55);
}

/* ---------- Bausteine der Schiene ---------- */

.rh-lbl {
    margin: 0;
    font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--g40);
}

.rh-block { margin-top: 26px; border-top: 1px solid var(--ink); padding-top: 14px; }
.rh-block--hair { border-top-color: var(--g20); }
.rh-block--thick { margin-top: 34px; border-top: 3px solid var(--ink); }

.rh-ed-name { margin-top: 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.rh-ed-desc { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: var(--g70); }

.rh-facts { margin-top: 10px; font-size: 13.5px; }
.rh-facts div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 6px 0; border-bottom: 1px solid var(--g15);
}
.rh-facts div:last-child { border-bottom: 0; }
.rh-facts span:first-child { color: var(--g70); }
.rh-facts span:last-child { font-family: var(--mono); font-size: 13px; }

.rh-note {
    display: flex; gap: 10px;
    font-size: 13px; line-height: 1.55; color: var(--g70);
}
.rh-note .rh-i { font-size: 16px; margin-top: 0.15em; }

.rh-toc { display: flex; flex-direction: column; margin-top: 10px; }
.rh-toc a {
    display: flex; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid var(--g20);
    font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
}
.rh-toc span { font-family: var(--mono); font-weight: 400; color: var(--accent); }

/* ---------- Rubrikplakette und Rubrikzeile ---------- */

.rh-plate {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--accent); color: var(--paper);
    padding: 5px 10px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.rh-plate .rh-i { font-size: 13px; }
.rh-plate--lg { padding: 8px 16px; font-size: 12px; gap: 8px; }
.rh-plate--lg .rh-i { font-size: 14px; }
a:hover > .rh-plate, a:hover .rh-plate { color: var(--paper); }

.rh-rule {
    display: inline-flex; align-items: center; gap: 8px;
    padding-bottom: 4px;
    border-bottom: 3px solid var(--ink);
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink);
}
.rh-rule .rh-i { font-size: 14px; }

/* ---------- Aufmacher ---------- */

.rh-lead-img { position: relative; height: clamp(230px, 36vw, 520px); }
.rh-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.rh-lead-img .rh-plate {
    position: absolute; left: 0; top: 0; pointer-events: none;
}

.rh-lead {
    display: block; position: relative;
    margin-top: clamp(-78px, -5.4vw, -22px);
    padding: 0 var(--gut) 26px;
    border-bottom: 1px solid var(--ink);
}
.rh-lead h1, .rh-lead-h {
    margin: 0;
    background: var(--paper);
    padding: 30px 44px 18px 28px;
    margin-right: 150px;
    font-size: clamp(34px, 5.15vw, 74px);
    font-weight: 700; line-height: 0.92; letter-spacing: -0.052em;
    text-wrap: pretty;
}
.rh-lead-foot {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px;
    margin-top: 18px; align-items: start;
}
.rh-lead-foot p {
    margin: 0; font-size: 19px; line-height: 1.55; color: var(--g90); max-width: 34em;
}
.rh-byline { text-align: right; }
.rh-byline-name {
    font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--g55);
}
.rh-byline-meta {
    margin-top: 6px;
    display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end;
    font-family: var(--mono); font-size: 12.5px; color: var(--g70);
}
.rh-byline-meta .rh-i { font-size: 13px; }

/* ---------- Zwei-Spalten-Block unter dem Aufmacher ---------- */

.rh-pair {
    display: grid; grid-template-columns: 1.45fr 1fr;
    border-bottom: 3px solid var(--ink);
}
.rh-pair-a {
    display: block;
    padding: 26px 34px 30px var(--gut);
    border-right: 1px solid var(--ink);
}
.rh-pair-a > .rh-thumb { height: 168px; }
.rh-pair-a .rh-plate { margin-top: 14px; }
.rh-pair-a h2 {
    margin: 14px 0 0;
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 700; line-height: 1.0; letter-spacing: -0.042em; text-wrap: pretty;
}
.rh-pair-a p, .rh-pair-b p {
    margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--g70);
}
.rh-pair-b {
    display: flex; gap: 22px;
    padding: 26px var(--gut) 30px 34px;
}
.rh-pair-b > .rh-thumb { width: 150px; height: 210px; flex: none; }
.rh-pair-b h2 {
    margin: 11px 0 0;
    font-size: clamp(22px, 1.9vw, 27px);
    font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: pretty;
}
.rh-pair-b p { font-size: 15.5px; }

.rh-thumb { overflow: hidden; background: var(--g20); }
.rh-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Zahl der Woche ---------- */

.rh-figure {
    padding: 28px var(--gut) 30px;
    border-bottom: 1px solid var(--ink);
    background: var(--panel);
}
.rh-figure-top {
    display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
}
.rh-figure-ttl { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.rh-figure-src {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--g55);
}
.rh-figure-src .rh-i { font-size: 13px; }
.rh-figure-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px;
    margin-top: 18px; align-items: end;
}
.rh-figure-cap { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 12px; }

.rh-bar { display: flex; height: 46px; }
.rh-bar > span {
    display: flex; align-items: center;
    font-family: var(--mono); color: var(--paper);
    overflow: hidden; white-space: nowrap;
}
.rh-bar-main { background: var(--ink); padding-left: 14px; font-size: 15.5px; }
.rh-bar-cut  { background: var(--steuern-pl); justify-content: center; font-size: 13.5px; }

.rh-key { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 10px; font-size: 13px; color: var(--g70); }
.rh-key span { display: flex; align-items: center; gap: 7px; }
.rh-key i { width: 10px; height: 10px; display: block; }

.rh-aside {
    border-left: 1px solid var(--g25); padding-left: 26px;
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 15px; line-height: 1.5; color: var(--g90);
}
.rh-aside .rh-i { font-size: 20px; color: var(--steuern); }

/* ---------- Beitragsliste ---------- */

.rh-rows { display: flex; flex-direction: column; }
.rh-row {
    display: grid; grid-template-columns: 150px minmax(0, 1fr) 140px; gap: 22px;
    padding: 15px var(--gut);
    border-bottom: 1px solid var(--g12);
    align-items: start;
}
.rh-row:last-child { border-bottom: 1px solid var(--ink); padding: 20px var(--gut); }
.rh-row > .rh-thumb { height: 100px; }
.rh-row--tall > .rh-thumb { height: 132px; }
.rh-row-bar { height: 100px; border-left: 3px solid var(--accent); }
.rh-row h2, .rh-row h3 {
    margin: 8px 0 0;
    font-size: clamp(21px, 1.75vw, 25px);
    font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
    max-width: 26em; text-wrap: pretty;
}
.rh-row-teaser { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--g70); max-width: 44em; }
.rh-row-meta {
    font-family: var(--mono); font-size: 12.5px; color: var(--g70);
    text-align: right; line-height: 1.9;
}
.rh-row-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rh-row-meta .rh-i { font-size: 12px; }

.rh-more {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 20px var(--gut) 34px;
}
.rh-more a {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
    border-bottom: 2px solid var(--ink);
}
.rh-more a .rh-i { font-size: 17px; }
.rh-more-n { font-family: var(--mono); font-size: 12.5px; color: var(--g55); }

/* ---------- Brotkrumen ---------- */

.rh-crumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 14px var(--gut);
    border-bottom: 1px solid var(--g12);
    font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--g55);
}
.rh-crumb .rh-i { font-size: 12px; }

/* ---------- Beitragsseite ---------- */

.rh-art-img { position: relative; height: clamp(220px, 32vw, 460px); }
.rh-art-img img { width: 100%; height: 100%; object-fit: cover; }
.rh-art-img .rh-plate { position: absolute; left: 0; top: 0; pointer-events: none; }

.rh-art-head {
    position: relative;
    margin-top: clamp(-66px, -4.6vw, -20px);
    padding: 0 var(--gut);
}
.rh-art-head h1 {
    margin: 0;
    background: var(--paper);
    padding: 26px 44px 14px 28px;
    margin-right: 190px;
    max-width: 21em;
    font-size: clamp(32px, 4.86vw, 70px);
    font-weight: 700; line-height: 0.94; letter-spacing: -0.05em;
    text-wrap: pretty;
}
.rh-caption { padding: 10px 0 0; font-size: 12px; color: var(--g55); }

.rh-art-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 22px;
    margin: 14px 0 0; padding: 12px 0;
    border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
    font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--g70);
}
.rh-art-meta .rh-mono { letter-spacing: 0.03em; text-transform: none; }
.rh-art-meta .rh-i { font-size: 14px; }
.rh-art-meta span { display: inline-flex; align-items: center; gap: 7px; }

.rh-art-grid {
    display: grid; grid-template-columns: minmax(0, 660px) 230px; gap: 58px;
    margin-top: 34px; align-items: start;
}

.rh-margin { padding-top: 4px; display: flex; flex-direction: column; gap: 24px; }
.rh-pull {
    border-left: 3px solid var(--steuern);
    padding: 2px 0 2px 15px;
    font-size: 15.5px; line-height: 1.45; color: var(--g90);
}
.rh-next { border-top: 1px solid var(--ink); padding-top: 12px; }
.rh-next-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.rh-next-list a { display: flex; gap: 12px; align-items: flex-start; }
.rh-next-list .rh-thumb { width: 74px; height: 52px; flex: none; }
.rh-next-list span {
    font-size: 15.5px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em;
}

/* ---------- Fliesstext ---------- */

.rh-body { counter-reset: rh-sec; }
.rh-body > p { margin: 22px 0 0; font-size: 18.5px; line-height: 1.62; }
.rh-body > p:first-child { margin-top: 0; }
.rh-body .rh-standfirst {
    margin: 0;
    font-size: clamp(21px, 1.75vw, 25px); line-height: 1.4;
    font-weight: 500; letter-spacing: -0.02em;
}

.rh-body h2 {
    display: flex; align-items: baseline; gap: 14px;
    margin: 40px 0 0 -28px;
    font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    scroll-margin-top: 20px;
}
.rh-body h2 .rh-n { font-family: var(--mono); font-weight: 400; color: var(--accent); }
.rh-body h2 + p { margin-top: 14px; }

.rh-body h3 {
    margin: 30px 0 0;
    font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em;
}
.rh-body h3 + p { margin-top: 10px; }

.rh-body ul, .rh-body ol { margin: 18px 0 0; padding-left: 22px; }
.rh-body li { margin-top: 9px; font-size: 18.5px; line-height: 1.55; }
.rh-body li::marker { color: var(--g55); }
.rh-body strong { font-weight: 700; }
.rh-body a:not(.rh-plate):not(.rh-btn) {
    border-bottom: 1px solid var(--g25);
}
.rh-body a:not(.rh-plate):not(.rh-btn):hover { border-bottom-color: var(--accent); }

.rh-fig { margin: 30px 0 0; }
.rh-fig img { width: 100%; height: clamp(200px, 26vw, 340px); object-fit: cover; }
.rh-fig figcaption { margin-top: 8px; font-size: 12px; color: var(--g55); }

/* Rechenblock im Text */
.rh-calc {
    margin: 32px 0 0;
    padding: 22px 24px;
    background: var(--panel);
    border-top: 3px solid var(--ink);
}
.rh-calc-ttl {
    display: flex; align-items: center; gap: 9px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.rh-calc-ttl .rh-n { font-family: var(--mono); font-weight: 400; }
.rh-calc-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.rh-calc-big { font-family: var(--mono); font-size: clamp(34px, 3.2vw, 46px); letter-spacing: -0.03em; line-height: 1; }
.rh-calc-sub { margin-top: 6px; font-size: 14px; color: var(--g70); }
.rh-calc-off {
    padding-bottom: 6px;
    display: flex; gap: 9px; align-items: flex-start;
    font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em;
    color: var(--steuern);
}
.rh-calc-off .rh-i { font-size: 18px; }
.rh-calc .rh-bar { height: 34px; margin-top: 16px; }
.rh-calc .rh-bar > span { padding: 0; justify-content: center; font-size: 12.5px; }

/* Tabellen */
.rh-scroll { margin: 26px 0 0; overflow-x: auto; }
.rh-tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rh-tbl caption {
    text-align: left; padding-bottom: 10px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--g40);
}
.rh-tbl th, .rh-tbl td {
    padding: 10px 14px 10px 0; text-align: left; vertical-align: top; hyphens: auto;
    border-bottom: 1px solid var(--g15);
}
.rh-tbl thead th {
    border-bottom: 3px solid var(--ink);
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.rh-tbl td:last-child, .rh-tbl th:last-child { padding-right: 0; }
.rh-tbl .num { font-family: var(--mono); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.rh-tbl tbody tr:last-child td { border-bottom: 1px solid var(--ink); }

/* Merksatz */
.rh-marker {
    margin: 30px 0 0; padding: 18px 22px;
    border-left: 3px solid var(--accent); background: var(--panel);
    font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em;
}

/* Quellen und Hinweis */
.rh-srcs { margin: 44px 0 0; border-top: 3px solid var(--ink); padding-top: 16px; }
.rh-srcs ol { margin: 12px 0 0; padding-left: 20px; }
.rh-srcs li { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--g70); }
.rh-srcs a { color: var(--ink); border-bottom: 1px solid var(--g25); overflow-wrap: anywhere; }
.rh-disc {
    margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--g20);
    font-size: 13px; line-height: 1.6; color: var(--g55);
}

/* ---------- Newsletter ---------- */

.rh-nl {
    margin: 52px 0 0;
    background: var(--accent); color: var(--paper);
    padding: 34px var(--gut) 40px;
    border-top: 12px solid var(--ink);
}
.rh-nl-grid {
    display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 46px; align-items: end;
}
.rh-nl-cover { width: 220px; height: 300px; }
.rh-nl-cover img { width: 100%; height: 100%; object-fit: cover; }
.rh-nl-kick {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.rh-nl-kick .rh-i { font-size: 15px; }
.rh-nl h2 {
    margin: 14px 0 0;
    font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; text-wrap: pretty;
}
.rh-nl-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; font-size: 16px; }
.rh-nl-list div { display: flex; gap: 10px; align-items: flex-start; }
.rh-nl-list .rh-i { font-size: 17px; margin-top: 0.15em; }
.rh-nl form { display: flex; flex-direction: column; gap: 10px; }
.rh-nl input[type="text"], .rh-nl input[type="email"] {
    font-size: 16px; padding: 14px; border: 0;
    background: var(--paper); color: var(--ink);
}
.rh-nl input::placeholder { color: var(--g55); opacity: 1; }
.rh-btn {
    font-size: 16px; font-weight: 700; padding: 16px; border: 0;
    background: var(--ink); color: var(--paper); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.rh-btn:hover { background: #000; color: var(--paper); }
.rh-btn .rh-i { font-size: 19px; }
.rh-nl-consent {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 12px; line-height: 1.5; color: rgba(237, 237, 234, 0.86);
}
.rh-nl-consent input { margin: 2px 0 0; flex: none; width: 15px; height: 15px; accent-color: var(--ink); }
.rh-nl-consent a { text-decoration: underline; }
.rh-nl-consent a:hover { color: #FFFFFF; }
.rh-nl-fine {
    display: flex; gap: 9px; align-items: flex-start;
    font-size: 12px; line-height: 1.5; color: rgba(237, 237, 234, 0.78);
}
.rh-nl-fine .rh-i { font-size: 15px; margin-top: 0.1em; }
.rh-nl-msg { font-size: 13px; line-height: 1.4; min-height: 1px; }
.rh-nl-msg:not(:empty) { padding: 8px 10px; background: var(--ink); color: var(--paper); }

/* ---------- Fuss ---------- */

.rh-foot {
    background: var(--ink); color: var(--g40);
    padding: 26px 32px 30px;
}
.rh-foot-top { padding-bottom: 20px; border-bottom: 1px solid var(--g05); }
.rh-foot-co { font-size: 13px; line-height: 1.6; max-width: 62em; }
.rh-foot-co strong { color: var(--paper); font-weight: 500; }
.rh-foot-bar {
    display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
    padding-top: 20px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.rh-foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.rh-foot a:hover { color: var(--paper); }

/* ---------- Cookie-Hinweis ---------- */

.rh-cookie {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--ink); color: var(--paper);
    border-top: 3px solid var(--accent);
}
.rh-cookie.is-open { display: block; }
.rh-cookie-in {
    max-width: 1440px; margin: 0 auto;
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
    padding: 18px 32px;
}
.rh-cookie-txt { flex: 1 1 380px; font-size: 13px; line-height: 1.55; color: rgba(237, 237, 234, 0.82); }
.rh-cookie-txt a { text-decoration: underline; }
.rh-cookie-txt a:hover { color: #FFFFFF; }
.rh-cookie button {
    font-size: 14px; font-weight: 700; padding: 13px 24px; border: 0;
    background: var(--paper); color: var(--ink); cursor: pointer;
}

/* ---------- Rubrik-, Archiv- und Rechtsseiten ---------- */

.rh-cathead { padding: 40px var(--gut) 30px; border-bottom: 3px solid var(--ink); }
.rh-cathead h1 {
    margin: 12px 0 0;
    font-size: clamp(38px, 4.2vw, 60px);
    font-weight: 700; line-height: 0.96; letter-spacing: -0.045em;
}
.rh-cathead p { margin: 14px 0 0; font-size: 19px; line-height: 1.55; color: var(--g70); max-width: 34em; }

.rh-legal { padding: 40px var(--gut) 50px; max-width: 46em; }
.rh-legal h1 {
    margin: 0 0 26px;
    font-size: clamp(34px, 3.6vw, 52px);
    font-weight: 700; line-height: 0.98; letter-spacing: -0.045em;
}
.rh-legal h2 {
    margin: 34px 0 0;
    font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding-bottom: 8px; border-bottom: 3px solid var(--ink);
}
.rh-legal h3 { margin: 24px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.rh-legal p, .rh-legal li { font-size: 16px; line-height: 1.65; }
.rh-legal p { margin: 14px 0 0; }
.rh-legal ul { margin: 14px 0 0; padding-left: 20px; }
.rh-legal li { margin-top: 8px; }
.rh-legal address { margin: 14px 0 0; font-style: normal; font-size: 16px; line-height: 1.7; }
.rh-legal a { border-bottom: 1px solid var(--g25); overflow-wrap: anywhere; }
.rh-legal .rh-datablock {
    margin: 18px 0 0; padding: 18px 22px; background: var(--panel);
    border-top: 3px solid var(--ink);
}
.rh-legal .rh-datablock p { margin: 6px 0 0; }
.rh-legal .rh-datablock p:first-child { margin: 0; }
.rh-legal .rh-datablock .rh-mono { font-size: 17px; }

.rh-danke { padding: clamp(40px, 6vw, 80px) var(--gut) 60px; max-width: 40em; }
.rh-danke h1 {
    margin: 14px 0 0;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; text-wrap: pretty;
}
.rh-danke p { margin: 18px 0 0; font-size: 18px; line-height: 1.6; }
.rh-danke a { border-bottom: 1px solid var(--g25); }
.rh-danke .rh-back {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
    font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
    border-bottom: 2px solid var(--ink);
}

/* ==========================================================================
   Anpassung an schmale Fenster
   ========================================================================== */

@media (max-width: 1180px) {
    :root { --rail: 250px; --gut: 30px; }
    .rh-lead-foot { grid-template-columns: minmax(0, 1fr) 220px; gap: 26px; }
    .rh-figure-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
    .rh-art-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 34px; }
    .rh-nl-grid { grid-template-columns: 170px minmax(0, 1fr) 290px; gap: 30px; }
    .rh-nl-cover { width: 170px; height: 232px; }
    .rh-brand { font-size: 32px; }
}

@media (max-width: 980px) {
    :root { --gut: 24px; }

    .rh-shell { display: flex; flex-direction: column; background: none; }
    .rh-rail { display: contents; }
    .rh-rail-top { order: 1; padding: 24px var(--gut) 0; }
    .rh-main { order: 2; }
    .rh-rail-extra { order: 3; padding: 0 var(--gut) 34px; }

    /* Kopfbereich schmaler Schirme: Wortmarke klein, Rubriken in einer
       waagerechten, bei Bedarf scrollbaren Zeile. Das spart rund 200 px
       oberhalb der Schlagzeile. */
    .rh-brand { font-size: 26px; letter-spacing: -0.04em; }
    .rh-tagline { font-size: 13px; margin-top: 8px; max-width: 34em; }

    .rh-nav {
        flex-direction: row; flex-wrap: wrap; gap: 2px 22px;
        margin-top: 14px;
        border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
    }
    .rh-nav a {
        border-bottom: 0; padding: 9px 0;
        font-size: 17px; gap: 8px; white-space: nowrap;
    }
    .rh-nav .rh-i { font-size: 16px; }
    .rh-nav-n { display: none; }

    /* Das Abschnittsverzeichnis der Schiene landet auf schmalen Schirmen
       hinter dem Beitrag und waere dort ohne Nutzen. */
    .rh-toc-block { display: none; }

    .rh-block, .rh-block--thick { margin-top: 26px; }

    /* Aufmacher und Beitragskopf: Titel unter das Bild, kein Ueberlappen */
    .rh-lead { margin-top: 0; padding-top: 0; }
    .rh-lead h1, .rh-lead-h { padding: 22px 0 12px; margin-right: 0; }
    .rh-lead-foot { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .rh-byline { text-align: left; }
    .rh-byline-meta { justify-content: flex-start; }

    .rh-art-head { margin-top: 0; }
    .rh-art-head h1 { padding: 22px 0 12px; margin-right: 0; max-width: none; }
    .rh-art-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 26px; }
    .rh-margin { margin-top: 36px; padding-top: 0; }
    .rh-body h2 { margin-left: 0; }

    .rh-pair { grid-template-columns: minmax(0, 1fr); }
    .rh-pair-a { border-right: 0; border-bottom: 1px solid var(--ink); padding: 22px var(--gut) 26px; }
    .rh-pair-b { padding: 22px var(--gut) 26px; }
    .rh-pair-b > .rh-thumb { width: 118px; height: 165px; }

    .rh-figure-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
    .rh-aside { border-left: 0; border-top: 1px solid var(--g25); padding: 16px 0 0; }

    .rh-row, .rh-row:last-child { grid-template-columns: 108px minmax(0, 1fr); gap: 16px; padding: 16px var(--gut); }
    .rh-row > .rh-thumb, .rh-row--tall > .rh-thumb, .rh-row-bar { height: 74px; }
    .rh-row-meta { grid-column: 2; text-align: left; line-height: 1.6; margin-top: 8px; }
    .rh-row-meta br { display: none; }
    .rh-row-meta span { margin-left: 14px; }

    .rh-nl { padding: 28px var(--gut) 32px; }
    .rh-nl-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
    .rh-nl-cover { width: 132px; height: 180px; }

    .rh-strip { padding: 9px var(--gut); flex-wrap: wrap; gap: 8px 18px; }
    .rh-foot { padding: 24px var(--gut) 28px; }
    .rh-cookie-in { padding: 16px var(--gut); gap: 16px; }
}

@media (max-width: 620px) {
    /* Das schmale Segment fasst seine Beschriftung nicht mehr;
       die Betraege stehen in der Legende darunter. */
    .rh-bar-cut { font-size: 0; }
    .rh-bar-main { font-size: 14px; padding-left: 10px; }
    .rh-key { gap: 6px 20px; flex-direction: column; }

    .rh-strip-note { flex: 1 1 100%; }
    .rh-strip-right { gap: 18px; }

    .rh-body > p, .rh-body li { font-size: 17px; }
    .rh-lead-foot p { font-size: 17px; }
    .rh-art-meta { gap: 12px 18px; font-size: 11px; }
    .rh-calc { padding: 18px; }
    .rh-nl-list { font-size: 15px; }
    .rh-tbl { font-size: 14.5px; }
    .rh-tbl th, .rh-tbl td { padding: 9px 12px 9px 0; }

    .rh-row, .rh-row:last-child { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
    .rh-row > .rh-thumb, .rh-row--tall > .rh-thumb, .rh-row-bar { height: 60px; }
    .rh-pair-b { flex-direction: column; gap: 14px; }
    .rh-pair-b > .rh-thumb { width: 100%; height: 190px; }

    .rh-foot-bar { font-size: 11px; }
    .rh-foot-links { gap: 16px; }
}

@media print {
    .rh-cookie, .rh-nl, .rh-strip { display: none; }
    body { background: #FFF; }
}
