/* ── Cursor Fix: immer sichtbar via mix-blend-mode ── */
.cursor-dot { background: #fff !important; mix-blend-mode: difference; will-change: transform; left: -100px; top: -100px; }
.cursor-ring { border-color: #fff !important; mix-blend-mode: difference; will-change: transform; left: -100px; top: -100px; }
.cursor-ring.hover { border-color: #fff !important; }

/* ── Mobile: Cursor + Touch ── */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto !important; padding-bottom: 84px; }
  a, button { cursor: pointer !important; }
}

/* ── Guest Corner Card ── */
.guest-card {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 490;
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--dark); color: #fff;
  border-radius: 16px; padding: .9rem 1.1rem;
  box-shadow: 0 8px 32px rgba(30,30,44,.22), 0 2px 8px rgba(30,30,44,.1);
  min-width: 160px; max-width: 210px;
  opacity: 0; transform: translateX(12px) scale(.97);
  transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.2,.64,1);
  pointer-events: none;
}
.guest-card.show { opacity: 1; transform: none; pointer-events: all; }
[data-theme="dark"] .guest-card { background: #e8e6f8; color: #111118; box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.guest-card-top { display: flex; align-items: center; gap: .6rem; }
.guest-card-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rose-d); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: .85rem; font-weight: 900;
  color: var(--dark);
}
.guest-card-label { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .45; }
.guest-card-name { font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 700; line-height: 1.2; }
.guest-card-tag {
  font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.1); border-radius: 99px;
  padding: .2rem .6rem; display: inline-block; opacity: .6;
}
[data-theme="dark"] .guest-card-tag { background: rgba(17,17,24,.1); }
@media (max-width: 768px) { .guest-card { bottom: 6.5rem; right: 1rem; } }

/* ── Mobile Tab Bar ── */
.mobile-tabs {
  display: none;
  position: fixed;
  bottom: .8rem;
  left: .8rem;
  right: .8rem;
  z-index: 500;
  background: var(--dark);
  border-radius: 20px;
  padding: .35rem;
  box-shadow: 0 8px 40px rgba(30,30,44,.35), 0 2px 8px rgba(30,30,44,.2);
}

nav.mobile-tabs a.mobile-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .3rem;
  border-radius: 14px;
  text-decoration: none !important;
  color: rgba(255,255,255,.45) !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
nav.mobile-tabs a.mobile-tab.active {
  background: rgba(255,255,255,.13);
  color: #fff !important;
}
nav.mobile-tabs a.mobile-tab:hover {
  color: rgba(255,255,255,.8) !important;
}

@media (max-width: 768px) {
  .mobile-tabs { display: flex; }
}

[data-theme="dark"] .mobile-tabs {
  background: #e8e6f8;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
[data-theme="dark"] nav.mobile-tabs a.mobile-tab { color: rgba(17,17,24,.4) !important; }
[data-theme="dark"] nav.mobile-tabs a.mobile-tab.active { background: rgba(17,17,24,.1); color: #111118 !important; }

/* ── Theme Toggle Button ── */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1.5px solid rgba(30,30,44,.15); background: transparent;
  cursor: none; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all .2s; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--rose); border-color: var(--rose); transform: scale(1.08); }

/* ══════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════ */
[data-theme="dark"] {
  --cream: #111118;
  --white: #18181f;
  --sand:  #1e1e28;
  --mid:   #9998b6;
  --light: #56547a;
  color-scheme: dark;
}

