/* ============================================================
   elevenOne — CD-Tokens & Self-hosted Fonts (DSGVO-konform)
   "Engineering Precision Editorial"
   Wird VOR style.css geladen — überschreibt DemoServices-Werte.
   ============================================================ */

/* ── Self-hosted Fonts (kein Drittland-Transfer) ───────────── */
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── Token-Override (CD + Bridge auf DemoServices-Schema) ─── */
:root {
  /* === elevenOne Corporate Design === */
  --copper-500: #A84221;
  --copper-400: #C7593A;
  --copper-600: #8A3318;
  --copper-glow: rgba(168, 66, 33, 0.18);

  --ink:        #0A0806;
  --carbon:     #1A1410;
  --graphite:   #2A2218;
  --slate:      #564A3A;
  --bone:       #E8E0D2;
  --ash:        #9A8E7A;

  /* Echter zweiter Akzent für „live/aktiv/Status" */
  --bronze-500: #D4A040;
  --bronze-400: #E0B25C;
  --bronze-glow: rgba(212, 160, 64, 0.18);

  /* === Bridge-Aliase auf DemoServices-Schema === */
  --bg-void:        var(--ink);
  --bg-surface:     var(--carbon);
  --bg-elevated:    var(--graphite);
  --bg-overlay:     rgba(10, 8, 6, 0.92);

  --accent-gold:        var(--copper-500);
  --accent-gold-dim:    var(--copper-600);
  --accent-gold-glow:   var(--copper-glow);

  /* Vollständige cyan-Bridge für unmodifiziertes style.css */
  --accent-cyan:        var(--bronze-500);
  --accent-cyan-dim:    var(--bronze-400);
  --accent-cyan-glow:   var(--bronze-glow);
  --border-cyan:        rgba(212, 160, 64, 0.30);

  --accent-amber:       var(--bronze-500);
  --accent-amber-glow:  var(--bronze-glow);
  --accent-red:         #C44141;

  --text-primary:       var(--bone);
  --text-secondary:     var(--ash);
  --text-muted:         var(--slate);
  --text-accent:        var(--copper-500);

  --border-subtle:      rgba(168, 66, 33, 0.10);
  --border-default:     rgba(168, 66, 33, 0.22);
  --border-active:      rgba(168, 66, 33, 0.55);
  --border-hairline:    rgba(168, 66, 33, 0.65);

  /* Fonts: Manrope für Display+Body, IBM Plex Mono für technische Labels */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  --font-body:    'Manrope', system-ui, sans-serif;
}

/* ── Body-Override: Manrope statt Fraunces, weight 400 ──── */
body {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ── Display-Klassen Override ───────────────────────────── */
.display-xl, .display-lg, .display-md {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.display-xl { font-size: clamp(3rem, 7vw, 6rem); }
.display-lg { font-size: clamp(2.25rem, 5vw, 4rem); }
.display-md { font-size: clamp(1.5rem, 3vw, 2.25rem); }

/* ── Mono-Label Override ─────────────────────────────────── */
.label-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: var(--copper-500);
}

/* ── Engineering-Precision: Section-Marker ───────────────── */
.section-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  color: var(--copper-500);
  margin-bottom: var(--s2);
}
.section-mark::before { content: '§ '; opacity: .7; }

/* ── Maßlinien-Optik ─────────────────────────────────────── */
.dimension-line {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--copper-500);
  letter-spacing: .15em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dimension-line::before { content: '├'; }
.dimension-line::after  { content: '┤'; }

/* ── Skip-Link (a11y) ────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--copper-500);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  z-index: 1000;
  transition: top .2s var(--ease-expo, ease);
}
.skip-link:focus { top: 0; outline: 2px solid var(--bronze-500); outline-offset: 2px; }

/* ── Globaler Focus-Indikator (a11y) ─────────────────────── */
:focus-visible {
  outline: 2px solid var(--bronze-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Crosshair-Cursor auf interaktiven Elementen ─────────── */
a[href], button, .product-widget-toggle {
  cursor: crosshair;
}
input, textarea, select { cursor: text; }

/* ── Reduced-Motion Respekt ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-canvas-wrap canvas { display: none; }
}
