/* ================================
   RESPONSIVE DESIGN
   Media Queries für alle Breakpoints
   ================================ */

/* === TABLET (max-width: 768px) === */
@media (max-width: 768px) {
  /* Navigation */
  .floating-top {
    padding: 0 16px;
  }
  
  .floating-top .search-container {
    display: none;
  }
  
  .floating-top .logo {
    font-size: 1.2rem;
  }
  
  /* Sidebar */
  .sidebar .menu li a {
    padding: 10px;
  }
  
  .sidebar .menu li a i {
    font-size: 1rem;
  }
  
  /* Chat */
  .chat-modal {
    width: 95%;
    height: 90vh;
  }
  
  .chat-users-list.expanded {
    width: 220px;
  }
  
  .message {
    max-width: 85%;
  }
  
  /* Event Modal */
  .event-modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .event-list {
    grid-template-columns: 1fr;
  }
  
  /* New Chat Modal */
  .new-chat-content {
    width: 95%;
  }
  
  /* Search Results */
  .search-container {
    display: none;
  }
}

/* === MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
  /* Navigation */
  .floating-top {
    padding: 0 12px;
  }
  
  .floating-top .top-right {
    gap: 12px;
  }
  
  .floating-top .top-right img {
    width: 28px;
    height: 28px;
  }
  
  .floating-top .notif-btn {
    font-size: 1rem;
  }
  
  /* Chat */
  .chat-modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-height: none;
  }
  
  .chat-modal-header {
    border-radius: 0;
  }
  
  .chat-users-list.expanded {
    width: 100%;
  }
  
  .chat-messages-container {
    display: none;
  }
  
  .chat-users-list.expanded + .chat-messages-container {
    display: flex;
  }
  
  /* Event Modal */
  .event-modal-content {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  
  .event-modal-header {
    border-radius: 0;
  }
  
  .event-modal-body {
    max-height: calc(100vh - 140px);
  }
  
  /* New Chat Modal */
  .new-chat-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .new-chat-header {
    border-radius: 0;
  }
  
  /* Search Results */
  .search-results {
    max-height: 300px;
    border-radius: 8px;
  }
  
  .search-result-item {
    padding: 10px 12px;
  }
  
  .result-avatar {
    width: 35px;
    height: 35px;
  }
}

/* === LARGE DESKTOP (min-width: 1400px) === */
@media (min-width: 1400px) {
  .floating-top .search-container {
    max-width: 600px;
  }
  
  .sidebar {
    width: 280px;
  }
  
  .sidebar .menu li a {
    padding: 14px 20px;
  }
}

/* === ULTRA-WIDE (min-width: 1920px) === */
@media (min-width: 1920px) {
  .floating-top .search-container {
    max-width: 700px;
  }
  
  .sidebar {
    width: 300px;
  }
}

/* === PRINT STYLES === */
@media print {
  .sidebar,
  .floating-top,
  .notif-panel,
  .chat-overlay,
  .event-modal,
  .new-chat-modal {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
