/* Responsive Design */

/* Large Screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header i {
        font-size: 2.5rem;
    }

    /* Grids */
    .info-grid,
    .services-grid,
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

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

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
    }

    /* Thank You Page */
    .thank-you-content h1 {
        font-size: 2.5rem;
    }

    .success-message {
        font-size: 1.1rem;
    }

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

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Legal Pages */
    .legal-header h1 {
        font-size: 2.5rem;
    }

    .legal-header i {
        font-size: 3rem;
    }

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

    /* Cookie Types */
    .cookie-types {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cookie-controls {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-body {
        padding: 1rem;
    }

    .cookie-setting {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .setting-toggle {
        align-self: flex-end;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    /* Typography */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    /* Spacing */
    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 10px;
    }

    /* Cards */
    .info-card,
    .service-card,
    .category-card,
    .review-card {
        padding: 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    /* Forms */
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group button {
        width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Cookie Banner */
    .cookie-content {
        padding: 0 10px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .cookie-buttons button {
        width: 100%;
    }

    /* Navigation Logo */
    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo img {
        width: 30px;
        height: 30px;
    }

    /* Thank You Page */
    .thank-you-section {
        padding: 6rem 0 3rem;
    }

    .thank-you-content h1 {
        font-size: 2rem;
    }

    .submission-details,
    .contact-reminder {
        padding: 1.5rem;
    }

    /* Legal Pages */
    .legal-section {
        padding: 6rem 0 3rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 0 10px;
    }

    .contact-box,
    .company-info,
    .widerruf-box,
    .warning-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Tables */
    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }

    /* Modal */
    .modal-content {
        width: 98%;
        margin: 5px;
    }

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

    .modal-body {
        padding: 1rem;
        max-height: 300px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .info-card,
    .service-card,
    .category-card,
    .review-card,
    .step-card {
        padding: 1rem;
    }

    .legal-header i {
        font-size: 2.5rem;
    }

    .success-icon {
        font-size: 3rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .modal,
    .social-links,
    .cta-button,
    .btn-primary,
    .btn-secondary,
    .btn-back,
    .btn-cookie-settings,
    .hamburger {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-banner {
        background: white !important;
        color: black !important;
        height: auto !important;
        padding: 2rem 0;
    }

    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .legal-content {
        font-size: 12pt;
        line-height: 1.4;
    }

    .legal-header {
        border-bottom: 2px solid black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-banner {
        background: #000 !important;
        color: #fff !important;
    }

    .category-card {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff;
    }

    .newsletter {
        background: #000 !important;
        color: #fff !important;
    }

    .footer {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}




/* Modern Cookie Banner Mobile */
@media (max-width: 768px) {
    .modern-cookie-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        transform: translateY(400px);
    }

    .modern-cookie-banner.show {
        transform: translateY(0);
    }

    .cookie-card {
        padding: 20px;
    }

    .cookie-content {
        padding-right: 0;
    }

    .cookie-close {
        top: 16px;
        right: 16px;
    }

    .modal-container {
        margin: 16px;
        max-width: none;
    }

    .modal-header {
        padding: 20px 20px 12px;
    }

    .modal-content {
        padding: 0 20px 20px;
    }

    .modal-footer {
        padding: 16px 20px 20px;
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        justify-content: center;
    }

    .setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .setting-control,
    .setting-status {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .modern-cookie-banner {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    .cookie-card {
        padding: 16px;
    }

    .cookie-title {
        font-size: 16px;
    }

    .cookie-description {
        font-size: 13px;
    }

    .cookie-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .modal-container {
        margin: 12px;
    }
}
