
/* Textmarkierung im Markenton statt Browser-Blau */
::selection { background: var(--graphit); color: var(--alabaster); }

/* Sanfte Seitenwechsel (View Transitions) — ohne Browser-Support: wie bisher */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: nh40VtRaus 0.16s cubic-bezier(0.22,1,0.36,1) both; }
  ::view-transition-new(root) { animation: nh40VtRein 0.24s cubic-bezier(0.22,1,0.36,1) both; }
}
@keyframes nh40VtRaus { to { opacity: 0; } }
@keyframes nh40VtRein { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Nav-Links: Unterstrich gleitet herein (nur echte Hover-Geraete) */
@media (hover: hover) and (pointer: fine) {
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left center;
    transition: transform 0.22s var(--ease-out, cubic-bezier(0.22,1,0.36,1));
  }
  .nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
}

/* Druckgefuehl: anfassbare Elemente bestaetigen die Beruehrung.
   Transition-Listen der Original-Regeln + transform, damit nichts verloren geht. */
.hero-cta { transition: gap 0.3s var(--ease-out), opacity 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.16s var(--ease-out); }
.anfrage-submit { transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), gap 0.2s var(--ease-out), transform 0.16s var(--ease-out); }
.home-sticky-cta a { transition: transform 0.16s var(--ease-out, ease-out); }
.hero-cta:active, .anfrage-submit:active, .home-sticky-cta a:active,
.aktivitaeten-vorschau-cta:active, .entfernungs-stern-cta:active { transform: scale(0.98); }

/* Hero-Auftritt: ein ruhiger Atemzug beim ersten Laden (nur Startseite) */
@media (prefers-reduced-motion: no-preference) {
  .hero-masthead > * { opacity: 0; transform: translateY(10px); animation: nh40HeroAuftritt 0.64s var(--ease-expo, cubic-bezier(0.16,1,0.3,1)) both; }
  .hero-masthead > :nth-child(1) { animation-delay: 0.05s; }
  .hero-masthead > :nth-child(2) { animation-delay: 0.12s; }
  .hero-masthead > :nth-child(3) { animation-delay: 0.19s; }
  .hero-masthead > :nth-child(4) { animation-delay: 0.26s; }
  .hero-masthead > :nth-child(5) { animation-delay: 0.33s; }
}
@keyframes nh40HeroAuftritt { to { opacity: 1; transform: none; } }

/* Hover-Vormoment am Haus-Schnitt: Fenster glimmen, bevor das Licht angeht */
.schnitt-svg .fenster { transition: fill 0.35s var(--ease-out, ease-out), opacity 0.3s var(--ease-out, ease-out), filter 0.35s var(--ease-out, ease-out); }
@media (hover: hover) and (pointer: fine) {
  .schnitt-svg:has(.zone-gruppe[data-wohnung="stillach"]:hover) .fenster-stillach,
  .schnitt-svg:has(.zone-gruppe[data-wohnung="catarina"]:hover) .fenster-catarina,
  .schnitt-svg:has(.zone-gruppe[data-wohnung="hannes"]:hover) .fenster-hannes {
    opacity: 1; stroke: #b8955a; fill: rgba(212,170,96,0.4);
    filter: drop-shadow(0 0 3px rgba(196,158,92,0.45));
  }
}


/* NH40 UX v1 — Tap-Targets & CTA-Hierarchie */
/* Sprachschalter: >=44px Trefffläche (WCAG 2.5.8), Optik unverändert —
   Trennlinie wandert vom border-left in ein zentriertes ::before */
.nav-sprache {
  position: relative;
  display: inline-block;
  border-left: 0;
  margin: -0.9rem -0.75rem;
  margin-left: 1.5rem;
  padding: 0.9rem 0.75rem;
  padding-left: 1.5rem;
}
.nav-sprache::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1.1em;
  background: var(--graphit-20);
  transform: translateY(-50%);
}
@media (max-width: 720px) {
  .nav-sprache {
    margin: -0.9rem -0.7rem;
    padding: 0.9rem 0.7rem;
  }
  .nav-sprache::before { display: none; }
}

