/* Sticky navigation and anchor rail */
/* Smooth, accessible anchor navigation */     html {
  scroll-padding-top:0;
}
[id="start"],[id="themen"],[id="technologien"],[id="kontakt"] {
  scroll-margin-top:110px;
}
.site-header {
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(7,11,22,.60);
  border-bottom:1px solid transparent;
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  transition:border-color .3s,background .3s,box-shadow .3s;
}
.site-header.is-scrolled {
  background:rgba(7,11,22,.91);
  border-color:rgba(139,175,241,.14);
  box-shadow:0 12px 40px rgba(0,0,0,.20);
}
.header-progress {
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:2px;
  pointer-events:none;
  overflow:hidden;
}
.header-progress>span {
  display:block;
  width:100%;
  height:100%;
  transform:scaleX(0);
  transform-origin:left center;
  will-change:transform;
  background:linear-gradient(90deg,#75ecf0,#96b4ff,#bd95ff);
  box-shadow:0 0 11px rgba(116,231,240,.65);
}
.topbar {
  gap:18px;
}
.section-nav {
  display:flex;
  align-items:center;
  gap:4px;
  padding:5px;
  border:1px solid rgba(159,181,226,.10);
  border-radius:15px;
  background:rgba(130,154,224,.035);
}
.section-link {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  position:relative;
  padding:12px 14px;
  color:#94a5c4;
  font-size:12px;
  letter-spacing:.015em;
  font-weight:710;
  text-decoration:none;
  border-radius:10px;
  transition:background .25s,color .25s,box-shadow .25s;
  white-space:nowrap;
}
.section-link:hover {
  color:#edf4ff;
  background:rgba(135,162,227,.10);
}
.section-link.is-active {
  color:#f2f7ff;
  background:rgba(122,168,245,.14);
  box-shadow:inset 0 0 0 1px rgba(131,194,255,.18);
}
.section-link.is-active::after {
  content:"";
  position:absolute;
  left:calc(50% - 11px);
  bottom:5px;
  width:22px;
  height:2px;
  border-radius:5px;
  background:linear-gradient(90deg,#75ecf0,#9aafff);
  box-shadow:0 0 9px rgba(118,224,248,.38);
}
.nav-toggle {
  display:none;
  justify-content:center;
  align-items:center;
  width:43px;
  height:42px;
  border:1px solid rgba(159,192,240,.22);
  border-radius:11px;
  background:rgba(139,166,222,.08);
  cursor:pointer;
  flex:none;
}
.menu-bars {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:20px;
  height:20px;
}
.menu-bars i {
  display:block;
  width:19px;
  height:2px;
  border-radius:3px;
  background:#cddaf3;
  transition:transform .25s,opacity .25s;
}
.site-header.menu-open .menu-bars i:first-child {
  transform:translateY(7px) rotate(45deg);
}
.site-header.menu-open .menu-bars i:nth-child(2) {
  opacity:0;
}
.site-header.menu-open .menu-bars i:last-child {
  transform:translateY(-7px) rotate(-45deg);
}
.anchor-rail {
  position:fixed;
  right:21px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:15px;
  z-index:35;
  padding:16px 9px;
  border:1px solid rgba(158,184,237,.12);
  border-radius:999px;
  background:rgba(11,20,41,.47);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.rail-link {
  position:relative;
  display:grid;
  place-items:center;
  width:19px;
  height:19px;
  text-decoration:none;
}
.rail-dot {
  display:block;
  width:6px;
  height:6px;
  background:#647897;
  border-radius:99px;
  box-shadow:0 0 0 3px transparent;
  transition:width .25s,height .25s,background .25s,box-shadow .25s;
}
.rail-link:hover .rail-dot,.rail-link.is-active .rail-dot {
  width:9px;
  height:9px;
  background:#8be8f2;
  box-shadow:0 0 0 4px rgba(117,236,240,.13),0 0 14px rgba(117,236,240,.45);
}
.rail-label {
  position:absolute;
  right:32px;
  top:50%;
  transform:translate(9px,-50%);
  pointer-events:none;
  opacity:0;
  white-space:nowrap;
  font-size:12px;
  font-weight:750;
  color:#ecf3ff;
  padding:9px 12px;
  border-radius:10px;
  border:1px solid rgba(166,196,247,.16);
  background:rgba(13,23,48,.95);
  box-shadow:0 10px 27px rgba(0,0,0,.26);
  transition:opacity .25s,transform .25s;
}
.rail-link:hover .rail-label,.rail-link:focus-visible .rail-label {
  opacity:1;
  transform:translate(0,-50%);
}
.scroll-cue {
  display:inline-flex;
  align-items:center;
  gap:13px;
  margin-top:29px;
  color:#91add2;
  text-decoration:none;
  font-size:11px;
  font-weight:740;
  letter-spacing:.10em;
  text-transform:uppercase;
  transition:color .2s;
}
.scroll-cue:hover {
  color:#c4eefd;
}
.cue-arrow {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border:1px solid rgba(141,187,244,.28);
  border-radius:50%;
  font-size:17px;
  line-height:1;
  animation:cue-bob 2.6s ease-in-out infinite;
}
@keyframes cue-bob {
  50% {
    transform:translateY(5px);
  }
}
.back-top {
  position:fixed;
  right:28px;
  bottom:24px;
  width:45px;
  height:45px;
  z-index:38;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid rgba(141,189,243,.27);
  background:rgba(18,32,63,.9);
  box-shadow:0 10px 30px rgba(0,0,0,.20);
  backdrop-filter:blur(15px);
  color:#cfdefd;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .25s,transform .25s,border-color .25s;
}
.back-top svg {
  width:21px;
  height:21px;
}
.back-top.is-visible {
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.back-top:hover {
  border-color:#7fe0ea;
  transform:translateY(-3px);
}
@media(max-width:1190px) {
  .section-nav {
    position:absolute;
    display:none;
    top:calc(100% - 4px);
    left:0;
    right:0;
    padding:10px;
    z-index:45;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    border-radius:15px;
    border:1px solid rgba(139,177,241,.24);
    background:rgba(11,18,37,.98);
    box-shadow:0 22px 45px rgba(0,0,0,.40);
  }
  .site-header.menu-open .section-nav {
    display:flex;
  }
  .section-link {
    justify-content:flex-start;
    padding:15px 16px;
    font-size:14px;
  }
  .section-link.is-active::after {
    left:3px;
    bottom:calc(50% - 8px);
    width:2px;
    height:16px;
  }
  .nav-toggle {
    display:flex;
  }
  .top-status {
    display:none;
  }
}
@media(max-width:1250px) {
  .anchor-rail {
    display:none;
  }
}
@media(max-width:780px) {
  html {
    scroll-padding-top:0;
  }
  [id="start"],[id="themen"],[id="technologien"],[id="kontakt"] {
    scroll-margin-top:88px;
  }
  .top-actions {
    gap:10px;
  }
  .back-top {
    right:18px;
    bottom:18px;
    width:43px;
    height:43px;
  }
}
@media(max-width:500px) {
  html {
    scroll-padding-top:0;
  }
  [id="start"],[id="themen"],[id="technologien"],[id="kontakt"] {
    scroll-margin-top:84px;
  }
  .topbar {
    gap:7px;
  }
  .top-actions {
    gap:7px;
  }
  .nav-toggle {
    width:38px;
    height:38px;
  }
  .languages {
    padding:3px;
  }
  .lang {
    padding:10px 8px;
  }
  .scroll-cue {
    margin-top:21px;
    font-size:10px;
  }
}

/* Reliable mobile touch targets: keep language controls at least 44x44px. */
@media (max-width:500px) {
  .identity { min-width:0; flex:0 1 auto; }
  .identity .logo { flex:0 0 37px; }
  .brand-note { display:none; }
  .brand-name { font-size:10px; letter-spacing:.14em; }
  .top-actions { flex:0 0 auto; gap:6px; }
  .languages { flex:none; padding:3px; gap:1px; }
  .lang {
    display:grid;
    place-items:center;
    min-width:44px;
    min-height:44px;
    padding:8px 6px;
    touch-action:manipulation;
  }
  .nav-toggle {
    width:44px;
    height:44px;
    touch-action:manipulation;
  }
}
@media (max-width:360px) {
  .identity > span:last-child { display:none; }
  .identity { gap:0; }
}
