/* SEO-Paket Runde 2 (05.11.): eigene Bausteine der neuen Seiten – Farben, Schriften, Radien wie die Leistungsseiten. */

/* Kopf: Bild rechts statt App-Ansicht */
#swup main header.lk-hero.nx-hero .lk-art > .nx-art { display: grid; place-items: center; }
#swup main header.lk-hero.nx-hero .nx-art img { width: min(100%, 460px); height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(11,15,6,.35)); }
#swup main header.lk-hero.nx-hero .nx-photo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 22px; filter: none; box-shadow: 0 40px 70px -40px rgba(11,15,6,.6), 0 0 0 1px rgba(255,255,255,.08); }
#swup main header.lk-hero.nx-hero .nx-art[class*="nx-photo"]:has(img[src*="rober"]) img { width: min(340px, 80%); aspect-ratio: 1; height: auto; border-radius: 50%; box-shadow: 0 0 0 10px rgba(197,247,79,.9), 0 40px 70px -30px rgba(11,15,6,.6); }

/* Abschnitt */
.nx { padding: clamp(80px, 9vw, 150px) var(--pad-v, 40px); color: #0b0f06; }
.nx .nx-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.nx .nx-head h2 { margin: 12px 0 0; font: 900 clamp(44px, 6vw, 96px)/.92 var(--display); font-stretch: 75%; letter-spacing: -.01em; text-transform: uppercase; }
.nx .nx-head h2 em { font-style: normal; }
.nx .nx-lead { margin: 0; max-width: 34rem; font: 400 var(--tc-fs-text, 18px)/1.5 var(--display); color: rgba(11,15,6,.7); }
@media (max-width: 960px) { .nx .nx-head { grid-template-columns: 1fr; align-items: start; } }

/* Pfeil-Kreis wie auf den Referenz-Kacheln */
.nx .nx-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #0b0f06; color: #c5f74f; font-style: normal; transition: background .3s, color .3s, transform .3s; }
.nx .nx-go svg { width: 18px; height: 18px; }
.nx a:hover .nx-go { background: #c5f74f; color: #0b0f06; transform: rotate(45deg); }

/* Leistungs-Karten mit 3D-Objekt */
.nx .nx-svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 1.4vw, 22px); margin: 0; padding: 0; list-style: none; }
.nx .nx-svc li::before { content: none !important; }
.nx .nx-svc a { position: relative; display: grid; align-content: end; gap: 6px; min-height: 340px; padding: 26px; border-radius: 22px; background: #fff; color: #0b0f06; text-decoration: none; overflow: hidden; box-shadow: 0 1px 0 rgba(11,15,6,.06); transition: background .3s, transform .3s; }
.nx .nx-svc a:hover { background: #c5f74f; transform: translateY(-4px); }
.nx .nx-svc img { position: absolute; top: 14px; left: 50%; width: 62%; translate: -50% 0; filter: drop-shadow(0 26px 30px rgba(11,15,6,.28)); transition: transform .5s; }
.nx .nx-svc a:hover img { transform: translateY(-6px) rotate(-3deg); }
.nx .nx-svc b { font: 900 28px/1 var(--display); font-stretch: 85%; text-transform: uppercase; }
.nx .nx-svc span { max-width: 22rem; font-size: 15px; line-height: 1.45; color: rgba(11,15,6,.68); }
.nx .nx-svc .nx-go { position: absolute; right: 22px; bottom: 22px; }
.nx .nx-orte a { min-height: 260px; } .nx .nx-orte img { width: 44%; }

/* Heute → mit uns */
.nx .nx-duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); gap: clamp(16px, 2vw, 34px); align-items: center; }
.nx .nx-heute, .nx .nx-mit { position: relative; padding: clamp(26px, 3vw, 44px); border-radius: 24px; }
.nx .nx-heute { background: #0b0f06; color: #f4f5f2; rotate: -2deg; }
.nx .nx-mit { background: #c5f74f; color: #0b0f06; box-shadow: 0 40px 60px -40px rgba(11,15,6,.45); }
.nx .nx-duo small { display: block; margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.nx .nx-duo p { margin: 0; font: 700 clamp(20px, 2vw, 30px)/1.3 var(--display); }
.nx .nx-heute s { text-decoration-color: #c5f74f; text-decoration-thickness: 3px; }
.nx .nx-mit em { display: block; margin-top: 16px; font: 600 13px/1.3 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.nx .nx-mit img { position: absolute; right: -14px; top: -60px; width: 130px; filter: drop-shadow(0 20px 24px rgba(11,15,6,.3)); }
.nx .nx-arw { width: clamp(80px, 8vw, 130px); fill: none; stroke: #0b0f06; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .nx .nx-duo { grid-template-columns: 1fr; } .nx .nx-arw { justify-self: center; rotate: 90deg; width: 80px; } .nx .nx-mit img { width: 96px; top: -40px; } }

/* Punkte (Werte, Fakten) */
.nx .nx-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 1.4vw, 22px); margin: 0; padding: 0; list-style: none; }
.nx .nx-points li { display: grid; align-content: start; gap: 10px; padding: clamp(24px, 2.4vw, 34px); border-radius: 22px; background: #fff; }
.nx .nx-points li::before { content: none !important; }
.nx .nx-points li:nth-child(2) { background: #c5f74f; }
.nx .nx-points li:nth-child(4) { background: #0b0f06; color: #f4f5f2; } .nx .nx-points li:nth-child(4) span { color: rgba(244,245,242,.7); }
.nx .nx-points small { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.nx .nx-points b { font: 800 clamp(22px, 1.9vw, 28px)/1.15 var(--display); }
.nx .nx-points span { font-size: 16px; line-height: 1.5; color: rgba(11,15,6,.7); }

/* Branchen-Karten */
.nx .nx-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(14px, 1.4vw, 22px); margin: 0; padding: 0; list-style: none; }
.nx .nx-branches li::before { content: none !important; }
.nx .nx-branches a { position: relative; display: grid; align-content: start; gap: 12px; min-height: 360px; padding: 120px 26px 80px; border-radius: 22px; background: #fff; color: #0b0f06; text-decoration: none; overflow: hidden; transition: background .3s, transform .3s; }
.nx .nx-branches a:hover { background: #c5f74f; transform: translateY(-4px); }
.nx .nx-branches img { position: absolute; top: 12px; right: 12px; width: 120px; filter: drop-shadow(0 20px 24px rgba(11,15,6,.25)); }
.nx .nx-branches b { font: 900 30px/1 var(--display); font-stretch: 85%; text-transform: uppercase; }
.nx .nx-branches .nx-h { font-size: 15px; color: rgba(11,15,6,.55); } .nx .nx-branches .nx-h s { text-decoration-color: #c5f74f; text-decoration-thickness: 2px; }
.nx .nx-branches a:hover .nx-h s { text-decoration-color: #0b0f06; }
.nx .nx-branches .nx-m { font-size: 16px; line-height: 1.45; }
.nx .nx-branches .nx-pills { display: flex; flex-wrap: wrap; gap: 6px; } .nx .nx-branches .nx-pills em { padding: 6px 11px; border-radius: 99px; background: #0b0f06; color: #c5f74f; font: 700 12px/1 var(--display); font-style: normal; }
.nx .nx-branches .nx-go { position: absolute; left: 26px; bottom: 22px; }

/* Korrekturen nach Durchsicht (05.11.) */
/* lange H1 (z. B. „Bau und Handwerk“) umbrechen statt abschneiden */
/* Grösse bleibt die Hausgrösse der Leistungsseiten (Dirk 06.11.: „einheitlicher Stil überall“) */
#swup main header.lk-hero.nx-hero .lk-h1 { white-space: normal !important; overflow-wrap: normal; hyphens: manual; }
#swup main header.lk-hero.nx-hero .lk-h1 > span { white-space: normal !important; display: inline !important; }
/* Heute-Karte: Text hell auf Schwarz */
.nx .nx-heute p, .nx .nx-heute s { color: #f4f5f2 !important; }
/* Objekt über der Lime-Karte, nicht über dem Text */
.nx .nx-mit { padding-right: clamp(26px, 3vw, 44px); }
.nx .nx-mit img { right: 18px; top: -88px; width: 120px; }
/* Leistungs-Karten immer im Dreier-Raster (eine Karte = ein Drittel), Objekt kleiner */
.nx .nx-svc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx .nx-svc a { min-height: 320px; }
.nx .nx-svc img { width: 52%; max-width: 220px; }
@media (max-width: 960px) { .nx .nx-svc { grid-template-columns: 1fr; } .nx .nx-svc img { width: 40%; } }
/* Objekt nicht in der Lime-Karte (steht schon im Kopf) */
.nx .nx-mit img { display: none; }
/* 3D-Objekt der Leistungs-Karte oben, Titel frei */
.nx .nx-svc a { padding-top: 210px; min-height: 0; }
.nx .nx-svc img { top: 18px; height: 170px; width: auto !important; max-width: 70%; object-fit: contain; }
@media (max-width: 960px) { .nx .nx-svc a { padding-top: 170px; } .nx .nx-svc img { height: 140px; } }
/* Branchen-Karten: Objekt oben rechts, nicht über dem Text */
.nx .nx-branches img { top: 16px; right: 16px; width: auto !important; height: 96px; max-width: 120px; object-fit: contain; }
/* Pfeil im Kreis sichtbar (Lime auf Schwarz, beim Zeigen umgekehrt) */
.nx .nx-go svg { stroke: currentColor; color: inherit; }
.nx .nx-go svg path { stroke: currentColor; }
/* fünf Branchen: Dreier-Raster statt 4 + 1 */
@media (min-width: 961px) { .nx .nx-branches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Überschrift genau zweizeilig (Branchen, Dirk 05.11.): breitere Textspalte, jede Zeile ohne Umbruch, Grösse passt zur Spalte */
@media (min-width: 961px) {
  #swup main header.lk-hero.nx-h2l { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr) !important; }
  #swup main header.lk-hero.nx-h2l .lk-l { max-width: none !important; }
  #swup main header.lk-hero.nx-h2l .lk-h1 > span:not(.sr-only) { display: block !important; white-space: nowrap !important; }
  #swup main header.lk-hero.nx-h2l .lk-lead { max-width: 36rem; }
}
/* Handy: weiterhin genau zwei Zeilen – Hausgrösse, nur wenn die längste Zeile nicht passt, etwas kleiner (--fit setzt der Baukasten) */
@media (max-width: 960px) {
  #swup main header.lk-hero.nx-h2l .lk-h1 { font-size: min(clamp(46px, 13vw, 72px), calc((100vw - 40px) / var(--fit, 7))) !important; }
  #swup main header.lk-hero.nx-h2l .lk-h1 > span:not(.sr-only) { display: block !important; white-space: nowrap !important; }
}


/* Ghost-Button in Abschnitten wie im Kopf: Rahmen + dunkler Punkt (Dirk 06.11.: „die Buttons sind broken“ – Rahmen kam nur im Hero) */
#swup main section.nx .btn.btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(11,15,6,.35); }
#swup main section.nx .btn.btn-ghost::before { background: #0b0f06; }
#swup main section.nx .btn.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #0b0f06; }
