/* ============================================
   ROTE NUMMER PLANER - APPLE DESIGN SYSTEM
   ============================================ */

/* Apple Font Stack */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Apple Color Palette */
  --apple-white: #ffffff;
  --apple-gray-50: #f9fafb;
  --apple-gray-100: #f3f4f6;
  --apple-gray-200: #e5e7eb;
  --apple-gray-300: #d1d5db;
  --apple-gray-400: #9ca3af;
  --apple-gray-500: #6b7280;
  --apple-gray-600: #4b5563;
  --apple-gray-700: #374151;
  --apple-gray-800: #1f2937;
  --apple-gray-900: #111827;
  
  /* Apple Accent Colors */
  --apple-blue: #007aff;
  --apple-blue-light: #5ac8fa;
  --apple-blue-dark: #0051d5;
  --apple-red: #ff3b30;
  --apple-green: #34c759;
  --apple-orange: #ff9500;
  --apple-yellow: #ffcc00;
  
  /* Apple Shadows */
  --apple-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --apple-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --apple-shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --apple-shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --apple-shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* Apple Border Radius */
  --apple-radius-sm: 6px;
  --apple-radius: 12px;
  --apple-radius-md: 16px;
  --apple-radius-lg: 20px;
  --apple-radius-xl: 24px;
  --apple-radius-full: 9999px;
  
  /* Apple Spacing */
  --apple-space-1: 4px;
  --apple-space-2: 8px;
  --apple-space-3: 12px;
  --apple-space-4: 16px;
  --apple-space-5: 20px;
  --apple-space-6: 24px;
  --apple-space-8: 32px;
  --apple-space-10: 40px;
  --apple-space-12: 48px;
  --apple-space-16: 64px;
  
  /* Apple Typography */
  --apple-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --apple-font-size-xs: 12px;
  --apple-font-size-sm: 14px;
  --apple-font-size-base: 16px;
  --apple-font-size-lg: 18px;
  --apple-font-size-xl: 20px;
  --apple-font-size-2xl: 24px;
  --apple-font-size-3xl: 30px;
  --apple-font-size-4xl: 36px;
  
  /* Apple Transitions */
  --apple-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --apple-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --apple-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset und Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--apple-font-family);
  font-size: var(--apple-font-size-base);
  line-height: 1.5;
  color: var(--apple-gray-800);
  background-color: var(--apple-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.apple-body {
  font-family: var(--apple-font-family);
  font-size: var(--apple-font-size-base);
  line-height: 1.5;
  color: var(--apple-gray-800);
  background-color: var(--apple-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* ============================================
   APPLE STYLING (OHNE LAYOUT-ÄNDERUNGEN)
   ============================================ */

/* Mobile Header Styling */
.apple-mobile-header {
  background: var(--apple-gray-700) !important;
  color: var(--apple-white) !important;
  border-radius: var(--apple-radius-lg);
  box-shadow: var(--apple-shadow-sm);
}

.apple-app-title {
  font-family: var(--apple-font-family);
  font-weight: 700;
  color: var(--apple-white);
}

/* Sidebar Styling */
.apple-sidebar-styling {
  background: var(--apple-gray-700) !important;
  border-radius: var(--apple-radius-xl);
  box-shadow: var(--apple-shadow);
}

.apple-sidebar-title {
  color: var(--apple-white) !important;
  font-family: var(--apple-font-family);
  font-weight: 700;
}

.apple-nav-btn {
  background: transparent;
  border: none;
  color: var(--apple-white);
  font-family: var(--apple-font-family);
  font-weight: 500;
  font-size: var(--apple-font-size-base);
  transition: var(--apple-transition-fast);
  cursor: pointer;
  border-radius: var(--apple-radius);
  opacity: 0.8;
  position: relative;
  outline: none;
}

.apple-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--apple-white);
  opacity: 1;
  transform: translateX(4px);
}

.apple-nav-btn:focus {
  background: rgba(255, 255, 255, 0.15);
  color: var(--apple-white);
  opacity: 1;
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.apple-nav-btn:active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.apple-nav-btn-active {
  background: rgba(255, 255, 255, 0.4) !important;
  color: var(--apple-white) !important;
  box-shadow: var(--apple-shadow-md) !important;
  opacity: 1 !important;
  position: relative;
  border-left: 4px solid var(--apple-white) !important;
  font-weight: 600 !important;
}

.apple-nav-btn-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--apple-white);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.apple-nav-btn-active:hover {
  background: rgba(255, 255, 255, 0.45) !important;
  transform: translateX(4px);
  color: var(--apple-white) !important;
}

.apple-nav-btn-active:focus {
  background: rgba(255, 255, 255, 0.45) !important;
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.apple-nav-btn-active:active {
  background: rgba(255, 255, 255, 0.5) !important;
  transform: translateX(2px);
}

/* Main Content Styling */
.apple-main-content-styling {
  background: var(--apple-white);
  border-radius: var(--apple-radius-xl);
  box-shadow: var(--apple-shadow);
  border: 1px solid var(--apple-gray-200);
}

.apple-content-title {
  font-family: var(--apple-font-family);
  font-weight: 600;
  color: var(--apple-gray-900);
}

.apple-input-area-styling {
  background: var(--apple-white);
  border: 2px solid var(--apple-gray-300);
  border-radius: var(--apple-radius-lg);
  padding: var(--apple-space-4);
  color: var(--apple-gray-700);
  font-family: var(--apple-font-family);
  font-size: var(--apple-font-size-base);
  line-height: 1.5;
  min-height: 120px;
}

.apple-input-area-styling:focus {
  outline: none;
  border-color: var(--apple-gray-500);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.apple-input-area-styling:empty::before {
  content: "Klicken Sie hier, um Text einzugeben oder Bilder hochzuladen...";
  color: var(--apple-gray-400);
  font-style: italic;
}

/* Sidebar Section Styling */
.sidebar-section-toggle {
  font-family: var(--apple-font-family) !important;
  transition: var(--apple-transition-fast) !important;
  border-radius: var(--apple-radius) !important;
}

.sidebar-section-toggle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(4px);
}

/* Button Styling */
button, .btn {
  font-family: var(--apple-font-family) !important;
  border-radius: var(--apple-radius) !important;
  transition: var(--apple-transition-fast) !important;
}

/* Input Styling */
input, textarea, select {
  font-family: var(--apple-font-family) !important;
  border-radius: var(--apple-radius) !important;
  transition: var(--apple-transition-fast) !important;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--apple-gray-500) !important;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1) !important;
}

