/* ═══════════════════════════════════════
   BROBOX — Shared Base Styles
   ═══════════════════════════════════════ */

/* ─── ORIGIN FONT ─── */
@font-face {
  font-family: 'Origin';
  src: url('../../fonts/origin/Origin-Light.woff') format('woff'),
       url('../../fonts/origin/Origin-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'Origin';
  src: url('../../fonts/origin/Origin-Regular.woff') format('woff'),
       url('../../fonts/origin/Origin-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Origin';
  src: url('../../fonts/origin/Origin-Bold.woff') format('woff'),
       url('../../fonts/origin/Origin-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'Origin';
  src: url('../../fonts/origin/Origin-Heavy.woff') format('woff'),
       url('../../fonts/origin/Origin-Heavy.ttf') format('truetype');
  font-weight: 900; font-style: normal;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light base — mostly WHITE with only a whisper of cool/petrol cast,
     so steps read as light + depth, never as a colour fill. */
  --bg:           #fbfcfc;
  --surface:      #ffffff;
  --surface-2:    #f3f5f5;
  --surface-3:    #eceff0;

  /* Dark accents — warm dark grey, NEVER black */
  --ink:          #232328;
  --ink-soft:     #353539;
  --ink-mid:      #5a5a5e;

  /* Text */
  --text:         #232328;
  --text-mid:     rgba(35,35,40,0.66);
  --text-dim:     rgba(35,35,40,0.45);
  --text-faint:   rgba(35,35,40,0.20);

  /* Border */
  --border:       rgba(35,35,40,0.09);
  --border-soft:  rgba(35,35,40,0.04);

  /* ACCENT — muted slate / petrol-sage (not babyblue, not cyan, not purple).
     Used ONLY punctually: lines, dots, pins, active states, small accents. */
  --accent:       #5f8189;
  --accent-light:     #9fb6b8;
  --accent-deep:  #3c565b;
  --accent-soft:  rgba(95,129,137,0.12);
  --accent-faint: rgba(95,129,137,0.06);
  --accent-glow:  rgba(159,182,184,0.20);
  /* misty slate-teal for headline highlight words (flat, no gradient) */
  --em-cloud:     #6f8a8f;

  /* Inverted */
  --ink-text:      #fafaf7;
  --ink-text-mid:  rgba(250,250,247,0.72);
  --ink-text-dim:  rgba(250,250,247,0.42);

  /* Typography — Origin only. Weights 300 / 400 / 700 / 900 available.
     Browser rounds requested 500→400 and 600→700 automatically. */
  --font-display:  'Origin', sans-serif;
  --font-body:     'Origin', sans-serif;

  /* Layout */
  --nav-h:     72px;
  --max:       1280px;
  --gutter:    clamp(24px, 5vw, 80px);
  --radius:    18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
}

html { scroll-behavior: smooth; }

/* Anchor sections should land below the fixed nav, not under it. */
:where([id]) { scroll-margin-top: calc(var(--nav-h) + 24px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── FOCUS-VISIBLE — accessible focus rings ─── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.form-submit:focus-visible,
.lost-option:focus-visible,
.pillar-card:focus-visible,
.uc-card:focus-visible,
.exp-card:focus-visible,
.wt-card:focus-visible,
.world-card:focus-visible,
.legal-card:focus-visible,
.ba-pair-btn:focus-visible {
  outline-offset: 4px;
}
.nav-logo:focus-visible {
  outline-offset: 6px;
}
.lang-switch button:focus-visible {
  outline-offset: 2px;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

/* ─── SKIP-TO-CONTENT (a11y) ─── */
.skip-link {
  position: fixed;
  top: -120px;
  left: 24px;
  z-index: 200;
  background: var(--ink);
  color: var(--ink-text);
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px -8px rgba(35,35,40,0.3);
  transition: top 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.skip-link:focus-visible {
  top: 18px;
  outline-offset: 4px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── TYPOGRAPHY UTILS ─── */
.accent-text {
  /* flat, misty slate-teal highlight — no gradient text */
  background: none;
  color: var(--em-cloud);
  -webkit-text-fill-color: var(--em-cloud);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.kicker-accent { color: var(--accent-deep); }

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
  color: var(--ink);
}
.section-headline em {
  font-style: normal;
  font-weight: 300;
  color: var(--em-cloud);
}
.section-headline em.accent-text { font-weight: 700; }

.section-sub {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 620px;
}

/* ─── FADE-UP ─── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }


/* ═══════════════════════════════════════
   NAV
   ═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(251,252,252,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .logo-accent {
  /* small, calm, flat accent — no gradient */
  background: none;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switch button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active {
  color: var(--accent-deep);
  background: var(--accent-faint);
}
.lang-switch span { opacity: 0.25; }

/* Account entry — quiet text link with chevron. NOT a button. NOT a
   profile icon. Rechter Nav-Anker neben dem Sprachschalter; Kontakt
   lebt ausschließlich als Menüpunkt in .nav-links (kein Doppel-CTA). */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-mid);
  padding: 6px 2px;
  transition: color 0.25s;
  position: relative;
}
.nav-account::before {
  /* tiny vertical separator from the nav-links cluster */
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--border);
}
.nav-account svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  transition: transform 0.25s;
  color: var(--text-dim);
}
.nav-account:hover { color: var(--ink); }
.nav-account:hover svg {
  color: var(--accent-deep);
  transform: translateX(2px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--ink-text);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(95,129,137,0.4);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 6px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger span:nth-child(1) { top: 12px; }
.nav-hamburger span:nth-child(2) { top: 18px; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.nav-hamburger.open span:nth-child(2) { transform: rotate(-45deg); top: 15px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(250,250,247,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 48px var(--gutter);
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 28px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
/* Account link in mobile menu — visually separated, smaller, calmer.
   Same role as desktop .nav-account but adapted to the menu sheet. */
.mobile-menu .mobile-menu-account {
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-mid);
}
.mobile-menu .mobile-menu-account svg {
  color: var(--accent-deep);
  transition: transform 0.25s;
}
.mobile-menu .mobile-menu-account:hover svg { transform: translateX(3px); }


/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.btn-dark {
  background: var(--ink);
  color: var(--ink-text);
}
.btn-dark:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(95,129,137,0.35);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(95,129,137,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 4px;
  transition: gap 0.3s, border-color 0.3s;
}
.btn-link:hover { gap: 14px; border-color: var(--accent); }


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left {
  font-size: 13px;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent-deep); }

/* Footer socials — pure logos, no buttons, no circles.
   Clickable target is the icon itself, with a small invisible
   padding for comfortable hit area. Hover only shifts the
   colour, no transforms, no shadows. */
.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  cursor: pointer;
  padding: 4px;
  margin: -4px;
  background: none;
  border: 0;
  border-radius: 0;
  transition: color 0.25s ease;
  text-decoration: none;
}
.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}
.social-link:hover,
.social-link:focus-visible {
  color: var(--accent-deep);
  outline: none;
}

/* Reduced footer — single calm row:
   left = © · Impressum · Datenschutz,
   right = AI summary handoff.
   No more social icons in the footer — those live with
   the contact methods now. */
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-mid);
}
.footer-meta a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-meta a:hover { color: var(--ink); }

.footer-ai {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}
.footer-ai-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-mid);
  white-space: nowrap;
}
.footer-ai-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.footer-ai-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  background: none;
  border: 0;
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}
.footer-ai-btn:hover,
.footer-ai-btn:focus-visible {
  background: var(--ink);
  color: #fff;
  outline: none;
}
.ai-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9000;
}
.ai-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 880px) {
  .footer-ai { margin-left: 0; }
}


