/* k-o-c.ch – neues Design im Stil der Framer-Vorlage «Nolan Barret».
   Schriften: Switzer (Fontshare, ITF Free Font License) + Fragment Mono (SIL OFL), lokal eingebunden.
   Unterschied zur Vorlage auf Kevins Wunsch: mehr Rand zur Seite (--rand). */

@font-face { font-family: 'Switzer'; src: url('/neu/fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/neu/fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/neu/fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fragment Mono'; src: url('/neu/fonts/fragment-mono-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fragment Mono'; src: url('/neu/fonts/fragment-mono-latin-ext.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF; }

:root {
  --schwarz: #000;
  --weiss: #fff;
  --grau: rgba(0, 0, 0, 0.4);
  --linie: rgba(0, 0, 0, 0.1);
  --flaeche: #f2f2f2;
  --rand: clamp(20px, 3.6vw, 60px); /* Vorlage: 15px */
  --luecke: clamp(10px, 0.9vw, 14px); /* Vorlage: 10px */
  --kopf-h: 56px;
  /* EINE Schrift-Skala für alle Seiten (Kevin: überall gleich, sehr einheitlich). Keine anderen Grössen verwenden. */
  --t-gross: 24px; /* Überschriften: Hero, About-Absatz, Grossansicht-Titel, Handy-Menü */
  --t-text: 16px;  /* Kopf, Menü, Reihen, Fliesstext, Fuss */
  --t-klein: 13px; /* Listen (About-Spalten, Leistung in der Liste am Handy) */
  --t-zahl: 12px; /* reine Zahlen in Switzer (optisch = 11px Fragment Mono) */
  --t-beschrieb: 14px; /* Beschriebe: Text unter «+» auf der Startseite, Paket-Texte auf Preise */
  --t-mono: 11px;  /* Fragment Mono: Bildunterschriften, [TITEL], Nummern, Etiketten */
  --sans: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body.nb {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font-family: var(--sans);
  font-size: var(--t-text);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
:where(.nb) :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; font: inherit; }
:where(.nb) :where(ul) { list-style: none; }
:where(.nb) :where(a) { color: inherit; text-decoration: none; }
:where(.nb) :where(button) { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.nb) :where(img) { display: block; max-width: 100%; height: auto; }
.nb .grau { color: var(--grau); }
.nb :focus-visible { outline: 2px solid var(--schwarz); outline-offset: 3px; }
::selection { background: #000; color: #fff; }

.nb-skip { position: absolute; left: var(--rand); top: -100px; z-index: 100; background: #000; color: #fff; padding: 8px 12px; }
.nb-skip:focus { top: 8px; }

/* Text-Rolle beim Hover: Wort rutscht nach oben, Kopie kommt von unten */
.nb-roll { position: relative; display: inline-block; vertical-align: top; line-height: 1.2; transition: transform 0.6s var(--ease); }
.nb-roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap; }
@media (hover: hover) {
  a:hover > .nb-roll, button:hover > .nb-roll { transform: translateY(-100%); }
}
/* Der Rahmen um die Rolle schneidet die Kopie ab, bis sie hochrutscht */
.nb-nav-link, .nb-link, .nb-mehr, .nb-gross-zu { display: inline-flex; overflow: hidden; line-height: 1.2; }

/* ------------------------------------------------------------------ Kopf */
.nb-kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  height: var(--kopf-h);
  padding: 0 var(--rand);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nb-marke { justify-self: start; display: block; }
.nb-marke img { height: 32px; width: auto; filter: invert(1); }
@media (max-width: 899px) { .nb-marke img { height: 30px; } }
.nb-kopf-rechts { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nb-uhr { font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.03em; }
.nb-nav { display: contents; }
.nb-nav-link[aria-current='page'] { color: var(--grau); }
.nb-menu-knopf { display: none; }

.nb-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--weiss);
  padding: calc(var(--kopf-h) + 40px) var(--rand) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.nb-menu[hidden] { display: none; }
.nb-menu ul { display: grid; gap: 6px; }
.nb-menu ul { gap: 2px; }
.nb-menu li a { display: flex; align-items: baseline; gap: 12px; font-size: var(--t-gross); line-height: 1.1; letter-spacing: -0.02em; }
.nb-menu-nr { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: normal; color: var(--grau); width: 20px; }
.nb-menu-fuss { color: var(--grau); }

/* ------------------------------------------------------------------ Hero */
.nb-hero { padding: clamp(150px, 22vh, 230px) var(--rand) clamp(120px, 20vh, 230px); }
.nb-hero-text {
  max-width: 940px; /* gleich wie About-Überschrift */
  font-size: var(--t-gross); line-height: 1.1; letter-spacing: -0.02em;
}
.nb-wort { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.nb-wort > span { display: inline-block; will-change: transform; }

/* ------------------------------------------------------------------ Reihen */
.nb-reihe { padding: 0 var(--rand); margin-bottom: clamp(56px, 8vw, 110px); }
.nb-reihe-kopf {
  position: sticky; top: var(--kopf-h); z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 45px; margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nb-reihe-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.28em; }
.nb-reihe-titel h2 { display: inline; }

/* Plus → Kreuz */
.nb-plus { position: relative; width: 28px; height: 22px; margin-left: 6px; }
.nb-plus span {
  position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform 0.6s var(--ease);
}
.nb-plus span:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.nb-plus[aria-expanded='true'] span:first-child { transform: translate(-50%, -50%) rotate(135deg); }
.nb-plus[aria-expanded='true'] span:last-child { transform: translate(-50%, -50%) rotate(225deg); }

/* Ansichts-Umschalter */
.nb-ansicht { display: flex; gap: 0; }
.nb-ansicht-knopf { width: 26px; height: 22px; display: grid; place-items: center; }
.nb-ansicht-knopf svg { width: 12px; height: 12px; fill: currentColor; opacity: 0.22; transition: opacity 0.3s; }
.nb-ansicht-knopf:hover svg { opacity: 0.6; }
.nb-ansicht-knopf[aria-pressed='true'] svg { opacity: 1; }

/* Aufklapp-Text */
.nb-info { overflow: hidden; }
.nb-info-innen { max-width: 500px; padding: 0 0 24px; display: grid; gap: 12px; }
.nb-info-innen p:not(.nb-info-links) { font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.nb-info-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nb-link { align-items: baseline; gap: 6px; }
.nb-pfeil { display: inline-block; transition: transform 0.6s var(--ease); }
.nb-link:hover .nb-pfeil { transform: translateX(5px); }
.nb-link--klein { color: var(--schwarz); }

/* Raster: 4 Spalten, Zeilen oben bündig (wie Vorlage) */
.nb-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(var(--luecke) * 2.6) var(--luecke);
  align-items: start;
  padding-top: 6px;
}
.nb-reihe[data-ansicht='zwei'] .nb-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nb-karte[hidden] { display: none; }

.nb-karte-bild {
  display: block; width: 100%;
  overflow: hidden;
  background: var(--flaeche);
  cursor: pointer;
}
.nb-karte-bild { aspect-ratio: 1 / 1; }
.nb-karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s; transform-origin: 50% 50%; }
@media (hover: hover) {
  .nb-karte-bild:hover img { transform: scale(1.035); }
}
.nb-karte-text {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px;
  font-family: var(--mono); font-size: var(--t-mono); line-height: 1; letter-spacing: normal; text-transform: uppercase;
}
.nb-karte-titel { position: relative; display: block; overflow: hidden; height: 1.1em; flex: 1 1 auto; min-width: 0; }
.nb-roll-wort { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform 0.6s var(--ease); }
.nb-roll-wort--neben { position: absolute; left: 0; right: 0; top: 100%; color: var(--grau); }
.nb-karte-leistung { display: none; }
.nb-karte-nr { display: none; flex: none; color: var(--grau); }
@media (hover: hover) {
  .nb-karte:hover .nb-roll-wort { transform: translateY(-100%); }
  .nb-karte:hover .nb-roll-wort:only-child { transform: none; }
}

/* Listen-Ansicht: kleines Bild, Titel, Leistung, Nummer in einer Zeile */
.nb-reihe[data-ansicht='liste'] .nb-raster { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
.nb-reihe[data-ansicht='liste'] .nb-karte {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 0 18px;
  padding: 10px 0; border-top: 1px solid var(--linie);
  position: relative;
}
.nb-reihe[data-ansicht='liste'] .nb-karte[hidden] { display: none; }
.nb-reihe[data-ansicht='liste'] .nb-karte:last-child { border-bottom: 1px solid var(--linie); }
.nb-reihe[data-ansicht='liste'] .nb-karte-bild { width: 56px; aspect-ratio: 1 / 1; }
.nb-reihe[data-ansicht='liste'] .nb-karte-bild img { height: 100%; object-fit: cover; }
.nb-reihe[data-ansicht='liste'] .nb-karte-bild::after { content: ''; position: absolute; inset: 0; } /* ganze Zeile klickbar */
.nb-reihe[data-ansicht='liste'] .nb-karte-text {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: center;
  font-family: var(--sans); font-size: var(--t-text); letter-spacing: -0.01em; text-transform: none;
}
.nb-reihe[data-ansicht='liste'] .nb-karte-titel { height: auto; }
.nb-reihe[data-ansicht='liste'] .nb-roll-wort--neben { display: none; }
.nb-reihe[data-ansicht='liste'] .nb-karte:hover .nb-roll-wort { transform: none; }
.nb-reihe[data-ansicht='liste'] .nb-karte-leistung { display: block; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-reihe[data-ansicht='liste'] .nb-karte-nr { display: block; font-family: var(--mono); font-size: var(--t-mono); }
.nb-reihe[data-ansicht='liste'] .nb-karte-text > * { transition: transform 0.6s var(--ease), color 0.3s; }
@media (hover: hover) {
  .nb-reihe[data-ansicht='liste'] .nb-raster:hover .nb-karte-text { color: var(--grau); }
  .nb-reihe[data-ansicht='liste'] .nb-karte:hover .nb-karte-text { color: var(--schwarz); }
  .nb-reihe[data-ansicht='liste'] .nb-karte:hover .nb-karte-titel { transform: translateX(10px); }
}

.nb-mehr-zeile { margin-top: 28px; }
.nb-mehr { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ------------------------------------------------------------------ Fuss */
.nb-fuss {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: end;
  padding: 18px var(--rand) 22px;
}
.nb-fuss-rechts { display: flex; justify-content: space-between; gap: 16px; }
.nb-fuss-rechts p:last-child { flex: none; white-space: nowrap; }
.nb-fuss a { transition: color 0.3s; }
.nb-fuss a:hover { color: var(--grau); }

/* ------------------------------------------------------------------ Cursor-Etikett */
.nb-cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  opacity: 0; transform: translate(-100px, -100px);
}
.nb-cursor-text {
  position: absolute; left: 14px; top: 14px;
  padding: 7px 10px 6px; background: #000; color: #fff;
  font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0; text-transform: uppercase; white-space: nowrap;
}
.nb-cursor-bild {
  position: absolute; left: 24px; top: -90px; width: 240px; max-width: none; opacity: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.nb-cursor.zeigt-bild .nb-cursor-text { opacity: 0; }
.nb-cursor.zeigt-bild .nb-cursor-bild { opacity: 1; }
@media (hover: none), (pointer: coarse) { .nb-cursor { display: none; } }

/* ------------------------------------------------------------------ Grossansicht (Dialog) */
.nb-gross {
  position: fixed; inset: 0; z-index: 80;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--weiss); color: var(--schwarz);
  overflow: hidden;
}
.nb-gross::backdrop { background: transparent; }
.nb-gross-raster {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr); gap: var(--rand);
  height: 100%; padding: calc(var(--kopf-h) + 10px) var(--rand) var(--rand);
}
.nb-gross-bildflaeche { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.nb-gross-bild { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: 0 0; }
.nb-gross-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding-bottom: 4px; }
.nb-gross-kopf { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--t-mono); line-height: 1; letter-spacing: normal; text-transform: uppercase; color: var(--grau); }
.nb-gross-titel { font-size: var(--t-gross); line-height: 1.1; letter-spacing: -0.02em; }
.nb-gross-leistung { font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; color: var(--grau); }
.nb-gross-status:empty, .nb-gross-links:empty, .nb-gross-leistung:empty { display: none; }
.nb-gross-status { font-family: var(--mono); font-size: var(--t-mono); line-height: 1; text-transform: uppercase; letter-spacing: normal; }
.nb-gross-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; }
.nb-gross-nav { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--linie); }
.nb-gross-nav button { transition: color 0.3s; }
.nb-gross-nav button:hover { color: var(--grau); }
.nb-gross-zu { position: absolute; right: var(--rand); top: calc((var(--kopf-h) - 1.2em) / 2); }

/* ------------------------------------------------------------------ Handy & Tablet */
@media (max-width: 1100px) {
  .nb-kopf-rechts { gap: 12px; }
}
@media (max-width: 899px) {
  :root { --kopf-h: 52px; }
  .nb-kopf { grid-template-columns: 1fr auto; }
  .nb-uhr, .nb-nav { display: none; }
  .nb-menu-knopf { display: inline-flex; align-items: center; justify-content: flex-end; width: 40px; height: 40px; margin-right: -8px; }
  .nb-menu-knopf-x { position: relative; width: 24px; height: 12px; }
  .nb-menu-knopf-x::before, .nb-menu-knopf-x::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor;
    transition: transform 0.5s var(--ease);
  }
  .nb-menu-knopf-x::before { transform: translateY(-4px); }
  .nb-menu-knopf-x::after { transform: translateY(4px); }
  .nb-menu-knopf[aria-expanded='true'] .nb-menu-knopf-x::before { transform: rotate(35deg) scaleX(0.8); }
  .nb-menu-knopf[aria-expanded='true'] .nb-menu-knopf-x::after { transform: rotate(-35deg) scaleX(0.8); }

  .nb-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-reihe[data-ansicht='zwei'] .nb-raster { grid-template-columns: 1fr; }
  .nb-reihe[data-ansicht='liste'] .nb-karte-text { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .nb-reihe[data-ansicht='liste'] .nb-karte-leistung { grid-column: 1; grid-row: 2; font-size: var(--t-klein); }
  .nb-reihe[data-ansicht='liste'] .nb-karte-nr { grid-column: 2; grid-row: 1 / span 2; }

  .nb-fuss { grid-template-columns: 1fr; }
  .nb-fuss-rechts { flex-direction: column; gap: 12px; }

  .nb-gross { overflow-y: auto; }
  .nb-gross-raster { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 100%; gap: 22px; }
  .nb-gross-bildflaeche { height: auto; }
  .nb-gross-bild { max-height: 62vh; }
  .nb-gross-text { justify-content: flex-start; padding-bottom: 28px; }
}
@media (max-width: 520px) {
  .nb-reihe-titel .grau:not(:last-of-type) { display: none; } /* am Handy nur Titel + Anzahl, sonst zu lang */
}

/* ------------------------------------------------------------------ Bewegung */
html.js:not(.ruhig) [data-woerter] { visibility: hidden; }
html.js:not(.ruhig) [data-woerter].nb-bereit { visibility: visible; }
/* Notbremse, falls das Skript nicht lädt */
@keyframes nb-zeigen { to { visibility: visible; } }
html.js:not(.ruhig) [data-woerter] { animation: nb-zeigen 0s 2.5s forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ Hilfen */
.nb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nb-link { padding-right: 8px; margin-right: -8px; }
.nb-cursor-bild { transform: scale(0.85) rotate(-3deg); transition: opacity 0.35s var(--ease), transform 0.6s var(--ease); }
.nb-cursor.zeigt-bild .nb-cursor-bild { transform: scale(1) rotate(0deg); }
.nb-cursor-text { transition: opacity 0.25s; }
/* Mono-Texte immer normal fett wie Vorlage (Fragment Mono 400) */
.nb-karte-text, .nb-gross-kopf, .nb-gross-status, .nb-cursor-text, .nb-menu-nr { font-weight: 400; }
.nb-reihe[data-ansicht='liste'] .nb-karte-text { font-weight: 500; }
.nb-reihe[data-ansicht='liste'] .nb-karte-nr { font-weight: 400; }

/* ------------------------------------------------------------------ Dunkle Seite (About = «Information» der Vorlage) */
body.nb-dunkel {
  --schwarz: #fff;
  --weiss: #000;
  --grau: rgba(255, 255, 255, 0.4);
  --linie: rgba(255, 255, 255, 0.15);
  --flaeche: #111;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
}
body.nb-dunkel main { flex: 1 0 auto; }
.nb-dunkel .nb-kopf { background: rgba(0, 0, 0, 0.85); }
.nb-dunkel .nb-marke img { filter: none; }
.nb-dunkel ::selection { background: #fff; color: #000; }

.nb-ueber { padding: clamp(150px, 22vh, 200px) var(--rand) clamp(60px, 10vh, 100px); }
.nb-ueber-text { max-width: 940px; font-size: var(--t-gross); line-height: 1.1; letter-spacing: -0.02em; }
.nb-info-spalten {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--luecke);
  margin-top: clamp(64px, 13vh, 140px);
}
.nb-info-titel { font-family: var(--mono); font-size: var(--t-mono); font-weight: 400; line-height: 1; letter-spacing: normal; text-transform: uppercase; }
.nb-info-liste { margin-top: 20px; font-size: var(--t-klein); font-weight: 400; line-height: 1.3; letter-spacing: normal; }
.nb-info-liste li { padding-right: 12px; }
@media (max-width: 899px) {
  .nb-info-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--luecke); }
}
@media (max-width: 520px) {
  .nb-info-spalten { grid-template-columns: 1fr; gap: 56px; margin-top: 120px; }
}

/* Bildspur am Mauszeiger (About), wie «Cursor image trail» der Vorlage; am Handy aus */
.nb-spur { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.nb-spur-bild {
  position: absolute; left: 0; top: 0;
  width: clamp(110px, 10.4vw, 150px); aspect-ratio: 150 / 187;
  background-size: cover; background-position: center; will-change: transform, opacity;
}
.nb-ueber { position: relative; z-index: 1; }
.nb-dunkel .nb-fuss { position: relative; z-index: 1; }
@media (hover: none), (pointer: coarse) { .nb-spur { display: none; } }

/* Spalten mit gleichmässigem Abstand */
.nb-info-spalten { column-gap: clamp(24px, 3vw, 48px); }
.nb-info-liste li { padding-right: 0; }
/* Zusatz-Absatz unter der About-Überschrift: 16px/400 wie der Plus-Text der Vorlage */
.nb-ueber-zusatz { max-width: 500px; margin-top: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; position: relative; z-index: 1; }

/* ------------------------------------------------------------------ Vorhang beim Seitenwechsel (wie The Lobby 6 / Maler Ruggeri) */
.nb-vorhang {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  display: grid; place-items: center;
  background: #000;
  clip-path: inset(100% 0% 0% 0%);
}
.nb-vorhang-logo { position: relative; width: clamp(56px, 6vw, 84px); aspect-ratio: 761 / 705; }
.nb-vorhang-logo span { position: absolute; inset: 0; }
.nb-vorhang-logo img { display: block; width: 100%; height: 100%; }
/* Logo in zwei Teile geschnitten (ausgemessen: Punkt liegt bei x 26.7–50.6 %, y 1.1–28.5 %) */
.nb-k-strich {
  --p: 115%;
  -webkit-mask-image: linear-gradient(to top right, #000 var(--p), transparent calc(var(--p) + 14%));
  mask-image: linear-gradient(to top right, #000 var(--p), transparent calc(var(--p) + 14%));
}
.nb-k-strich img { clip-path: polygon(0 0, 26.2% 0, 26.2% 29%, 51% 29%, 51% 0, 100% 0, 100% 100%, 0 100%); }
.nb-k-punkt { transform-origin: 38.6% 14.8%; }
.nb-k-punkt img { clip-path: inset(0 49% 71% 26.2%); }
.intro-an .nb-k-strich { --p: -15%; }
.intro-an .nb-k-punkt { transform: scale(0); }
.vorhang-an .nb-vorhang, .intro-an .nb-vorhang { clip-path: inset(0% 0% 0% 0%); animation: nb-vorhang-weg 0.6s 4.5s forwards; } /* Notbremse ohne Skript */
@keyframes nb-vorhang-weg { to { clip-path: inset(0% 0% 100% 0%); } }

/* About: Inhalt zwischen Kopf und Fuss senkrecht eingemittet (gleich viel Luft oben und unten) */
body.nb-dunkel main { display: flex; flex-direction: column; justify-content: center; }
.nb-ueber { padding: calc(var(--kopf-h) + clamp(32px, 6vh, 64px)) var(--rand) clamp(32px, 6vh, 64px); }

/* Handy/Tablet ohne Maus: ein Bild, in dem Kevins Fotos ineinander blenden (statt Bildspur) */
.nb-ueber-bild { display: none; position: relative; margin: 40px 0 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--flaeche); }
.nb-ueber-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, transform 4.6s ease; transform: scale(1.06); }
.nb-ueber-bild img.aktiv { opacity: 1; transform: scale(1); }
@media (hover: none), (pointer: coarse) { .nb-ueber-bild { display: block; } }
@media (max-width: 520px) { .nb-ueber-bild + .nb-info-spalten { margin-top: 64px; } }

/* ------------------------------------------------------------------ Seiten mit eingemittetem Inhalt (Infos, Impressum, In Bearbeitung) */
body.nb-mittig { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.nb-mittig main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.nb-info-spalte--breit { grid-column: span 2; max-width: 560px; }
.nb-info-liste a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.nb-bald .nb-ueber-zusatz { font-weight: 500; }

/* ------------------------------------------------------------------ Infos (wie «Contact» der Vorlage) */
.nb-kontakt {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px var(--luecke);
  padding: calc(var(--kopf-h) + clamp(32px, 6vh, 64px)) var(--rand) clamp(32px, 6vh, 64px);
}
.nb-kontakt-titel { max-width: 700px; font-size: var(--t-gross); line-height: 1.1; letter-spacing: -0.02em; }
.nb-formular { max-width: 450px; margin-top: 56px; display: grid; gap: 20px; }
.nb-feld { position: relative; display: block; }
.nb-feld input, .nb-feld textarea {
  display: block; width: 100%; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; resize: none;
  font: inherit; font-size: var(--t-text); color: var(--schwarz); letter-spacing: -0.01em; outline: none;
}
.nb-feld textarea { height: 100px; padding-top: 10px; }
.nb-feld input::placeholder, .nb-feld textarea::placeholder { color: var(--grau); opacity: 1; }
.nb-linie { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--linie); transform-origin: 0 50%; }
.nb-linie::after { content: ''; position: absolute; inset: 0; background: var(--schwarz); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease); }
.nb-feld:focus-within .nb-linie::after { transform: scaleX(1); }
.nb-senden { justify-self: start; margin-top: 4px; display: inline-flex; overflow: hidden; line-height: 1.2; }
.nb-kontakt-rechts { display: grid; grid-template-columns: 1fr 1fr; gap: 56px var(--luecke); align-content: start; padding-top: calc(var(--t-gross) * 1.1 * 2 + 56px); }
.nb-kontakt-block { display: grid; gap: 8px; align-content: start; }
.nb-kontakt-block ul { display: grid; gap: 4px; }
.nb-uhr-gross { font-size: var(--t-gross); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .nb-kontakt { grid-template-columns: 1fr; }
  .nb-kontakt-rechts { padding-top: 0; }
  .nb-formular { max-width: none; margin-top: 40px; }
  .nb-info-spalte--breit { grid-column: auto; }
}

/* ------------------------------------------------------------------ Kunden: Hover hebt einen Namen hervor */
.nb-kunden-spalten .nb-info-liste li { cursor: default; } /* kein Abdunkeln, nur Bild bei passenden Projekten */
@media (max-width: 520px) { .nb-kunden-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } }

/* Infos: analoge Uhren wie in der Vorlage, Büros, Projektart-Auswahl */
.nb-analog { display: block; width: 120px; height: 120px; margin-bottom: 30px; }
.nb-analog-rand { fill: var(--weiss); stroke: #eee; stroke-width: 1; }
.nb-analog-h { stroke: var(--schwarz); stroke-width: 3; }
.nb-analog-m { stroke: var(--schwarz); stroke-width: 2; }
.nb-analog-s { stroke: #888; stroke-width: 1; }
.nb-analog-mitte { fill: var(--schwarz); }
.nb-uhr-text { font-variant-numeric: tabular-nums; }
.nb-kontakt-rechts { padding-top: 0; align-self: center; }
.nb-feld--wahl { border: 0; margin: 0; padding: 10px 0 14px; min-width: 0; }
.nb-wahl-frage { padding: 0; color: var(--grau); }
.nb-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nb-chip {
  padding: 6px 10px 5px; border: 1px solid var(--linie); border-radius: 0;
  font-size: var(--t-klein); font-weight: 400; color: var(--schwarz); letter-spacing: normal; line-height: 1.2;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nb-chip:hover { border-color: var(--schwarz); }
.nb-chip[aria-pressed='true'] { background: var(--schwarz); color: var(--weiss); border-color: var(--schwarz); }
@media (max-width: 899px) { .nb-analog { width: 96px; height: 96px; margin-bottom: 20px; } }

/* ------------------------------------------------------------------ Projekte: filterbare Liste */
.nb-filter { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nb-filter-knopf { color: var(--grau); transition: color 0.3s; }
.nb-filter-knopf:hover, .nb-filter-knopf[aria-pressed='true'] { color: var(--schwarz); }
.nb-filter-knopf sup { font-family: var(--mono); font-size: var(--t-mono); font-weight: 400; margin-left: 3px; vertical-align: 0.6em; line-height: 0; }
.nb-index-kopf, .nb-index-zeile {
  display: grid; grid-template-columns: 48px 44px minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 0.6fr) minmax(0, 0.7fr);
  gap: 0 18px; align-items: center;
}
.nb-index-kopf { padding: 14px 0 10px; font-family: var(--mono); font-size: var(--t-mono); font-weight: 400; text-transform: uppercase; color: var(--grau); letter-spacing: normal; }
.nb-index-zeile { position: relative; padding: 8px 0; border-top: 1px solid var(--linie); cursor: pointer; }
.nb-index-zeile:last-child { border-bottom: 1px solid var(--linie); }
.nb-index-zeile[hidden] { display: none; }
.nb-index-bild { width: 48px; aspect-ratio: 1 / 1; }
.nb-index-bild--leer { background: var(--flaeche); }
.nb-index-nr { font-family: var(--mono); font-size: var(--t-mono); font-weight: 400; color: var(--grau); }
.nb-index-leistung { font-weight: 400; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-index-kat { color: var(--grau); }
.nb-index-link { justify-self: end; white-space: nowrap; }
.nb-index-zeile > span { transition: color 0.3s, transform 0.6s var(--ease); }
@media (hover: hover) {
  .nb-index-liste:hover .nb-index-titel { color: var(--grau); }
  .nb-index-zeile:hover .nb-index-titel { color: var(--schwarz); transform: translateX(8px); }
  .nb-index-zeile:hover .nb-index-leistung { color: var(--schwarz); }
}
.nb-hero--projekte { padding-bottom: clamp(80px, 14vh, 160px); }
@media (max-width: 899px) {
  .nb-index-kopf { display: none; }
  .nb-index-zeile { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 14px; }
  .nb-index-bild { grid-row: 1 / span 2; }
  .nb-index-nr, .nb-index-kat { display: none; }
  .nb-index-titel { grid-column: 2; }
  .nb-index-leistung { grid-column: 2; grid-row: 2; font-size: var(--t-klein); }
  .nb-index-link { grid-column: 3; grid-row: 1 / span 2; font-size: var(--t-klein); }
  .nb-filter { gap: 4px 14px; }
}
.nb-anker { display: block; height: 0; scroll-margin-top: calc(var(--kopf-h) + 60px); }
/* Infos: Projektart als schlichtes Auswahlfeld (wie die anderen Felder, nur mit kleinem Pfeil) */
.nb-feld--auswahl select {
  display: block; width: 100%; height: 40px; padding: 0 24px 0 0; border: 0; border-radius: 0; background: transparent;
  font: inherit; font-size: var(--t-text); letter-spacing: -0.01em; color: var(--grau); outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.nb-feld--auswahl select.gewaehlt { color: var(--schwarz); }
.nb-feld--auswahl option { color: #000; }
.nb-auswahl-pfeil { position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--grau); border-bottom: 1.5px solid var(--grau); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
@media (max-width: 899px) { .nb-index .nb-reihe-kopf { height: auto; min-height: 45px; padding-top: 8px; padding-bottom: 8px; } }
.nb-honig { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nb-formular-status:empty { display: none; }
.nb-formular-status { max-width: 450px; font-weight: 400; letter-spacing: -0.02em; }
.nb-senden:disabled { opacity: 0.4; cursor: default; }
.nb-feld.fehlt .nb-linie { background: #c8102e; }
.nb-feld.fehlt input::placeholder, .nb-feld.fehlt textarea::placeholder, .nb-feld.fehlt select:not(.gewaehlt) { color: #c8102e; }
/* Handy-Menü: unten Email links, Schweizer Uhr rechts */
.nb-menu-fuss { display: flex; justify-content: space-between; align-items: baseline; }
.nb-menu-uhr { font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

/* ------------------------------------------------------------------ Preise (Stil Kunden/About) */
.nb-preis-gruppen { margin-top: clamp(64px, 13vh, 140px); display: grid; gap: 72px; }
.nb-preis-gruppe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); align-items: start; }
.nb-paket { display: grid; gap: 10px; align-content: start; }
.nb-paket-preis { font-size: var(--t-gross); line-height: 1.1; letter-spacing: -0.02em; }
.nb-paket-text { font-size: var(--t-klein); font-weight: 400; line-height: 1.3; color: var(--grau); letter-spacing: normal; }
.nb-paket-punkte { margin-top: 6px; display: grid; gap: 6px; }
.nb-paket-punkte li { padding-top: 6px; border-top: 1px solid var(--linie); }
.nb-preis-cta { margin-top: 72px; }
@media (max-width: 899px) {
  .nb-preis-gruppe { grid-template-columns: 1fr 1fr; }
  .nb-preis-gruppe .nb-info-titel { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .nb-preis-gruppe { grid-template-columns: 1fr; gap: 40px; } }

/* Projekte: Überschrift auf zwei ausgewogene Zeilen, Spaltentitel bündig, ruhigere Abstände */
.nb-hero--projekte .nb-hero-text { max-width: 660px; }
.nb-hero--projekte { padding-bottom: clamp(64px, 11vh, 120px); }
.nb-index-kopf { padding: 22px 0 12px; }
.nb-index-kopf span:last-child { justify-self: end; } /* LINK rechtsbündig wie die Links */
.nb-index-zeile { padding: 10px 0; }
.nb-index-titel, .nb-index-leistung, .nb-index-kat, .nb-index-link { line-height: 1.2; }
.nb-hinweise { display: grid; gap: 12px; }
.nb-filter-link { display: inline-flex; align-items: baseline; gap: 5px; }
.nb-filter-link:hover .nb-pfeil { transform: translateX(4px); }
/* Preise: Überschrift auf zwei ausgewogene Zeilen */
.nb-preise .nb-ueber-text { max-width: 720px; }
/* Preise: Leistungen je Paket aufklappbar */
.nb-paket-auf { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 6px; padding: 8px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); text-align: left; }
.nb-paket-auf .nb-plus { margin-left: 0; width: 22px; }
.nb-paket-auf[aria-expanded='true'] .nb-plus span:first-child { transform: translate(-50%, -50%) rotate(135deg); }
.nb-paket-auf[aria-expanded='true'] .nb-plus span:last-child { transform: translate(-50%, -50%) rotate(225deg); }
.nb-paket-mehr { overflow: hidden; }
.nb-paket-mehr .nb-paket-punkte { margin-top: 0; padding-bottom: 4px; }
.nb-paket-mehr .nb-paket-punkte li:first-child { border-top: 0; }
.nb-preis-gruppen { gap: 56px; }

/* About: Spalten richten sich nach ihrem Inhalt, gleich grosse Lücken dazwischen (Kevin: Kunden mehr nach rechts) */
@media (min-width: 900px) {
  .nb-about .nb-info-spalten { grid-template-columns: repeat(4, minmax(0, max-content)); justify-content: space-between; column-gap: 40px; }
}
/* Preise: mehr Luft zwischen Design, Digital und Strategie */
.nb-preis-gruppen { gap: clamp(88px, 12vh, 140px); }
.nb-paket-start { margin-top: 10px; justify-self: start; }
.nb-paket-auf + .nb-paket-mehr + .nb-paket-start, .nb-paket-mehr + .nb-paket-start { margin-top: 14px; }

/* Preise: «Leistungen +» und «Projekt starten →» als gleich gestaltete Zeilen (Accordion-Liste) */
.nb-paket-zeile {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin: 0; padding: 9px 0; border-top: 1px solid var(--linie); text-align: left; color: var(--schwarz);
}
.nb-paket-auf { margin-top: 6px; border-bottom: 0; }
.nb-paket-start { border-bottom: 1px solid var(--linie); }
.nb-paket-text + .nb-paket-start { margin-top: 6px; }
.nb-paket-start .nb-pfeil { width: 22px; text-align: center; transition: transform 0.6s var(--ease); }
.nb-paket-start:hover .nb-pfeil { transform: translateX(4px); }
.nb-paket-mehr .nb-paket-punkte { padding-bottom: 8px; }
.nb-paket-start { justify-self: stretch; }
.nb-paket-auf + .nb-paket-mehr + .nb-paket-start, .nb-paket-mehr + .nb-paket-start { margin-top: 0; }
/* Handy-Menü: Navigation senkrecht in der Mitte, Email + Uhr unten */
.nb-menu { justify-content: flex-start; }
.nb-menu ul { margin: auto 0; }
/* Handy-Menü: Nummern klein hochgestellt hinter dem Wort, wie die Anzahl im Projekte-Filter */
.nb-menu li a { display: inline-block; }
.nb-menu-nr { width: auto; margin-left: 4px; vertical-align: 1.1em; line-height: 0; transform: none; }
/* Grossansicht-Kopf wie der Projekte-Filter: Wort normal, Nummer klein hochgestellt */
.nb-gross-kopf { display: block; font-family: var(--sans); font-size: var(--t-text); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-transform: none; color: var(--schwarz); }
.nb-gross-nr { font-family: var(--mono); font-size: var(--t-mono); font-weight: 400; letter-spacing: normal; color: var(--grau); margin-left: 3px; vertical-align: 0.6em; line-height: 0; }

/* EINE Regel für alle kleinen hochgestellten Zahlen (Projekte-Filter, Handy-Menü, Grossansicht) */
.nb-filter-knopf sup, .nb-menu-nr, .nb-gross-nr {
  font-family: var(--mono); font-size: var(--t-mono); font-weight: 400; font-style: normal;
  letter-spacing: normal; text-transform: none; line-height: 0; margin-left: 3px;
}
.nb-filter-knopf sup, .nb-gross-nr { vertical-align: 0.6em; }
.nb-menu-nr { vertical-align: 1.1em; color: var(--grau); } /* bei 24px-Wörtern etwas höher, damit es gleich sitzt */

/* Vorhang per transform statt clip-path (flüssiger am Computer) */
.nb-vorhang { clip-path: none; transform: translateY(100%); will-change: transform; }
.nb-vorhang-logo { will-change: transform, opacity; }
.vorhang-an .nb-vorhang, .intro-an .nb-vorhang { clip-path: none; transform: translateY(0); animation: nb-vorhang-hoch 0.6s 4.5s forwards; } /* Notbremse ohne Skript */
@keyframes nb-vorhang-hoch { to { transform: translateY(-100%); } }
/* Logo vor dem Zeichnen unsichtbar, auch beim Seitenwechsel */
.vorhang-an .nb-k-strich { --p: -15%; }
.vorhang-an .nb-k-punkt { transform: scale(0); }
/* Startseite: Text unter «+» etwas kleiner (Listen-Grösse der Skala) */
.nb-info-innen p:not(.nb-info-links) { font-size: var(--t-klein); line-height: 1.3; letter-spacing: normal; max-width: 420px; }

/* Null ohne Strich (Kevin): Fragment Mono hat nur die durchgestrichene 0. Nur das Zeichen «0» kommt aus
   Switzer, alles andere bleibt Fragment Mono. Muss nach den anderen Fragment-Mono-Schriften stehen. */
@font-face { font-family: 'Fragment Mono'; src: url('/neu/fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0030; size-adjust: 109%; } /* gleich hoch wie die Mono-Ziffern (gemessen 71.5 zu 65.5) */
/* Beschriebe einheitlich: Startseite unter «+» und Paket-Texte auf Preise (gleiche Grösse, Farbe, Zeilenhöhe) */
.nb-info-innen p:not(.nb-info-links), .nb-paket-text { font-size: var(--t-beschrieb); font-weight: 400; line-height: 1.35; letter-spacing: normal; color: var(--grau); }

/* Reine Zahlen direkt in Switzer (Kevin): Filter-Anzahl, Handy-Menü, Grossansicht, Projekt-Nummern.
   12px Switzer entspricht optisch 11px Fragment Mono (Ziffern 9 % kleiner). */
.nb-filter-knopf sup, .nb-menu-nr, .nb-gross-nr, .nb-index-nr, .nb-reihe[data-ansicht='liste'] .nb-karte-nr {
  font-family: var(--sans); font-size: var(--t-zahl); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: normal;
}

/* Vorhang in der Farbe der Zielseite: weisse Seiten = weisser Vorhang mit schwarzem K,
   About/Kunden = schwarz mit weissem K. Gilt auch fürs Intro beim ersten Besuch. */
html.vorhang-an body:not(.nb-dunkel) .nb-vorhang, html.intro-an body:not(.nb-dunkel) .nb-vorhang, .nb-vorhang.hell { background: #fff; }
html.vorhang-an body:not(.nb-dunkel) .nb-vorhang-logo img, html.intro-an body:not(.nb-dunkel) .nb-vorhang-logo img, .nb-vorhang.hell .nb-vorhang-logo img { filter: invert(1); }
/* Status («Im Aufbau», «Privates Projekt») im gleichen Stil wie die Links, nur ohne Pfeil */
.nb-index-status { color: var(--schwarz); }
.nb-gross-status { font-family: var(--sans); font-size: var(--t-text); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; text-transform: none; color: var(--schwarz); }

/* Pfeil ↗ als gezeichnetes Icon (iPhone zeigte das Zeichen als Emoji) */
.nb-pfeil-svg { display: inline-block; width: 0.7em; height: 0.7em; vertical-align: 0; }

/* Handy: Grossansicht muss scrollen können (iOS) */
@media (max-width: 899px) { .nb-gross { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; } }

/* Handy: Projekte-Filter als eine wischbare Zeile, rechts sanft auslaufend */
@media (max-width: 899px) {
  .nb-index .nb-reihe-kopf { height: 45px; min-height: 0; padding-top: 0; padding-bottom: 0; }
  .nb-filter { flex-wrap: nowrap; overflow-x: auto; gap: 0 18px; width: calc(100% + var(--rand)); margin-right: calc(var(--rand) * -1); padding-right: var(--rand);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .nb-filter::-webkit-scrollbar { display: none; }
  .nb-filter-knopf { flex: none; white-space: nowrap; }
}
@media (max-width: 899px) { .nb-gross-zu { position: fixed; z-index: 3; padding: 0; background: var(--weiss); box-shadow: 0 0 0 8px var(--weiss); } } /* Schatten statt Innenabstand, sonst schaut die zweite Zeile der Text-Rolle hervor */

.nb-gross:focus, .nb-gross:focus-visible { outline: none; }
/* Handy: Bild in der Grossansicht auf derselben Flucht wie der Text (volle Breite, keine Höhenbegrenzung) */
@media (max-width: 899px) {
  .nb-gross-bildflaeche { display: block; }
  .nb-gross-bild { width: 100%; height: auto; max-height: none; }
}
/* Infos: kleiner Satz unter «Deine Zeit» (wie Nolans «Your time, so we're always in sync») */
.nb-uhr-info { max-width: 160px; font-size: var(--t-klein); font-weight: 400; line-height: 1.3; letter-spacing: normal; color: var(--grau); }

/* ------------------------------------------------------------------ Sprachumschalter DE / EN
   Desktop: ganz rechts nach «Info» (Navigation rückt dadurch nach links). Handy: neben dem Menü-Knopf.
   Aktive Sprache in Schrift-Farbe, die andere grau – gleiche Grösse wie die Navigation. */
.nb-sprache { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--grau); }
.nb-sprache a { color: var(--grau); transition: color 0.3s; }
.nb-sprache a[aria-current], .nb-sprache a:hover { color: var(--schwarz); }

/* ------------------------------------------------------------------ Ausgewogene Zeilen (nur Englisch, Kevins Wunsch 17.10.2026)
   Alle Texte verteilen ihre Wörter gleichmässig auf die Zeilen (balance). Der Browser macht das nur bis etwa 6 Zeilen;
   sehr lange Absätze (Handy-Überschriften, Impressum) bekommen stattdessen «pretty»: kein einzelnes Wort allein in der letzten Zeile.
   Deutsch bleibt bewusst unverändert. */
html[lang='en'] :is(h1, h2, h3, p, li, .nb-index-leistung, .nb-gross-leistung) { text-wrap: balance; }
html[lang='en'] :is(.nb-impressum p, .nb-lang) { text-wrap: pretty; }
@media (max-width: 899px) { html[lang='en'] :is(.nb-hero-text, .nb-ueber-text) { text-wrap: pretty; } }

/* Uhr exakt in der Seitenmitte (Kevin 17.10.2026): die rechte Kopfhälfte beginnt genau in der Mitte,
   die Uhr rückt um ihre halbe Breite nach links. Navigation bleibt, wo sie ist. */
@media (min-width: 900px) { .nb-uhr { transform: translateX(-50%); } }