/* ============================================
   APPLE MODAL DESIGN
   ============================================ */

.apple-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--apple-space-4);
  opacity: 0;
  visibility: hidden;
  transition: var(--apple-transition);
}

.apple-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.apple-modal {
  background: var(--apple-white);
  border-radius: var(--apple-radius-xl);
  box-shadow: var(--apple-shadow-xl);
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: var(--apple-transition);
  display: flex;
  flex-direction: column;
}

.apple-modal-backdrop.show .apple-modal {
  transform: scale(1) translateY(0);
}

.apple-modal-header {
  padding: var(--apple-space-6);
  border-bottom: 1px solid var(--apple-gray-200);
  background: var(--apple-white);
  position: relative;
}

.apple-modal-title {
  font-size: var(--apple-font-size-2xl);
  font-weight: 600;
  color: var(--apple-gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--apple-space-3);
}

.apple-modal-close {
  position: absolute;
  top: var(--apple-space-6);
  right: var(--apple-space-6);
  width: 32px;
  height: 32px;
  border: none;
  background: var(--apple-gray-100);
  border-radius: var(--apple-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--apple-transition-fast);
  color: var(--apple-gray-600);
}

.apple-modal-close:hover {
  background: var(--apple-gray-200);
  color: var(--apple-gray-800);
  transform: scale(1.05);
}

.apple-modal-close:active {
  transform: scale(0.95);
}

.apple-modal-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apple-modal-body {
  flex: 1;
  padding: var(--apple-space-6);
  overflow-y: auto;
}

/* ============================================
   APPLE BUTTONS
   ============================================ */

