:root {
  --transition-fast: 180ms;
  --transition-slow: 320ms;
  --primary: #F59C00;
  --primary-light: #FFB732;
  --primary-dark: #D68A00;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Background patterns */
html {
  overscroll-behavior: none;
}

/* Prevent zoom and pinch zoom */
* {
  touch-action: pan-x pan-y;
}

/* Prevent text selection and highlighting */
* {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Allow text selection only in input/textarea fields */
input,
textarea,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(245, 156, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 183, 50, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(245, 156, 0, 0.04) 0%, transparent 30%);
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(var(--vh, 1) * 100);
  overflow-x: hidden;
}

/* Layout */
#app-layout {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(var(--vh, 1) * 100);
}

/* Fix for mobile nav overlap - add padding bottom for mobile nav height (64px) */
@media (max-width: 1023px) {
  #app-layout {
    padding-bottom: 64px;
  }
}

/* Card styling with modern shadows */
.bg-white.border-slate-200 {
  transition: all var(--transition-fast) ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bg-white.border-slate-200:hover {
  border-color: var(--primary-light) !important;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Hero section with gradient */
.bg-white.border-slate-200.rounded-2xl {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Schedule items */
.border-slate-200.rounded-xl {
  position: relative;
  overflow: hidden;
}

.border-slate-200.rounded-xl::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast) ease;
  border-radius: 3px 0 0 3px;
}

.border-slate-200.rounded-xl:hover::before {
  opacity: 1;
}

/* Section titles */
h2.text-2xl {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

h2.text-2xl::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

/* Rich text improvements */
.accordion {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
}
.accordion-item {
  border-bottom: 1px solid #e2e8f0;
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-header {
  width: 100%;
  padding: 1rem;
  background: #f8fafc;
  border: none;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header:hover {
  background: #f1f5f9;
}
.accordion-item.open .accordion-header {
  background: #e2e8f0;
}
.accordion-content {
  padding: 1rem;
  background: white;
}
.richtext-scripts {
  display: none;
}
.bg-white.border-slate-200.rounded-xl p {
  white-space: pre-line;
  line-height: 1.75;
  color: #475569;
}

/* Timeline Schedule Styles */
.timeline-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) #e2e8f0;
  padding-bottom: 1rem;
}

.timeline-container::-webkit-scrollbar {
  height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.timeline-wrapper {
  display: flex;
  min-width: max-content;
  padding: 1rem 0;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 0 1rem;
  padding-right: 2rem; /* Extra padding for last item to be visible */
}

.timeline-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  padding: 0 0.5rem;
}

.timeline-slot::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(245, 156, 0, 0.3);
  z-index: 2;
}

.timeline-slot::after {
  content: '';
  position: absolute;
  top: 2.4rem;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  z-index: 1;
}

.timeline-slot:first-child::after {
  left: 50%;
}

.timeline-slot:last-child::after {
  right: 50%;
}


.timeline-date-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 0.5rem;
}

.timeline-date-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 156, 0, 0.15);
  border-radius: 0.5rem;
  text-align: center;
  white-space: nowrap;
}
.timeline-time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(245, 156, 0, 0.1);
  border-radius: 9999px;
  white-space: nowrap;
}

.timeline-events {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  padding-top: 0;
  padding-left: 1rem;
  min-width: 0;
}

.timeline-event {
  flex: 1;
  min-width: 200px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast) ease;
}

