/* ============================================================
   bonacci — Visitenkarte
   Reines CSS, keine Build-Tools. Design-Tokens oben.
   ============================================================ */

/* ── Schriften: lokal gehostet (kein Google-CDN, keine Datenübertragung an Dritte) ── */
@font-face { font-family:"Inter"; font-style:normal; font-weight:300; font-display:swap;
  src:url("../assets/fonts/_install/Inter-Light.ttf")    format("truetype"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../assets/fonts/_install/Inter-Regular.ttf")  format("truetype"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../assets/fonts/_install/Inter-Medium.ttf")   format("truetype"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap;
  src:url("../assets/fonts/_install/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../assets/fonts/_install/JetBrainsMono-Regular.ttf") format("truetype"); }
@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../assets/fonts/_install/JetBrainsMono-Medium.ttf")  format("truetype"); }
@font-face { font-family:"Newsreader"; font-style:italic; font-weight:400; font-display:swap;
  src:url("../assets/fonts/_install/Newsreader-Italic.ttf") format("truetype"); }

:root {
  /* Palette — kaltes Off-White, fast-schwarze Tinte, ein Akzent */
  --paper:       #f3f4f5;
  --paper-2:     #e8eaec;
  --ink:         #131517;
  --ink-soft:    #4c5158;
  --ink-faint:   #888d94;
  --tm:          #3f4348;   /* Markenzeichen ®: zurückgenommenes Grau */
  --line:        #d7dade;
  --accent:      #3a5169;   /* zurückhaltendes Schiefer-Blau, sparsam */

  /* dunkler Kontrastblock */
  --dark:        #131517;
  --dark-soft:   #8f949b;
  --dark-line:   #2b2e32;

  /* Typografie */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Newsreader", Georgia, serif;

  /* Maße */
  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 78rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }

/* ── Mikro-Label (monospaced) ───────────────────────── */
.eyebrow,
.section-label,
.footer-meta,
.site-nav a,
.discipline-no {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.7rem var(--pad);
  transition: padding .4s ease, background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
}
.logo {
  height: 2rem;
  width: auto;
  display: block;
}

.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  color: var(--ink-soft);
  transition: color .25s ease;
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: 0.62rem; letter-spacing: 0.12em; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}

.eyebrow { color: var(--accent); margin-bottom: 1.8rem; }