.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--apple-space-2);
  padding: var(--apple-space-3) var(--apple-space-5);
  border: none;
  border-radius: var(--apple-radius);
  font-family: var(--apple-font-family);
  font-size: var(--apple-font-size-base);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: var(--apple-transition-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.apple-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.apple-btn-primary {
  background: var(--apple-gray-700); /* Sidebar-Farbton */
  color: var(--apple-white);
  box-shadow: var(--apple-shadow-sm);
  border: 1px solid var(--apple-gray-700);
}

.apple-btn-primary:hover {
  background: var(--apple-gray-600); /* Hellerer Sidebar-Ton */
  border-color: var(--apple-gray-600);
  box-shadow: var(--apple-shadow);
  transform: translateY(-1px);
}

.apple-btn-primary:active {
  background: var(--apple-gray-800);
  border-color: var(--apple-gray-800);
  transform: translateY(0);
}

.apple-btn-secondary {
  background: var(--apple-gray-100);
  color: var(--apple-gray-700); /* Sidebar-Farbton für Text */
  border: 1px solid var(--apple-gray-300);
}

.apple-btn-secondary:hover {
  background: var(--apple-gray-200);
  border-color: var(--apple-gray-400);
  color: var(--apple-gray-800);
  transform: translateY(-1px);
}

.apple-btn-secondary:active {
  background: var(--apple-gray-300);
  border-color: var(--apple-gray-500);
  transform: translateY(0);
}

.apple-btn-ghost {
  background: transparent;
  color: var(--apple-gray-600);
}

.apple-btn-ghost:hover {
  background: var(--apple-gray-100);
  color: var(--apple-gray-800);
}

.apple-btn-danger {
  background: var(--apple-red);
  color: var(--apple-white);
}

.apple-btn-danger:hover {
  background: #e53e3e;
  transform: translateY(-1px);
}

.apple-btn-sm {
  padding: var(--apple-space-2) var(--apple-space-4);
  font-size: var(--apple-font-size-sm);
}

.apple-btn-lg {
  padding: var(--apple-space-4) var(--apple-space-6);
  font-size: var(--apple-font-size-lg);
}

/* ============================================
   APPLE PLATE CONTAINER
   ============================================ */

.apple-plate-container {
  display: inline-block;
  position: relative;
  cursor: grab;
  transition: var(--apple-transition);
  border-radius: var(--apple-radius-md);
  padding: var(--apple-space-2);
  background: var(--apple-white);
  box-shadow: var(--apple-shadow-sm);
}

.apple-plate-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-md);
}

.apple-plate-container:active {
  cursor: grabbing;
  transform: translateY(-2px);
}

.apple-plate-container.exhausted {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.apple-plate-container.exhausted svg {
  filter: grayscale(100%);
}

/* ============================================
   APPLE COUNTER BADGE
   ============================================ */

.apple-counter-badge {
  position: absolute;
  top: -70px; /* Doppelter Abstand zum Kennzeichen-Icon */
  left: 50%;
  transform: translateX(-50%); /* Zentriert horizontal */
  background: var(--apple-white);
  border-radius: 8px; /* 60% kleinere Rundung (von 18px) */
  padding: 2px 6px; /* 60% weniger Padding (von 6px 12px) */
  font-size: clamp(8px, 1.0vw, 10px); /* 60% kleinere Schrift (von 16-19px) */
  font-weight: 700;
  font-feature-settings: 'tnum';
  box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* Kleinere Schatten */
  border: 1px solid; /* Dünnere Border */
  z-index: 10;
  min-width: 22px; /* 60% kleinere Breite (von 54px) */
  text-align: center;
  line-height: 1.0; /* 60% kleinere Line-Height */
  white-space: nowrap; /* Verhindert Text-Wrapping */
}

.apple-counter-badge.green {
  border-color: var(--apple-green);
  color: var(--apple-green);
  background: rgba(52, 199, 89, 0.1);
}

.apple-counter-badge.yellow {
  border-color: var(--apple-orange);
  color: var(--apple-orange);
  background: rgba(255, 149, 0, 0.1);
}

.apple-counter-badge.red {
  border-color: var(--apple-red);
  color: var(--apple-red);
  background: rgba(255, 59, 48, 0.1);
}

/* ============================================
   APPLE TOAST SYSTEM
   ============================================ */

.apple-toast-container {
  position: fixed;
  bottom: var(--apple-space-6);
  right: var(--apple-space-6);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--apple-space-3);
  pointer-events: none;
}

