/* /easyorder/ – Kopf-Bilder (Handy dünner Rahmen, Browser, gerahmte Fotos). Liegen auf der dunklen Welle rechts. Klassen hx-. */
#swup main header.nx-hero .nx-art.hx-one, #swup main header.nx-hero .nx-art.hx-duo, #swup main header.nx-hero .nx-art.hx-fr { width: 100%; max-width: none; aspect-ratio: auto; }
.nx-hero .hx-phone { position: relative; padding: 7px; border-radius: 44px; background: #111316; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 50px 80px -40px rgba(0,0,0,.8); }
.nx-hero .hx-scr { display: block; overflow: hidden; aspect-ratio: 9 / 19; border-radius: 37px; background: #fff; }
.nx-hero .hx-scr img { display: block; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 0; }
/* 2 · grosses Handy, leicht gedreht wie auf den Referenz-Köpfen erlaubt? nein – gerade */
.hx-one { display: grid; place-items: center; } .hx-one .hx-phone { width: min(230px, 56%); }
/* 3 · Browser + Handy davor */
.hx-duo { position: relative; padding: 6% 0 10%; }
.nx-hero .hx-win { width: 88%; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 50px 80px -40px rgba(0,0,0,.8); }
.nx-hero .hx-bar { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 12px; background: #e9eae6; } .nx-hero .hx-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(11,15,6,.2); }
.nx-hero .hx-win img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto !important; object-fit: cover; object-position: 0 0; }
.nx-hero .hx-front { position: absolute; right: 0; bottom: 0; width: 30%; padding: 5px; border-radius: 30px; } .nx-hero .hx-front .hx-scr { border-radius: 25px; }
/* 4/5 · gerahmte Fotos (wie /branchen/-Fotos) */
.hx-fr { display: grid; place-items: center; }
.nx-hero .hx-ph { display: block; width: min(420px, 82%); padding: 12px; border-radius: 34px; background: #fff; box-shadow: 0 50px 80px -40px rgba(0,0,0,.8); }
.nx-hero .hx-ph img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto !important; object-fit: cover; border-radius: 24px; }
.nx-hero .hx-wide .hx-ph { width: min(560px, 96%); } .nx-hero .hx-wide .hx-ph img { aspect-ratio: 16 / 10; }
@media (max-width: 960px) { .hx-one .hx-phone { width: 46%; } .nx-hero .hx-ph { width: 70%; } .nx-hero .hx-wide .hx-ph { width: 92%; } }

/* 5 · Studiofoto gross (Richtwert /referenzen/tom-infrastruktur/: 600 px). Dirk 06.11.: „Bild viel zu weit unten, Hero auseinandergezogen“ →
   normaler Kopf: Textblock links (so breit wie die Überschrift), Bild rechts mittig daneben, so gross wie der Platz erlaubt, höchstens 600 px. */
@media (min-width: 961px) {
  #swup main header.nx-hero:has(.hx-wide) { grid-template-columns: calc(var(--fit, 9) * 6.4vw + 12px) minmax(0, 1fr) !important; column-gap: clamp(28px, 3vw, 56px); align-items: center; }   /* Überschrift = --fit × 6,4vw breit (Hausformel) */
  #swup main header.nx-hero:has(.hx-wide) > .lk-art { width: 100%; display: grid; justify-items: center; }
  #swup main header.nx-hero:has(.hx-wide) .nx-art.hx-wide { width: 100%; max-width: 600px; display: block; }
  .nx-hero .hx-wide .hx-ph { width: 100% !important; padding: 0; border-radius: 14px; background: none; overflow: hidden; }
  .nx-hero .hx-wide .hx-ph img { border-radius: 14px; aspect-ratio: 16 / 11; }
}
@media (max-width: 960px) { .nx-hero .hx-wide .hx-ph { width: 75vw; max-width: 420px; padding: 0; background: none; } .nx-hero .hx-wide .hx-ph img { border-radius: 14px; aspect-ratio: 16 / 11; } }
/* lk.css schiebt den Bildbereich um 90 px nach links und gibt dem Objekt feste 460 px Höhe – für das Foto aufheben (sonst liegt es über der Überschrift) */
@media (min-width: 961px) {
  #swup main header.lk-hero:has(.hx-wide) .lk-art { translate: none !important; max-width: none; min-height: 0; }
  #swup main header.lk-hero:has(.hx-wide) .lk-art > .nx-art.hx-wide { height: auto !important; display: block; width: 100% !important; max-width: 600px; justify-self: center; }
  #swup main header.lk-hero.nx-hero .nx-art.hx-wide img { width: 100% !important; max-height: none; filter: none; }
  #swup main header.nx-hero:has(.hx-wide) > .lk-art { justify-items: center; }   /* mittig in der Spalte (Dirk 06.11.: „zu weit rechts“) */
}
