:root {
  /* "Precision Luxury Tech"-Palette (lt. Analyse 8.5.2026) */
  --anthracite:    #1A1A2E;   /* Hero-Sections, CTA-Backgrounds, Footer */
  --anthracite-2:  #14142B;   /* tiefer, für Cards auf Anthrazit */
  --off-white:     #FAF8F4;   /* Page-Background, warm */
  --beige:         #F5F1EB;   /* Section-Backgrounds */
  --beige-deep:    #EFE9DF;   /* Karten / akzentuierte Bereiche */
  --gold:          #D4A853;   /* CTAs, Highlights, Akzente */
  --gold-deep:     #B8942E;   /* Gold-Hover, Border-Akzente */
  --warm-grey:     #6B6B6B;   /* Body-Text Sekundär */
  --warm-grey-light:#A09A8E;  /* Hint-Text, Captions */
  --text:          #1A1A2E;   /* Primärer Text (Anthrazit statt Schwarz) */
  --text-muted:    #4A4A5A;
  --border:        #E2DED8;   /* Borders auf warm-Backgrounds */
  --border-light:  #EDE6DA;
  --emerald-soft:  #10B981;   /* Erfolgs-Stats, dezent */

  /* Legacy-Aliase (für externe Referenzen wie blog-content) */
  --primary: var(--anthracite);
  --secondary: var(--off-white);
  --accent: var(--gold);
  --accent-dark: var(--gold-deep);
  --bg: var(--off-white);
  --bg-light: var(--beige);
  --bg-dark: var(--anthracite);

  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1200px;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Roboto Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

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

/* Serif-Headlines (Fraunces) — globale Regel, wirkt über alle Seiten,
   da inline-Styles font-size/weight setzen, aber nicht font-family. */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.015em;
}
h1 { font-weight: 600; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }

/* Mono- und Eyebrow-Labels behalten Sans/Mono explizit */
[style*="font-family:monospace"],
[style*="font-family: monospace"] {
  font-family: var(--font-mono) !important;
}

::selection { background: var(--gold); color: var(--anthracite); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* Blog content */
.blog-content h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--anthracite);
  letter-spacing: -0.015em;
}
.blog-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--anthracite);
}
.blog-content p {
  margin: 0 0 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.blog-content ul, .blog-content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.blog-content a {
  color: var(--anthracite);
  border-bottom: 2px solid var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-content a:hover {
  color: var(--gold-deep);
}
.blog-content code {
  background: var(--beige-deep);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--anthracite);
}
.blog-content pre {
  background: var(--anthracite);
  color: #F0EBE2;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
}
.blog-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.blog-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1rem 0;
  font-style: italic;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .dl-nav-desktop { display: none !important; }
  .dl-hamburger { display: flex !important; }
}

/* Focus-visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Mobile menu visibility helpers */
.dl-mobile-menu.open { display: flex !important; }
.dl-mobile-leistungen.open { display: block !important; }
.dl-dropdown-menu.open { display: block !important; }

/* Subtle Grid-Texture für Hero-Areas (Precision-Anker) */
.dl-grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,26,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,46,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