.apple-toast {
  background: var(--apple-white);
  border-radius: var(--apple-radius-md);
  padding: var(--apple-space-4) var(--apple-space-5);
  box-shadow: var(--apple-shadow-lg);
  border-left: 4px solid;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(100%);
  transition: var(--apple-transition);
  pointer-events: auto;
  position: relative;
}

.apple-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.apple-toast.success {
  border-left-color: var(--apple-green);
}

.apple-toast.error {
  border-left-color: var(--apple-red);
}

.apple-toast.info {
  border-left-color: var(--apple-gray-500);
}

.apple-toast-content {
  display: flex;
  align-items: flex-start;
  gap: var(--apple-space-3);
}

.apple-toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.apple-toast-text {
  flex: 1;
  font-size: var(--apple-font-size-sm);
  color: var(--apple-gray-800);
  line-height: 1.4;
}

.apple-toast-close {
  position: absolute;
  top: var(--apple-space-2);
  right: var(--apple-space-2);
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--apple-gray-400);
  border-radius: var(--apple-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--apple-transition-fast);
}

.apple-toast-close:hover {
  background: var(--apple-gray-100);
  color: var(--apple-gray-600);
}

/* ============================================
   APPLE TOOLTIP SYSTEM
   ============================================ */

.apple-tooltip {
  background: var(--apple-gray-800);
  color: var(--apple-white);
  padding: var(--apple-space-3) var(--apple-space-4);
  border-radius: var(--apple-radius);
  font-size: var(--apple-font-size-sm);
  box-shadow: var(--apple-shadow-lg);
  max-width: 280px;
  line-height: 1.4;
}

.apple-tooltip-header {
  font-weight: 600;
  margin-bottom: var(--apple-space-2);
  padding-bottom: var(--apple-space-2);
  border-bottom: 1px solid var(--apple-gray-600);
}

.apple-tooltip-row {
  display: flex;
  align-items: center;
  gap: var(--apple-space-2);
  margin: var(--apple-space-1) 0;
  font-size: var(--apple-font-size-xs);
  color: var(--apple-gray-300);
}

.apple-tooltip-row strong {
  color: var(--apple-white);
  font-weight: 500;
}

/* ============================================
   APPLE FORM ELEMENTS
   ============================================ */

.apple-input {
  width: 100%;
  padding: var(--apple-space-3) var(--apple-space-4);
  border: 1px solid var(--apple-gray-300);
  border-radius: var(--apple-radius);
  font-family: var(--apple-font-family);
  font-size: var(--apple-font-size-base);
  background: var(--apple-white);
  transition: var(--apple-transition-fast);
  color: var(--apple-gray-800);
}

.apple-input:focus {
  outline: none;
  border-color: var(--apple-gray-500);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.apple-input:disabled {
  background: var(--apple-gray-100);
  color: var(--apple-gray-500);
  cursor: not-allowed;
}

.apple-label {
  display: block;
  font-size: var(--apple-font-size-sm);
  font-weight: 500;
  color: var(--apple-gray-700);
  margin-bottom: var(--apple-space-2);
}

/* ============================================
   APPLE STATUS INDICATOR
   ============================================ */

.apple-status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--apple-radius-full);
  background: var(--apple-green);
  animation: apple-pulse 2s infinite;
}

@keyframes apple-pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.1);
  }
}

/* ============================================
   APPLE PLATE TOOLBAR
   ============================================ */

.apple-plate-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--apple-space-8);
  padding: var(--apple-space-6);
  background: var(--apple-gray-50);
  border-radius: var(--apple-radius-lg);
  margin-bottom: var(--apple-space-8); /* Vergrößerter Abstand (von -6 auf -8) */
  margin-top: var(--apple-space-4); /* Zusätzlicher Abstand nach oben */
  flex-wrap: wrap;
}

