/**
 * Responsive Stile für die Ferienwohnung Stauffenberg Website
 */

/* Tablets (landscape) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .main-navigation ul {
        gap: var(--spacing-md);
    }
}

/* Tablets (portrait) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero {
        height: 70vh;
    }
    
    .booking-grid,
    .garden-pool-grid,
    .location-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .garden-pool-grid {
        gap: var(--spacing-lg);
    }
    
    .booking-info {
        order: 2;
    }
    
    .booking-form {
        order: 1;
        margin-bottom: var(--spacing-lg);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
	.logo {
		font-size: 1.2rem;
	}
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: white;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        position: relative;
        z-index: 1002;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99; /* Niedriger als das Menü und die Links */
    }
    
    .overlay.active {
        display: block;
    }
    
    /* Mobile Menu Toggle Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
	.cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-modal-content {
        padding: var(--spacing-md);
    }
    
    .cookie-setting-item {
        flex-direction: column;
    }
    
    .cookie-setting-info {
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .gallery-nav {
        flex-direction: column;
    }
    
    .gallery-nav-item,
    .season-tab {
        margin: 0 0 10px;
    }
    
    .error-404 h1 {
        font-size: 4rem;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .btn {
        display: block;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        min-height: 400px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .hero {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    .section {
        padding: 10pt 0;
    }
}