/* =========================================================================
   Nachlassbüro van Roy — Design-System
   Statisch, ohne externe Abhängigkeiten. Schriften: lokale System-Stacks.
   ========================================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --c-anthracite-deep: #202224;
  --c-anthracite: #292c2e;
  --c-offwhite: #f4f1ea;
  --c-bg-light: #faf9f6;
  --c-gold: #b29a68;
  --c-gold-dark: #8d774f;
  --c-text: #222426;
  --c-text-muted: #66645f;
  --c-line: #ddd8ce;
  --c-line-dark: rgba(244, 241, 234, 0.14);

  /* Text auf dunklem Grund */
  --c-on-dark: #f4f1ea;
  --c-on-dark-muted: #b9b6ad;

  /* Typografie */
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Maße */
  --content-w: 1220px;
  --measure: 680px;
  --nav-h: 84px;
  --nav-h-scrolled: 66px;

  /* Bewegung */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 460ms;

  /* Abstände */
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
}

/* ---------- Reset / Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h-scrolled) + 1.25rem);
  overflow-x: hidden; /* Sicherheitsnetz gegen horizontales Scrollen */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.002em;
  margin: 0;
  color: inherit;
  overflow-wrap: break-word;
  hyphens: auto;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

/* ---------- Fokus / Barrierefreiheit ---------- */
:focus-visible {
  outline: 2px solid var(--c-gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
:where(section, header):focus { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  background: var(--c-anthracite-deep);
  color: var(--c-on-dark);
  padding: 0.7rem 1.1rem;
  border-radius: 3px;
  font-size: 0.95rem;
  transition: top 200ms var(--ease);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.measure { max-width: var(--measure); }

.section { padding-block: var(--section-y); }

/* Abschnitts-Vorzeile */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--c-gold);
}

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.btn .ico { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  background: var(--c-gold);
  color: #23201a;
  border-color: var(--c-gold);
}
.btn--primary:hover { background: var(--c-gold-dark); border-color: var(--c-gold-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--c-on-dark);
  border-color: rgba(244, 241, 234, 0.35);
}
.btn--ghost:hover { border-color: var(--c-gold); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line);
}
.btn--outline:hover { border-color: var(--c-gold-dark); color: var(--c-gold-dark); }

/* Feine goldene Unterstreichung bei Text-Links */
.uline {
  position: relative;
  text-decoration: none;
  color: inherit;
}
.uline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.uline:hover::after,
.uline:focus-visible::after { transform: scaleX(1); }

