/* Referenz-Detailseite Runde 2 (Dirk 02.11.): bisheriger Stil + Bento + Startseite. Abschnitte im Wechsel Papier/Weiss/Dunkel/Lime
   mit Startseiten-Kopf (Label, grosse Ueberschrift links, Satz rechts). Klassen rh-, baut auf rq.css auf. */
/* Kopf: statt Brotkruemel-Zeile „Alle Referenzen“ + Schlagworte */
.rh-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(30px, 4vw, 60px); }
.rh-back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: 99px; background: #0b0f06; color: #c5f74f; font: 700 var(--tc-fs-klein)/1 var(--display); text-decoration: none; transition: gap .3s; }
.rh-back svg { width: 16px; height: 16px; } .rh-back:hover { gap: 12px; }
.rh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-tags i { padding: 9px 14px; border-radius: 99px; background: rgba(11,15,6,.08); font: 600 var(--tc-fs-klein)/1 var(--display); font-style: normal; color: #0b0f06; }
.rh-hero .ry-h1 { grid-row: 2; }
.rh-hero .rq-intro { grid-row: 2; }
.rh-wd { --wave: #0b0f06; }

/* Abschnitte */
.rh-body { background: var(--paper); }
.pr .prm.rv section.rh-s { position: relative; padding: clamp(80px, 8vw, 140px) var(--x); background: var(--paper); }
.pr .prm.rv section.rh-s.t-white { background: #fff; } .pr .prm.rv section.rh-s.t-lime { background: #c5f74f; }
.pr .prm.rv section.rh-s.t-dark { background: #0b0f06; }
.rh-s.t-white .rb-tint, .rh-s.t-white .rq-fact, .rh-s.t-white .rq-feat:not(.rb-lime):not(.rb-dark), .rh-s.t-white .rq-pal { background: var(--paper); box-shadow: none; }
.rh-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); column-gap: 6vw; align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.rh-head > .eyebrow { grid-column: 1; margin: 0 0 18px; }
#swup main.rh .rh-h2 { grid-column: 1; margin: 0; max-width: 14em; font: 900 var(--tc-fs-abschnitt)/.88 var(--display) !important; font-stretch: 72% !important; letter-spacing: -.01em; text-transform: uppercase; color: #0b0f06; }
#swup main.rh .rh-side { grid-column: 2; grid-row: 1 / 3; align-self: end; margin: 0; font: 400 var(--tc-fs-lead)/1.55 var(--display) !important; color: rgba(11,15,6,.72); }
.rh-s.t-dark .eyebrow { color: #f4f5f2 !important; } .rh-s.t-dark .eyebrow i { box-shadow: inset 0 0 0 1.5px #c5f74f !important; }
#swup main.rh .t-dark .rh-h2 { color: #f4f5f2; } #swup main.rh .t-dark .rh-side { color: rgba(244,245,242,.7); }
.rh-s.t-dark .rq-fact { background: #16191d; color: #f4f5f2; } .rh-s.t-dark .rq-fact small { color: rgba(244,245,242,.5); }
.rh-stage { padding: var(--g); border-radius: clamp(26px, 2.6vw, 38px); background: var(--tn); }
.rh-stage .rb-tint { background: #fff; }
.rh-txt { justify-content: center; }
.rh-palrow { display: grid; grid-template-columns: minmax(0, 1fr) repeat(auto-fit, minmax(220px, 1fr)); gap: var(--g); margin-top: var(--g); }
.rh-cta { display: grid; } .rh-cta .btn { justify-self: start; }
.rh-cta .rh-head { margin-bottom: 30px; }

/* 1 · Merkmale auf Dunkel */
.t-dark .rq-feat:not(.rb-lime) { background: #16191d; color: #f4f5f2; } .t-dark .rq-feat:not(.rb-lime) span, .t-dark .rq-feat:not(.rb-lime) small { color: rgba(244,245,242,.62); }

/* 2 · Buehne */
.pr .prm.rv section.rh-first { padding-top: clamp(50px, 5vw, 80px); }
.rh-statement { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
#swup main.rh .rh-statement p { margin: 0; font: 400 var(--tc-fs-lead)/1.6 var(--display) !important; color: rgba(11,15,6,.72); }
#swup main.rh .rh-statement p.big { font: 500 var(--tc-fs-statement)/1.35 var(--display) !important; color: #0b0f06; }
.f-big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-big .rq-feat small { font: 900 clamp(60px, 6vw, 110px)/.8 var(--display); font-stretch: 72%; letter-spacing: 0; color: #c5f74f; -webkit-text-stroke: 1.5px #0b0f06; padding-bottom: 20px; }
.rh-mas .re-col > .rq-img { aspect-ratio: auto; }

/* 3 · Erzaehlung */
.rh-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.rh-story.flip .rh-st-t { order: 2; }
.rh-st-t { position: relative; display: grid; justify-items: start; gap: 18px; }
.rh-st-t > .eyebrow { margin: 0 !important; }
#swup main.rh .rh-st-t > p { margin: 0; font: 400 var(--tc-fs-lead)/1.6 var(--display) !important; color: rgba(11,15,6,.72); }
.rh-st-t .rq-k4 { grid-template-columns: 1fr 1fr; width: 100%; }
.rh-arrow { width: clamp(110px, 9vw, 160px); overflow: visible; justify-self: end; margin-top: 10px; }
.rh-arrow path { fill: none; stroke: #0b0f06; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.rh-story.flip .rh-arrow { justify-self: start; scale: -1 1; }
.rh-mini { display: grid; gap: 4px; width: 100%; border-top: 2px solid #0b0f06; }
.rh-mini > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid rgba(11,15,6,.14); }
.rh-mini small { grid-row: span 2; font: 500 var(--tc-fs-label)/1.4 var(--mono); color: rgba(11,15,6,.5); }
.rh-mini b { font: 800 var(--tc-fs-titel)/1.2 var(--display); } .rh-mini span { font: 400 var(--tc-fs-text)/1.5 var(--display); color: rgba(11,15,6,.68); }

/* 4 · Dunkle Buehne */
.rh-darkstage .rh-stage { background: #16191d; }
.rh-darkstage .rb-tint { background: #1e2227; }
.rh-darkstage .rq-row, .rh-darkstage .rq-k4 { margin-top: var(--g); }

/* 5 · Nummeriert */
.rh-num .rh-head { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(20px, 3vw, 50px); }
.rh-n { grid-row: 1 / 3; font: 900 clamp(90px, 10vw, 190px)/.78 var(--display); font-stretch: 72%; color: transparent; -webkit-text-stroke: 2px #0b0f06; }
.rh-num .rh-head > .eyebrow, .rh-num .rh-h2 { grid-column: 2 !important; }

@media (max-width: 960px) {
  .rh-head, .rh-num .rh-head, .rh-statement, .rh-story, .rh-palrow { grid-template-columns: minmax(0, 1fr); }
  #swup main.rh .rh-side { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .rh-story.flip .rh-st-t { order: 0; } .f-big { grid-template-columns: minmax(0, 1fr); } .rh-n { grid-row: auto; }
  .rh-hero .ry-h1, .rh-hero .rq-intro { grid-row: auto; }
}
/* Erzaehlung: Ueberschrift passt in die Textspalte */
.rh-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
#swup main.rh .rh-st-t .rh-h2 { font-size: min(var(--tc-fs-abschnitt), 4.2vw) !important; overflow-wrap: normal; hyphens: manual; }
@media (max-width: 960px) { #swup main.rh .rh-st-t .rh-h2 { font-size: var(--tc-fs-akzent) !important; } }
@media (max-width: 960px) { .rq-row > .rq-img[style*="aspect-ratio:0.5"] { aspect-ratio: .85 !important; } }
