/* ============================================
   marbet Touchscreen — Base Styles
   ============================================ */

:root {
  --color-bg: #0a0a0f;
  --color-surface: #13131a;
  --color-accent: #6366f1;
  --color-accent-glow: rgba(99, 102, 241, 0.4);
  --color-text: #f1f1f4;
  --color-text-muted: #71717a;
  --color-glass-bg: rgba(255, 255, 255, 0.08);
  --color-glass-border: rgba(255, 255, 255, 0.12);
  --nav-height: 80px;
  --nav-bottom: 32px;
  --slide-transition: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* ---- 16:9 App Wrapper ---- */
.app-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.app-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  background: var(--color-bg);
  overflow: hidden;
}

/* ---- Logo ---- */
.app-logo {
  position: absolute;
  top: 0;
  left: clamp(16px, 2.5vw, 32px);
  height: clamp(56px, 8vh, 96px);
  width: auto;
  z-index: 50;
  pointer-events: none;
  background: white;
  padding: 22px 16px 12px;
}

/* ---- Slider ---- */
.slider-track {
  display: flex;
  height: 100%;
  transition: transform var(--slide-transition);
  will-change: transform;
}

.slider-track.dragging {
  transition: none;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: filter var(--slide-transition);
}

.slide.blur {
  filter: blur(12px);
}

.slide-content {
  text-align: center;
  padding: 40px;
}

.slide-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.slide-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
}

/* ---- Slide Backgrounds (individuelle Farben pro Screen) ---- */
/* ---- Video Slide ---- */
.slide-video {
  overflow: hidden;
  background: #000;
}

.slide-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.slide-video-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  text-align: center;
  z-index: 2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  line-height: 1.1;
  pointer-events: none;
}

.slide-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.slide[data-slide="1"] {
  background: linear-gradient(160deg, #080810 0%, #0f1628 40%, #0a1220 100%);
  align-items: flex-start;
}

/* ============================================
   Info Screen — Split Layout
   ============================================ */
.info-screen {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

/* ---- Left: Lageplan ---- */
.info-left {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vh, 40px) clamp(20px, 3vw, 40px);
  padding-top: clamp(70px, 10vh, 110px);
  padding-bottom: calc(var(--nav-height) + var(--nav-bottom) + 16px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.info-map-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(12px, 2vh, 20px);
  flex-shrink: 0;
}

.info-map-header h2 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
}

.info-map-container {
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---- Right: Info ---- */
.info-right {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vh, 40px) clamp(20px, 3vw, 40px);
  padding-top: clamp(70px, 10vh, 110px);
  padding-bottom: calc(var(--nav-height) + var(--nav-bottom) + 16px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.info-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(12px, 2vh, 20px);
  flex-shrink: 0;
}

.info-section-header h2 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
}

.info-section-icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.info-section-icon svg {
  width: 100%;
  height: 100%;
}

/* ---- Info Cards ---- */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 12px);
  margin-bottom: clamp(12px, 2vh, 20px);
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.5vw, 16px);
  padding: clamp(10px, 1.5vh, 16px) clamp(12px, 1.5vw, 18px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.info-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  padding: 8px;
}

.info-card-icon svg {
  width: 100%;
  height: 100%;
}

.info-card-body {
  flex: 1;
  min-width: 0;
}

