/* ==========================================================================
   NAHLIO — Premium-Auftritt (wird nach styles.css geladen)
   1. Schrift: Newsreader 440 (Serife, Wahl des Inhabers 03.11.) nur fuer die Ueberschriften;
      alle anderen Texte bleiben in Geist (Wunsch 03.11., wieder seit 10.11.).
      Farben bleiben unveraendert (Wunsch: "dont play with colours").
   2. Hero: ein ruhiger Bildschirm ohne Bilder und ohne Wechsel. Text links,
      Bildmarke rechts: Die Linie schreibt die Marke in 2D, sie wird 3D, atmet
      und laesst die Linie nach unten in die Seite laufen (js/hero-mark.js).
   ========================================================================== */

/* --- 1. Schrift ----------------------------------------------------------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-standard-normal.woff2") format("woff2");
  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: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-standard-italic.woff2") format("woff2");
  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: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext-standard-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;   /* nur Ueberschriften */
  --w-head: 440;                       /* Gewicht der Ueberschriften (Newsreader 440) */
  /* Eintritt / Bewegung (Emil Kowalski): starke Kurven, nur fuer neue Bewegung im Hero */
  --ease-enter: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
}
html { font-optical-sizing: auto; }

/* Ueberschriften (h1, h2): Newsreader 440 (Wahl des Inhabers, 03.11.), optische Groesse automatisch.
   Alles andere bleibt Geist. */
h1, h2,
.t-display, .t-h1, .t-h2, .hero__title, .sec-head__title, .customer-path__title, .blick__title, .uebergang__title,
.sc__intro-title, .plans__title, .process__title, .faq-sec__title, .cta__title, .legal h2 {
  font-family: var(--font-serif);
  font-weight: var(--w-head);
  letter-spacing: -0.018em;
}

/* --- 2. Hero ---------------------------------------------------------------- */
/* Hintergrund: die gedimmten Blau-Toene (Glow und Radialverlaeufe) entfallen; Soft White -> Weiss bleibt. */
.hero--mark .hero__glow { display: none; }
.opening__surface {
  background:
    linear-gradient(to bottom, transparent calc(100% - var(--opening-blend) * .35), var(--white)),
    linear-gradient(to bottom, var(--soft) calc(100% - var(--opening-blend)), var(--white));
}

.hero--mark .hero__stage {
  --t: clamp(44px, min(5.6vw, 10svh), 108px);
  display: block;
  position: relative;
  height: max(640px, calc(100svh - var(--nav-h)));
  padding: 0;
  overflow: visible;
}
.hero--mark .hero__copy {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  text-align: left;
  padding-top: clamp(22px, 4.5svh, 52px);            /* Oberzeile ganz oben links (Wunsch 03.11.) */
  padding-bottom: clamp(28px, 6svh, 72px);
}
.hero--mark .hero__copy > * { max-width: min(44vw, 44rem); }
.hero--mark .hero__eyebrow { margin-bottom: 0; }
/* Ueberschrift und Unterzeile fuellen die linke Seite: gross, im Raum unter der Oberzeile mittig */
.hero--mark .hero__title {
  max-width: min(56vw, 14em);                         /* breiter (Wunsch 10.11.): 4 Zeilen, kleine Luecke zur Marke */
  margin-top: auto;
  font-family: var(--font-serif);
  font-weight: var(--w-head);
  font-size: var(--t);
  line-height: 1.03;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.hero--mark .hero__hl { font-style: italic; }           /* Farbe unveraendert (styles.css: --brand-deep): die Betonung */
.hero--mark .hero__sub { margin-top: clamp(20px, 3.2svh, 36px); margin-bottom: auto; max-width: min(40vw, 31em); font-size: clamp(18px, 1.1vw + 6px, 24px); line-height: 1.5; }   /* endet vor der Marke */
/* Knoepfe (Wunsch 09.11.): "Leistungen ansehen" (voll, Markenfarbe) und "Kontakt aufnehmen" (Kontur). Beim Zeigen
   heben sie sich leicht mit weichem Schein, wie die Knoepfe der Navigation. Die Leerflaeche unter dem Text liegt
   jetzt unter den Knoepfen, damit der Block mittig bleibt. */
.hero--mark .hero__sub { margin-bottom: 0; }
.hero--mark .hero__actions { justify-content: flex-start; gap: 12px 14px; margin-top: clamp(24px, 3.8svh, 42px); margin-bottom: auto; }
.hero--mark .hero__btn {
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; font-size: clamp(16px, 0.3vw + 13px, 18px);
  transition: background-color 280ms var(--ease-out), border-color 280ms var(--ease-out), color 280ms var(--ease-out),
              transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.hero--mark .hero__btn--main { --btn-bg: var(--brand-deep); --btn-bd: var(--brand-deep); --btn-fg: var(--white); }
.hero--mark .hero__btn--line { --btn-bg: color-mix(in srgb, var(--white) 90%, transparent); --btn-bd: color-mix(in srgb, var(--ink) 30%, transparent); --btn-fg: var(--ink); }   /* hell hinterlegt: am Handy liegt sie ueber der Marke */
.hero--mark .hero__btn:hover, .hero--mark .hero__btn:focus-visible { transform: translateY(-2px); }
.hero--mark .hero__btn--main:hover, .hero--mark .hero__btn--main:focus-visible {
  background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white);
  box-shadow: 0 0.6rem 1.6rem color-mix(in srgb, var(--brand) 45%, transparent);
}
.hero--mark .hero__btn--line:hover, .hero--mark .hero__btn--line:focus-visible {
  background: var(--ink); border-color: var(--ink); color: var(--white);
  box-shadow: 0 0.6rem 1.6rem color-mix(in srgb, var(--ink) 28%, transparent);
}
.hero--mark .hero__btn:active { transform: scale(0.97); }
@media (max-width: 47.99em) {
  .hero--mark .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .hero--mark .hero__btn { min-height: 48px; padding: 0 10px; font-size: 15px; justify-content: center; text-align: center; }
}
@media (max-width: 24.9em) { .hero--mark .hero__btn { padding: 0 6px; font-size: 14px; white-space: nowrap; } }
@media (max-width: 20.9em) { .hero--mark .hero__actions { grid-template-columns: 1fr; } }
.hero--mark .hero__cta { transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-enter); }
.hero--mark .hero__cta:active { transform: scale(0.97); }
@media (hover: none) { .hero--mark .hero__more:hover svg { transform: none; } }

