/* Responsive CSS für MUSIKSCHULE365.DE */

/* Mobile-First Responsive Design */

/* Hero Buttons Mobile Layout */
@media (max-width: 767.98px) {
  .hero-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .hero-buttons .btn {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    padding: 0.6rem 0.3rem;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    height: auto;
    min-height: 80px;
    white-space: normal;
  }
  
  /* Mobile: Text in Zeilen aufteilen */
  .hero-buttons .btn::before {
    content: attr(data-text);
    display: block;
    white-space: pre-line;
  }
  
  .hero-buttons .btn {
    font-size: 0;
  }
  
  .hero-buttons .btn::before {
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .hero-buttons .btn {
    font-size: 0;
    min-height: 70px;
  }
  
  .hero-buttons .btn::before {
    font-size: 0.7rem;
  }
}

/* Reduced Mobile Spacing */
@media (max-width: 767.98px) {
  /* Hero Section */
  .hero-section {
    padding: 1.5rem 0;
    min-height: 30vh;
  }
  
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  /* General Spacing */
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .mt-4 {
    margin-top: 1rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1rem !important;
  }
  
  .mb-5 {
    margin-bottom: 1.5rem !important;
  }
  
  /* Section Spacing */
  section {
    padding: 1.5rem 0;
  }
  
  /* Container Spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
  
  /* Buttons */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  /* Forms */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  /* Tables */
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 1rem 0;
    min-height: 25vh;
  }
  
  .hero-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  /* Grid System */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col,
  .col-12,
  .col-6,
  .col-4,
  .col-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
  }
}

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Spacing */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  /* Navigation */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Tablet and Desktop Optimizations */
@media (min-width: 768px) {
  .hero-buttons .btn {
    flex: 0 0 auto;
    min-width: 160px;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    flex-direction: row;
    min-height: auto;
    white-space: nowrap;
  }
  
  /* Desktop: Normale Button-Darstellung */
  .hero-buttons .btn::before {
    content: none;
  }
  
  .hero-buttons .btn {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .fab {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: var(--text-dark) !important;
  }
  
  .container {
    max-width: none !important;
    padding: 0 !important;
  }
  
  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}