/* =========================================================================
   Navigation
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(32, 34, 36, 0);
  transition: height var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  /* sehr feine goldene Grundlinie unter der Navigation */
  border-bottom: 1px solid rgba(178, 154, 104, 0.12);
}
/* Auf hellen Unterseiten steht die Nav von Anfang an gedeckt */
.site-header.is-solid,
.site-header.is-scrolled {
  height: var(--nav-h-scrolled);
  background: rgba(32, 34, 36, 0.94);
  border-bottom-color: rgba(178, 154, 104, 0.22);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.nav {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Wortmarke / Logo-Lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--c-on-dark);
  line-height: 1;
}
.brand__logo {
  height: 42px;
  width: auto;
  display: block;
  transition: height var(--dur) var(--ease);
}
.site-header.is-scrolled .brand__logo,
.site-header.is-solid .brand__logo { height: 36px; }
.brand__mark {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__mark strong { font-weight: 600; }
.brand__sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.5vw, 2.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: 0.95rem;
  color: var(--c-on-dark-muted);
  text-decoration: none;
  position: relative;
  padding-block: 0.4rem;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--c-on-dark); }
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta {
  font-size: 0.92rem;
  color: var(--c-offwhite);
  text-decoration: none;
  padding: 0.62rem 1.25rem;
  border: 1px solid rgba(178, 154, 104, 0.45);
  border-radius: 2px;
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.nav__cta:hover,
.nav__cta:focus-visible {
  border-color: var(--c-gold);
  background: rgba(178, 154, 104, 0.10);
  color: #fff;
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(244, 241, 234, 0.3);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 1.5px;
  background: var(--c-on-dark);
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: var(--c-anthracite-deep);
  color: var(--c-on-dark);
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(0.5rem, 2vh, 1.5rem));
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
  /* Standardposition des Lichts (oben rechts); JS bewegt es minimal */
  --spot-x: 88%;
  --spot-y: 2%;
  /* sehr feine goldene Abschlusslinie am unteren Hero-Rand */
  box-shadow: inset 0 -1px 0 rgba(178, 154, 104, 0.42);
}
/* sehr dezenter, weicher Lichtschein über den KOMPLETTEN Hero:
   kommt aus der oberen rechten Ecke, läuft weich nach links unten aus.
   Position folgt der Maus nur minimal (fast statisch). */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(145% 105% at var(--spot-x) var(--spot-y),
      rgba(232, 214, 172, 0.10), transparent 78%),
    linear-gradient(90deg, var(--c-anthracite-deep) 48%, #25282c 100%),
    linear-gradient(180deg, #23262a 0%, var(--c-anthracite-deep) 58%);
}
/* sehr feine Körnung ausschließlich über CSS (inline SVG-Noise) */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* dezenter Groß-Buchstabe als Hintergrundelement (u. a. 404-Seite) */
.hero__glyph {
  position: absolute;
  right: clamp(-2rem, -2vw, 2rem);
  bottom: -6vw;
  font-family: var(--font-serif);
  font-size: clamp(20rem, 40vw, 40rem);
  line-height: 0.8;
  color: rgba(244, 241, 234, 0.035);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

/* Zweispaltiges Layout: Text links, Monogramm rechts */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: clamp(330px, 46vh, 460px);
}
/* Text mittig ausgerichtet, Block als Ganzes fast ganz nach links */
.hero__content {
  max-width: 720px;
  margin-left: clamp(-2rem, -1.2vw, 0rem);
  margin-right: auto;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1.05rem;
}
.hero__title {
  font-size: clamp(2.2rem, 4.8vw, 3.9rem); /* kompakter, ~35–62px */
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 1rem;
  /* Headline nie mit Silbentrennung mitten im Wort brechen */
  hyphens: manual;
  overflow-wrap: break-word;
}
/* individuelle goldene Trennlinie mit feiner Einkerbung (SVG) */
.hero__rule {
  display: block;
  width: min(300px, 100%);
  height: auto;
  color: var(--c-gold);
  margin: 0 auto 1.1rem;
}
.hero__rule path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__subhead {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  color: var(--c-offwhite);
  font-weight: 400;
  margin: 0 0 0.9rem;
}
.hero__lede {
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.55;
  color: var(--c-on-dark-muted);
  max-width: 44ch;
  margin: 0 auto 1.7rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.hero__actions .btn { padding: 0.85rem 1.4rem; }

/* ---- Sehr großes, sehr dezentes Hintergrund-Monogramm ---- */
.hero__monogram {
  position: absolute;
  z-index: 0;
  top: 50%; left: 64%;
  transform: translate(-50%, -50%);
  width: min(68rem, 75vw); /* ~10% größer */
  max-width: none;
  height: auto;
  opacity: 0.065; /* sehr dezent, etwas heller */
  pointer-events: none;
  user-select: none;
}
/* zwei feine vertikale Linien ganz außen (linke/rechte Kante des Inhalts) */
.hero__rail {
  position: absolute;
  z-index: 0;
  top: 3%; bottom: 3%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent,
    rgba(178, 154, 104, 0.24) 14%,
    rgba(178, 154, 104, 0.12) 86%,
    transparent);
}
.hero__rail--left { left: 0; }
.hero__rail--right { right: 0; }

/* =========================================================================
   Abschnitts-Übergänge (feine Linie statt harter Kante)
   ========================================================================= */
.section--light { background: var(--c-bg-light); }
.section--offwhite { background: var(--c-offwhite); }
.section-head { max-width: var(--measure); margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--c-text);
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  color: var(--c-text);
}

/* Tätigkeitsbereich */
.prose { max-width: var(--measure); }
.prose p { color: var(--c-text); }
.prose p + p { margin-top: 1.15em; }