/* ============================================
   APPLE ADMIN SECTION
   ============================================ */

.apple-admin-section {
  background: var(--apple-gray-50);
  border-radius: var(--apple-radius-lg);
  padding: var(--apple-space-6);
  margin-top: var(--apple-space-6);
  border: 1px solid var(--apple-gray-200);
}

.apple-admin-title {
  font-size: var(--apple-font-size-lg);
  font-weight: 600;
  color: var(--apple-gray-900);
  margin: 0 0 var(--apple-space-4) 0;
  display: flex;
  align-items: center;
  gap: var(--apple-space-2);
}

.apple-admin-controls {
  display: grid;
  gap: var(--apple-space-4);
}

.apple-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--apple-space-4);
  background: var(--apple-white);
  border-radius: var(--apple-radius);
  border: 1px solid var(--apple-gray-200);
  transition: var(--apple-transition-fast);
}

.apple-admin-item:hover {
  border-color: var(--apple-gray-300);
  box-shadow: var(--apple-shadow-sm);
}

.apple-admin-item-label {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: var(--apple-font-size-base);
  font-weight: 600;
  color: var(--apple-gray-800);
}

.apple-admin-item-controls {
  display: flex;
  align-items: center;
  gap: var(--apple-space-3);
}

.apple-admin-input {
  width: 80px;
  padding: var(--apple-space-2) var(--apple-space-3);
  border: 1px solid var(--apple-gray-300);
  border-radius: var(--apple-radius-sm);
  font-family: var(--apple-font-family);
  font-size: var(--apple-font-size-sm);
  text-align: center;
  background: var(--apple-white);
  transition: var(--apple-transition-fast);
}

.apple-admin-input:focus {
  outline: none;
  border-color: var(--apple-gray-500);
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.1);
}

.apple-admin-info {
  font-size: var(--apple-font-size-xs);
  color: var(--apple-gray-500);
}

/* ============================================
   APPLE INFO TEXT
   ============================================ */

.apple-info-text {
  text-align: center;
  font-size: var(--apple-font-size-sm);
  color: var(--apple-gray-600);
  margin-top: var(--apple-space-4);
  padding: var(--apple-space-4);
  background: var(--apple-gray-50);
  border-radius: var(--apple-radius);
  border: 1px solid var(--apple-gray-200);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .apple-modal {
    margin: var(--apple-space-4);
    max-height: 95vh;
  }
  
  .apple-modal-header,
  .apple-modal-body {
    padding: var(--apple-space-4);
  }
  
  .apple-plate-toolbar {
    gap: var(--apple-space-4);
    padding: var(--apple-space-4);
  }
  
  .apple-toast {
    min-width: 280px;
    max-width: calc(100vw - var(--apple-space-12));
  }
}

/* ============================================
   APPLE FULLCALENDAR STYLING
   ============================================ */

.apple-calendar-container {
  background: var(--apple-white);
  border-radius: var(--apple-radius-lg);
  box-shadow: var(--apple-shadow-sm);
  overflow: hidden;
  border: 1px solid var(--apple-gray-200);
}

/* FullCalendar Apple Styling */
.fc {
  font-family: var(--apple-font-family) !important;
}

.fc-toolbar {
  background: var(--apple-gray-50) !important;
  padding: var(--apple-space-4) !important;
  border-bottom: 1px solid var(--apple-gray-200) !important;
  margin: 0 !important;
}

.fc-toolbar-title {
  font-size: var(--apple-font-size-2xl) !important;
  font-weight: 600 !important;
  color: var(--apple-gray-900) !important;
  margin: 0 !important;
}

.fc-button {
  background: var(--apple-white) !important;
  border: 1px solid var(--apple-gray-300) !important;
  border-radius: var(--apple-radius) !important;
  color: var(--apple-gray-700) !important;
  font-family: var(--apple-font-family) !important;
  font-weight: 500 !important;
  padding: var(--apple-space-2) var(--apple-space-4) !important;
  font-size: var(--apple-font-size-base) !important;
  transition: var(--apple-transition-fast) !important;
  box-shadow: none !important;
}

