Header/* =========================================================
   STYLE.CSS – Jan Cronauer (home-v3)
   Optimierte, kommentierte Version
   ========================================================= */

/* ---------- RESET & GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Farben & Layoutvariablen */
  --bg-url: url("../images/background/Hintergrund.png");
  --color-text: #fff;
  --color-link: #3b83d5;
  --color-link-hover: #dcdc1c;
  --overlay-bg: rgba(0,0,0,0.6);
  --nav-bg: rgba(0,0,0,0.9);
  --transition-speed: 0.8s;
}

html, body {
  overflow: hidden;
  height: 100%;
}
.viewport {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

/* ---------- BACKGROUND ---------- */
.background {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.background img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- RÄUME ---------- */
.room {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.room[data-room="1"] { top: 0vh; }
.room[data-room="2"] { top: 100vh; }
.room[data-room="3"] { top: 200vh; }
.room[data-room="4"] { top: 300vh; }
.room[data-room="5"] { top: 400vh; }
.room[data-room="6"] { top: 500vh; }
.room[data-room="7"] { top: 600vh; }


/* ---------- HOTSPOTS ---------- */
.hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.hotspot {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.hotspot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover nur auf Geräten mit Maus aktivieren */
@media (hover: hover) and (pointer: fine) {
  .hotspot:hover img {
    filter: brightness(1.0) contrast(1.1);
    transform: scale(1.10);
  }
}

/* ---------- OVERLAY ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: none;
  z-index: 1000;
}
.overlay.active {
  display: block;
}
.overlay-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  perspective: 1200px;
}
.card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--transition-speed) ease;
  cursor: pointer;
}
.card.flipped {
  transform: rotateY(180deg);
}
.card-face {
  backface-visibility: hidden;
}
.card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.toggle-text {
  pointer-events: none;
}

#overlayFront, #overlayBack {
  width: 100%;
  height: auto;
  display: block;
}
#overlayText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  color: var(--color-text);
  font-weight: 100;
  font-size: clamp(0.8rem, 1em, 1.1rem);
  line-height: clamp(1.3, 1.4, 1.6);
  background: rgba(0,0,0,0.55);
  padding: clamp(8px, 1.4em, 14px);
  border-radius: 6px;
}
#overlayText a:link,
#overlayText a:visited {
  color: var(--color-link);
  text-decoration: underline;
  font-weight: 600;
}
#overlayText a:hover {
  color: var(--color-link-hover);
}

/* Für Slide-Show */
.slideshow-img {
  transition: opacity 0.15s ease;
}




/* ---------- FONTS ---------- */
.font-times { font-family: Times, serif; }
.font-arial { font-family: Arial, Helvetica, sans-serif; }
.font-verdana { font-family: Verdana, Geneva, Tahoma, sans-serif; }
.font-comic { font-family: "Comic Sans MS", "Comic Sans", cursive; }
.font-georgia { font-family: Georgia, serif; }

/* ---------- BURGER MENU ---------- */
.burger {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 5000;
  width: 32px;
  height: 24px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 4px;
  margin: 5px 0;
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.nav-overlay {
  position: fixed;
  top: 56px;
  right: 16px;
  background: var(--nav-bg);
  border-radius: 8px;
  padding: 6px 10px;
  width: max-content;
  z-index: 5000;
  display: none;
  font-family:Arial, Helvetica, sans-serif
}
.nav-overlay.active { display: block; }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li { margin: 6px 0; }
.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
}

/* ===============================
   VIDEO-FENSTER
   =============================== */
.video-window {
  position: absolute;
  background: rgba(0,0,0,0.85);
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  z-index: 99999;
  display: none;
}

.video-window video {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===============================
   Video-Schließen-Button
   =============================== */
.video-close {
  position: absolute;
  top: 6px;
  right: 10px;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 100000;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease;
}

.video-close:hover {
  transform: scale(1.3);
  color: #ff5555;
}

.toggle-text .red {
  color: #ff3333;
}
.toggle-text .blue {
  color: #33aaff;
}


/* --------HEADER UND FOOTER ---fix------- */
header {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;                  /* schmälerer Bereich */
  max-width: 1920px;           /* optional: obere Grenze */
  z-index: 10;
  text-align: center;
  background: rgba(0, 0, 0, 0.0);
  color: #070707;
  font-family: sans-serif;
  padding: 10px 0;
  border-radius: 10px;          /* leicht abgerundet */
  backdrop-filter: blur(4px);   /* moderner Glas-Effekt (optional) */
}

footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;                  /* schmälerer Bereich */
  max-width: 1920px;           /* optional: obere Grenze */
  z-index: 10;
  text-align: center;
  background: rgba(0, 0, 0, 0.0);
  color: #080808;
  font-family: sans-serif;
  padding: 10px 0;
  border-radius: 10px;          /* leicht abgerundet */
  backdrop-filter: blur(4px);   /* moderner Glas-Effekt (optional) */
}

footer { font-size: 0.5rem; line-height: 1.0; }
header h1, header h2 { font-size: 0.7rem; line-height: 1.0; }

/* 📱 Handy (bis 768px Breite) */
@media (max-width: 768px) {
  header h2,
  footer h2 {
    font-size: 0.5rem; /* ca. 14px */
  }
}

/* 📟 Tablet (zwischen 769px und 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  header h2,
  footer h2 {
    font-size: 0.5rem; /* ca. 14px */
  }
}

header { top: 0; }
footer { bottom: 0; }





/* ===============================
   🌍 LANGUAGE SWITCH
   =============================== */
.language-switch {
  position: fixed;
  top: 14px;
  right: 64px; /* sits left of burger */
  z-index: 6000;
  display: flex;
  gap: 6px;
}

.language-switch button {
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .language-switch button:hover {
    background: rgba(0,0,0,0.75);
  }
}


/* ==========================================
   Slideshow Navigation (Minimal SVG)
   ========================================== */

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(0,0,0,0.25);
  border-radius: 50%;
}

.slideshow-nav svg {
  width: 16px;
  height: 16px;
}

.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

.hotspot.slideshow-active:hover .slideshow-nav {
  opacity: 1;
}

@media (hover: none) {
  .hotspot.slideshow-active .slideshow-nav {
    opacity: 1;
  }
}


/* ===============================
   SLIDESHOW FINAL STABLE LAYOUT
   =============================== */

.slide-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}


.slide-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.slideshow-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;

  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 1.5rem;
  box-sizing: border-box;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.slideshow-prev { left: 6px; }
.slideshow-next { right: 6px; }

.slideshow-nav svg {
  width: 14px;
  height: 14px;
}

.slideshow-active .slideshow-nav {
  opacity: 1;
  z-index: 50;
}
