/* =====================================================================
   Hero Variante D „50/50“ – Stil nach Referenz (spiegltec.at):
   links dunkle Fläche mit Foto-Textur + Tragwerks-Liniengrafik und großer
   Überschrift mit farbigen Unterstreichungsbalken, rechts Bild (Überblenden).
   Kopfzeile liegt transparent darüber.
   ===================================================================== */
.dhero { display: none; }
.hero-d .xhero, .hero-d .ehero, .hero-d .chero { display: none; }
.hero-d .dhero { display: grid; }

.dhero { grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; background: #0f1d2b; }

/* ---------- links ---------- */
.dh-left { position: relative; overflow: hidden; background: #0f1d2b; color: #fff; display: flex; align-items: center; }
.dh-tex { position: absolute; inset: 0; opacity: .14; }
.dh-tex img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.dh-left::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,29,43,.2) 0%, rgba(15,29,43,.55) 100%); }
.dh-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(124,192,239,.22); z-index: 1; }
.dh-inner { position: relative; z-index: 2; width: 100%; padding: calc(var(--header-h) + 42px + 24px) clamp(24px, 5.5vw, 80px) clamp(40px, 6vh, 72px); max-width: 760px; }
.dh-welcome { margin: 0 0 clamp(18px, 3vh, 32px); font-size: clamp(16px, 1.25vw, 19px); font-weight: 600; color: rgba(255,255,255,.92); }
.dh-welcome b { font-style: italic; color: #7cc0ef; }
.dh-title { font-size: clamp(46px, 5.8vw, 98px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.dh-title span { position: relative; display: table; z-index: 0; }
.dh-title span::after { content: ""; position: absolute; z-index: -1; left: .28em; right: -.18em; bottom: .12em; height: .2em; background: var(--blue); transform-origin: left; animation: dhLine .9s cubic-bezier(.2, .8, .2, 1) .4s both; }
.dh-title span:nth-child(2)::after { animation-delay: .6s; left: .22em; }
@keyframes dhLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dh-lead { margin: clamp(22px, 3.5vh, 40px) 0 0; max-width: 54ch; font-size: clamp(16px, 1.2vw, 18.5px); line-height: 1.6; color: rgba(255,255,255,.88); }
.dh-more { display: inline-flex; gap: 10px; margin-top: clamp(22px, 3.5vh, 36px); font-weight: 600; color: #fff; padding: 12px 20px; background: var(--blue); transition: background .2s; }
.dh-more:hover { background: var(--blue-dark); }
.dh-more span { transition: transform .3s; }
.dh-more:hover span { transform: translateX(4px); }

/* ---------- rechts: Bild, Überblenden ---------- */
.dh-media { position: relative; overflow: hidden; background: #0e1114; min-height: 420px; }
.ds { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.ds.is-active { opacity: 1; z-index: 1; }
.ds img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.ds.is-active img { transform: scale(1); }
.dh-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,.5) 100%); }
.dh-cap { position: absolute; z-index: 3; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); color: #fff; display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--blue); }
.dh-cap b { font-size: 18px; }
.dh-cap span { font-size: 14px; color: rgba(255,255,255,.8); }
.dh-cap:hover b { text-decoration: underline; text-underline-offset: 3px; }
.dh-cap.swap > * { animation: dhIn .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dhIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dh-dots { position: absolute; z-index: 3; right: clamp(20px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px); display: flex; gap: 6px; }
.dh-dots button { width: 26px; height: 3px; background: rgba(255,255,255,.45); padding: 0; position: relative; overflow: hidden; }
.dh-dots button.is-active { background: rgba(255,255,255,.3); }
.dh-dots button.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dhDot var(--dh-dur, 5s) linear forwards; }
@keyframes dhDot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Kopfzeile: über dunkler linker Hälfte ohne Verlauf nötig */
.hero-d .site-header:not(.is-solid):not(.menu-open):not(.mega-open) { background: transparent; border-bottom-color: rgba(255,255,255,.14); }

/* ---------- Handy / Tablet ---------- */
@media (max-width: 900px) {
  .dhero { grid-template-columns: 1fr; min-height: 0; }
  .dh-media { order: 2; height: 52vh; }
  .dh-inner { padding: calc(var(--header-h) + 36px) 20px 40px; }
}
@media (prefers-reduced-motion: reduce) { .ds, .ds img { transition: none; } .dh-title span::after { animation: none; } }