.timeline-event:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(245, 156, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.timeline-event:hover::before {
  opacity: 1;
}

.timeline-event.workshop {
  border-left: 4px solid #3b82f6;
}

.timeline-event.workshop::before {
  background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
}

.timeline-event.event {
  border-left: 4px solid #10b981;
}

.timeline-event.event::before {
  background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
}

.timeline-event.vortrag {
  border-left: 4px solid #8b5cf6;
}

.timeline-event.vortrag::before {
  background: linear-gradient(180deg, #8b5cf6 0%, #a78bfa 100%);
}

.timeline-event-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.timeline-event-time {
  font-weight: 700;
  color: #475569;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

.timeline-event-subtitle {
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.timeline-event-subtitle p {
  margin: 0.25rem 0;
}

.timeline-event-type {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-event-type.workshop {
  background: #dbeafe;
  color: #1d4ed8;
}

.timeline-event-type.event {
  background: #d1fae5;
  color: #047857;
}

.timeline-event-type.vortrag {
  background: #ede9fe;
  color: #6d28d9;
}

.timeline-event-company {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.timeline-event-company svg {
  width: 12px;
  height: 12px;
}

.timeline-event-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #78716c;
  margin-top: 0.25rem;
}

.timeline-event-location svg {
  width: 12px;
  height: 12px;
}

/* Timeline event like button */
.timeline-event-like {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
  border-radius: 4px;
}

.timeline-event-like:hover {
  transform: scale(1.1);
}

.timeline-event-like.liked {
  opacity: 1;
}

/* Timeline event liked state */
.timeline-event.liked {
  background-color: rgba(239, 68, 68, 0.05);
}

/* Timeline event has-note state */
.timeline-event.has-note {
  border-color: #f59e0b;
}

/* Timeline event content wrapper */
.timeline-event-content {
  cursor: pointer;
}

/* Vertical timeline for mobile */
.timeline-container.vertical {
  overflow-x: hidden;
  overflow-y: auto;
}

.timeline-container.vertical .timeline-wrapper {
  flex-direction: column;
  min-width: auto;
  width: 100%;
  padding: 1rem;
}

.timeline-container.vertical .timeline-track {
  flex-direction: column;
  padding: 0;
  padding-left: 2rem;
  border-left: 3px solid var(--primary-light);
  width: 100%;
}

.timeline-container.vertical .timeline-slot {
  min-width: auto;
  padding: 0;
  padding-bottom: 1.5rem;
  align-items: flex-start;
}

.timeline-container.vertical .timeline-slot::before {
  left: -2.35rem;
  top: 0.25rem;
  transform: none;
}

.timeline-container.vertical .timeline-slot::after {
  display: none;
}

.timeline-container.vertical .timeline-time {
  margin-bottom: 0.75rem;
}

.timeline-container.vertical .timeline-events {
  width: 100%;
  padding-top: 0;
  padding-left: 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.timeline-container.vertical .timeline-slot {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.timeline-container.vertical .timeline-time {
  margin-bottom: 0;
  min-width: 60px;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-slot {
    min-width: auto;
  }
  
  .timeline-events {
    overflow-x: visible;
    flex-wrap: wrap;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .timeline-event {
    padding: 0.75rem;
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 0;
    max-width: 100%;
  }
  
  .timeline-event-title {
    font-size: 0.875rem;
    white-space: normal;
    overflow-wrap: break-word;
  }
  
  .timeline-container.vertical .timeline-events {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (max-width: 480px) {
  .timeline-slot {
    min-width: auto;
  }
  
  .timeline-time {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
  }
  
  .timeline-event {
    padding: 0.5rem;
    flex: 1 1 100%;
    min-width: 0;
  }
  
  .timeline-event-title {
    font-size: 0.8125rem;
  }
}

/* Sidebar styling - always show on desktop */
#sidebar {
  display: none;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Show sidebar on screens >= 1024px (lg breakpoint) */
@media (min-width: 1024px) {
  #sidebar,
  #sidebar.hidden {
    display: flex !important;
  }
}

#sidebar .sidebar-item {
  transition: all var(--transition-fast) ease;
}

#sidebar .sidebar-item:hover {
  transform: translateX(4px);
}

/* Mobile nav */
#mobile-nav {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

#mobile-nav .nav-item {
  transition: all var(--transition-fast) ease;
}

#mobile-nav .nav-item:active {
  transform: scale(0.95);
}

/* Page transitions */
.page-enter {
  opacity: 0;
  transform: translateY(12px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-slow) ease, transform var(--transition-slow) ease;
}

.page-exit {
  opacity: 1;
  transform: translateY(0);
}

.page-exit-active {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast) ease, transform var(--transition-fast) ease;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
  z-index: 50;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 90vw;
  animation: toast-slide-up 0.3s ease;
}

@keyframes toast-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.toast button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.toast button:hover {
  background: rgba(255,255,255,0.1);
}

@media (min-width: 1024px) {
  .toast {
    bottom: 1.5rem;
    left: auto;
    right: 1.5rem;
    transform: none;
  }
  
  @keyframes toast-slide-up {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Exhibitor tags */
.text-xs.text-slate-400 {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.text-xs.text-slate-400 > span {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
}

/* Tile hover effect */
.grid.gap-4 a:hover .text-lg {
  color: var(--primary);
}

/* Button styles */
a.inline-flex {
  transition: all var(--transition-fast) ease;
}

a.inline-flex:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

/* Hero CTA Button - only as wide as text */
section.relative a.inline-block,
section.bg-white a.inline-block {
  display: inline-block !important;
  width: auto !important;
  text-align: center;
}

/* Override any Tailwind width classes for hero CTA */
.hero-cta, 
section a[href*="programm"] {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Specific hero button override - highest priority */
#hero-cta {
  display: inline-block !important;
  width: auto !important;
  flex: none !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Lucide icons placeholder styling */
.lucide {
  display: inline-block;
  vertical-align: middle;
}

/* Loading state */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Program TabBar */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Schedule section smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Schedule section anchor offset for sticky header */
[id] {
  scroll-margin-top: 80px;
}

/* TabBar transitions */
[data-schedule-tab] {
  transition: all 0.2s ease;
}

/* Active tab indicator */
[data-schedule-tab].bg-primary {
  position: relative;
}

[data-schedule-tab].bg-primary::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* ==================== ALPHASCROLL STYLES ==================== */
.alphascroll-wrapper {
  position: relative;
  display: flex;
  gap: 16px;
}

.alphascroll-container {
  position: relative;
  flex: 1;
  min-width: 0;
}

.alphascroll-main {
  flex: 1;
  min-width: 0;
}

/* Navigation positioned fixed, outside of scroll containers */
.alphascroll-nav {
  position: fixed;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1px 1px;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  height: fit-content;
  max-height: calc(100dvh - 120px);
  max-height: calc((var(--vh, 1) * 100) - 120px);
  overflow-y: auto;
  scrollbar-width: none;
}

.alphascroll-nav::-webkit-scrollbar {
  display: none;
}

.alphascroll-nav-mobile {
  position: fixed;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow-y: auto;
  gap: 0px;
  padding: 0x 0px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  -webkit-overflow-scrolling: touch;
  max-height: calc(100dvh - 120px);
  max-height: calc((var(--vh, 1) * 100) - 120px);
  scrollbar-width: none;
  touch-action: none;
}

.alphascroll-nav-mobile::-webkit-scrollbar {
  display: none;
}

/* Desktop: Alphascroll nav ausblenden - mobile Version wird angezeigt */
/* Mobile: Desktop nav ausblenden - mobile Version wird angezeigt */
@media (min-width: 1024px) {
  .alphascroll-nav-mobile {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .alphascroll-nav {
    display: none !important;
  }
}

/* Alphascroll Letter Overlay */
#alphascroll-letter-overlay {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

#alphascroll-letter-overlay.show {
  opacity: 1;
}

.alphascroll-letter-preview {
  text-shadow: 0 4px 20px rgba(245, 156, 0, 0.4);
  animation: letter-pop 0.4s ease-out forwards;
}

@keyframes letter-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  30% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.alphascroll-letter {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  pointer-events: auto;
}

.alphascroll-letter:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.alphascroll-letter:active {
  transform: scale(0.95);
}

.alphascroll-letter.active {
  background: var(--primary);
  color: white;
}

.alphascroll-letter.empty {
  color: #cbd5e1;
  cursor: default;
}

.alphascroll-letter.empty:hover {
  background: transparent;
  color: #cbd5e1;
  transform: none;
}

.alphascroll-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.alphascroll-section {
  margin-bottom: 24px;
}

.alphascroll-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alphascroll-section-title::before {
  content: '';
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.alphascroll-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alphascroll-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.12);
  transform: translateX(4px);
}

.alphascroll-item-info {
  flex: 1;
  min-width: 0;
}

.alphascroll-item-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
}

.alphascroll-item-booth {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.alphascroll-item-booth-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  z-index: 1;
}

.alphascroll-item {
  position: relative;
}

.alphascroll-item-program {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  cursor: pointer;
}

.alphascroll-item-program:hover {
  transform: scale(1.1);
}

.alphascroll-item-arrow {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.alphascroll-item:hover .alphascroll-item-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* Thumbnails in exhibitor list */
.alphascroll-item-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin-right: 12px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alphascroll-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Modal logo section */
.modal-logo-section {
  text-align: center;
  padding: 0px 12px 12px 12px;
  background: transparent;
  border-radius: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.modal-logo-img {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
  background: transparent;
}

/* Exhibitor list item like button */
.alphascroll-item-like {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 50%;
}

.alphascroll-item-like:hover {
  background: rgba(239, 68, 68, 0.1);
}

.alphascroll-item-like.liked {
  color: #ef4444;
}

.alphascroll-item-like svg {
  transition: all 0.2s;
}

.alphascroll-item.liked {
  background-color: rgba(239, 68, 68, 0.05);
}

/* Exhibitor list note indicator */
.alphascroll-item-note {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
}

.alphascroll-item.has-note {
  position: relative;
}

/* Program Modal Styles */

/* Type Badge in Header */
.modal-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  width: fit-content;
  margin-bottom: 8px;
}

.modal-type-badge i {
  width: 12px;
  height: 12px;
}

.modal-header-content {
  flex: 1;
  min-width: 0;
}

/* Info Cards */
.program-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.program-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.program-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #3b82f6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.program-info-icon i {
  width: 20px;
  height: 20px;
}

.program-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.program-info-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.program-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}

/* Program Sections */
.program-section {
  margin-bottom: 20px;
}

.program-section:last-child {
  margin-bottom: 0;
}

.program-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.program-section-header i {
  width: 16px;
  height: 16px;
  color: var(--primary, #3b82f6);
}

.program-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Exhibitor Card */
.exhibitor-card {
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.exhibitor-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

/* Description */
.program-description {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  padding: 14px 16px;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* Note Textarea */
.program-note-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: #fafbfc;
  color: #334155;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.program-note-textarea:focus {
  outline: none;
  border-color: var(--primary, #3b82f6);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.program-note-textarea::placeholder {
  color: #94a3b8;
}

/* Exhibitor Note Textarea - Full width */
.modal-note-textarea {
  width: 100% !important;
  min-height: 120px;
  max-height: 200px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: #fafbfc;
  color: #334155;
  box-sizing: border-box;
  transition: all 0.2s ease;
  display: block;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.modal-note-textarea:focus {
  outline: none;
  border-color: var(--primary, #3b82f6);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-note-textarea::placeholder {
  color: #94a3b8;
}

/* Shape popup heart badge */
.shape-heart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  pointer-events: none;
}

/* Floating Action Bar */
.modal-action-bar {
  position: sticky;
  bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, white 80%, rgba(255, 255, 255, 0.95));
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.program-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  background: white;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 280px;
}

.program-action-btn i {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}

.program-action-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.program-action-btn.liked {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
  color: #dc2626;
}

.program-action-btn.liked i {
  color: #dc2626;
  fill: #dc2626;
}

.program-action-btn.liked:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #f87171;
}

/* Mobile alphabet bar - rechts am Bildschirmrand positioniert */
@media (max-width: 1023px) {
  .alphascroll-nav-mobile {
    display: flex !important;
  }
  
  .alphascroll-nav-mobile .alphascroll-letter {
    flex-shrink: 0;
    touch-action: manipulation;
    pointer-events: auto;
  }
  
  .alphascroll-nav-mobile .alphascroll-letter.active {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    border-radius: 0px;
  }
}

@media (min-width: 1024px) {
  .alphascroll-nav-mobile {
    display: none !important;
  }
}

/* ==================== MODAL STYLES ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90dvh;
  max-height: calc(100dvh - 40px);
  max-height: calc((var(--vh, 1) * 100) - 40px);
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.modal-content .modal-body {
  flex: 1;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 16px 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-booth-badge-header {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  margin-right: 10px;
  vertical-align: middle;
  line-height: 1;
}

.modal-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.modal-body {
  padding: 16px 20px 24px 20px;
  display: flex;
  flex-direction: column;
}

.modal-section {
  margin-bottom: 20px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.modal-section:has(.modal-note-textarea) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.modal-section .modal-section-title {
  width: 100%;
  display: block;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-section-half {
  flex: 1;
  min-width: 0;
}

.modal-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 8px;
}

.modal-info-grid {
  display: grid;
  gap: 12px;
}

.modal-info-row {
  display: flex;
  gap: 12px;
}

.modal-info-item-half {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.modal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-info-icon i {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.modal-info-content {
  flex: 1;
  min-width: 0;
}

.modal-info-label {
  font-size: 12px;
  color: #64748b;
}

.modal-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

.modal-info-value a {
  color: var(--primary);
  text-decoration: none;
}

.modal-info-value a:hover {
  text-decoration: underline;
}

.modal-info-value .truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
}

.modal-tag.category {
  background: var(--primary);
  color: white;
}

.modal-description {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

/* Mobile Modal Styles */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .modal-content {
    max-width: 100%;
    max-height: 95vh;
    max-height: 95dvh;
    max-height: calc(var(--vh, 1) * 95);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  
  .modal-overlay.active .modal-content {
    transform: translateY(0);
  }
  
  .modal-header {
    border-radius: 20px 20px 0 0;
    padding: 14px 16px;
  }
  
  .modal-title {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 16px;
    padding-bottom: 80px;
  }
  
  /* Info Cards Mobile */
  .program-info-cards {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
  }
  
  .program-info-cards::-webkit-scrollbar {
    display: none;
  }
  
  .program-info-card {
    min-width: 140px;
    flex-shrink: 0;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .program-info-icon {
    width: 36px;
    height: 36px;
  }
  
  .program-info-icon i {
    width: 18px;
    height: 18px;
  }
  
  .program-info-content {
    gap: 2px;
  }
  
  .program-info-label {
    font-size: 10px;
  }
  
  .program-info-value {
    font-size: 12px;
  }
  
  /* Action Bar Mobile */
  .modal-action-bar {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  
  .modal-note-textarea {
    min-height: 100px;
    padding: 12px;
    font-size: 14px;
  }
  
  .program-action-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .program-info-card {
    min-width: 120px;
    padding: 10px;
  }
  
  .program-info-icon {
    width: 32px;
    height: 32px;
  }
  
  .program-info-icon i {
    width: 16px;
    height: 16px;
  }
  
  .program-info-label {
    font-size: 9px;
  }
  
  .program-info-value {
    font-size: 11px;
  }
  
  .program-description {
    font-size: 13px;
    line-height: 1.5;
    padding: 12px;
  }
  
  .program-note-textarea {
    padding: 12px;
    min-height: 80px;
  }
  
  .modal-type-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .modal-type-badge i {
    width: 10px;
    height: 10px;
  }
}

/* Alphascroll Fix - Additional responsive rules */
@media (max-width: 1023px) {
  .alphascroll-nav {
    display: none;
  }
}

/* Standplan Map - Remove background */
.standplan-map {
  background: transparent !important;
  min-height: 0;
  width: 100%;
  flex: 1;
  height: 100%;
}

#app .standplan-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

#app main {
  min-height: 0 !important;
  height: auto !important;
}

/* Standplan page needs full viewport height */
#app.standplan,
#app.standplan main {
  height: 100%;
}

#app.standplan main {
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  /* Dynamic height calculation: 100vh minus header and mobile-nav if visible */
  height: calc(100vh - var(--header-height, 0px) - var(--mobile-nav-height, 0px));
}

/* CSS custom properties for dynamic height calculation */
:root {
  --header-height: 0px;
  --mobile-nav-height: 0px;
}

/* When on mobile, account for header and mobile-nav */
@media (max-width: 1023px) {
  :root {
    --header-height: 57px; /* Approximate header height (py-3 + content) */
    --mobile-nav-height: 64px; /* h-16 = 64px */
  }
}

/* Hide Leaflet zoom controls */
.leaflet-control-zoom {
  display: none !important;
}

#app .standplan-map {
  flex: 1;
  max-height: none;
  min-height: 0;
  height: 100%;
}

.standplan-map .leaflet-container {
  background: transparent !important;
}

.standplan-map .leaflet-tile-pane {
  background: transparent !important;
}

/* Custom Standplan Marker Styles */
.custom-standplan-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 2px solid white;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-marker {
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.marker-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.popup-logo {
  display: block;
  margin: 0 auto 8px;
}

/* Standplan Popup Styles */
.standplan-popup {
  text-align: center;
  min-width: 150px;
}

.standplan-popup-clickable {
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.standplan-popup-clickable:hover {
  background-color: transparent;
}

.standplan-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #0ea5e9;
  color: white;
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.standplan-popup-link:hover {
  background-color: #0284c7;
}

.standplan-popup-link i {
  width: 14px;
  height: 14px;
}

/* Standplan Popup Link Icon (info icon in circle) */
.standplan-popup-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.standplan-popup-link-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.standplan-popup-clickable:hover .standplan-popup-link-icon {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

/* Standplan FAB Search */
.standplan-fab-container {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Pulsing border for standplan interactive shapes (no fill) */
.standplan-map .leaflet-interactive {
  animation: standplan-pulse-border 1.5s ease-in-out infinite;
  pointer-events: stroke;
  stroke-width: 4px !important;
}

@keyframes standplan-pulse-border {
  0%, 100% {
    stroke: transparent;
    stroke-opacity: 0;
  }
  50% {
    stroke: var(--primary, #F59C00);
    stroke-opacity: 1;
  }
}

.standplan-fab-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--primary, #0284c7);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.standplan-fab-btn svg {
  width: 28px;
  height: 28px;
}

.standplan-fab-btn:hover {
  background: var(--primary-dark, #0369a1);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.standplan-fab-btn.hidden {
  display: none;
}

.standplan-fab-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 12px;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateX(100px);
  opacity: 0;
  transition: all 0s;
  pointer-events: none;
}

.standplan-fab-search.visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.standplan-fab-select {
  min-width: 200px;
  max-width: 280px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: white;
  color: #334155;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.standplan-fab-select:focus {
  border-color: var(--primary, #0284c7);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.standplan-fab-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.standplan-fab-close:hover {
  background: #e2e8f0;
  color: #334155;
}

@media (max-width: 640px) {
  .standplan-fab-container {
    bottom: 40px;
    left: 0;
    right: 0;
    justify-content: flex-end;
    padding-right: 16px;
    box-sizing: border-box;
  }
  
  .standplan-fab-search {
    max-width: 100%;
    flex: 1;
  }
  
  .standplan-fab-select {
    min-width: 130px;
    max-width: 180px;
    font-size: 13px;
    padding: 8px 10px;
  }
}