/* Prinzipien: ruhige dreispaltige Typografie mit feinen senkrechten Linien */
.principles {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.principle {
  padding: 0 clamp(1.4rem, 2.5vw, 2.4rem);
  border-left: 1px solid var(--c-line);
}
.principle:first-child { border-left: none; padding-left: 0; }
.principle h3 {
  font-size: 1.28rem;
  margin: 0 0 0.7rem;
  color: var(--c-text);
}
.principle p {
  font-size: 0.98rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* =========================================================================
   Über mich
   ========================================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* Portrait mit ruhigem Clip-Path-Reveal */
.portrait {
  position: relative;
  margin: 0;
}
.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #2b2e31, #202224);
  overflow: hidden;
  border-radius: 2px;
}
.portrait__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* feine goldene Eckenlinie */
.portrait::after {
  content: "";
  position: absolute;
  right: -14px; bottom: -14px;
  width: 46%; height: 46%;
  border-right: 1px solid var(--c-gold);
  border-bottom: 1px solid var(--c-gold);
  pointer-events: none;
}
/* Platzhalter, wenn noch kein Bild vorhanden ist */
.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  color: var(--c-on-dark-muted);
  padding: 1.5rem;
}
.portrait__placeholder .mono {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  color: var(--c-gold);
  line-height: 1;
}
.portrait__placeholder small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portrait.has-image .portrait__placeholder { display: none; }

.about__body h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.4rem; }

/* Stationen */
.stations { list-style: none; margin: 2.2rem 0 0; padding: 0; }
.stations li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-text);
}
.stations li:last-child { border-bottom: 1px solid var(--c-line); }
.stations li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.35rem;
  width: 6px; height: 6px;
  background: var(--c-gold);
  border-radius: 50%;
}

/* =========================================================================
   Kontakt
   ========================================================================= */
.contact { background: var(--c-anthracite-deep); color: var(--c-on-dark); }
.contact .section-head h2 { color: var(--c-on-dark); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__intro { color: var(--c-on-dark-muted); max-width: 42ch; }

.contact__card {
  border: 1px solid var(--c-line-dark);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: rgba(244, 241, 234, 0.02);
}
.contact__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}
.contact__person { color: var(--c-on-dark-muted); margin: 0 0 1.4rem; }

.contact__list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.contact__list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-top: 1px solid var(--c-line-dark);
}
.contact__list li:first-child { border-top: none; }
.contact__list .ico {
  width: 1.15rem; height: 1.15rem;
  color: var(--c-gold);
  flex: none;
  margin-top: 0.28rem;
}
.contact__list .lbl {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
  margin-bottom: 0.1rem;
}
.contact__list a { color: var(--c-on-dark); text-decoration: none; }
.contact__list address { font-style: normal; color: var(--c-on-dark); }
.contact__actions { display: flex; flex-wrap: nowrap; gap: 0.8rem; }
.contact__actions .btn {
  flex: 1 1 0;
  justify-content: center;
  white-space: nowrap;
  padding-inline: 1rem;
}
/* nur auf sehr schmalen Geräten untereinander */
@media (max-width: 460px) {
  .contact__actions { flex-wrap: wrap; }
  .contact__actions .btn { flex: 1 1 100%; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--c-anthracite);
  color: var(--c-on-dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid var(--c-line-dark);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--c-line-dark);
}
.footer__brand .brand { align-items: center; }
.footer__brand .brand__logo { height: 46px; }
.footer__brand .brand__mark { color: var(--c-on-dark); }
.footer__brand p { margin-top: 1.1rem; font-size: 0.95rem; max-width: 32ch; }
.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer a { color: var(--c-on-dark-muted); text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--c-on-dark); }
.footer address { font-style: normal; line-height: 1.7; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.85rem;
}
.footer__bottom nav { display: flex; gap: 1.4rem; }

/* =========================================================================
   Rechtstext-Seiten (Impressum / Datenschutz / 404)
   ========================================================================= */
.page-hero {
  background: var(--c-anthracite-deep);
  color: var(--c-on-dark);
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vh, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.page-hero p { color: var(--c-on-dark-muted); margin-top: 0.8rem; }

.legal { max-width: 780px; }
.legal h2 {
  font-size: 1.5rem;
  margin: 2.6rem 0 0.9rem;
  color: var(--c-text);
}
.legal h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.legal p, .legal li { color: var(--c-text); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--c-gold-dark); }