/* ═══════════════════════════════════════
   SUBPAGE HERO (shared pattern)
   ═══════════════════════════════════════ */
.subhero {
  position: relative;
  padding: calc(var(--nav-h) + 100px) 0 80px;
  overflow: hidden;
}
.subhero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.subhero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.subhero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 28px 0 28px;
  color: var(--ink);
}
.subhero-headline em {
  font-style: normal;
  font-weight: 300;
  /* airy, misty highlight — single soft cool tone, no gradient */
  background: none;
  color: var(--em-cloud);
  -webkit-text-fill-color: var(--em-cloud);
}
.subhero-sub {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 640px;
}
.subhero-sub strong { font-weight: 500; color: var(--text); }


/* ═══════════════════════════════════════
   FINAL CTA — shared compact section
   ═══════════════════════════════════════ */
.final-cta {
  padding: 140px 0 100px;
  text-align: center;
}
.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
}
.final-cta-headline em {
  font-style: normal;
  font-weight: 300;
  /* flat, misty highlight — no gradient text */
  background: none;
  color: var(--em-cloud);
  -webkit-text-fill-color: var(--em-cloud);
}
.final-cta-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 40px;
}
.final-cta .btn {
  font-size: 15px;
  padding: 18px 36px;
}


/* ═══════════════════════════════════════
   RESPONSIVE BASE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta, .nav-right .lang-switch { display: none; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}


/* ═══════════════════════════════════════
   REDUCED MOTION
   Respect users who prefer minimal animation.
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Specifically disable looping / decorative animations */
  .marquee-track,
  .lost-blob,
  .hero-badge-dot,
  .lost-badge-dot,
  .hero-scroll-line,
  .ba-hint svg,
  .morph-wrap em {
    animation: none !important;
  }
  /* Reveal fade-up elements immediately */
  .fade-up { opacity: 1 !important; transform: none !important; }
  .anim-in { opacity: 1 !important; transform: none !important; }
}


/* ═══ BROBOX Editorial-Layer (Design-Harmonisierung 2026-07-10) ═══
   Wiederverwendbare Muster, extrahiert aus system.html (INTELLIGENCE-Referenz).
   1) .bb-ghost + .bb-ghost-word — atmosphärische Riesen-Hintergrund-Typografie
      als Brücke zwischen Sektionen (unten am Übergang natürlich beschnitten).
   2) .bb-dark-band — ruhige, studio-dunkle Premium-Fläche (Petrol-kompatibel).
   Anwendung: <div class="bb-ghost" aria-hidden="true"><p class="bb-ghost-word">WORT</p></div>
   direkt VOR einer Sektion platzieren; für den Hell→Dunkel-Übergang die
   Folge-Sektion als .bb-dark-band ausführen. */
.bb-ghost {
  width: 100%;
  height: clamp(80px, 11vw, 180px);
  overflow: hidden;
  text-align: center;
  pointer-events: none;
  user-select: none;
  position: relative;
}
.bb-ghost-word {
  font-family: var(--font-display, 'Origin', sans-serif);
  font-size: clamp(100px, 16vw, 260px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
  background: linear-gradient(180deg,
    rgba(40, 62, 70, 0.34) 0%,
    rgba(72, 102, 110, 0.26) 60%,
    rgba(110, 145, 152, 0.15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.bb-dark-band {
  background: #181b20;
  color: #f4f6f7;
}
