/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --bg:           #F4F7F9;
  --bg2:          #DEE9F0;
  --bg3:          #D6E4EC;
  --bg-dark:      #0B1E2D;
  --ink:          #0C1A24;
  --ink2:         #3A5060;
  --ink3:         #7A96A6;
  --accent:       #177A90;
  --gold:         #C9A961;
  --hr:           rgba(15,76,92,0.10);
}

/* ── BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; position: relative; }

/* ── LAYOUT ───────────────────────────────────────────── */
.c-bg  { background: var(--bg); }
.c-bg2 { background: var(--bg2); }
.c-bg3 { background: var(--bg3); }
.c-ink { color: var(--ink); }
.c-ink2 { color: var(--ink2); }
.c-ink3 { color: var(--ink3); }
.c-accent { color: var(--accent); }
.c-gold { color: var(--gold); }
.hr-line { height: 1px; background: var(--hr); }

/* ── GRAIN ────────────────────────────────────────────── */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── TYPOGRAPHY ───────────────────────────────────────── */
.t-disp {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.t-eye {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink3);
}
.t-body { color: var(--ink2); line-height: 1.65; font-size: 15px; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-p {
  background: var(--accent); color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  padding: 13px 34px; border: none; border-radius: 6px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  transition: all .3s ease; text-decoration: none;
}
.btn-p:hover {
  background: #11627A;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(15,76,92,0.45);
}
.btn-s {
  background: transparent; color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  padding: 12px 34px; border: 1px solid var(--accent); border-radius: 6px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  transition: all .3s ease; text-decoration: none;
}
.btn-s:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  padding: 12px 34px; border: 1px solid rgba(255,255,255,0.5); border-radius: 6px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  transition: all .3s ease; text-decoration: none;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.link-arrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(15,76,92,0.3);
  padding-bottom: 3px;
  transition: all .3s ease;
}
.link-arrow:hover { border-color: var(--accent); gap: 14px; }

/* ── CARDS ────────────────────────────────────────────── */
.xcard {
  background: #FFFFFF;
  border: 1px solid rgba(15,76,92,0.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(15,76,92,0.06);
  transition: transform .4s ease, box-shadow .4s ease;
}
.xcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,76,92,0.12);
}
.card-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent);
}
.card-h {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.15; color: var(--ink);
}
.card-img-wrap { overflow: hidden; position: relative; }
.card-img-wrap img { transition: transform .6s ease; display: block; width: 100%; height: 100%; object-fit: cover; }
.card-labels {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 5px; flex-wrap: wrap; z-index: 2;
}
.card-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.92);
  background: rgba(11,30,45,0.72);
  border-radius: 4px; padding: 4px 8px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}
.xcard:hover .card-img-wrap img { transform: scale(1.05); }

/* ── DARK SECTION ─────────────────────────────────────── */
.dark-section { background: var(--bg-dark); }
.dark-section .t-body,
.dark-section .t-eye { color: rgba(240,248,252,0.6); }
.dark-section .c-ink { color: #F0EDE8; }
.dark-section .xcard { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); box-shadow: none; }
.dark-section .xcard:hover { background: rgba(255,255,255,0.10); }
.dark-section .card-h { color: #F0EDE8; }

/* ── NAV ──────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-radius: 0;
  border: 1px solid transparent;
  transition:
    background .5s ease,
    box-shadow .5s ease,
    border-color .5s ease,
    border-radius .55s cubic-bezier(.4,0,.2,1),
    left      .55s cubic-bezier(.4,0,.2,1),
    right     .55s cubic-bezier(.4,0,.2,1),
    top       .55s cubic-bezier(.4,0,.2,1);
}
#main-nav.scrolled {
  left: max(12px, calc(50% - 640px));
  right: max(12px, calc(50% - 640px));
  top: 12px;
  border-radius: 10px;
  padding: 12px;
  background: rgba(20, 80, 145, 0.65);
  backdrop-filter: blur(10px) saturate(180%) brightness(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(180%) brightness(1.04);
  box-shadow:
    0 16px 64px rgba(15,76,92,0.35),
    0 4px 20px  rgba(15,76,92,0.20),
    inset 0 -1px 0 rgba(15,76,92,0.15);
  border: 1px solid rgba(255,255,255,0.35);
}
.nav-link {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color .3s ease;
}
.nav-link:hover { color: #fff; }
#main-nav.scrolled > div { height: auto; max-width: none; }

/* ── NAV LOGO & BUTTON ────────────────────────────────── */
#nav-logo { height: 42px !important; }
#main-nav .btn-p {
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
#main-nav.scrolled .nav-link { color: rgba(255,255,255,0.88); }
#main-nav.scrolled .nav-link:hover { color: #fff; }

/* ── STAT BLOCK ───────────────────────────────────────── */
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ── PARTNER LOGOS ────────────────────────────────────── */
.partner-logo {
  filter: grayscale(20%);
  opacity: 0.65;
  mix-blend-mode: multiply;
  transition: opacity .3s ease, filter .3s ease;
}
.partner-logo:hover { opacity: 1; filter: grayscale(0); }

/* ── AVATAR ───────────────────────────────────────────── */
.avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 300; font-size: 2rem;
  flex-shrink: 0; border: 2px solid rgba(15,76,92,0.2);
}