.note {
  border-left: 3px solid var(--c-gold);
  background: var(--c-offwhite);
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
  border-radius: 0 3px 3px 0;
  font-size: 0.97rem;
}
.note strong { color: var(--c-gold-dark); }
.placeholder-tag {
  display: inline-block;
  background: rgba(178, 154, 104, 0.16);
  border: 1px dashed var(--c-gold-dark);
  color: var(--c-gold-dark);
  padding: 0.05rem 0.5rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: var(--font-sans);
}

.error-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================================================
   Scroll-Reveal (feine vertikale Bewegung)
   ========================================================================= */
/* Nur wenn JS aktiv ist, werden Elemente zunächst verborgen (Progressive
   Enhancement). Ohne JS bleibt der gesamte Inhalt sofort sichtbar. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero: goldene Rule zeichnet sich horizontal auf */
.js .hero__rule path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 950ms var(--ease) 240ms;
}
.js .hero__rule.is-visible path { stroke-dashoffset: 0; }

/* Hero: großes Monogramm wird langsam und ruhig sichtbar */
.js .hero__visual {
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1200ms var(--ease) 320ms, transform 1200ms var(--ease) 320ms;
}
.js .hero__visual.is-visible { opacity: 1; transform: none; }

/* Portrait clip-path reveal */
.js .portrait__frame { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease); }
.js .portrait.is-visible .portrait__frame { clip-path: inset(0 0 0 0); }

/* Goldene Trennlinie, die beim Scrollen aufbaut */
.grow-line {
  height: 1px;
  background: var(--c-gold);
  transform-origin: left;
  transition: transform 900ms var(--ease);
}
.js .grow-line { transform: scaleX(0); }
.js .grow-line.is-visible { transform: scaleX(1); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; gap: 0; border-top: none; padding-top: 0; }
  .principle {
    border-left: none;
    border-top: 1px solid var(--c-line);
    padding: 1.4rem 0;
  }
  .principle:first-child { padding-top: 1.4rem; }
}

/* Hero — Tablet: weiterhin kompakt, großes Hintergrund-Monogramm */
@media (max-width: 1024px) {
  .hero__grid { min-height: clamp(460px, 62vh, 640px); }
}

/* Hero — Smartphone: einspaltig, Monogramm dezent im Hintergrund rechts */
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; align-items: start; }
  .hero__rail { display: none; }
  .hero__monogram {
    top: 46%; left: auto; right: -30%;
    transform: translateY(-50%);
    width: min(42rem, 165vw);
    opacity: 0.065;
  }
  .hero__content { position: relative; z-index: 1; margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h-scrolled) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(32, 34, 36, 0.985);
    border-bottom: 1px solid var(--c-line-dark);
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms var(--ease), transform 300ms var(--ease),
      visibility 300ms var(--ease);
  }
  .site-header.nav-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-header.nav-open { background: rgba(32, 34, 36, 0.985); height: var(--nav-h-scrolled); }
  .nav__link {
    padding: 1rem 0;
    border-top: 1px solid var(--c-line-dark);
    font-size: 1.05rem;
  }
  .nav__link::after { display: none; }
  .nav__menu li:first-child .nav__link { border-top: none; }
  .nav__menu .nav__cta--mobile {
    display: inline-flex;
    margin-top: 1.1rem;
    justify-content: center;
  }

  .site-header.nav-open .nav__toggle span { background: transparent; }
  .site-header.nav-open .nav__toggle span::before { top: 0; transform: translate(-50%, -50%) rotate(45deg); }
  .site-header.nav-open .nav__toggle span::after { top: 0; transform: translate(-50%, -50%) rotate(-45deg); }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
}
.nav__cta--mobile { display: none; }

/* Sehr schmale Geräte: Wortmarke ausblenden, Logo bleibt */
@media (max-width: 400px) {
  .site-header .brand__mark { display: none; }
}

/* =========================================================================
   Reduzierte Bewegung — vollständig respektiert
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .portrait__frame { clip-path: none; }
  .js .grow-line { transform: scaleX(1); }
  .js .hero__rule path { stroke-dashoffset: 0; }
  .js .hero__visual { opacity: 1; transform: none; }
}
