/* 
 * responsive.css - Mobile-Anpassungen
 * Responsive Design für alle Bildschirmgrößen
 */

/* ===== TABLET BREAKPOINT (768px und kleiner) ===== */
@media (max-width: 768px) {
    
    /* Navigation Header */
    .nav-header {
        padding: 0.75rem 1rem;
    }

    .nav-header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    /* Category Navigation */
    .category-nav {
        top: 120px; /* Adjusted for mobile nav-header */
        padding: 1.5rem 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-btn {
        text-align: center;
        padding: 0.6rem 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 3rem 1rem 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    /* Main Content */
    .main-content {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Materials Grid */
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Material Cards */
    .bonus-item {
        padding: 1.5rem;
    }

    .item-icon {
        font-size: 2.5rem;
    }

    .bonus-item h4 {
        font-size: 1.2rem;
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Workflow Steps */
    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .workflow-step::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -1rem;
        transform: translateX(50%);
    }

    .workflow-step:last-child::after {
        display: none;
    }

    /* Spec Grid */
    .spec-grid {
        grid-template-columns: 1fr;
    }

    /* Content Preview */
    .content-preview {
        grid-template-columns: 1fr;
    }

    /* Dropdown */
    .age-dropdown-container {
        padding: 1rem;
    }

    .age-dropdown {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        padding-right: 2.5rem;
    }

    /* Age Groups Grid */
    .age-groups-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .age-group-card {
        padding: 1.5rem;
    }

    .age-icon {
        font-size: 2.5rem;
    }

    .age-title {
        font-size: 1.4rem;
    }

    /* Modal */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        border-radius: 15px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    /* Buttons */
    .launch-editor-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem 1.5rem;
    }
}

/* ===== SMARTPHONE BREAKPOINT (480px und kleiner) ===== */
@media (max-width: 480px) {
    
    /* Navigation */
    .nav-header {
        padding: 0.5rem;
    }

    .nav-header-content {
        gap: 0.75rem;
    }

    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .back-btn .back-text {
        display: none; /* Nur Icon auf sehr kleinen Screens */
    }

    /* Hero */
    .hero-section {
        padding: 2rem 0.75rem 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Main Content */
    .main-content {
        padding: 1.5rem 0.75rem;
    }

    .section {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Material Cards */
    .bonus-item {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .item-icon {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .bonus-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .bonus-item p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .item-meta {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Badges */
    .editor-badge,
    .coming-soon-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Dropdown */
    .age-dropdown-container {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .dropdown-label {
        font-size: 1rem;
    }

    .dropdown-description {
        font-size: 0.9rem;
    }

    .age-dropdown {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    /* Modal Anpassungen */
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
        max-height: 98vh;
    }

    .modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-header p {
        font-size: 1rem;
    }

    .modal-close {
        top: 0.75rem;
        right: 1rem;
        font-size: 1.75rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    /* Feature Items */
    .feature-item {
        font-size: 0.9rem;
    }

    .feature-icon {
        font-size: 1.1rem;
    }

    /* Workflow Steps */
    .workflow-step {
        padding: 0.75rem;
    }

    .step-icon {
        font-size: 1.75rem;
    }

    .step-title {
        font-size: 0.85rem;
    }

    /* Buttons */
    .launch-editor-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.75rem;
    }

    /* Tech Specs */
    .tech-specs {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .spec-item {
        padding: 0.2rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    /* Preview Sections */
    .preview-section {
        padding: 0.75rem;
    }

    .preview-section h4 {
        font-size: 0.95rem;
    }

    /* Category Navigation */
    .category-nav {
        padding: 1rem 0.75rem;
    }

    .category-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0.75rem 1rem;
    }

    .footer h3 {
        font-size: 1.1rem;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

/* ===== EXTRA SMALL SCREENS (320px und kleiner) ===== */
@media (max-width: 320px) {
    
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .bonus-item {
        padding: 1rem;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .launch-editor-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ===== LANDSCAPE MOBILE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero-section {
        padding: 2rem 1rem 3rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-height: 95vh;
    }
}

/* ===== LARGE SCREENS (1200px und größer) ===== */
@media (min-width: 1200px) {
    
    .materials-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .age-groups-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .bonus-item:hover {
        transform: none;
    }

    .age-group-card:hover {
        transform: none;
    }

    .launch-editor-btn:hover {
        transform: none;
    }

    .back-btn:hover {
        transform: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    
    :root {
        --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.4);
        --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.5);
    }

    .bonus-item {
        border: 2px solid var(--text-primary);
    }

    .age-dropdown {
        border: 2px solid var(--text-primary);
    }

    .modal-content {
        border: 2px solid var(--text-primary);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    
    .nav-header,
    .category-nav,
    .modal,
    .back-btn,
    .launch-editor-btn {
        display: none !important;
    }

    .hero-section {
        background: white !important;
        color: black !important;
        padding: 1rem !important;
    }

    .bonus-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .materials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}