/* responsive.css - Mobile-First Anpassungen */

/* Grundlegende Mobile-First Regeln */
body {
  font-size: 16px;
}

.container {
  width: 92%;
  padding: 0 var(--space-2);
}

/* Base Mobile Styles */
.hero-title {
  font-size: 2.5rem;
}

.hero-subtitle {
  font-size: var(--text-base);
  padding: 0 var(--space-4);
}

.hero-button {
  padding: var(--space-3) var(--space-6);
}

.chapter-grid {
  grid-template-columns: 1fr;
}

.chapter-card {
  margin-bottom: var(--space-4);
}

/* Media Queries für größere Geräte */

/* Small tablets and large phones (landscape) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .chapter-card {
    margin-bottom: var(--space-6);
  }
}

/* Tablets */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: var(--text-xl);
    padding: 0;
  }
  
  .chapter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
  }
}

/* Desktops and large tablets */
@media (min-width: 992px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
  
  .chapter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktops */
@media (min-width: 1200px) {
  .container {
    width: 85%;
    max-width: 1200px;
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .logo {
    margin-bottom: var(--space-2);
  }
  
  .logo h1 {
    font-size: var(--text-lg);
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    box-shadow: 0 5px 10px var(--shadow);
    z-index: 100;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 0;
    border-bottom: 1px solid var(--bg-secondary);
  }
  
  .nav-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    width: 100%;
    padding: 0;
  }
  
  .dropdown-menu a {
    padding-left: var(--space-6);
  }
  
  .dropdown.open .dropdown-menu {
    display: block;
  }
  
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 101;
  }
  
  .menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .menu-toggle span:nth-child(1) {
    top: 0;
  }
  
  .menu-toggle span:nth-child(2) {
    top: 10px;
  }
  
  .menu-toggle span:nth-child(3) {
    top: 20px;
  }
  
  .menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
  }
  
  /* Angepasstes Header-Controls-Layout für Mobile */
  .header-controls {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: var(--space-2);
  }
  
  .audio-control,
  .language-switch,
  .theme-toggle {
    margin-left: var(--space-2);
  }
  
  /* Success Line für Mobile ausblenden oder anpassen */
  .success-line-container {
    display: none;
  }
  
  /* Seitenleiste für Mobile anpassen */
  .side-navigation {
    position: fixed;
    bottom: 20px;
    right: auto;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 400px;
    overflow-x: auto;
    padding: 10px;
    border-radius: 20px;
  }
  
  .side-nav-item {
    margin: 0 5px;
    flex-shrink: 0;
  }
  
  .side-nav-link {
    padding: 8px;
  }
  
  .side-nav-text {
    display: none;
  }
  
  /* Lesson Tracker für Mobile anpassen */
  .lesson-tracker {
    bottom: var(--space-4);
    right: var(--space-4);
  }
  
  .tracker-content {
    width: 260px;
    right: 0;
  }
  
  /* Footer für Mobile */
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: var(--space-6);
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-quote {
    text-align: center;
    padding-left: 0;
    padding-top: var(--space-6);
  }
  
  .footer-quote::before {
    left: 50%;
    transform: translateX(-50%);
  }
}