:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;

  --bg-main: #051a39;
  --bg-header: rgba(4, 20, 38, 0.74);
  --bg-header-strong: rgba(6, 24, 46, 0.92);
  --bg-panel: rgba(8, 24, 43, 0.9);
  --bg-panel-soft: rgba(10, 28, 48, 0.78);

  --text-main: #fbfbee;
  --text-soft: rgba(238, 244, 251, 0.76);
  --text-muted: rgba(238, 244, 251, 0.58);

  --accent-gold: #c79f24;
  --accent-blue: #78b7ff;

  --button-bg: rgba(9, 31, 54, 0.78);
  --button-bg-hover: rgba(10, 35, 61, 0.94);
  --button-border: rgba(120, 183, 255, 0.2);
  --button-border-hover: rgba(120, 183, 255, 0.36);

  --panel-border: rgba(120, 183, 255, 0.16);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.45);

  color: var(--text-main);
  background-color: var(--bg-main);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  height: auto;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  overflow-y: auto;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* =========================================
   CANVAS + GALERIE
========================================= */

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.gallery-grid {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

.gallery-grid .gallery-grid-col {
  position: absolute;
  width: 100%;
  max-width: 24rem;
  height: 100%;
  overflow: hidden;
}

.gallery-grid .gallery-grid-col .gallery-grid-figure {
  position: absolute;
  width: 24rem;
  height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.gallery-grid .gallery-grid-col .gallery-grid-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  visibility: hidden;
  opacity: 0;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;

  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(3, 16, 30, 0.88), rgba(3, 16, 30, 0.64));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-brand {
  min-width: 260px;
}

.site-brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.site-brand-link:hover .site-brand-title {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-brand {
  min-width: 0;
}

.site-brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.site-brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
}

.site-brand-text {
  display: flex;
  align-items: center;
}

.site-brand-logo-secondary {
  display: block;
  height: 62px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
}

.site-brand-kicker {
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.site-brand-title {
  font-size: 0.98rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-main);
}

/* =========================================
   TOP NAVIGATION
========================================= */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  font-weight: 500;
  padding: 0.92rem 1.15rem;
  border-radius: 16px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}


/* =========================================
   HEADER ACTIONS
========================================= */

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-pill {
  appearance: none;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--text-main);
  border-radius: 18px;
  padding: 0.9rem 1.15rem;
  font-size: 0.96rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-pill:hover {
  background: var(--button-bg-hover);
  border-color: var(--button-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* =========================================
   CONTENT PANEL
========================================= */

.content-panel {
  position: relative;
  z-index: 30;
  margin-top: -40px;
  padding: 0 24px 48px;
}

.content-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(6, 24, 46, 0.96), rgba(5, 20, 38, 0.94));
  border: 1px solid rgba(120, 183, 255, 0.18);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#content-body {
  position: relative;
  min-height: 120px;
}

#content-body h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.15;
  color: var(--text-main);
}

#content-body h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--accent-gold);
  border-radius: 2px;
}

#content-body p {
  margin: 0 0 14px;
  color: rgba(238, 244, 251, 0.84);
  line-height: 1.72;
  font-size: 1rem;
  max-width: 900px;
}

#content-body a {
  color: var(--accent-blue);
  text-decoration: none;
}

#content-body a:hover {
  text-decoration: underline;
}

.content-close {
  position: absolute;
  top: -2px;
  right: 0;
  appearance: none;
  border: 1px solid rgba(120, 183, 255, 0.22);
  background: rgba(10, 28, 48, 0.78);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.content-close:hover {
  background: rgba(10, 35, 61, 0.94);
  border-color: rgba(120, 183, 255, 0.36);
  transform: translateY(-1px);
}

/* =========================================
   FIXES PANEL MIT ID
========================================= */

#content-panel {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(40px);
  width: min(900px, 92%);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

#content-panel.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* =========================================
   LIGHTBOX
========================================= */

body.lightbox-open {
  overflow: hidden;
  padding-right: 0 !important;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 18, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-inner {
  position: relative;
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
}

#lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(86vh - 90px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
}

#lightbox-close,
#lightbox-prev,
#lightbox-next {
  position: absolute;
  z-index: 1210;
  border: 1px solid rgba(120, 183, 255, 0.22);
  background: rgba(10, 28, 48, 0.78);
  color: #eef4fb;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

#lightbox-close:hover,
#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(10, 35, 61, 0.94);
  border-color: rgba(120, 183, 255, 0.36);
}

#lightbox-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.2rem;
}

#lightbox-prev,
#lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 2rem;
  line-height: 1;
}