.fc-button:hover {
  background: var(--apple-gray-100) !important;
  border-color: var(--apple-gray-400) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--apple-shadow-sm) !important;
}

.fc-button:focus {
  outline: none !important;
  border-color: var(--apple-gray-500) !important;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.1) !important;
}

.fc-button:active {
  transform: translateY(0) !important;
}

.fc-button-active {
  background: var(--apple-gray-700) !important;
  border-color: var(--apple-gray-700) !important;
  color: var(--apple-white) !important;
}

.fc-col-header-cell {
  background: var(--apple-gray-50) !important;
  border-color: var(--apple-gray-200) !important;
}

.fc-col-header-cell-cushion {
  font-weight: 600 !important;
  color: var(--apple-gray-700) !important;
  font-size: var(--apple-font-size-base) !important;
  padding: var(--apple-space-3) var(--apple-space-2) !important;
}

.fc-timegrid-slot {
  height: 20px !important;
  border-color: var(--apple-gray-200) !important;
}

.fc-timegrid-slot-label {
  font-size: var(--apple-font-size-sm) !important;
  color: var(--apple-gray-500) !important;
  font-weight: 500 !important;
}

.fc-timegrid-now-indicator-line {
  border-color: var(--apple-gray-500) !important;
  border-width: 2px !important;
}

.fc-event {
  border: none !important;
  border-radius: var(--apple-radius-sm) !important;
  padding: 2px 6px !important;
  font-size: var(--apple-font-size-sm) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: var(--apple-transition-fast) !important;
  box-shadow: var(--apple-shadow-sm) !important;
}

.fc-event:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--apple-shadow) !important;
}

.fc-event-main {
  padding: 2px 4px !important;
}

.fc-event-title {
  font-weight: 500 !important;
}

/* Event Colors */
.event-own {
  background: #3b82f6 !important; /* WCAG AA compliant blue (#3b82f6 on white = 4.6:1) */
  color: var(--apple-white) !important;
  border: 1px solid #2563eb !important;
}

.event-other {
  background: #6b7280 !important; /* Darker gray for contrast */
  color: var(--apple-white) !important;
  border: 1px solid #4b5563 !important;
}

/* Event Hover States */
.event-own:hover {
  background: #2563eb !important; /* Slightly darker blue on hover */
  border-color: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
}

.event-other:hover {
  background: #4b5563 !important; /* Darker gray on hover */
  border-color: #374151 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3) !important;
}

/* Scrollbar Styling */
.fc-scroller::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.fc-scroller::-webkit-scrollbar-track {
  background: var(--apple-gray-100);
  border-radius: var(--apple-radius-sm);
}

.fc-scroller::-webkit-scrollbar-thumb {
  background: var(--apple-gray-300);
  border-radius: var(--apple-radius-sm);
}

.fc-scroller::-webkit-scrollbar-thumb:hover {
  background: var(--apple-gray-400);
}

/* ============================================
   APPLE TOOLTIP THEME
   ============================================ */

.tippy-box[data-theme~='apple'] {
  background: var(--apple-gray-800) !important;
  color: var(--apple-white) !important;
  font-size: var(--apple-font-size-sm) !important; /* Eine Stufe kleiner */
  border-radius: var(--apple-radius) !important;
  padding: var(--apple-space-3) var(--apple-space-4) !important;
  box-shadow: var(--apple-shadow-lg) !important;
  max-width: 280px !important;
  line-height: 1.4 !important;
}

.tippy-box[data-theme~='apple'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: var(--apple-gray-800) !important;
}

.tippy-box[data-theme~='apple'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: var(--apple-gray-800) !important;
}

.tippy-box[data-theme~='apple'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: var(--apple-gray-800) !important;
}

.tippy-box[data-theme~='apple'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: var(--apple-gray-800) !important;
}

/* ============================================
   DARK MODE - DEAKTIVIERT
   ============================================ */

/* Dark Mode wurde vollständig deaktiviert - nur Light Mode wird unterstützt */

/* Alle Dark Mode Styles wurden entfernt - nur Light Mode wird unterstützt */