.hero-title {
  font-weight: 500;
  font-size: clamp(2.6rem, 1.5rem + 6.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero-sub {
  margin-top: 2.2rem;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}

.hero-claim {
  margin-top: 1.1rem;
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  letter-spacing: -0.01em;
}

/* ============================================================
   Sektionen — gemeinsame Maße
   ============================================================ */
.section {
  padding: clamp(5rem, 9vw, 9rem) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-label {
  color: var(--ink-faint);
  margin-bottom: 2.5rem;
  display: block;
}

/* ── Haltung / Statement ─────────────────────────────── */
.pull-quote {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.7rem, 1rem + 3vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.pull-quote em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.statement-body {
  margin-top: 2.5rem;
  margin-left: auto;
  max-width: 46ch;
  color: var(--ink-soft);
}

/* ── Disziplinen ─────────────────────────────────────── */
.disciplines { border-top: 1px solid var(--line); }
.discipline-list { list-style: none; }
.discipline {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem 2rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.discipline:last-child { border-bottom: 1px solid var(--line); }
.discipline-no { color: var(--ink-faint); padding-top: 0.45rem; }
.discipline h2 {
  font-weight: 500;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.discipline p {
  grid-column: 2;
  margin-top: 0.9rem;
  max-width: 50ch;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .discipline { grid-template-columns: 1fr; }
  .discipline p, .discipline h2 { grid-column: 1; }
  .discipline-no { padding-top: 0; }
}

/* ── Sektoren (dunkler Kontrastblock, randlos breit) ── */
.invert {
  background: var(--dark);
  color: var(--paper);   /* full-bleed dunkler Block */
}
.invert .section-label { color: var(--dark-soft); }
.sectors-title {
  font-weight: 500;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
}
.sector-grid {
  list-style: none;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  border-top: 1px solid var(--dark-line);
}
.sector-grid li {
  padding: 1.8rem 0;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--dark-line);
}
.discretion {
  margin-top: 3.5rem;
  max-width: 52ch;
  color: var(--dark-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── Kontakt ─────────────────────────────────────────── */
.contact-body {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}
.contact-mail {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 0.05em;
  transition: border-color .3s ease, color .3s ease;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-mark { font-weight: 600; letter-spacing: -0.02em; }
.footer-meta { color: var(--ink-faint); }
.footer-meta a { transition: color .25s ease; }
.footer-meta a:hover { color: var(--ink); }

/* ============================================================
   Scroll-Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1),
              transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Logo-Intro: Vorhang + platzierbares, klickbares Logo (Brand)
   ============================================================ */
.veil {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  transition: opacity .9s ease;
}
.veil.gone   { opacity: 0; pointer-events: none; }
.veil.hidden { display: none; }
body.intro-open { overflow: hidden; }

/* Logo ruht oben links (Header-Position), startet aber gross/zentral */
.brand {
  position: fixed; z-index: 1001;
  top: 1rem; left: var(--pad); width: 4.6rem;
  display: block; cursor: pointer;
  background: none; border: none; padding: 0; margin: 0;
  transition: top .95s cubic-bezier(.62,0,.2,1),
              left .95s cubic-bezier(.62,0,.2,1),
              width .95s cubic-bezier(.62,0,.2,1),
              transform .95s cubic-bezier(.62,0,.2,1);
}
.brand--intro {
  top: 50%; left: 50%; width: min(520px, 78vw);
  transform: translate(-50%, -50%);
}
.brand.no-anim { transition: none; }
.brand .intro-stage { display: block; width: 100%; }

.intro-hint {
  position: fixed; left: 50%; bottom: 14vh; transform: translateX(-50%);
  z-index: 1001; pointer-events: none;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
  opacity: 0; transition: opacity .5s ease;
}
.intro-hint.show { opacity: 1; animation: hintpulse 2.4s ease-in-out infinite; }
@keyframes hintpulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* Konstruktions-Grundzustaende */
.intro-stage .square { fill: none; stroke: var(--ink-faint); stroke-width: .5;
                       stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-stage .spiral { fill: none; stroke: var(--ink); stroke-width: 2.835;
                       stroke-linecap: butt; stroke-linejoin: round;
                       stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-stage .letters > * { opacity: 0; fill: var(--ink); }
.intro-stage .letters .tm { fill: var(--tm); }

@keyframes introdraw { to { stroke-dashoffset: 0; } }
@keyframes introfin  { to { opacity: 1; } }
@keyframes introfout { to { opacity: 0; } }

/* Statischer Endzustand ohne Animation (Wiederbesuch / reduzierte Bewegung) */
.intro-stage.shown .spiral      { stroke-dashoffset: 0; }
.intro-stage.shown .letters > * { opacity: 1; }
.intro-stage.shown .scaffold    { opacity: 0; }

/* Choreografie (Aufbau ~4,4 s) */
.intro-stage.play .square { animation: introdraw .5s ease forwards; }
.intro-stage.play .s1b { animation-delay: .1s; }
.intro-stage.play .s1a { animation-delay: .5s; }
.intro-stage.play .s2  { animation-delay: .9s; }
.intro-stage.play .s3  { animation-delay: 1.4s; }
.intro-stage.play .spiral { animation: introdraw 1.2s ease-in-out forwards 1.9s; }
.intro-stage.play .letters > * { animation: introfin .45s ease forwards; }
.intro-stage.play .letters path:nth-child(1){ animation-delay: 3.1s; }
.intro-stage.play .letters path:nth-child(2){ animation-delay: 3.2s; }
.intro-stage.play .letters path:nth-child(3){ animation-delay: 3.3s; }
.intro-stage.play .letters path:nth-child(4){ animation-delay: 3.4s; }
.intro-stage.play .letters path:nth-child(5){ animation-delay: 3.5s; }
.intro-stage.play .letters rect { animation-delay: 4.05s; }
.intro-stage.play .letters text { animation-delay: 4.4s; }
.intro-stage.play .scaffold { animation: introfout .7s ease forwards 3.85s; }

@media (prefers-reduced-motion: reduce) {
  .veil { display: none; }
  .brand { transition: none; }
}

/* ── Kontakt: Text links, Logo rechts; Wortmarke auf der gedachten Mittellinie ── */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
}
.contact-text { flex: 1 1 24rem; }
.contact-logo {
  flex: 0 0 auto;
  width: clamp(170px, 21vw, 300px);
  height: auto;
  transform: translateY(28%);   /* hebt die Wortmarke auf die gedachte Mittellinie des Textes */
}
@media (max-width: 640px) {
  .contact { align-items: flex-start; }
  .contact-logo { transform: none; margin-top: 2rem; width: min(70%, 240px); }
}

/* ============================================================
   Rechtstexte (Impressum / Datenschutz)
   ============================================================ */
.legal-header { padding: 1.7rem var(--pad); }
.legal-logo { height: 2.3rem; width: auto; display: block; }

.legal {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(4rem, 8vw, 7rem);
}
.legal .back {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
  display: inline-block; margin-bottom: 2.5rem; border: none;
  transition: color .2s ease;
}
.legal .back:hover { color: var(--ink); }
.legal h1 {
  font-weight: 500; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 2rem;
}
.legal h2 {
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.005em;
  margin: 2.4rem 0 0.6rem;
}
.legal p, .legal address {
  color: var(--ink-soft); line-height: 1.65; font-style: normal;
  margin-bottom: 0.7rem; max-width: 62ch;
}
.legal a { color: var(--ink); border-bottom: 1px solid var(--ink-faint);
           transition: color .2s ease, border-color .2s ease; }
.legal a:hover { color: var(--accent); border-color: var(--accent); }
.legal .meta { margin-top: 3rem; color: var(--ink-faint); font-size: .9rem; }

/* ── Rechtstexte: kombinierte Seite, Sprungnavigation, Teil-Labels ── */
.legal-toc {
  display: flex; gap: 1.8rem; flex-wrap: wrap;
  padding: 1.1rem 0; margin-bottom: 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.legal-toc a { color: var(--ink-soft); border: none; }
.legal-toc a:hover { color: var(--ink); }

.legal-block {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 4rem;
}
.legal-label {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 1.8rem;
}

/* ── Sprachumschalter DE | EN ── */
.site-header { gap: 1.6rem; }
.lang-switch {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
}
.lang-switch a, .lang-switch span { color: var(--ink-faint); }
.lang-switch .active { color: var(--ink); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .sep { color: var(--line); }
.legal-header { display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 600px) { .site-header { gap: 1rem; } }

/* ============================================================
   Dark Mode — folgt automatisch der Systemeinstellung
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #131517;   /* Seite dunkel */
    --paper-2:   #1b1e21;
    --ink:       #eceef0;   /* Text hell */
    --ink-soft:  #a7adb5;
    --ink-faint: #6c7178;
    --tm:        #aab0b6;   /* ® im Dark Mode: leichtes Grau */
    --line:      #2a2d31;
    --accent:    #8aa6c4;   /* hellere Akzentfarbe auf Dunkel */

    /* Kontrastblock (Sektoren) invertiert mit: im Dark Mode hell */
    --dark:      #b0b5bb;   /* Kontrastblock: gedämpftes Grau statt grellem Weiß */
    --dark-soft: #50545a;
    --dark-line: #9aa0a6;
  }
  /* schwarze Bild-Logos: hell, aber eingegraut (kein grelles Weiß) */
  .contact-logo, .legal-logo { filter: invert(0.82); }
}

/* ============================================================
   Mobile-Feinschliff: Hero zähmen, lange Wörter, kein H-Scroll
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100%; }
.hero-sub, .statement-body, .discipline p, .discretion,
.contact-body, .pull-quote, .sectors-title {
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(1.8rem, 0.9rem + 4vw, 2.5rem); }
}
