:root { --header-height: 68px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  color: #f3f7ff;
  background: rgba(4, 10, 18, .82);
  border-bottom: 1px solid rgba(117, 174, 255, .18);
  backdrop-filter: blur(18px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-header a { color: inherit; text-decoration: none; }
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin: 0;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.04em;
}
.site-header .brand > span:last-child { color: #f3f7ff; }
.site-header .brand > span:last-child span { color: #168bff; }
.site-header .brand-mark { color: #52b4ff; font-size: 25px; }
.site-header .brand-mark img { width: 50px; height: 50px; object-fit: contain; }
.site-header .nav { display: flex; align-items: center; gap: 30px; }
.site-header .nav a {
  padding: 25px 0 21px;
  border-bottom: 2px solid transparent;
  color: #cbd7e8;
  font-size: 14px;
}
.site-header .nav a:hover, .site-header .nav a.active { color: #fff; border-color: #168bff; }
.site-header .nav .header-back-link {
  padding: 9px 16px;
  border: 1px solid rgba(117, 174, 255, .28);
  border-radius: 7px;
  color: #f3f7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.site-header .nav .header-back-link:hover { border-color: #168bff; background: rgba(22, 139, 255, .12); }
.site-header .header-actions { display: flex; align-items: center; gap: 12px; }
.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 21px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #1495ff, #1269ee);
  box-shadow: 0 10px 35px rgba(0, 125, 255, .24);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: .2s ease;
}
.site-header .btn:hover { transform: translateY(-1px); }
.site-header .btn:disabled { cursor: wait; opacity: .7; transform: none; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary span { margin-left: 7px; }
.account-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 110;
  display: grid;
  min-width: 170px;
  padding: 6px;
  border: 1px solid rgba(117, 174, 255, .2);
  border-radius: 10px;
  background: rgba(5, 14, 24, .98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.account-menu-dropdown a { padding: 11px 12px; border-radius: 6px; color: #cbd7e8; font-size: 13px; }
.account-menu-dropdown a:hover { background: rgba(22, 139, 255, .14); color: #fff; }
.login-modal[hidden] { display: none; }
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 5, 12, .78);
  backdrop-filter: blur(8px);
}
.login-modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 36px;
  border: 1px solid rgba(117, 174, 255, .25);
  border-radius: 16px;
  background: linear-gradient(145deg, #0b1a2a, #050c14);
  box-shadow: 0 25px 80px rgba(0, 0, 0, .55);
  color: #f3f7ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.impressum-modal-card {
  width: min(640px, 100%);
  max-height: min(85vh, 900px);
  overflow-y: auto;
}
.datenschutz-modal-card {
  width: min(760px, 100%);
  height: min(70vh, 650px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.datenschutz-modal-card h2 { flex: 0 0 auto; }
.datenschutz-modal-card .eyebrow { flex: 0 0 auto; }
.datenschutz-modal-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
}
.login-modal-card .eyebrow { color: #52b4ff; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.login-modal-card h2 { margin: 10px 0; font-size: 30px; }
.login-modal-description { margin: 0; color: #9aaac0; line-height: 1.55; }
.login-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #aebed0;
  font-size: 28px;
  cursor: pointer;
}
.login-modal-error { margin-top: 18px; padding: 12px; border: 1px solid rgba(255, 97, 120, .35); border-radius: 8px; background: rgba(255, 97, 120, .1); color: #ffb7be; font-size: 13px; }
.login-modal-error[hidden] { display: none; }
.login-modal-form { display: grid; gap: 15px; margin-top: 22px; }
.login-modal-form label { display: grid; gap: 7px; color: #aebed0; font-size: 13px; }
.login-modal-form input { width: 100%; padding: 12px 14px; border: 1px solid #28435f; border-radius: 8px; outline: 0; background: #07111e; color: #fff; }
.login-modal-form input:focus { border-color: #168bff; box-shadow: 0 0 0 3px rgba(22, 139, 255, .14); }
.login-modal-form .btn { min-height: 44px; border: 0; cursor: pointer; }
.login-modal-register { margin: 18px 0 0; color: #9aaac0; font-size: 13px; text-align: center; }
.login-modal-register a { color: #52b4ff; }
.newsletter-modal-card { width: min(520px, 100%); }
.newsletter-modal-form { display: grid; gap: 12px; margin-top: 22px; }
.newsletter-modal-form > label { color: #aebed0; font-size: 13px; }
.newsletter-modal-form > input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #28435f;
  border-radius: 8px;
  outline: 0;
  background: #07111e;
  color: #fff;
}
.newsletter-modal-form > input[type="email"]:focus { border-color: #168bff; box-shadow: 0 0 0 3px rgba(22, 139, 255, .14); }
.newsletter-modal-form .newsletter-consent { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.newsletter-modal-form .newsletter-consent input { width: auto; margin: 2px 0 0; }
.newsletter-modal-form .newsletter-honeypot { position: absolute; left: -10000px; }
.newsletter-modal-form .btn { min-height: 44px; border: 0; cursor: pointer; }
.newsletter-modal-message, .newsletter-modal-error { margin-top: 16px; padding: 12px; border-radius: 8px; font-size: 13px; }
.newsletter-modal-message { border: 1px solid rgba(53, 212, 154, .35); background: rgba(53, 212, 154, .1); color: #b9ffd3; }
.newsletter-modal-error { border: 1px solid rgba(255, 97, 120, .35); background: rgba(255, 97, 120, .1); color: #ffb7be; }
.newsletter-modal-message[hidden], .newsletter-modal-error[hidden] { display: none; }
.site-header .mobile-nav-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 1050px) {
  .site-header .nav { display: none; }
  .site-header .mobile-nav-toggle {
    display: inline-flex;
    order: 2;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #f3f7ff;
    font-size: 22px;
    cursor: pointer;
  }
  .site-header .header-actions { order: 3; }
  .mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    z-index: 99;
    display: none;
    flex-direction: column;
    padding: 12px 18px 18px;
    border-bottom: 1px solid rgba(117, 174, 255, .18);
    background: rgba(4, 10, 18, .97);
    backdrop-filter: blur(18px);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(117, 174, 255, .10);
    color: #cbd7e8;
    text-decoration: none;
  }
  .mobile-nav a:hover { color: #fff; }
  .mobile-nav .mobile-nav-action { color: #52b4ff; font-weight: 700; }
}
@media (max-width: 700px) {
  .site-header { padding: 0 18px; }
  .site-header .brand { font-size: 18px; }
  .site-header .brand-mark img { width: 50px; height: 50px; }
  .site-header .header-actions .btn { min-height: 36px; padding: 0 11px; font-size: 12px; }
  .login-modal-card { padding: 32px 24px 26px; }
}
.auth-shell { padding-top: 100px; }
.dashboard { margin-top: 105px; }
.world-shell, .os-world { padding-top: var(--header-height); }
.os-world .laptop-area { min-height: calc(100vh - var(--header-height)); }
.shop { padding-top: var(--header-height); }
.admin-layout { padding-top: var(--header-height); }
.admin-layout .sidebar { top: var(--header-height); height: calc(100vh - var(--header-height)); }
@media (max-width: 520px) {
  .auth-shell { padding: 100px 15px 15px; }
  .dashboard { margin-top: 92px; }
}
@media (max-width: 1000px) {
  .admin-layout .sidebar { top: auto; height: auto; }
}
