/* --- 1. GLOBALE SCHRIFTART & GRUNDLAGEN --- */
@font-face {
  font-family: 'PolybriSans';
  src: url('/assets/fonts/PolybriSans.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body,
p,
span,
a,
button,
input,
textarea,
.modal-text-content p,
.modal-text-content h2,
.modal-text-content h3 {
  font-family: 'PolybriSans', sans-serif !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #516990;
  overflow-x: hidden;
  transition: background-color 0.4s ease;
}

/* --- 2. HIMMEL & FASSADEN-CONTAINER --- */
.sky-background {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden !important;
}

@media screen and (max-width: 1400px) {
  .sky-background {
    transform: scale(3) !important;
    transform-origin: center center !important;
  }
}

.sky-img-tag {
  position: absolute;
  top: 0;
  left: 74%;
  transform: translateX(-30%);
  width: 150vw;
  height: 130vh;
  object-fit: cover;
  display: block;
}

/* --- 3. SKYLINE-HINTERGRUND --- */
#skyline-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

#skyline-bg-scroll {
  position: absolute !important;
  top: -5vh !important;
  left: -3vw !important;
  width: 106vw !important;
  height: 106vh !important;
  object-fit: cover !important;
  display: block !important;
}

/* --- 4. FESTER FASSADEN-CONTAINER & CANVAS (GPU BESCHLEUNIGT) --- */
.content-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2;
  overflow: hidden !important;
  pointer-events: none;
}

#drone-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

