:root {
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Bruno Ace", system-ui, sans-serif;
  --text: #e2e8f0;
  --muted: rgba(226,232,240,0.72);
  --accent: #38bdf8;
  --accent2: #34d399;

  --z-bg: 0;
  --z-particles: 4;
  --z-page: 6;
  --z-menu: 9;
}

@font-face {
  font-family: "Bruno Ace";
  src: url("/assets/fonts/BrunoAce-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: auto;
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(1200px 700px at 50% 40%, #0f172a 0%, #0b2447 60%, #0a1831 100%);
}

/* === Layer-Zuweisung === */
.bg-blur {
  background: center / cover no-repeat;
  background-image: image-set(
    url("/assets/img/bg-tech.avif") type("image/avif"),
    url("/assets/img/bg-tech.webp") type("image/webp"),
    url("/assets/img/bg-tech.jpg") type("image/jpeg")
  );
  /* Safari älter: */
  background-image: -webkit-image-set(
    url("/assets/img/bg-tech.avif") type("image/avif"),
    url("/assets/img/bg-tech.webp") type("image/webp"),
    url("/assets/img/bg-tech.jpg") type("image/jpeg")
  );
  filter: blur(1px) brightness(0.8) saturate(1.08) contrast(1.08);
  transform: translateZ(0); /* GPU hint */
},
.bg-overlay,
.bg-sheen {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
}

#particles-js,
#particles-js canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-particles);
  pointer-events: none;
}

main.content {
  position: relative;
  z-index: var(--z-page);
  pointer-events: auto;
  margin-left: 280px;
  display: block;
  text-align: left;
  padding: 32px 40px 80px;
}

main.content > section {
  margin: 10px 0px 90px 0px;
}


main.content a {
  color: inherit;              /* gleiche Farbe wie Text */
  text-decoration: underline;  /* immer unterstrichen */
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

/* visited exakt gleich */
main.content a:visited {
  color: inherit;
}

/* Hover / Focus: keine Farbänderung, nur Klarheit */
main.content a:hover,
main.content a:focus-visible {
  color: inherit;
  text-decoration-thickness: 2px; /* optional, dezente Rückmeldung */
}



.os-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  z-index: var(--z-menu);
  border-right: 1px solid rgba(148,163,184,.12);
  backdrop-filter: blur(6px);
}

/* ========================
   RESPONSIVE BREAKPOINTS
======================== */
@media (max-width: 767px) {
  .os-sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: auto;
    bottom: auto;

    z-index: var(--z-menu);
    backdrop-filter: blur(6px);

    /* geschlossen: nur Topbar sichtbar */
    max-height: 96px;
    overflow: hidden;

    /* optional: damit es wie “Topbar” wirkt */
    border-bottom: 1px solid rgba(148,163,184,.12);
  }

  /* wenn ein Menüpunkt geöffnet ist: Sidebar darf nach unten aufklappen */
  .os-sidebar:has(.os-menu > li.open),
  .os-sidebar:has(.os-menu > li.active.open) {
    max-height: 80vh;          /* Dropdown-Höhe */
    overflow-y: auto;          /* Menü scrollt innerhalb */
    -webkit-overflow-scrolling: touch;
  }

  main.content {
    margin: 0;
    padding: 120px 16px 80px;  /* Platz für Topbar */
  }
}


/* ============================
   HERO SECTION
============================ */
.hero {
  min-height: 70vh;
  padding: 100px 20px 60px;
  display: grid;
  place-items: center;
  text-align: center;
}

.logo-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 30px rgba(56,189,248,.25));
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(660px, 90vw);
  height: auto;
  display: block;
}

/* Orbit rings */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(148,163,184,.25);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.r1 { width: 220px; height: 220px; }
.r2 { width: 280px; height: 280px; opacity: .8; }
.r3 { width: 340px; height: 340px; opacity: .6; }

/* Satellites */
.sat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
  box-shadow: 0 0 12px rgba(56,189,248,.9);
  transform-origin: center center;
}

.r1 .sat {
  animation: orbit 26s linear infinite;
}
.r2 .sat {
  animation: orbit2 18s linear infinite;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent2));
  box-shadow: 0 0 12px rgba(52,211,153,.9);
}
.r3 .sat {
  animation: orbit3 34s linear infinite;
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(110px); }
  to   { transform: rotate(360deg) translateX(110px); }
}
@keyframes orbit2 {
  from { transform: rotate(0deg) translateX(140px); }
  to   { transform: rotate(360deg) translateX(140px); }
}
@keyframes orbit3 {
  from { transform: rotate(0deg) translateX(170px); }
  to   { transform: rotate(360deg) translateX(170px); }
}

/* ============================
   TYPOGRAPHY
============================ */
h1 {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: .4px;
  color: var(--muted);
}

.claim {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  margin: 0 0 4px;
}

.note {
  margin-top: 10px;
  opacity: .85;
}

.tiny {
  font-family: var(--font-brand);
  margin-top: 22px;
  font-size: .85rem;
  color: #cbd5e1;
  opacity: .8;
}

/* ============================
   SIDEBAR MENU
============================ */
.os-menu {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.os-menu-btn {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 10px 6px;
  color: #aeb7c7;
  font-weight: 600;
  cursor: pointer;
}

.os-menu > li.active > .os-menu-btn {
  color: #ffffff;
}

.os-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 6px 16px;
  display: grid;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .24s ease;
}

.os-menu > li.open > .os-submenu {
  max-height: 420px;
}

.os-submenu a {
  display: block;
  padding: 8px 6px;
  text-decoration: none;
  color: #aeb7c7;
}

.os-submenu a:hover,
.os-submenu a.active-sub {
  color: #ffffff;
}

hr.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2); /* Farbe anpassen */
  margin: 32px 0;
}