/* Importing Google Font Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #000000;
  --bg-card: rgba(12, 12, 18, 0.5);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-color: #ffffff;
  --text-muted: #8c8c9e;
  
  /* Cyberpunk Color Palette */
  --neon-pink: #ff007f;
  --neon-magenta: #d90429;
  --neon-violet: #8a2be2;
  --neon-blue: #00f0ff;
  --neon-cyan: #00ffff;
  
  --shadow-neon-pink: 0 0 15px rgba(255, 0, 127, 0.4);
  --shadow-neon-blue: 0 0 15px rgba(0, 240, 255, 0.4);
  --shadow-neon-violet: 0 0 15px rgba(138, 43, 226, 0.4);
  
  --font-family: 'Outfit', sans-serif;
  --app-max-width: 600px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Blobs for Visual Depth */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: var(--neon-pink);
  animation-duration: 20s;
}

.blob-2 {
  bottom: 10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--neon-blue);
  animation-duration: 28s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--neon-violet);
  animation-duration: 24s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* App Container */
.app-container {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 80px 16px 40px 16px; /* Top padding to accommodate fixed header */
  position: relative;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

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

.header-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  object-fit: cover;
}

.header-title-container {
  display: flex;
  flex-direction: column;
}

.app-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-violet), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.current-day-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 48px; /* Leave space for menu button absolute position */
}

/* Zeltplatz Button */
.btn-zeltplatz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-zeltplatz:hover, .btn-zeltplatz:active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-neon-blue);
}

.pin-icon {
  font-size: 0.85rem;
  color: var(--neon-pink);
}

/* Menu Toggle Button */
.menu-btn {
  position: absolute;
  top: 18px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 110;
  transition: transform 0.3s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn:hover {
  color: var(--neon-pink);
  transform: scale(1.1);
}

/* Main Content Styles */
.timeline-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline Layout */
.timeline {
  position: relative;
  margin-bottom: 40px;
}

/* Vertical line (Static & elegant neon gradient with bloom) */
.timeline::before {
  content: '';
  position: absolute;
  left: 64px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon-pink), var(--neon-violet), var(--neon-blue));
  opacity: 0.6;
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.3), 0 0 16px rgba(0, 240, 255, 0.15);
}

/* Timeline Item (flex row layout) */
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bullet Point on timeline (centered at 64px) */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 64px;
  top: 24px; /* Centered relative to first text line */
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid var(--bg-color);
  z-index: 2;
  transition: all 0.3s ease;
}

/* Left Column: Time (52px width + 12px right padding = 64px line center) */
.timeline-time {
  width: 52px;
  text-align: right;
  padding-right: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  padding-top: 14px; /* Aligns visually with the first text line in card */
  letter-spacing: -0.3px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Right Column: The Card (margin-left: 24px is the gap to the line) */
.timeline-card {
  flex-grow: 1;
  margin-left: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.timeline-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  white-space: pre-line;
}

/* Sub-tags for Responsibles */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-responsible {
  background: rgba(255, 0, 127, 0.1);
  border: 1px solid rgba(255, 0, 127, 0.25);
  color: var(--neon-pink);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
}

.tag-time {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-blue);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}

/* Active Programmpunkt Styles (Subtle Zoom & Intense Neon Glow) */
.timeline-item.active {
  transform: scale(1.03); /* Subtle premium zoom */
  z-index: 5;
}

.timeline-item.active::before {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink), 0 0 20px rgba(255, 0, 127, 0.5);
  width: 10px;
  height: 10px;
  left: 64px;
  animation: pulse-bullet 2s infinite ease-in-out;
}

@keyframes pulse-bullet {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 8px var(--neon-pink), 0 0 16px rgba(255, 0, 127, 0.4);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 14px var(--neon-pink), 0 0 28px rgba(255, 0, 127, 0.6);
  }
}

.timeline-item.active .timeline-card {
  border-color: rgba(255, 0, 127, 0.5);
  background: rgba(255, 0, 127, 0.04);
  box-shadow: var(--shadow-neon-pink), 0 12px 30px rgba(0, 0, 0, 0.5); /* Deeper 3D shadow */
}

.timeline-item.active .timeline-time {
  color: var(--neon-pink);
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
  animation: pulse-text 2s infinite ease-in-out;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Sektion: Dienste & Nachtwachen */
.services-section {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.services-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid .service-card.full-width {
    grid-column: span 2;
  }
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.service-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

/* Custom Highlight colors for special cards */
.service-card.tagesleitung {
  border-left: 3px solid var(--neon-blue);
}

.service-card.nachtwache {
  border-left: 3px solid var(--neon-violet);
}

.service-card.klo {
  border-left: 3px solid var(--neon-pink);
}

/* Hamburger Slideover Menu */
.slideover {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  z-index: 150;
  background: rgba(5, 5, 10, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border-color);
  padding: 80px 20px 40px 20px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slideover.open {
  transform: translateX(0);
}

.slideover-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.slideover-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-blue);
}

.slideover-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex-grow: 1;
}

.slideover-item button {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  text-align: left;
  font-family: var(--font-family);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.slideover-item button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.slideover-item.active button {
  background: rgba(138, 43, 226, 0.15);
  border-color: var(--neon-violet);
  box-shadow: var(--shadow-neon-violet);
}

.slideover-item.today button {
  border-color: var(--neon-blue);
}

.slideover-item-name {
  font-weight: 600;
}

.slideover-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slideover-item.active .slideover-item-date {
  color: var(--neon-violet);
  font-weight: 600;
}

/* Slideover Backdrop */
.slideover-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.slideover-backdrop.open {
  opacity: 1;
  visibility: visible;
}


/* Floating action button for today */
.fab-today {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-violet));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-neon-pink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-today:hover {
  transform: scale(1.1);
}

.fab-today i {
  font-size: 1.2rem;
}

/* Empty State / Loading State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}