/* Buehne der Bildmarke: rechte Haelfte, volle Hoehe bis zur Unterkante des Hero (dort setzt die Seitenlinie an) */
.hero__mark {
  position: absolute; z-index: 1;
  top: 0; bottom: 0; right: 0; width: 56%;
  pointer-events: none;
}
.hero__gl, .hero__ink, .hero__static { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__static { inset: 8% 10% 22%; width: auto; height: auto; margin: auto; }
.hero__static path { fill: var(--brand); }
.hero__gl { opacity: 1; }                 /* immer sichtbar; vor dem Wechsel ist sie leer (hero-mark.js) */
.hero__ink { overflow: visible; }
.hero__strokes { fill: none; stroke: var(--brand); stroke-linecap: round; stroke-linejoin: miter; stroke-miterlimit: 8; }
.hero__fill, .hero__dot { fill: var(--brand); }
/* --- Text-Auftakt im Hero (selten gesehen: Freude erlaubt) ----------------------------------------
   Oberzeile steigt auf, dann die Ueberschrift Wort fuer Wort (aus leichter Unschaerfe, 55 ms versetzt),
   zuletzt die Unterzeile. Nur transform, opacity und filter; starke ease-out-Kurve. hero-mark.js teilt die
   Woerter auf (.is-split); ohne Skript bleibt der Text einfach stehen. */
@keyframes hero-word { from { opacity: 0; transform: translate3d(0, 0.38em, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hero-up   { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-show { to { opacity: 1; } }
/* der alte Auftakt (styles.css) gilt hier nicht */
html.js .hero.hero--mark .hero__copy .hero__eyebrow,
html.js .hero.hero--mark .hero__copy h1.hero__title,
html.js .hero.hero--mark .hero__copy .hero__phrase,
html.js .hero.hero--mark .hero__copy .hero__hl { animation: none; }
/* Wunsch 11.11.: der Auftakt startet zusammen mit der Bildmarke - hero-mark.js setzt .is-go, sobald deren Zeitachse
   laeuft (nach dem Aufbau der 3D-Szene). Bis dahin unsichtbar; Sicherheit: nach 2,5 s in jedem Fall sichtbar. */
html.js.motion-ok .hero.hero--mark:not(.is-go) .hero__copy .hero__eyebrow,
html.js.motion-ok .hero.hero--mark:not(.is-go) .hero__copy h1.hero__title,
html.js.motion-ok .hero.hero--mark:not(.is-go) .hero__copy .hero__sub,
html.js.motion-ok .hero.hero--mark:not(.is-go) .hero__copy .hero__actions { opacity: 0; animation: hero-show 1ms linear 2500ms forwards; }
html.js.motion-ok .hero.hero--mark.is-go .hero__copy .hero__eyebrow { animation: hero-up 700ms var(--ease-enter) 40ms both; }
/* bis die Woerter aufgeteilt sind, unsichtbar; Sicherheit: nach 2,5 s in jedem Fall sichtbar */
html.js.motion-ok .hero.hero--mark .hero__copy h1.hero__title:not(.is-split) { opacity: 0; animation: hero-show 1ms linear 2500ms forwards; }
.hero--mark .hero__title.is-split .hw { display: inline-block; }
html.js.motion-ok .hero.hero--mark.is-go .hero__title.is-split .hw {
  animation: hero-word 1000ms var(--ease-enter) both;
  animation-delay: calc(140ms + var(--i, 0) * 55ms);
}
html.js.motion-ok .hero.hero--mark.is-go .hero__copy .hero__sub { animation: hero-up 900ms var(--ease-enter) 760ms both; }
html.js.motion-ok .hero.hero--mark.is-go .hero__copy .hero__actions { animation: hero-up 900ms var(--ease-enter) 900ms both; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero.hero--mark .hero__title.is-split .hw,
  html.js .hero.hero--mark .hero__copy .hero__eyebrow,
  html.js .hero.hero--mark .hero__copy .hero__sub,
  html.js .hero.hero--mark .hero__copy .hero__actions { animation: hero-fade 400ms ease both; animation-delay: 0ms; }
  .hero--mark .hero__btn:hover, .hero--mark .hero__btn:focus-visible { transform: none; }
}

/* Logo oben links (Wunsch 08.11.): Im Hero steht nur der Schriftzug "NAHLIO" (die grosse Marke ist dort das
   Bildzeichen); nach dem Hero kommt das Bildzeichen wieder dazu und der Schriftzug rueckt an seinen Platz. */
.nav__logo .logo__type, .nav__logo .logo__dot { transition: transform 360ms var(--ease-enter); }
.nav__logo .logo__mark:not(.logo__dot) { transition: opacity 240ms ease; }
html.hero-in-view .nav__logo .logo__mark:not(.logo__dot) { opacity: 0; }
html.hero-in-view .nav__logo .logo__type, html.hero-in-view .nav__logo .logo__dot { transform: translateX(-335px); }
@media (prefers-reduced-motion: reduce) { .nav__logo .logo__type, .nav__logo .logo__dot, .nav__logo .logo__mark { transition: none; } }

/* Uebergabepunkt an die Seitenlinie (25-line.js): unten in der Buehne */
.hero__exit { position: absolute; left: 88%; bottom: 0; width: 0; height: 0; }

/* Beim Laden kein Aufblitzen der fertigen 2D-Marke (Wunsch 09.11.): Die Zeichenflaeche bleibt verborgen, bis
   hero-mark.js den Startzustand gesetzt hat (.is-ready). Sicherheit: Kommt das Skript nicht, erscheint nach 4 s die
   ruhige Marke. */
html.js .hero__mark:not(.is-ready) .hero__ink { visibility: hidden; }
html.js .hero__mark:not(.is-ready):not(.is-static) .hero__static { animation: mark-fallback 1ms linear 4s forwards; }
@keyframes mark-fallback { to { visibility: visible; } }

/* Ohne Skript: die fertige Marke, ruhig. Mit Skript zeigt hero-mark.js erst die Linie. */
html.js .hero__static { visibility: hidden; }
html:not(.js) .hero__ink, html:not(.js) .hero__gl { display: none; }
.hero__mark.is-static .hero__static { visibility: visible; }
.hero__mark.is-static .hero__ink, .hero__mark.is-static .hero__gl { display: none; }

/* Tablet und Handy: die Marke liegt gross hinter dem Text (rechts angeschnitten), die Linie laeuft von ihr nach unten */
@media (max-width: 63.99em) {
  .hero--mark .hero__stage { --t: clamp(38px, 9.6vw, 66px); height: auto; min-height: max(600px, calc(100svh - var(--nav-h))); display: flex; flex-direction: column; }
  /* Wunsch 09.11.: Am Handy liegt kein Text mehr auf der Marke. Reihenfolge: Ueberschrift, darunter Platz fuer
     die Marke, dann die Unterzeile, ganz unten die Knoepfe. Uebriger Platz geht an die Marke (margin-top: auto der
     Unterzeile); hero-mark.js passt die Marke zwischen Ueberschrift und Unterzeile ein. */
  .hero--mark .hero__copy { flex: 1 1 auto; height: auto; padding-top: clamp(18px, 4vw, 36px); padding-bottom: clamp(18px, 4.5vw, 32px); }
  .hero--mark .hero__title { margin-top: clamp(18px, 5vw, 32px); margin-bottom: clamp(220px, 62vw, 420px); }
  .hero--mark .hero__sub { margin-top: auto; margin-bottom: 0; font-size: clamp(17px, 2.2vw + 9px, 21px); }
  .hero--mark .hero__actions { margin-top: clamp(20px, 5vw, 28px); margin-bottom: 0; }
  .hero--mark .hero__copy > *, .hero--mark .hero__title { max-width: 100%; }
  .hero--mark .hero__title { max-width: 12em; }
  .hero__mark { position: absolute; inset: 0; width: auto; height: auto; z-index: 0; }
  .hero__static { inset: auto -12% 4% 18%; height: 70%; }
}

/* Weniger Bewegung: hero-mark.js zeigt die fertige 3D-Marke ohne Auftakt und ohne Atmen */

/* Audit 05.11.: Die Marke ragte bei 768 px 66 px ueber den Rand (waagerechtes Scrollen). Nur seitlich beschneiden. */
.hero.hero--mark { overflow-x: clip; }