.info-card-label {
  font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.info-card-value {
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: var(--color-text);
}

.info-card-sub {
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ---- Image Placeholder ---- */
.info-image-placeholder {
  flex: 1;
  min-height: clamp(80px, 12vh, 160px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
}

.info-image-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.3;
}

.slide[data-slide="2"] {
  background: linear-gradient(160deg, #0a0a1a 0%, #111133 40%, #0d1b2a 100%);
  align-items: flex-start;
}

.slide[data-slide="3"] {
  background: radial-gradient(ellipse at 30% 20%, #1a1040 0%, #0a0a18 50%, #050510 100%);
  overflow: hidden;
}

.slide[data-slide="4"] {
  background: linear-gradient(160deg, #08080f 0%, #10101f 40%, #0a0f1a 100%);
  overflow: hidden;
}

.slide[data-slide="5"] {
  background: linear-gradient(135deg, #1b1b2f, #162447, #1f4068);
}

/* ============================================
   Filmstrip Gallery
   ============================================ */
.filmstrip-screen {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: clamp(60px, 9vh, 100px);
  padding-bottom: calc(var(--nav-height) + var(--nav-bottom) + 16px);
}

.filmstrip-track {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  padding: 0 clamp(24px, 4vw, 64px);
  height: 80%;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}

.filmstrip-track.grabbing {
  cursor: grabbing;
}

/* ---- Filmstrip Items ---- */
.filmstrip-item {
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.filmstrip-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(99, 102, 241, 0.2);
}

.filmstrip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sizes */
.filmstrip-tall {
  width: clamp(180px, 18vw, 280px);
  height: 100%;
}

.filmstrip-wide {
  width: clamp(280px, 28vw, 420px);
  height: 65%;
}

.filmstrip-medium {
  width: clamp(220px, 22vw, 340px);
  height: 80%;
}

/* ---- Caption ---- */
.filmstrip-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(10px, 1.5vh, 18px) clamp(12px, 1.5vw, 20px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: #fff;
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.filmstrip-item:hover .filmstrip-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Gallery Screen — Floating Bubbles
   ============================================ */
.gallery-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-bubbles {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-beams {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- Bubble ---- */
.gallery-bubble {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-bubble:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.2),
              0 12px 48px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.gallery-bubble:hover img {
  transform: scale(1.08);
}

/* ---- Lightbox ---- */
.gallery-lightbox {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.gallery-lightbox-img {
  max-width: 75%;
  max-height: 75%;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-lightbox.active .gallery-lightbox-img {
  transform: scale(1);
}

/* ---- Lightbox Layout ---- */
.gallery-lightbox {
  flex-direction: column;
}

/* ---- Lightbox Arrows ---- */
.lightbox-arrows {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.lightbox-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-arrow svg {
  width: 24px;
  height: 24px;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-arrow:active {
  transform: scale(0.95);
}

/* ============================================
   Agenda Screen
   ============================================ */
.agenda-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vh, 40px) clamp(24px, 4vw, 64px);
  padding-bottom: calc(var(--nav-height) + var(--nav-bottom) + 16px);
  overflow: hidden;
}

/* ---- Header ---- */
.agenda-header {
  text-align: center;
  margin-bottom: clamp(12px, 2vh, 28px);
  flex-shrink: 0;
}

.agenda-badge {
  display: inline-block;
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  margin-bottom: 12px;
}

.agenda-title {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.agenda-subtitle {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ---- Two-Column Layout ---- */
.agenda-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 40px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.agenda-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.agenda-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.8rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: clamp(8px, 1.5vh, 16px);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.agenda-col-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
}

.agenda-col-icon svg {
  width: 100%;
  height: 100%;
}

/* ---- Timeline ---- */
.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 0;

  /* Unsichtbare Scrollbar, aber scroll-fähig */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.agenda-timeline::-webkit-scrollbar {
  width: 4px;
}

.agenda-timeline::-webkit-scrollbar-track {
  background: transparent;
}

.agenda-timeline::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* ---- Agenda Card ---- */
.agenda-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(8px, 1.2vh, 14px) clamp(10px, 1.5vw, 18px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.agenda-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 0 3px 3px 0;
  transition: background 0.3s ease;
}

.agenda-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.agenda-card:hover::before {
  background: var(--color-accent);
}

/* Active / Current Item */
.agenda-card[data-status="active"] {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1);
}

.agenda-card[data-status="active"]::before {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-glow);
}

/* Done Items */
.agenda-card[data-status="done"] {
  opacity: 0.5;
}

/* Break Card */
.agenda-card-break {
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.06);
}

.agenda-card-break::before {
  background: rgba(255, 255, 255, 0.1);
}

.agenda-card-break .agenda-card-title {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
}

/* ---- Time ---- */
.agenda-time {
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  font-weight: 700;
  color: var(--color-accent);
  min-width: clamp(36px, 4vw, 52px);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ---- Card Body ---- */
.agenda-card-body {
  flex: 1;
  min-width: 0;
}

.agenda-card-title {
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.agenda-card-desc {
  font-size: clamp(0.6rem, 0.9vw, 0.8rem);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ---- Tags ---- */
.agenda-tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.agenda-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: clamp(0.5rem, 0.7vw, 0.65rem);
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.tag-keynote {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.tag-workshop {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-panel {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tag-main {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Duration Badge ---- */
.agenda-duration {
  font-size: clamp(0.55rem, 0.8vw, 0.7rem);
  color: var(--color-text-muted);
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Floating Glass Navigation ---- */
.glass-nav {
  position: absolute;
  bottom: var(--nav-bottom);
  left: 50%;
  transform: translateX(-50%);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 24px;
  z-index: 100;

  /* Glassmorphism */
  background: var(--color-glass-bg);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--color-glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.4s ease;
}

.glass-nav.nav-hidden {
  transform: translateX(-50%) translateY(calc(100% + var(--nav-bottom) + 20px));
  opacity: 0;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 24px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 16px;
  transition: color 0.3s ease;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
  color: var(--color-text);
}

.nav-item.active {
  color: #fff;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---- Active Indicator (Pill hinter aktivem Item) ---- */
.nav-indicator {
  position: absolute;
  top: 8px;
  left: 0;
  height: calc(100% - 16px);
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 20px var(--color-accent-glow);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 1;
  pointer-events: none;
}
