/* ===== MOBILE OPTIMIZATIONS ===== */
/* Dedizierte Mobile-Optimierungen für die Hochzeits-Website */
/* Erstellt: 2026-01-19 */
/* Aktualisiert: 2026-01-19 - Feinabstimmungen */

/* ===== GLOBALE MOBILE ANPASSUNGEN ===== */
@media (max-width: 768px) {
    /* Container-Anpassungen */
    .container {
        padding: 0 1rem;
    }
    
    /* Touch-Target-Größen optimieren */
    button, .btn, a.btn, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Verbesserte Lesbarkeit */
    body {
        line-height: 1.7;
    }
    
    /* Spacing-Anpassungen */
    section {
        padding: 2rem 0;
    }
    
    /* Überschriften Mobile - Cormorant Regular 35px */
    h1, h2, h3, .section-title {
        font-family: 'Cormorant', serif;
        font-weight: 400;
        font-size: 35px;
        text-align: center;
    }
    
    /* Icons vergrößern auf 130px */
    .schedule-icon,
    .link-icon {
        height: 130px;
    }
    
    .schedule-icon img,
    .link-icon img {
        max-height: 130px;
    }
}

/* ===== NAVIGATION MOBILE ===== */
@media (max-width: 768px) {
    .header {
        height: 83px;
    }
    
    .nav-logo .logo {
        height: 60px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    .nav-menu {
        padding: 1.5rem 0;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle {
        padding: 0.5rem;
    }
}

/* ===== HERO SECTION MOBILE ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
        background-attachment: scroll; /* Parallax deaktivieren für Performance */
    }
    
    .hero-logo-img {
        height: 120px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        margin-bottom: 1.5rem;
    }
    
    /* Hero-Titel: Cormorant Regular 45px */
    .hero .hero-title,
    .hero-location .hero-title {
        font-family: 'Cormorant', serif !important;
        font-weight: 400 !important;
        font-size: 45px !important;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Hero-Datum: Baskerville Regular 25px */
    .hero .hero-date,
    .hero-location .hero-date {
        font-family: 'Baskervville', serif !important;
        font-weight: 400 !important;
        font-size: 25px !important;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-timeline {
        gap: 1.5rem;
    }
    
    .timeline-item {
        width: 100%;
        max-width: 250px;
    }
    
    /* Timeline-Bilder: 200px mit 3px Rahmen */
    .timeline-image {
        width: 200px;
        height: 200px;
        border-width: 3px;
    }
    
    .timeline-status {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }
    
    .hero-logo-img {
        height: 100px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Kleinere Geräte: Titel etwas kleiner */
    .hero .hero-title,
    .hero-location .hero-title {
        font-size: 38px !important;
    }
    
    .hero .hero-date,
    .hero-location .hero-date {
        font-size: 22px !important;
    }
    
    /* Timeline-Bilder auf kleineren Geräten etwas kleiner */
    .timeline-image {
        width: 180px;
        height: 180px;
        border-width: 3px;
    }
}

/* ===== COUNTDOWN MOBILE ===== */
@media (max-width: 768px) {
    .countdown {
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 90px;
        padding: 1rem 0.75rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 70px;
        padding: 0.75rem 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

/* ===== SCHEDULE SECTION MOBILE ===== */
@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .schedule-item {
        padding: 1.5rem;
    }
    
    .schedule-icon {
        height: 120px;
    }
    
    .schedule-icon img {
        max-height: 120px;
    }
    
    .schedule-text {
        font-size: 1.3rem;
    }
    
    .schedule-time {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .schedule-item {
        padding: 1rem;
    }
    
    .schedule-icon {
        height: 100px;
    }
    
    .schedule-icon img {
        max-height: 100px;
    }
    
    .schedule-text {
        font-size: 1.1rem;
    }
}

/* ===== RSVP FORM MOBILE ===== */
@media (max-width: 768px) {
    .rsvp-form {
        padding: 1.5rem;
    }
    
    .attendance-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-attendance {
        max-width: none;
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .person-details {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

@media (max-width: 480px) {
    .rsvp-form {
        padding: 1rem;
    }
    
    .person-details {
        padding: 0.75rem;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* ===== CONTACT SECTION MOBILE ===== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-img {
        width: 100px;
        height: 100px;
    }
}

/* ===== FAQ PAGE MOBILE ===== */
@media (max-width: 768px) {
    .faq-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .faq-hero-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .category-filters {
        padding: 0 1rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer > * {
        padding: 0 1rem 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-buttons .btn {
        width: 100%;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        height: 40vh;
        min-height: 250px;
    }
    
    .faq-hero-title {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 0.75rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
}

/* ===== GAMES PAGE MOBILE ===== */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .game-icon {
        font-size: 2.5rem;
    }
    
    .quiz-container,
    .memory-container {
        padding: 1rem;
    }
    
    .memory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .quiz-option {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .game-card {
        padding: 1rem;
    }
    
    .game-icon {
        font-size: 2rem;
    }
    
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .memory-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quiz-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* ===== GALLERY MOBILE ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .gallery-img {
        height: 180px;
    }
    
    .filter-buttons {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 250px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .lightbox-nav {
        position: static;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
        gap: 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        margin: 0;
        position: static;
    }
}

/* ===== LOCATION PAGE MOBILE ===== */
@media (max-width: 768px) {
    .parallax-hero {
        background-attachment: scroll;
        height: 60vh;
    }
    
    .parallax-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .parallax-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .location-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-img {
        height: 300px;
    }
    
    .location-highlights {
        grid-template-columns: 1fr;
    }
    
    .directions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .directions-card {
        padding: 1.5rem;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .travel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .parallax-hero {
        height: 50vh;
    }
    
    .parallax-hero .hero-title {
        font-size: 2rem;
    }
    
    .parallax-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .location-img {
        height: 250px;
    }
    
    .directions-card {
        padding: 1rem;
    }
    
    .map-placeholder {
        height: 250px;
    }
}

/* ===== GIFTS PAGE MOBILE ===== */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gift-card {
        padding: 1.5rem;
    }
    
    .gift-card.featured {
        transform: none;
    }
    
    .bank-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bank-detail .value {
        word-break: break-all;
        margin-right: 0;
    }
    
    .tracker-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
    }
    
    .ideas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gift-card {
        padding: 1rem;
    }
    
    .gift-details {
        padding: 0.75rem;
    }
    
    .gift-icon {
        font-size: 2rem;
    }
}

/* ===== LANDSCAPE MODE OPTIMIERUNGEN ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }
    
    .faq-hero,
    .parallax-hero {
        height: 80vh;
    }
    
    .timeline-image {
        width: 120px;
        height: 120px;
    }
}

/* ===== TOUCH-OPTIMIERUNGEN ===== */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    .btn,
    button,
    a.btn,
    .nav-link,
    .filter-btn,
    .quiz-option {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Hover-Effekte deaktivieren */
    .btn:hover,
    .game-card:hover,
    .contact-card:hover,
    .gift-card:hover {
        transform: none;
    }
    
    /* Active-States für Touch-Feedback */
    .btn:active,
    .game-card:active,
    .filter-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* ===== PERFORMANCE-OPTIMIERUNGEN ===== */
@media (max-width: 768px) {
    /* Animationen reduzieren */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Parallax-Effekte deaktivieren */
    .hero,
    .parallax-hero {
        background-attachment: scroll !important;
    }
    
    /* Schatten reduzieren */
    .box-shadow,
    .shadow-sm,
    .shadow-md,
    .shadow-lg {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
}

/* ===== ACCESSIBILITY MOBILE ===== */
@media (max-width: 768px) {
    /* Fokus-Indikatoren vergrößern */
    *:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 3px;
    }
    
    /* Kontrast verbessern */
    .text-light {
        color: #6B6550;
    }
    
    /* Lesbarkeit verbessern */
    p, li, span {
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
}

/* ===== FORMULARE MOBILE ===== */
@media (max-width: 768px) {
    /* iOS Zoom verhindern */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Bessere Touch-Targets für Checkboxen */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }
    
    /* Labels vergrößern */
    label {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* ===== BILDER MOBILE ===== */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Lazy Loading Placeholder */
    img[loading="lazy"] {
        background: var(--light-bg);
    }
}

/* ===== TABELLEN MOBILE ===== */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== MODALS MOBILE ===== */
@media (max-width: 768px) {
    .modal-content,
    .lightbox-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .modal-close {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

/* ===== UTILITY CLASSES MOBILE ===== */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-visible {
        display: block !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav-toggle,
    .btn,
    button,
    .filter-btn,
    .lightbox,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .main {
        margin-top: 0;
    }
}

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

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    * {
        border-width: 2px !important;
    }
    
    .btn,
    button {
        border: 2px solid currentColor !important;
    }
}

/* ===== DARK MODE SUPPORT (Optional) ===== */
@media (prefers-color-scheme: dark) {
    /* Kann später aktiviert werden, wenn gewünscht */
    /* body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    } */
}