/* --- COOKIE-BANNER BLOCKIERUNG: DIE PERFEKTEN FARBEN --- */
body:has(#cookie-banner.active) .content-wrapper,
body:has(#cookie-banner.active) .sky-background,
body:has(#cookie-banner.active) #drone-canvas,
body:has(#cookie-banner.active) .drone-wrapper,
body:has(#cookie-banner.active) #scroll-indicator {
  opacity: 0 !important;
  pointer-events: none !important;
}

body:has(#cookie-banner.active)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #7690aa; 
  z-index: 999;
  transition: opacity 0.6s ease, background-color 0.4s ease;
}

body.dark-mode:has(#cookie-banner.active)::before {
  background-color: #0b0f19;
}

.content-wrapper,
.sky-background,
#drone-canvas,
.drone-wrapper,
#scroll-indicator {
  filter: blur(0px);
  opacity: 1;
  pointer-events: auto;
  transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

/* --- 5. FOOTER & IMPRESSUM CONTAINER --- */
.impressum-wrapper {
  position: absolute !important;
  bottom: clamp(2vh, 10vw, 18vh) !important; 
  left: 50% !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: clamp(6px, 1.2vh, 10px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(100px) !important;
  pointer-events: none !important;
  mix-blend-mode: normal !important;
  width: max-content !important;
  max-width: 90vw !important;
}

.impressum-wrapper.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  animation: slideUpFromBottom 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes slideUpFromBottom {
  0% { transform: translateX(-50%) translateY(100px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.footer-links-row {
  display: flex;
  gap: clamp(12px, 2.5vw, 24px);
  flex-wrap: wrap;
  justify-content: center !important;
  width: 100%;
}

.impressum-btn {
  background: transparent;
  border: none;
  color: #ffffff !important;
  font-family: 'PolybriSans', sans-serif;
  font-size: clamp(11px, 1.1vw, 15px);
  letter-spacing: clamp(0.5px, 0.15vw, 1.5px);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.impressum-btn:hover { opacity: 1; }

.footer-social-row { 
  display: flex; 
  gap: 18px; 
  align-items: center; 
  justify-content: center !important;
  width: 100%;
  margin-top: 2px; 
}

.social-icon {
  width: 16px !important;
  height: 16px !important; 
  object-fit: contain;
  display: block;
}
.social-icon-link:hover { opacity: 1; transform: scale(1.05); }

#impressum-container {
  position: absolute;
  left: 50%;
  bottom: min(230px) !important;
  transform: translateX(-50%);
  width: clamp(280px, 90vw, 650px);
  box-sizing: border-box;
  z-index: 30;
  pointer-events: none;
}
#impressum-container.active {
  pointer-events: auto;
}

/* --- 6. DROHNE, HUD & CYBER DISPLAY --- */
.drone-wrapper {
  position: fixed;
  top: 6vh;
  left: 2vw;
  z-index: 30;
  width: 250px;
  animation: droneHoverFloat 5s ease-in-out infinite alternate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  pointer-events: auto !important;
}

@media (max-width: 2500px) {
  .drone-wrapper { width: 200px !important; }
}

@media (max-width: 1200px) {
  .drone-wrapper { width: 150px !important; }
}

.drone-wrapper, #drone-canvas, .modal-backdrop {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes droneHoverFloat {
  0% { transform: translate3d(0px, 0px, 0); }
  33% { transform: translate3d(6px, -12px, 0); }
  66% { transform: translate3d(-5px, -6px, 0); }
  100% { transform: translate3d(4px, -14px, 0); }
}

.drone-img { width: 100%; display: block; }
.drone-layers { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.full-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.15s ease; }
.default-layer { opacity: 1; }
.hover-layer { opacity: 0; }
.glow-layer { opacity: 0; pointer-events: none; z-index: 2; }
.drone-hud { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: auto; }
.hud-btn { position: absolute; left: 23.5%; width: 53%; aspect-ratio: 1/1; border-radius: 50%; background: transparent; border: none; cursor: pointer; }
#btn-contact  { top: 28.5%; }
#btn-showreel { top: 51.5%; }
#btn-theme    { top: 74.5%; }

.sun-icon { display: block; opacity: 1; }
.moon-icon { display: none; opacity: 0; }
body.dark-mode .sun-icon { display: none; opacity: 0; }
body.dark-mode .moon-icon { display: block; opacity: 1; }

.drone-wrapper .default-layer { opacity: 1 !important; transition: opacity 0.25s ease !important; }
.drone-wrapper .hover-layer { opacity: 0 !important; transition: opacity 0.25s ease !important; }
.drone-wrapper:has(#btn-contact:hover) #img-mail { opacity: 0 !important; }
.drone-wrapper:has(#btn-contact:hover) #img-contact { opacity: 1 !important; }
.drone-wrapper:has(#btn-showreel:hover) #img-play { opacity: 0 !important; }
.drone-wrapper:has(#btn-showreel:hover) #img-showreel { opacity: 1 !important; }
.drone-wrapper:has(#btn-theme:hover) .sun-icon,
.drone-wrapper:has(#btn-theme:hover) .moon-icon { opacity: 0 !important; }
.drone-wrapper:has(#btn-theme:hover) #img-daynight { opacity: 1 !important; }

#cyber-display-container {
  position: fixed;
  bottom: -200px;
  right: 30px; 
  left: auto;
  transform: none; 
  width: clamp(320px, 35vw, 650px); 
  max-width: 90vw;
  height: auto;
  z-index: 9999;
  transition: bottom 0.9s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s ease;
  pointer-events: none;
}

#cyber-display-container.active { bottom: 0px !important; }
#cyber-display-container.clickable { pointer-events: auto; cursor: pointer; }
#cyber-display-container img { width: 100%; height: auto; display: block; }
#display-overlay { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }

@media (max-aspect-ratio: 16/9) {
  #cyber-display-container { width: clamp(280px, 30vw, 500px); right: 20px; }
}

/* --- 7. BALLON-BANNER --- */
.balloon-banner-wrapper {
  position: absolute !important;
  right: 4vw !important;
  left: auto !important;
  z-index: 25 !important;
  width: 380px !important;
  height: auto !important;
  pointer-events: auto !important;
  will-change: transform, top, opacity;
  animation: balloonWindFloat 4.5s ease-in-out infinite alternate;
  cursor: default !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.6s ease-in-out !important;
}

body.is-loading .balloon-banner-wrapper { opacity: 0 !important; visibility: hidden !important; }
.balloon-banner-wrapper.quest-ready { cursor: pointer !important; }

@keyframes balloonWindFloat {
  0% { transform: translate3d(0px, 0px, 0); }
  50% { transform: translate3d(24px, 32px, 0); }
  100% { transform: translate3d(-20px, 20px, 0); }
}

.balloon-banner-wrapper img.balloon-img { width: 100% !important; height: auto !important; display: block !important; }

.balloon-text-content {
  position: absolute !important;
  top: 33% !important;
  left: 15% !important;
  width: 70% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  mix-blend-mode: overlay !important;
  box-sizing: border-box !important;
}

.brand-logo-img {
  display: block !important;
  width: 65% !important;
  height: auto !important;
  margin-bottom: 28px !important;
  margin-top: -15px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  mix-blend-mode: normal !important;
}
.brand-subtitle { font-size: 12px !important; letter-spacing: 2px !important; color: rgba(255, 255, 255, 0.99); margin-bottom: 10px !important; text-transform: uppercase; }
.brand-text { font-size: 11px !important; line-height: 1.45 !important; color: rgba(255, 255, 255, 0.9); margin-bottom: 12px !important; }
.brand-cta-btn {
  display: inline-block;
  background: transparent !important;
  border: none !important;
  color: #8b0000 !important;
  font-size: 11px !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase;
  padding: 0 !important;
  margin-top: 4px !important;
  text-decoration: none;
  cursor: pointer;
  mix-blend-mode: normal !important;
}
.brand-cta-btn:hover { color: #a93226 !important; transform: translateX(4px); }

.banner-drone-container {
  position: absolute !important;
  left: -1810px !important;
  z-index: 50 !important;
  width: 1800px !important;
  height: auto !important;
  pointer-events: auto !important;
  will-change: transform, top;
  opacity: 0 !important;
  visibility: hidden !important;
}
.banner-drone-container.active-flight {
  opacity: 1 !important;
  visibility: visible !important;
  animation: flyAcrossScreen 30s linear infinite !important;
}
@keyframes flyAcrossScreen {
  0% { transform: translateX(0px); }
  100% { transform: translateX(calc(100vw + 1810px)); }
}
.banner-drone-flight-path { width: 100%; height: 100%; animation: bannerWiggle 4.5s ease-in-out infinite; }
@keyframes bannerWiggle {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(6px) rotate(0.4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* --- 8. MODALS & OVERLAYS --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.modal-content { position: relative; width: 95%; max-width: 1400px; background: rgba(255,255,255,0.05); border-radius: 16px; padding: 16px; }
.modal-close-btn { position: absolute; top: -45px; right: 0; background: transparent; border: none; color: #fff; font-size: 36px; cursor: pointer; }
.video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.text-modal-box {
  background: rgba(34, 34, 34, 0.35.scroll-control-grou) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  color: #fff !important;
  box-sizing: border-box !important;
  max-width: 900px !important;
  max-height: 80vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 35px !important;
}

.modal-text-content {
  max-height: 70vh !important;
  overflow-y: auto !important;
  padding-right: 15px !important;
  color: #fff !important;
}

.text-modal-box h2,
.polybri-contact-header h2 {
  color: #ee86cf !important;
  font-size: 26px !important;
  margin-bottom: 20px !important;
  letter-spacing: 1px !important;
}

/* Cookie Banner (Opaker Vollton für Kontrast) & Kontakt Overlays */
.polybri-cookie-overlay,
.polybri-contact-overlay {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0) !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  z-index: 999999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  content-visibility: auto !important;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, opacity 0.4s ease, visibility 0.4s ease !important;
}

.polybri-cookie-overlay.active,
.polybri-contact-overlay.active {
  background: rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.polybri-cookie-box {
  background: rgb(34, 34, 34) !important;
  border-radius: 20px !important;
  color: #fff !important;
  max-width: 620px !important;
  width: 90% !important;
  padding: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
}

.polybri-contact-box {
  background: rgba(34, 34, 34, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 20px !important;
  color: #fff !important;
  max-width: 620px !important;
  width: 90% !important;
  padding: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
}

.polybri-cookie-header,
.polybri-contact-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 18px !important;
}

.polybri-cookie-logo { height: 40px !important; width: auto !important; object-fit: contain !important; display: block !important; }
.polybri-cookie-body p { font-size: 16px !important; line-height: 1.6 !important; color: #e2e8f0 !important; margin: 0 0 14px 0 !important; }
.polybri-cookie-body a { color: #e2e8f0 !important; text-decoration: underline !important; }

.polybri-cookie-actions {
  display: flex !important;
  gap: 16px !important;
  justify-content: center !important;
  margin-top: 10px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* --- 9. BUTTONS & FORMULARE --- */
.cookie-action-btn,
#quest1-ok-btn,
.polybri-contact-form button[type="submit"] {
  font-size: 16px !important;
  letter-spacing: 1px !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  box-shadow: none !important;
}

.cookie-action-btn.primary-btn,
#quest1-ok-btn,
.polybri-contact-form button[type="submit"] {
  background: #8e2270 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.cookie-action-btn.primary-btn:hover,
#quest1-ok-btn:hover,
.polybri-contact-form button[type="submit"]:hover {
  background: #df56b6 !important;
  transform: translateY(-2px);
}

.cookie-action-btn.secondary-btn {
  background: rgba(11, 15, 25, 0.6) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
.cookie-action-btn.secondary-btn:hover {
  background: rgba(212, 59, 145, 0.8) !important;
  border-color: transparent !important;
  transform: translateY(-2px);
}

@media (max-width: 650px) {
  .polybri-cookie-actions { flex-direction: column !important; }
  .cookie-action-btn { width: 100% !important; text-align: center !important; }
}

/* Kontakt Formular Felder */
.polybri-contact-form { margin-top: 25px !important; }
.polybri-contact-form .form-group {
  margin-bottom: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}
.polybri-contact-form .form-group label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 16px !important;
  margin-bottom: 8px !important;
  font-weight: 500 !important;
}
.polybri-contact-form .form-group input,
.polybri-contact-form .form-group textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  color: #fff !important;
  font-size: 17px !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.polybri-contact-form .form-group input::placeholder,
.polybri-contact-form .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.polybri-contact-alternative {
  text-align: center !important;
  margin-top: 25px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.alt-mail-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none !important;
  font-size: 15px !important;
  transition: color 0.2s ease !important;
}
.alt-mail-link:hover { color: #ee86cf !important; }
.alt-mail-icon { 
  width: 18px !important; 
  height: 18px !important; 
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  transform: translateY(2px) !important;
}

.polybri-contact-success {
  text-align: center !important;
  padding: 30px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
}
.polybri-contact-success .success-icon {
  width: 50px !important;
  height: 50px !important;
  background: rgba(238, 134, 207, 0.2) !important;
  border: 1px solid #ee86cf !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  color: #ee86cf !important;
  margin: 0 auto 5px auto !important;
}
.polybri-contact-success h3 { margin: 0 !important; font-size: 22px !important; color: #fff !important; font-weight: 600 !important; }
.polybri-contact-success p { margin: 0 !important; font-size: 15px !important; color: rgba(255, 255, 255, 0.7) !important; line-height: 1.4 !important; }

/* --- 10. HUD: SCROLL-HINWEIS & UP-BUTTON (Perfekt unten platziert) --- */
.scroll-control-group {
  position: fixed !important;
  bottom: 24px !important;
  left: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.scroll-to-top-indicator {
  position: absolute !important;
  bottom: 0px !important; /* Platziert den UP-Button exakt an der Unterkante der Gruppe */
  left: 0px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  cursor: pointer !important;
  color: #ffffff !important;
  font-size: 14px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

.scroll-text-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}

.scroll-hint {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  transition: opacity 0.4s ease !important;
}

.scroll-hint .main-label {
  font-size: 14px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.scroll-hint .sub-label {
  font-size: 14px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  opacity: 0.9 !important;
  font-weight: normal !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.scroll-arrow {
  font-size: 18px !important;
  display: inline-block !important;
  animation: bounceArrow 2s infinite !important;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

.scroll-to-top-indicator {
  position: absolute !important;
  bottom: 0px !important; /* Platziert den UP-Button exakt an der Unterkante der Gruppe */
  left: 0px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  cursor: pointer !important;
  color: #ffffff !important;
  font-size: 14px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

.scroll-to-top-indicator .scroll-arrow {
  font-size: 18px !important;
  color: #fff !important;
  margin-bottom: 15px !important;
  animation: bounceUpArrow 1.5s infinite !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scroll-to-top-indicator .up-text {
  color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scroll-to-top-indicator.visible {
  opacity: 0.9 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.scroll-to-top-indicator:hover {
  opacity: 1 !important;
}

@keyframes bounceUpArrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* --- NACHTMODUS STYLES --- */
body.dark-mode .balloon-text-content,
body.dark-mode .brand-subtitle,
body.dark-mode .brand-text,
body.dark-mode .brand-cta-btn,
body.dark-mode p,
body.dark-mode span,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #ffffff !important;
}

body.dark-mode .balloon-text-content .brand-cta-btn {
  color: #95fffa !important;
}
body.dark-mode .balloon-text-content .brand-cta-btn:hover {
  color: #b7ecea !important;
}

.balloon-text-content .brand-subtitle,
.balloon-text-content .brand-text {
  color: #111111 !important;
}
.balloon-text-content .brand-cta-btn {
  color: #ff0080 !important;
}

/* --- LADEBILDSCHIRM & KONTRAST --- */
#polybri-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  background-color: #000000 !important;
  color: #ffffff;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'PolybriSans', sans-serif !important;
}

#loader-title { font-size: clamp(24px, 3vw, 38px); letter-spacing: 2px; margin: 0; color: #ffffff !important; }
#loader-time { 
  font-size: clamp(14px, 1.5vw, 18px); 
  letter-spacing: 1px; 
  margin: 0; 
  color: #ffffff !important; 
  opacity: 1 !important; 
  font-weight: 500 !important;
}

#polybri-loader * {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.show-loader #polybri-loader {
  opacity: 1;
  visibility: visible;
}

html.dark-mode #polybri-loader,
body.dark-mode #polybri-loader {
  background-color: #0b0f19 !important;
  color: #ffffff !important;
}

body:not(.is-loading) #polybri-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#datenschutz-modal, 
.modal-overlay,
.polybri-modal {
  z-index: 100000000 !important;
}

html.no-scroll, body.no-scroll {
  overflow: hidden !important;
}

#cookie-banner.active, 
#datenschutz-modal.active {
  pointer-events: auto !important;
}

/* Theme Transition Overlay */
.theme-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.theme-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.theme-overlay.to-night { background-color: #7690aa !important; }
.theme-overlay.to-night #theme-overlay-text { color: #ffffff !important; }
.theme-overlay.to-day { background-color: #0b0f19 !important; }
.theme-overlay.to-day #theme-overlay-text { color: #ffffff !important; }

#theme-overlay-text {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.theme-overlay.active #theme-overlay-text {
  opacity: 1;
  transform: translateY(0);
}

body.is-scrolling-up #banner-drone-wrapper {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease !important;
}

body.is-loading #polybri-loader {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#scroll-to-top {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
}

#scroll-to-top * {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* Mobile Video Container */
#mobile-video-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99;
  background: #000;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

#smartphone-bg-img {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  content-visibility: auto;
  will-change: transform;
}

.theme-transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sky-animation-icon {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
}

.sky-animation-icon svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(28px);
}

:not(.dark-mode) .theme-transition-overlay .sun-icon-anim { opacity: 1; transform: translateY(0); }
:not(.dark-mode) .theme-transition-overlay .moon-icon-anim { opacity: 0; transform: translateY(28px); }
.dark-mode .theme-transition-overlay .sun-icon-anim { opacity: 0; transform: translateY(28px); }
.dark-mode .theme-transition-overlay .moon-icon-anim { opacity: 1; transform: translateY(0); }

.theme-overlay.to-night .sun-icon-anim { animation: slideOutDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.15s; }
.theme-overlay.to-night .moon-icon-anim { animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.55s; }
.theme-overlay.to-day .moon-icon-anim { animation: slideOutDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.15s; }
.theme-overlay.to-day .sun-icon-anim { animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.55s; }

@keyframes slideOutDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(28px); opacity: 0; }
}

@keyframes slideInUp {
  0% { transform: translateY(28px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

#btn-theme, #mobile-theme-toggle-btn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#mobile-btn-showreel {
  background: #252830 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
#mobile-btn-showreel:hover { background: #2d323d !important; }

@media (max-width: 768px) {
  .polybri-cookie-overlay {
    padding: 12px !important;
    align-items: center !important;
    overflow-y: auto !important;
  }

  .polybri-cookie-box {
    width: 95% !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    padding: 20px 16px !important;
    gap: 14px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }

  .polybri-cookie-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
  }

  .polybri-cookie-logo { max-width: 130px !important; }
  .polybri-cookie-header h2 { font-size: 20px !important; margin-bottom: 0 !important; }
  .polybri-cookie-body p { font-size: 13px !important; line-height: 1.4 !important; margin-bottom: 10px !important; }
  .polybri-cookie-actions { flex-direction: column !important; gap: 8px !important; margin-top: 5px !important; padding-top: 12px !important; }
  .cookie-action-btn { width: 100% !important; text-align: center !important; padding: 10px !important; font-size: 14px !important; }

  #mobile-video-container {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #mobile-ui-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    padding: 230px 12px max(130px, env(safe-area-inset-bottom)) 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 10 !important;
  }

  #mobile-ui-overlay > div {
    background: linear-gradient(135deg, rgba(18, 22, 30, 0.65) 0%, rgba(11, 15, 25, 0.5) 100%) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    border-radius: 32px !important;
    padding: 44px 36px !important;
    margin-bottom: 24px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
  }

  #mobile-ui-overlay > div.minimized {
    transform: translateX(calc(-100% + 5px)) !important;
    opacity: 0.95;
    cursor: pointer;
  }

  #mobile-ui-overlay h2 { font-size: 20px !important; margin-bottom: 8px !important; }
  #mobile-ui-overlay p { font-size: 12px !important; line-height: 1.4 !important; margin-bottom: 10px !important; }

  #mobile-ui-overlay div[style*="display: flex; justify-content: space-between"] {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 10px !important;
    margin-top: 4px !important;
  }

  #scroll-indicator { display: none !important; }

  #drone-canvas,
  .sky-background,
  #skyline-container,
  #skyline-bg-scroll,
  .drone-wrapper,
  #cyber-display-container,
  #balloon-banner,
  #banner-drone-wrapper,
  .balloon-banner-wrapper,
  .sky-img-tag,
  .content-wrapper {
    display: none !important;
  }
}

.modal-content, .text-modal-box {
  position: relative !important;
  overflow: visible !important;
}

/* --- X-SCHLIESSEN-BUTTON --- */
.modal-close-btn-circle {
  position: absolute !important;
  top: -50px !important;
  right: -5px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(86, 98, 115, 0.4) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  z-index: 9999 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.modal-close-btn-circle:hover {
  background: rgba(212, 59, 145, 0.8) !important;
  transform: scale(1.1) !important;
}

#video-modal .modal-content {
  width: 1080px;
  max-width: 95vw;
  padding: 16px;
  box-sizing: border-box;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

@media (max-width: 1300px) {
  #video-modal .modal-content { transform: scale(0.9); max-width: 95vw; padding: 12px; }
}
@media (max-width: 480px) {
  #video-modal .modal-content { transform: scale(1); width: 92vw; padding: 10px; }
}

#mobile-reactivate-studio-btn.visible {
  display: block !important;
  animation: fadeInButton 0.3s ease forwards;
}
#mobile-reactivate-studio-btn:hover {
  background: rgba(212, 59, 145, 0.8) !important;
  transform: scale(1.08);
}

@keyframes fadeInButton {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#mobile-center-play-btn.visible {
  display: flex !important;
  animation: fadeInCenterButton 0.3s ease forwards;
  pointer-events: auto !important;
  z-index: 2147483647 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
#mobile-center-play-btn:hover {
  background: rgba(212, 59, 145, 0.8) !important;
  transform: translate(-50%, -50%) scale(1.08);
}

@keyframes fadeInCenterButton {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* --- LOW-END & FALLBACKS --- */
body.is-low-end .balloon-banner-wrapper,
body.is-low-end .banner-drone-flight-path,
body.is-low-end .scroll-arrow,
body.is-low-end .drone-wrapper {
  animation: none !important;
  transition: none !important;
}

body.is-low-end {
  background: #1e232a !important;
}

body.is-low-end #impressum-container {
  bottom: 215px !important;
}

@supports not (backdrop-filter: blur(16px)) {
  .polybri-cookie-box, #mobile-ui-overlay > div {
    background: rgba(30, 35, 42, 0.95) !important;
  }
}

/* --- LANDSCAPE WARNING OVERLAY FÜR MOBILE GERÄTE --- */
#landscape-warning-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2147483647;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
}

.landscape-warning-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 340px;
  color: #ffffff;
}

.landscape-warning-content svg { color: #d43b91; opacity: 0.9; }
.landscape-warning-content h3 { font-family: 'PolybriSans', sans-serif !important; font-size: 20px; font-weight: 600; margin: 0; letter-spacing: 0.5px; }
.landscape-warning-content p { font-family: 'PolybriSans', sans-serif !important; font-size: 14px; line-height: 1.5; margin: 0; color: rgba(255, 255, 255, 0.7); font-weight: 300; }

@media screen and (max-width: 1024px) and (orientation: landscape) {
  #landscape-warning-overlay { display: flex !important; }
}

/* Cookie-Banner & Loader Kontrast-Optimierung (Vollton für Lighthouse) */
.polybri-cookie-box,
#cookie-banner {
  color: #ffffff !important;
}

.polybri-cookie-box p,
.polybri-cookie-box span,
.polybri-cookie-box div {
  color: #e0e0e0 !important;
}

.polybri-cookie-box a,
#open-datenschutz-from-cookie {
  color: #ffffff !important;
  text-decoration: underline !important;
}

#loader-time,
#polybri-loader p,
#polybri-loader span {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Versteckt den Loader und das Lade-Badge auf Mobilgeräten komplett */
@media screen and (max-width: 768px) {
  #polybri-loader,
  #sequence-loader-badge {
    display: none !important;
  }
}

#mobile-ui-overlay a,
#mobile-ui-overlay button {
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  position: relative !important;
  z-index: 2147483647 !important;
}

@media screen and (max-width: 768px) {
  .modal-backdrop.active {
    z-index: 2147483647 !important;
  }
}

/* --- polybri Badge Styling --- */
.polybri-badge-wrapper {
    position: fixed;
    top: 30px; /* Abstand von oben */
    right: 30px; /* Abstand von rechts */
    width: 75px; /* Passe dies an die Originalgröße deines Bildes an */
    height: 75px; /* Passe dies an die Originalgröße deines Bildes an */
    z-index: 99999; /* Soll ganz oben liegen */
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}


/* Gemeinsames Styling für beide Bilder */
.polybri-badge-wrapper .polybri-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Wichtig, damit das Bild nicht verzerrt wird */
    transition: opacity 0.2s ease-in-out;
}

/* Das "Idle"-Bild ist standardmäßig sichtbar */
.polybri-badge-wrapper .img-idle {
    opacity: 1;
}

/* Das "Flying"-Bild ist standardmäßig unsichtbar */
.polybri-badge-wrapper .img-flying {
    opacity: 0;
}

/* Beim Hover: Idle-Bild ausblenden, Flying-Bild einblenden */
.polybri-badge-wrapper:hover .img-idle {
    opacity: 0;
}

.polybri-badge-wrapper:hover .img-flying {
    opacity: 1;
}

/* Badge auf Mobilgeräten (Smartphones) ausblenden */
@media screen and (max-width: 768px) {
  #polybri-badge {
    display: none !important;
  }
}

/* --- HERO-WELCOME OVERLAY (WILLKOMMENS-TEXT) --- */
.polybri-hero-intro {
  position: absolute !important;
  right: 58vw !important;
  top: 15% !important;
  transform: translateY(-50%) !important;
  text-align: right !important;
  z-index: 10 !important;
  max-width: 500px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  pointer-events: none !important; /* Lässt Klicks durch für dahinterliegende Ebenen */
  transition: opacity 0.3s ease;
}

.polybri-hero-intro h1 {
  font-family: 'PolybriSans', sans-serif !important;
  font-size: clamp(18px, 2.2vw, 22px) !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  margin-bottom: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

.polybri-hero-intro .hero-desc {
  font-family: 'PolybriSans', sans-serif !important;
  font-size: clamp(13px, 1.1vw, 16px) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 10px !important;
  text-transform: none !important; /* <--- Hier wurde Caps Lock entfernt */
}

/* Macht den Call-to-Action Link und Wrapper klickbar */
.polybri-hero-intro .hero-cta-wrapper,
.polybri-hero-intro a {
  pointer-events: auto !important;
  cursor: pointer !important;
  text-transform: none !important;
}

.polybri-hero-intro a:hover {
  opacity: 0.75 !important;
}

@media (max-width: 1500px) {
  .polybri-hero-intro {
    top: 22% !important;
    right: 74% !important;
    transform: translate(50%, -50%) !important;
     text-align: right !important;
    width: 20% !important;
  }
}

@media (max-width: 1000px) {
  .polybri-hero-intro {
    top: 15% !important;
    right: 50% !important;
    transform: translate(50%, -50%) !important;
    text-align: center !important;
    width: 30% !important;
     text-shadow: 0 2px 10px rgba(0, 0, 0, 1) !important; /* <--- Schatten für den Link */
  }
}

/* --- polybri Badge bei aktiven Modals ausblenden und unscharf machen --- */
body:has(.modal-backdrop.active) #polybri-badge {
  opacity: 0 !important;
  filter: blur(10px) !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease, filter 0.4s ease !important;
}

/* Basis-Transition für das Badge damit es weich ein- und ausblendet */
#polybri-badge {
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.3s ease;
}