/* ── SOCIAL ICONS ─────────────────────────────────────── */
.social-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(15,76,92,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink3);
  transition: all .3s ease;
  text-decoration: none;
}
.social-icon:hover { border-color: var(--accent); color: var(--accent); background: rgba(15,76,92,0.06); }
.dark-section .social-icon { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); }
.dark-section .social-icon:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ── NAV DROPDOWN ─────────────────────────────────────── */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: -16px;
  background: var(--bg); border: 1px solid var(--hr);
  border-radius: 8px; box-shadow: 0 8px 32px rgba(15,76,92,0.12);
  min-width: 230px; padding: 7px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200; list-style: none;
}
/* Unsichtbare Brücke über die 12px-Lücke, damit der Hover beim Runterwandern nicht abreißt */
.nav-dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-item:hover .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 9px 16px; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink2); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
/* Hover: helle blaue Pille im Farbton des Sticky-Headers */
.nav-dropdown a:hover { color: var(--accent); background: rgba(20,80,145,0.15); }
.nav-caret {
  display: inline-block; font-size: 8px; line-height: 1;
  transition: transform 0.2s; vertical-align: middle; margin-left: 3px;
}
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* ── SPRACHUMSCHALTER ─────────────────────────────────── */
.lang-switch .lang-btn {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-dropdown { left: auto; right: 0; min-width: 172px; }   /* rechtsbündig statt -16px links */
.lang-dropdown a { display: flex; align-items: center; gap: 10px; letter-spacing: 0.1em; }
.lang-dropdown a b { color: var(--accent); font-weight: 600; min-width: 22px; }
.lang-dropdown a.lang-active { background: rgba(23,122,144,0.10); color: var(--accent); }
/* Mobile: kompakte Code-Reihe am Menüende */
.lang-row { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,0.1); }
.lang-row a {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.6); text-decoration: none;
  transition: color 0.2s;
}
.lang-row a:hover { color: rgba(255,255,255,0.9); }
.lang-row a.lang-active { color: #fff; font-weight: 600; }

.mobile-subnav-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center;
}
.mobile-subnav {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease; padding-left: 16px;
}
.mobile-subnav.open { max-height: 300px; }
.mobile-subnav a {
  display: block; padding: 7px 0;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: color 0.2s;
}
.mobile-subnav a:hover { color: rgba(255,255,255,0.9); }

/* ── SLIDER ───────────────────────────────────────────── */
.slider-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
  padding: 16px 0 56px;
}
.slider-track:active { cursor: grabbing; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .xcard { flex: 0 0 min(300px, 82vw); scroll-snap-align: start; }
.slider-controls {
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.slider-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--hr); background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.25s; flex-shrink: 0;
}
.slider-btn:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg3); transition: all 0.3s;
  cursor: pointer; border: none; padding: 0;
}
.slider-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }
@media (min-width: 640px) and (max-width: 767px) {
  .slider-track .xcard { flex: 0 0 calc((100% - 24px) / 2.2); }
}
@media (min-width: 768px) {
  .slider-track {
    overflow-x: auto; flex-wrap: nowrap;
    scroll-snap-type: x mandatory; cursor: default;
  }
  .slider-track .xcard {
    flex: 0 0 calc((100% - 60px) / 3.5); min-width: 0;
  }
  .slider-controls { display: flex; }
}

/* ── HERO ENTRANCE ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim { animation: fadeUp 0.9s ease both; }

/* ── REVEAL ANIMATIONS ────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1; transform: none; transition: none;
  }
  .hero-anim { animation: none; }
}
