@font-face{
  font-family: 'w95font';
  src: url('../fonts/webfont/w95font.woff2') format('woff2'),
       url('../fonts/webfont/w95font.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;

  /* Scroll in beide Richtungen erlauben */
  overflow: auto;

  background: linear-gradient(var(--angle), var(--c1), var(--c2), var(--c3));
}

/* WICHTIG: nicht fixed */
#background-container{
  position: relative;
  overflow: visible;

  /* große Fläche erzeugen -> Scrollbars entstehen */
  width: 400vw;
  height: 400vh;
}

:root {
  --c1: #0011ff;   /* Farbe 1 */
  --c2: #00ffee;   /* Farbe 2 */
  --c3: #ffffff;  /* optional Farbe 3 */
  --angle: 135deg;
}

.text-row{
  position: absolute;
  left: 0;
  white-space: nowrap;
  width: max-content;
  transform: translateX(var(--rowOffset, 0px));
}


.word {
  font-family: 'w95font', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: none;

  color: #777a25;
  transform: scale(1);

  /* Default: langsamer Rückweg + leichter Delay */
  transition:
    color 900ms ease-out 200ms,
    transform 900ms ease-out 200ms;
      text-shadow: 0 10px rgba(0,0,0,0); /* default unsichtbar */
}

.word:hover{
  color: #11330f;
  transform: scale(1.15);

  /* Hover: schnell rein, kein Delay */
  transition:
    color 120ms ease-in 0ms,
    transform 120ms ease-in 0ms;
      text-shadow: 0 10px rgba(0,0,0,0); /* default unsichtbar */

}

/* === POPUP SYSTEM === */
.multi-popup {
    position: absolute;
    background: transparent;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    padding: 10px;
}

/* Fade-In beim Öffnen */
.multi-popup.opening {
    animation: popupFadeIn 0.5s ease-out forwards;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
.multi-popup.bouncing {
    animation: popupBounce 3s ease-in-out infinite;
}

@keyframes popupBounce {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(20px) scale(1);
    }
}

.multi-popup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 4px;
    line-height: 1;
    z-index: 10;
}

.popup-close:hover {
    background: darkred;
}

/* Flug-Animation von Start zu Ziel */
@keyframes popupFly {
    from {
        left: var(--startX);
        top: var(--startY);
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        left: var(--endX);
        top: var(--endY);
        opacity: 1;
        transform: scale(1);
    }
}

/* Klasse für fliegende Popups */
.multi-popup.flying {
    animation: popupFly 1.5s ease-out forwards;
}

/* ===== IFRAME OVERLAY STYLES ===== */
.iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iframe-overlay.visible {
    opacity: 1;
}

.iframe-overlay.closing {
    opacity: 0;
}

.iframe-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.iframe-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iframe-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: rotate(90deg);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Link Indicator auf Popups */
.link-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
}

.multi-popup.has-link {
    border: 2px solid rgba(0, 123, 255, 0.5);
}

