*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f14;
  --accent: #3b82f6;
  --accent-dim: #2563eb;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-tertiary: #77778b;
  --border: rgba(255, 255, 255, .09);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --serif: var(--sans);
}

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

body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: fixed;
  z-index: 1100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: #f0f0f5;
  color: #101015;
}
.skip-link:focus { transform: translateY(0); }

.nav {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  padding: 0 24px;
  transition: background-color .3s ease;
}
.nav::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-bottom: 1px solid transparent;
  background: rgba(10, 10, 10, .8);
  content: "";
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .3s ease;
}
.nav.scrolled::before { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}
.nav .nav-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.nav-brand-label {
  color: var(--text-secondary);
  font: 500 .8125rem/1.35 var(--sans);
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a {
  position: relative;
  color: var(--text-secondary);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  content: "";
  transition: transform .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.nav-control-frame {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(210, 210, 222, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.nav-control-frame > .site-trading-link,
.nav-control-frame > .site-language-picker,
.nav-control-frame > .aip-account-slot,
.nav-control-frame > .site-booking-link {
  display: inline-flex;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c6c6d2;
  transition: background-color .18s ease, color .18s ease;
}
.nav-control-frame > .site-trading-link:hover,
.nav-control-frame > .site-language-picker:hover,
.nav-control-frame > .aip-account-slot:hover,
.nav-control-frame > .site-booking-link:hover { background: rgba(255, 255, 255, .085); color: #f0f0f5; }
.nav-control-frame > .site-trading-link:focus-visible,
.nav-control-frame > .site-booking-link:focus-visible,
.nav-control-frame .aip-account-link:focus-visible,
.nav-control-frame .site-language-picker:focus-within { outline: 2px solid rgba(170, 190, 224, .78); outline-offset: -2px; }
.site-trading-link {
  position: relative;
  color: #a0a0b8;
}
.site-trading-link svg { width: 28px; height: 28px; }
.site-trading-link svg > rect { rx: 13px; fill: rgba(225, 230, 218, .14); stroke: rgba(238, 234, 222, .48); }
.site-trading-link::after, .nav-actions .site-booking-link::after {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  max-width: min(260px, calc(100vw - 110px));
  padding: 9px 12px;
  border: 1px solid #45454d;
  border-radius: 8px;
  background: #1c1c22;
  color: #f0f0f5;
  font-size: 12px;
  letter-spacing: normal;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  box-shadow: 0 4px 16px #0006;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  content: attr(aria-label);
}
.site-trading-link:hover::after, .site-trading-link:focus-visible::after,
.nav-actions .site-booking-link:hover::after, .nav-actions .site-booking-link:focus-visible::after { opacity: 1; visibility: visible; }
.site-language-picker { position: relative; display: flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; }
.site-language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-language-flag { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 999px; font-size: 1.2rem; line-height: 1; pointer-events: none; }
.site-language-select { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 999px; background: transparent; color: transparent; opacity: 0; cursor: pointer; }
.site-language-select option { background: #141420; color: #f0f0f5; }
.site-booking-link {
  position: relative;
  display: inline-flex;
  width: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c6c6d2;
  transition: background-color .18s ease, color .18s ease;
}
.site-booking-link svg { display: block; width: 17px; height: 17px; }
.site-booking-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.aip-account-slot { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; }
.aip-account-link { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 999px; }
.aip-account-portrait { position: relative; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(238,234,222,.48); border-radius: 50%; background: rgba(225,230,218,.14); }
.aip-account-portrait i { position: relative; display: block; width: 20px; height: 20px; }
.aip-account-portrait i::before { position: absolute; top: 1px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #e6e8df; content: ""; }
.aip-account-portrait i::after { position: absolute; bottom: 0; left: 2px; width: 16px; height: 9px; border-radius: 11px 11px 7px 7px; background: #e6e8df; content: ""; }
.nav-cta { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-primary { padding: 12px 28px; background: var(--accent); color: #fff; transition: transform .2s ease, background-color .2s ease; }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-dim); }
.btn-small { padding: 10px 24px; font-size: .75rem; }
.nav-toggle {
  z-index: 10;
  display: flex;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; transform-origin: center; background: var(--text-primary); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.mobile-menu {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 27px;
  background: rgba(10, 10, 10, .97);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { color: var(--text-primary); font-size: 1.55rem; letter-spacing: .015em; }
.mobile-menu .mobile-booking-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 4px; padding: 0 20px; border: 1px solid rgba(155,190,255,.5); border-radius: 3px; color: #d7e5ff; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.mobile-menu .btn { font-size: .75rem; }

.impressum-main {
  width: 100%;
  flex: 1;
  padding: 148px 24px 112px;
}
.legal-wrap { width: min(100%, 850px); margin: 0 auto; }
.footer .footer-inner { grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); }
@media (max-width: 767px) {
  .footer .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
.legal-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #93b9f5;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.legal-kicker::before { width: 30px; height: 1px; background: var(--accent); content: ""; }
.impressum-main h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(3.25rem, 8vw, 5.75rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.02;
}
.legal-subtitle { margin: 15px 0 0; color: var(--text-secondary); font-size: clamp(1.05rem, 2vw, 1.25rem); letter-spacing: -.015em; }
.legal-rule { width: 100%; height: 1px; margin: 48px 0 0; background: linear-gradient(90deg, rgba(59,130,246,.7), rgba(255,255,255,.1) 42%, transparent); }
.legal-scope {
  max-width: 710px;
  margin: 30px 0 0;
  color: #c1c1ce;
  font-size: 1rem;
  line-height: 1.8;
}
.legal-scope a { color: #b4cefa; text-decoration: underline; text-decoration-color: rgba(180,206,250,.38); text-underline-offset: 4px; }
.legal-scope a:hover { color: #e1ecff; text-decoration-color: currentColor; }
.legal-sections { margin-top: 60px; border-top: 1px solid var(--border); }
.legal-section {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 1.25fr);
  gap: 32px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--border);
}
.legal-section h2 { margin: 0; color: #e5e5ec; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.5; }
.legal-section p, .legal-section address { margin: 0; color: #b7b7c5; font-size: .9375rem; font-style: normal; line-height: 1.85; }
.legal-section p + p { margin-top: 1em; }
#privacy-notice { scroll-margin-top: 100px; }
.legal-provider { color: #eeeef3 !important; font-size: 1rem !important; font-weight: 500; line-height: 1.9 !important; }
.legal-section a { color: #b4cefa; text-decoration: underline; text-decoration-color: rgba(180,206,250,.35); text-underline-offset: 4px; }
.legal-section a:hover { color: #e1ecff; text-decoration-color: currentColor; }

.footer { padding: 35px 0 38px; border-top: 1px solid var(--border); background: var(--bg-primary); }
.footer-inner { display: grid; grid-template-columns: minmax(164px,1fr) minmax(0,4fr) minmax(164px,1fr); gap: 16px 24px; align-items: center; text-align: center; }
.footer-social-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; justify-self: start; gap: 12px; }
.footer-link { color: var(--text-secondary); font-size: .8125rem; transition: color .2s ease; }
.footer-link:hover { color: var(--accent); }
.footer-social-links .footer-link { display: inline-flex; min-width: 32px; min-height: 32px; align-items: center; justify-content: center; }
.footer-social-links img { display: block; border-radius: 4px; object-fit: contain; }
.footer-center { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; }
.footer-impressum { color: #d5d5df; font-size: .8125rem; text-decoration: underline; text-decoration-color: rgba(213,213,223,.35); text-underline-offset: 4px; }
.footer-impressum:hover { color: #fff; text-decoration-color: currentColor; }
.footer-meeting-link { color: #8bb5ff; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.footer-meeting-link:hover { color: #d5e4ff; text-decoration: underline; }
.footer-copy { justify-self: end; color: var(--text-tertiary); font-size: .75rem; text-align: right; }

a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid #a9c8f0; outline-offset: 4px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; }
}
@media (min-width: 768px) { .container { padding-right: 48px; padding-left: 48px; } }
@media (min-width: 1200px) { .container { padding-right: 24px; padding-left: 24px; } }
@media (max-width: 899px) {
  .nav-links, .nav-cta { display: none; }
}
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: minmax(0,1fr); }
  .footer-social-links, .footer-copy { justify-self: center; text-align: center; }
  .footer-social-links { justify-content: center; }
  .footer-center { grid-row: 2; }
}
@media (max-width: 600px) {
  .nav { padding: 0 18px; }
  .nav .nav-logo { gap: 12px; }
  .nav .nav-logo img { height: 48px !important; }
  .nav-brand-label { display: none; }
  .nav-actions { gap: 8px; }
  .nav-control-frame { gap: 1px; padding: 2px; }
  .site-trading-link::after { right: auto; left: 0; }
  .impressum-main { padding: 126px 24px 78px; }
  .legal-rule { margin-top: 35px; }
  .legal-scope { margin-top: 24px; font-size: .9375rem; }
  .legal-sections { margin-top: 42px; }
  .legal-section { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 25px 0 27px; }
  .legal-section h2 { font-size: .9375rem; }
  .legal-section p, .legal-section address { font-size: .9rem; }
  .footer { padding: 30px 0; }
}
@media (max-width: 380px) {
  .nav { padding-right: 14px; padding-left: 14px; }
  .nav-actions { gap: 5px; }
  .nav-control-frame { gap: 0; padding: 2px; }
  .nav-control-frame > .site-trading-link,
  .nav-control-frame > .site-language-picker,
  .nav-control-frame > .aip-account-slot,
  .nav-control-frame > .site-booking-link,
  .nav-control-frame .aip-account-link { width: 32px; min-width: 32px; height: 34px; min-height: 34px; flex-basis: 32px; }
  .nav-control-frame .site-language-picker { width: 32px; }
  .nav .nav-logo img { height: 44px !important; }
  .impressum-main { padding-right: 18px; padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