#lightbox-prev {
  left: 20px;
}

#lightbox-next {
  right: 20px;
}

#lightbox-caption {
  text-align: center;
  max-width: 800px;
  margin-top: 6px;
  transform: translateY(-10px);
}

#lightbox-caption strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 6px;
}

#lightbox-caption span {
  display: block;
  color: var(--accent-gold);
  font-size: 0.95rem;
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(199, 159, 36, 0.3);
  line-height: 1.6;
}

#lightbox-caption small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* =========================================
   FORM-ELEMENTE
========================================= */

.image-form {
  margin-bottom: 30px;
  padding: 15px;
  border: 1px solid #ccc;
}

input,
textarea,
select {
  width: 100%;
  margin-bottom: 10px;
}

/* =========================================
   PRÄSENTATIONS-SCHALTER
========================================= */

.presentation-switch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.presentation-dot {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--accent-gold);
  box-shadow:
    0 0 0 6px rgba(199, 159, 36, 0.08),
    0 0 18px rgba(199, 159, 36, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.presentation-dot:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 0 8px rgba(199, 159, 36, 0.12),
    0 0 24px rgba(199, 159, 36, 0.72);
}

.presentation-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(8, 24, 43, 0.82);
  border: 1px solid rgba(120, 183, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.presentation-switch:hover .presentation-menu,
.presentation-switch.open .presentation-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.presentation-menu button {
  appearance: none;
  border: 1px solid rgba(120, 183, 255, 0.18);
  background: rgba(10, 28, 48, 0.6);
  color: #eef4fb;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.presentation-menu button:hover {
  background: rgba(10, 35, 61, 0.9);
  border-color: rgba(120, 183, 255, 0.34);
  transform: translateY(-1px);
}

.presentation-menu button.active {
  background: var(--accent-gold);
  color: #081525;
  border-color: rgba(199, 159, 36, 0.5);
}

/* =========================================
   PRELOADER
========================================= */

#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04101a;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

#site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preloader-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent-gold);
  box-shadow: 0 0 18px rgba(199, 159, 36, 0.45);
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

.preloader-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

@keyframes preloaderPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 14px 18px;
  }

  .desktop-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand-title {
    font-size: 0.94rem;
  }

  .header-pill {
    padding: 0.82rem 1rem;
  }
}

@media (max-width: 900px) {
  .content-panel {
    margin-top: -20px;
    padding: 0 14px 36px;
  }

  .content-panel-inner {
    padding: 20px 18px;
  }
}

@media (max-width: 768px) {
  .presentation-switch {
    right: 14px;
    bottom: 14px;
  }

  .presentation-menu button {
    font-size: 0.85rem;
  }

  .site-nav {
    gap: 6px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.78rem 0.92rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .site-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-brand-title {
    font-size: 0.88rem;
  }

  .nav-link {
    font-size: 0.92rem;
    padding: 0.72rem 0.84rem;
  }

  .header-pill {
    font-size: 0.9rem;
  }
}
#fullscreen-btn {
  margin-left: auto;
}
.site-header {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 1080;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;

  padding: 12px 16px;
  border-radius: 24px;

  background: linear-gradient(
    180deg,
    rgba(7, 22, 40, 0.82),
    rgba(7, 22, 40, 0.66)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-brand {
  min-width: 0;
}

.site-brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 4px 6px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-brand-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.site-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

.site-brand-logo-secondary {
  display: block;
  height: 34px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1;
  font-weight: 600;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-link:hover {
  background: rgba(199, 159, 36, 0.08);
  color: var(--accent-gold);
}

.nav-link.active {
  background: rgba(199, 159, 36, 0.12);
  color: rgb(255, 255, 255);

  border: 1px solid rgba(199, 159, 36, 0.35);

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(199, 159, 36, 0.15) inset;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-icon-btn {
  appearance: none;
  border: 1px solid rgba(219, 179, 0, 0.981);
  background: linear-gradient(
    180deg,
    rgba(8, 55, 17, 0.9),
    rgba(6, 25, 46, 0.82)
  );
  color: #ffd500;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 246, 120, 0.28);
  background: linear-gradient(
    180deg,
    rgba(10, 36, 63, 0.96),
    rgba(7, 29, 52, 0.88)
  );
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.3),
    0 0 0 6px rgba(120, 183, 255, 0.06);
}
@media (max-width: 900px) {
  .site-header {
    top: 12px;
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 20px;
    padding: 12px;
  }

  .site-nav {
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .site-header-actions {
    justify-content: flex-start;
  }

  .site-brand-logo-secondary {
    max-width: 220px;
    height: 28px;
  }
}