[data-theme="dark"] body { color: #dddcec; }

/* Navigation */
[data-theme="dark"] nav {
  background: rgba(17,17,24,.92) !important;
  border-bottom-color: rgba(255,255,255,.05) !important;
}
[data-theme="dark"] .nav-logo     { color: #ece9ff; }
[data-theme="dark"] .nav-links a  { color: var(--mid); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active { color: #ece9ff; }
[data-theme="dark"] .nav-cta { background: rgba(255,255,255,.1) !important; color: #ece9ff !important; }
[data-theme="dark"] .nav-cta:hover { background: rgba(255,255,255,.18) !important; }

/* Headings */
[data-theme="dark"] h2 span,
[data-theme="dark"] h1 em        { color: rgba(255,255,255,.28) !important; }
[data-theme="dark"] .tl-title,
[data-theme="dark"] .skill-cat-title,
[data-theme="dark"] .strength-name,
[data-theme="dark"] .info-val,
[data-theme="dark"] .lang-name,
[data-theme="dark"] .sc-name,
[data-theme="dark"] .station-title,
[data-theme="dark"] .card-title,
[data-theme="dark"] .highlight-num,
[data-theme="dark"] .speedo-val  { color: #ece9ff !important; }

/* Cards & surfaces */
[data-theme="dark"] .about-card,
[data-theme="dark"] .tl-card,
[data-theme="dark"] .strength-card,
[data-theme="dark"] .hobby-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .highlight-card,
[data-theme="dark"] .lang-card,
[data-theme="dark"] .skill-cat-card,
[data-theme="dark"] .skill-item,
[data-theme="dark"] .station-body { background: #18181f !important; }
[data-theme="dark"] .station-header {
  background: #18181f !important;
  border-bottom-color: rgba(255,255,255,.05) !important;
}
[data-theme="dark"] .tl-body p,
[data-theme="dark"] .detail-text,
[data-theme="dark"] .card-sub,
[data-theme="dark"] .contact-desc,
[data-theme="dark"] .skill-cat-desc,
[data-theme="dark"] .sc-desc,
[data-theme="dark"] .lang-level { color: var(--mid); }
[data-theme="dark"] .tag         { background: #18181f; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .tl-arrow    { background: #111118; }
[data-theme="dark"] .info-row    { border-bottom-color: rgba(255,255,255,.05); }
[data-theme="dark"] .skill-bar   { background: rgba(255,255,255,.08) !important; }
[data-theme="dark"] .card-divider { background: rgba(255,255,255,.06) !important; }
[data-theme="dark"] .lang-dot    { background: rgba(255,255,255,.1) !important; }

/* Hero grid */
[data-theme="dark"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) !important;
}
[data-theme="dark"] .section-number {
  -webkit-text-stroke: 1px rgba(255,255,255,.04) !important;
}

/* Filter tabs */
[data-theme="dark"] .filter-tab {
  background: #18181f !important;
  border-color: rgba(255,255,255,.08) !important;
  color: var(--mid) !important;
}
[data-theme="dark"] .filter-tab.active {
  background: #e8e6f8 !important;
  color: #111118 !important;
  border-color: #e8e6f8 !important;
}

/* BMW banner */
[data-theme="dark"] .bmw-banner { border-color: rgba(255,255,255,.06) !important; }

/* Buttons in light sections */
[data-theme="dark"] .btn-secondary { border-color: rgba(255,255,255,.2); color: #ece9ff; }
[data-theme="dark"] .btn-secondary:hover { border-color: rgba(255,255,255,.5); }
[data-theme="dark"] .btn-outline  { border-color: rgba(255,255,255,.2); color: #ece9ff; }

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track  { background: #111118; }
[data-theme="dark"] ::-webkit-scrollbar-thumb  { background: #56547a; }

/* ── Dark Mode: Additional Fixes ── */

/* Buttons: btn-primary & btn-dark use --dark bg + --white text → both near-black in dark mode */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-dark {
  background: #e8e6f8 !important;
  color: #111118 !important;
}
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-dark:hover { box-shadow: 0 8px 24px rgba(232,230,248,.15) !important; }

/* btn-secondary & btn-outline: dark text on near-dark bg */
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-outline {
  color: #ece9ff !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* Hero .tag chips: --white bg + --mid text → very dark in dark mode */
[data-theme="dark"] .tag {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #9998b6 !important;
}

/* Skill pills (uncolored): --cream bg + --dark text → black on black */
[data-theme="dark"] .skill-pill {
  background: rgba(255,255,255,.08) !important;
  color: #c8c6e0 !important;
}

/* Project .ctag.dark: --dark bg + --white text → black on black */
[data-theme="dark"] .ctag.dark {
  background: rgba(255,255,255,.14) !important;
  color: #ece9ff !important;
}

/* Nav logo badge: --dark bg + --white text → near-invisible */
[data-theme="dark"] .nav-logo-badge {
  background: rgba(255,255,255,.12) !important;
  color: #ece9ff !important;
}

/* Dim labels: --light (#56547a) is too dark on dark cards */
[data-theme="dark"] .detail-label,
[data-theme="dark"] .card-num,
[data-theme="dark"] .card-what,
[data-theme="dark"] .speedo-label,
[data-theme="dark"] .tl-year,
[data-theme="dark"] .section-label,
[data-theme="dark"] .about-card-label,
[data-theme="dark"] .info-key { color: rgba(255,255,255,.38) !important; }

/* Speedometer: track & needle invisible on dark card (#18181f) */
[data-theme="dark"] .speedo-track { stroke: rgba(255,255,255,.12) !important; }
[data-theme="dark"] .speedo-needle { background: #d0ceec !important; }
[data-theme="dark"] .speedo-center { background: #d0ceec !important; }

/* skill-card hover border in dark */
[data-theme="dark"] .skill-card { border-color: rgba(255,255,255,.04) !important; }
[data-theme="dark"] .skill-card:hover { border-color: var(--rose-d) !important; }
[data-theme="dark"] .skill-card[data-cat="digital"]:hover { border-color: var(--blue-d) !important; }
[data-theme="dark"] .skill-card[data-cat="soft"]:hover { border-color: var(--mint-d) !important; }

/* section-label line before pseudo */
[data-theme="dark"] .section-label::before { background: var(--rose-d) !important; opacity: .6; }

/* Theme toggle in dark */
[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

/* Timeline dot white bg → fill with dark surface */
[data-theme="dark"] .tl-dot { background: #18181f !important; }

/* station-header text */
[data-theme="dark"] .station-sub { color: var(--mid) !important; }
