/* Referenz-Übersicht – Kopf in 5 Fassungen (Dirk 04.11.). Heller Grund + Lime-Welle wie im Kopf der Referenz-Unterseiten. Klassen rhv-. */
main[data-v="1"] .rhv:not([data-v="1"]), main[data-v="2"] .rhv:not([data-v="2"]), main[data-v="3"] .rhv:not([data-v="3"]),
main[data-v="4"] .rhv:not([data-v="4"]), main[data-v="5"] .rhv:not([data-v="5"]) { display: none !important; }

#swup main header.rhv { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  min-height: 0; margin: 0; padding: clamp(130px, 11vw, 168px) clamp(20px, 3vw, 43px) clamp(64px, 6vw, 100px) !important; background: #eef0ea !important; }
#swup main header.rhv > :not(svg) { position: relative; z-index: 1; }
.rhv-blob { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rhv-blob path, .rhv-mblob path { fill: #c5f74f; }
.rhv-mblob { display: none; }
#swup main header.rhv .rhv-l { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 1.8vw, 26px); align-content: center; max-width: 640px; }
#swup main header.rhv .rhv-l > * { grid-column: 1; }
#swup main header.rhv .rhv-l.wide { grid-column: 1 / -1; max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; column-gap: clamp(24px, 4vw, 72px); }
#swup main header.rhv .rhv-l.wide > :not(.rhv-lead) { grid-column: 1; } #swup main header.rhv .rhv-l.wide > .rhv-lead { grid-column: 2; grid-row: 3; align-self: end; }
#swup main header.rhv .rhv-h1 { margin: 0; font-size: clamp(56px, 6.4vw, 104px) !important; line-height: .86 !important; }
/* 2: nur Text links, Lime-Fläche rechts frei (wie Unterseiten ohne Mockups); Kopfhöhe wie dort */
@media (min-width: 961px) { #swup main header.rhv-2 { min-height: clamp(560px, 48vw, 694px); } }
#swup main header.rhv-2 .rhv-l { max-width: none; grid-column: 1 / -1; }
/* Regel: Überschrift immer zwei Zeilen („Was wir“ / „gebaut haben.“), nie dreizeilig */
#swup main header.rhv-2 .rhv-h1 span { display: block; white-space: nowrap; }
#swup main header.rhv-2 .rhv-lead { max-width: 440px; }
#swup main header.rhv-2 .rhv-h1 { font-size: clamp(60px, 7.4vw, 118px) !important; }
#swup main header.rhv .rhv-lead { margin: 0; max-width: 440px; }

/* Logo: Kopf ist jetzt hell → schwarzes Logo (wie auf den Unterseiten) */
html:not(.menu-open) .nav .logo img { filter: brightness(0); }

/* Brotkrumen */
.rhv-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 500 12px/1.3 var(--mono, "Geist Mono", monospace); letter-spacing: .12em; text-transform: uppercase; color: rgba(11,15,6,.6); }
.rhv-crumb i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #0b0f06; background: #c5f74f; flex: none; }
.rhv-crumb a { color: inherit; text-decoration: none; } .rhv-crumb a:hover { color: #0b0f06; text-decoration: underline; text-underline-offset: 3px; }
.rhv-crumb [aria-current] { color: #0b0f06; }
.rhv-crumb.b .sep { opacity: .5; } .rhv-crumb.b .cnt { margin-left: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(11,15,6,.07); color: rgba(11,15,6,.7); letter-spacing: .08em; }
.rhv-eb { margin: 0; } #swup main .rhv-eb i { background: #c5f74f !important; border: 1.5px solid #0b0f06 !important; opacity: 1 !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bilder: Browser + Handy wie im Kopf der Unterseiten */
.rhv-art { position: relative; justify-self: center; width: 100%; max-width: 640px; }
.rhv-win { margin: 0; overflow: hidden; border-radius: 14px; background: #16181c; box-shadow: 0 40px 70px -36px rgba(11,15,6,.55); }
.rhv-win .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; background: #e9eae6; }
.rhv-win .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(11,15,6,.18); }
.rhv-win .bar em { margin-left: 12px; padding: 3px 10px; border-radius: 99px; background: #fff; font: 500 11px/1 var(--mono, monospace); font-style: normal; letter-spacing: .04em; color: rgba(11,15,6,.6); }
.rhv-win img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.rhv-ph { margin: 0; padding: 5px; border-radius: 15% / 7%; background: #111316; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 40px 60px -30px rgba(11,15,6,.6); }
.rhv-ph .in { overflow: hidden; aspect-ratio: 600 / 1298; border-radius: 13% / 6%; background: #fff; }
.rhv-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.a1 .rhv-win { width: 88%; } .a1 .front { position: absolute; right: 0; bottom: -10%; width: 24%; }
/* 4 · Fächer */
.a4 { aspect-ratio: 1.3; max-width: 600px; } .a4 .rhv-win { position: absolute; width: 60%; }
.a4 .f1 { left: 0; top: 4%; rotate: -5deg; } .a4 .f2 { left: 30%; top: 0; rotate: 4deg; } .a4 .f3 { left: 6%; top: 42%; rotate: 3deg; } .a4 .f4 { left: 34%; top: 46%; rotate: -3deg; }
/* 5 · Handys */
.a5 { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 28px); } .a5 .rhv-ph { width: 27%; }
.a5 .p1 { translate: 0 8%; rotate: -4deg; } .a5 .p2 { translate: 0 -6%; } .a5 .p3 { translate: 0 10%; rotate: 4deg; }
/* 3 · Projektliste */
.rhv-toc { justify-self: end; width: min(100%, 520px); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.rhv-toc li + li { border-top: 1px solid rgba(11,15,6,.18); }
.rhv-toc a { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: baseline; padding: 18px 4px; color: #0b0f06; text-decoration: none; }
.rhv-toc small { grid-row: 1 / 3; font: 500 12px/1 var(--mono, monospace); letter-spacing: .1em; color: rgba(11,15,6,.55); }
.rhv-toc b { font: 900 clamp(24px, 2.2vw, 34px)/1 var(--display, "Archivo"); font-stretch: 72%; text-transform: uppercase; }
.rhv-toc span { grid-column: 2; font-size: 14px; color: rgba(11,15,6,.7); margin-top: 4px; }
.rhv-toc i { grid-column: 3; grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0b0f06; color: #c5f74f; font-style: normal; transition: rotate .3s; }
.rhv-toc a:hover i { rotate: 45deg; }

/* Handy / Tablet hochkant */
@media (max-width: 960px) {
  #swup main header.rhv { grid-template-columns: minmax(0, 1fr); padding: 104px 20px 48px !important; gap: 32px; }
  .rhv-blob { display: none; }
  .rhv-mblob { display: block; position: absolute; z-index: 0; top: 0; right: 0; width: 100%; height: 300px; pointer-events: none; }
  #swup main header.rhv .rhv-l.wide { grid-template-columns: minmax(0, 1fr); } #swup main header.rhv .rhv-l.wide > .rhv-lead { grid-column: 1; grid-row: auto; }
  #swup main header.rhv .rhv-h1, #swup main header.rhv-2 .rhv-h1 { font-size: clamp(46px, 13vw, 72px) !important; }
  .rhv-art { max-width: 520px; } .rhv-toc { justify-self: stretch; width: 100%; }
  .a1 .front { bottom: -6%; }
}

/* Navigation über hellem Kopf wie auf den Referenz-Unterseiten (thoch4-refine.css R15/R18): Menü-Knopf dunkel mit Lime-Strichen
   statt Lime auf Lime, Logo schwarz; über dunklem Grund Logo weiss. */
html:is([data-navbg="light"], [data-navbg="lime"]):not(.menu-open) .nav .logo img { filter: brightness(0) !important; }
html:is([data-navbg="light"], [data-navbg="lime"]):not(.menu-open) .nav .menu-btn { background: #0b0f06 !important; color: #c5f74f !important; box-shadow: none !important; }
html:is([data-navbg="light"], [data-navbg="lime"]):not(.menu-open) .nav .menu-btn i { background: #c5f74f !important; }
html[data-navbg="dark"]:not(.menu-open) .nav .logo img { filter: brightness(0) invert(1) !important; }

/* R38 · Menü-Knopf: R15 hielt Hintergrund und Farbe mit !important fest → kein Hover-Effekt mehr (Dirk 04.11.). Hover wie auf den
   Leistungsseiten: dunkler Knopf wird Lime mit dunklen Strichen (über Lime-Flächen hell). */
html:is([data-navbg="light"], [data-navbg="lime"]):not(.menu-open) .nav .menu-btn { transition: background-color .3s, color .3s !important; }
html[data-navbg="light"]:not(.menu-open) .nav .menu-btn:is(:hover, :focus-visible) { background: #c5f74f !important; color: #0b0f06 !important; }
html[data-navbg="lime"]:not(.menu-open) .nav .menu-btn:is(:hover, :focus-visible) { background: #f4f5f2 !important; color: #0b0f06 !important; }
html:is([data-navbg="light"], [data-navbg="lime"]):not(.menu-open) .nav .menu-btn:is(:hover, :focus-visible) i { background: #0b0f06 !important; }

