/* Reset and Base Styles */
:root {
    /* CSS Variables for dynamic mobile UI adjustment */
    --mobile-ui-offset: 15px;
    --viewport-height-difference: 0px;
    /* Color scheme for Romantica */
    --primary-color: #800020;
    --primary-hover: #5a0016;
    --text-color: #333;
    --background-color: #f8f9fa;
    --white: #fff;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-medium: 0 4px 24px rgba(0,0,0,0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    /* Enhanced Mobile Safe Area Support */
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    /* Prevent mobile zoom on input focus */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile browser UI detection and adaptation */
@supports (height: 100dvh) {
    .cart-footer {
        /* Use dynamic viewport units when available */
        height: calc(100dvh - 100vh + auto);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============ Professional Shopping Cart Styles ============ */

/* Cart Toggle Button */
.cart-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #722f37;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(114, 47, 55, 0.3);
}

.cart-toggle:hover {
    background: #4a1f25;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.4);
}

.cart-count {
    background: #fff;
    color: #722f37;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: none;
}

.cart-count.bounce {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    /* Ensure sidebar respects viewport height for mobile browsers */
    height: 100dvh;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Cart Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.cart-close:hover {
    background: #e9ecef;
    color: #333;
}

/* Cart Content */
.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    /* Ensure content takes available space above footer */
    min-height: 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Cart Item */
.cart-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background: #f8f9fa;
}

.cart-item-info {
    margin-bottom: 12px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.cart-item-description {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-style: italic;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
}

.quantity-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.quantity-btn:hover {
    background: #722f37;
    color: white;
    border-color: #722f37;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    font-weight: 600;
    color: #333;
    min-width: 24px;
    text-align: center;
}

.remove-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #dc3545;
}

.remove-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.cart-item-subtotal {
    margin-top: 12px;
    text-align: right;
    color: #722f37;
    font-weight: 600;
}

/* Cart Footer */
.cart-footer {
    border-top: 1px solid #eee;
    padding: 15px 20px;
    background: #f8f9fa;
    /* Minimal Padding für sehr kompakte Darstellung */
    padding-bottom: 0 !important;
    /* Hardware-accelerated smooth transitions für mobile Browser-Leiste */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.3s ease;
    /* Relative positioning within cart-sidebar, not global */
    position: relative;
    z-index: 10;
    /* Performance optimizations for mobile */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Prevent layout shifts during transforms */
    contain: layout style paint;
}

.cart-summary {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Delivery Info */
.delivery-info {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f0f8ff;
    border-left: 4px solid #722f37;
    border-radius: 4px;
}

.delivery-text {
    font-size: 12px;
    color: #555;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

.cart-total {
    font-size: 18px;
    font-weight: 700;
    color: #722f37;
}

.cart-item-count {
    font-size: 14px;
    color: #666;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

/* Quick Actions Buttons unter dem Gesamtbetrag */
.cart-quick-actions {
    display: flex;
    gap: 10px;
        margin-bottom: 0 !important;
    /* Mobile Browser Toolbar Support with dynamic positioning */
    position: relative;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-bottom 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    contain: layout style paint;
        /* Minimaler Abstand für maximale Raumnutzung */
        padding-bottom: env(safe-area-inset-bottom, 0px);
}

.btn-call {
    background: #28a745;
    color: white;
    flex: 1;
}

.btn-call:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-clear-list {
    background: #dc3545;
    color: white;
    flex: 1;
}

.btn-clear-list:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.cart-actions {
    display: flex;
    gap: 10px;
    /* Mobile Browser Toolbar Support */
    position: relative;
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    contain: layout style paint;
}

.cart-action-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.cart-clear-btn {
    background: #6c757d;
    color: white;
}

.cart-clear-btn:hover {
    background: #5a6268;
}

.cart-order-btn {
    background: #722f37;
    color: white;
}

.cart-order-btn:hover {
    background: #4a1f25;
    transform: translateY(-2px);
}

/* Add to Cart Button Updates */
.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #722f37;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
}

.add-to-cart-btn:hover {
    background: #4a1f25;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
}

.add-to-cart-btn.in-cart {
    background: #27ae60;
}

.add-to-cart-btn.in-cart:hover {
    background: #229954;
}

.add-to-cart-btn svg {
    width: 16px;
    height: 16px;
}

/* Cart Notifications */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification-remove {
    background: #dc3545;
}

.cart-notification-clear {
    background: #ffc107;
    color: #333;
}

.cart-notification-order {
    background: #17a2b8;
}

/* Modal Improvements for Cart Integration */
.modal-option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-option-btn:hover {
    background: #722f37;
    color: white;
    border-color: #722f37;
}

.modal-option-btn .option-name {
    font-weight: 500;
}

.modal-option-btn .option-price {
    font-weight: 700;
    color: #722f37;
}

.modal-option-btn:hover .option-price {
    color: white;
}

/* Menu Item Updates for Cart */
.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
}

.price-display {
    font-size: 18px;
    font-weight: 700;
    color: #722f37;
}

/* Animation for cart interaction feedback */
@keyframes addToCart {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.add-to-cart-btn:active {
    animation: addToCart 0.15s ease;
}

/* Responsive Design for Cart */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
        /* Use dynamic viewport height for mobile browsers */
        height: 100dvh;
    }
    
    .cart-sidebar.active {
        right: 0;
    }
    
    .cart-footer {
        /* Sehr kompaktes Padding für mobile Geräte */
        padding: 10px 20px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 25px));
        /* Keep relative positioning within sidebar */
        position: relative;
    }
    
    .cart-quick-actions {
        margin-bottom: 5px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .btn-call {
        min-height: 50px;
        font-size: 16px;
        padding: 15px 20px;
        width: 100%;
    }
    
    /* Spezielle Regel für iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .cart-footer {
            padding-bottom: calc(20px + env(safe-area-inset-bottom, 30px));
        }
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        opacity: 0;
    }
    
    .cart-notification.show {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #722f37, #4a1f25);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    max-width: 100%;
}

.header-logo {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Footer */
.footer {
    background: #4a1f25;
    color: #fff;
    padding: 1.5rem 0 1rem 0;
    text-align: center;
    margin-top: 3rem;
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 1rem;
}
.footer-link {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #ffb347;
}
.footer-separator {
    color: #fff;
    opacity: 0.5;
}

/* Main Action Buttons */

.wishlist-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    backdrop-filter: blur(10px);
}

.wishlist-toggle:hover,
.wishlist-toggle:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    outline: none;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.welcome-content h2 {
    color: #722f37;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: 'Georgia', serif;
}

.welcome-content p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}

.welcome-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-text {
    color: #722f37;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hide welcome section when not on Startseite */
.welcome-section.hidden {
    display: none;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.welcome-content h2 {
    color: #722f37;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: 'Georgia', serif;
}

.welcome-content p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.welcome-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hide welcome section when not on Startseite */
.welcome-section.hidden {
    display: none;
}

/* Search Container - Separate positioning */
.search-container {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #722f37;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Controls */
.controls {
    margin-bottom: 2rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 44px;
}

.category-btn:hover,
.category-btn:focus {
    background: #f8f9fa;
    border-color: #722f37;
    outline: none;
}

.category-btn.active {
    background: #722f37;
    color: white;
    border-color: #722f37;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Menu Item Cards */
.menu-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #722f37;
    margin: 0;
    flex: 1;
}

.item-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #c53030;
    margin-left: 1rem;
}

.select-hint {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-left: 1rem;
}

.item-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.item-actions {
    display: flex;
    justify-content: flex-end;
}

.size-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

@media (max-width: 480px) {
    .size-actions {
        flex-wrap: wrap;
    }
}

.add-btn {
    background: #722f37;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox.checked {
    background: white;
    border-color: white;
}

.checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: #722f37;
    font-size: 12px;
    font-weight: bold;
}

.size-btn {
    min-width: 110px;
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
    flex: 1;
    max-width: 140px;
}

.add-btn:hover,
.add-btn:focus {
    background: #4a1f25;
    transform: scale(1.05);
    outline: none;
}

.add-btn.added {
    background: #c53030;
}

.add-btn.added:hover {
    background: #9b2c2c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Wishlist Sidebar */
.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wishlist-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 400px;
    max-width: 90vw;
    background: white;
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    padding-bottom: env(safe-area-inset-bottom);
}

.wishlist-sidebar.active {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .wishlist-sidebar {
        width: 100vw;
        max-width: 100vw;
    }
}

.wishlist-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.wishlist-header h2 {
    margin: 0;
    color: #722f37;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
    border-radius: 4px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover,
.close-btn:focus {
    background: #e9ecef;
    outline: none;
}

.wishlist-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.wishlist-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Wishlist Item */
.wishlist-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wishlist-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.wishlist-item-name {
    font-weight: 600;
    color: #722f37;
    margin: 0;
    flex: 1;
}

.wishlist-item-price {
    color: #c53030;
    font-weight: bold;
    margin-left: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #722f37;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover,
.quantity-btn:focus {
    background: #4a1f25;
    outline: none;
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.quantity-display {
    background: white;
    border: 1px solid #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
    font-weight: 600;
}

.remove-item-btn {
    background: #c53030;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: auto;
    transition: all 0.2s ease;
}

.remove-item-btn:hover,
.remove-item-btn:focus {
    background: #9b2c2c;
    outline: none;
}

/* Wishlist Footer */
.wishlist-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    margin-top: auto;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 20px));
    min-height: calc(120px + env(safe-area-inset-bottom, 20px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.total-price {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #722f37;
}

.wishlist-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    margin-bottom: env(safe-area-inset-bottom, 0px);
}

/* Buttons */
.btn {
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:focus {
    outline: 3px solid rgba(114, 47, 55, 0.3);
}

.btn-primary {
    background: #722f37;
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #4a1f25;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #5a6268;
}

.btn-danger {
    background: #c53030;
    color: white;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #9b2c2c;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .wishlist-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    .menu-item {
        padding: 1rem;
    }
    
    .wishlist-sidebar {
        width: 100vw;
        max-width: 100vw;
    }
    
    .wishlist-actions {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Enhanced Mobile Browser Bar Protection */
    .cart-footer,
    .cart-quick-actions,
    .cart-actions,
    .restaurant-actions {
        /* Zusätzlicher Schutz vor mobilen Browser-Leisten */
        margin-bottom: calc(10px + env(safe-area-inset-bottom));
        position: relative;
        z-index: 15;
    }
    
    /* Spezielle Behandlung für iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .cart-footer,
        .cart-quick-actions,
        .cart-actions {
            padding-bottom: calc(20px + env(safe-area-inset-bottom));
        }
    }
}

/* Focus and Accessibility */
button:focus,
input:focus {
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    animation: fadeIn 0.3s ease-out;
}

/* Restaurant Info Card Styles */
.restaurant-info-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #722f37, #4a1f25);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.restaurant-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.restaurant-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.restaurant-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.restaurant-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .restaurant-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.info-icon {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffd700;
    flex-shrink: 0;
    min-width: 100px;
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.info-content p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.info-content a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.info-content a:hover {
    text-decoration: underline;
}

/* Delivery Info Box */
.delivery-info-box {
    background: linear-gradient(135deg, #722f37, #8b3a42);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
    text-align: center;
}

.delivery-header h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.delivery-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.delivery-time {
    font-size: 1.1rem;
    margin: 0;
}

.delivery-phone {
    font-size: 1.2rem;
    margin: 0;
    font-weight: bold;
}

.delivery-phone a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-bottom-color 0.3s ease;
}

.delivery-phone a:hover {
    border-bottom-color: #fff;
}

.delivery-prices {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.delivery-prices p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.delivery-prices p:first-child {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.restaurant-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    /* Enhanced Mobile Safe Area Support */
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    /* Hardware-accelerated smooth transitions für mobile Browser-Leiste */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    /* Performance optimizations for mobile */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Prevent layout shifts during transforms */
    contain: layout style paint;
}

@media (max-width: 768px) {
    .delivery-info-box {
        padding: 1.2rem;
        margin: 1rem 0;
    }
    
    .delivery-header h3 {
        font-size: 1.2rem;
    }
    
    .delivery-phone {
        font-size: 1.1rem;
    }
    
    .delivery-prices p {
        font-size: 0.9rem;
    }

    .restaurant-actions {
        grid-template-columns: 1fr;
        /* Zusätzlicher Abstand auf mobile für untere Leiste */
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        margin-bottom: 1rem;
    }
}

.restaurant-call-btn {
    background: #c53030 !important;
}

.restaurant-call-btn:hover {
    background: #9b2c2c !important;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 768px) {
    .restaurant-info-card {
        padding: 1.5rem;
    }
    
    .restaurant-header h2 {
        font-size: 1.6rem;
    }
    
    .restaurant-tagline {
        font-size: 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
}

/* Wishlist Item Description */
.wishlist-item-description {
    color: #666;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    line-height: 1.3;
    font-style: italic;
}

.wishlist-item-subtotal {
    margin-top: 0.5rem;
    text-align: right;
}

.subtotal-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #722f37;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-logo {
        width: 4rem;
        height: 4rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .welcome-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .welcome-content h2 {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .wishlist-sidebar,
    .wishlist-overlay,
    .wishlist-toggle {
        display: none;
    }
}

/* Subcategory Filters */
.subcategory-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.subcategory-filters::-webkit-scrollbar {
    display: none;
}

.subcategory-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 40px;
    color: #722f37;
}

.subcategory-btn:hover,
.subcategory-btn:focus {
    background: #e9ecef;
    border-color: #722f37;
    outline: none;
}

.subcategory-btn.active {
    background: #722f37;
    color: white;
    border-color: #722f37;
}

/* Pizza Info Box */
.pizza-info-box {
    margin: 1rem 0;
    padding: 1.5rem;
    background-color: #722f37;
    color: white;
    border-radius: 8px;
    text-align: center;
}

/* Salat Info Box */
.salat-info-box {
    margin: 1rem 0;
    padding: 1.5rem;
    background-color: #722f37;
    color: white;
    border-radius: 8px;
    text-align: center;
}

.pizza-info-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.salat-info-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.pizza-info-subtitle {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: bold;
}

.salat-info-subtitle {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: bold;
}

.pizza-info-prices {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

/* Unterkategorie-Überschriften */
.subcategory-header {
    grid-column: 1 / -1;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #722f37;
}

.subcategory-header h3 {
    color: #722f37;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal für Pizza-Größenauswahl */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    margin: 10vh auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}
.modal .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #722f37;
    cursor: pointer;
    background: none;
    border: none;
}
#modalSizeButtons button {
    display: block;
    width: 100%;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #722f37;
    background: #fff;
    color: #722f37;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#modalSizeButtons button:hover {
    background: #722f37;
    color: #fff;
}

/* Kinderteller Sauce-Optionen */
.sauce-option-btn {
    text-align: left !important;
    padding: 1rem !important;
}

.sauce-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sauce-name {
    font-weight: 600;
    font-size: 1rem;
}

.sauce-price {
    font-weight: 700;
    color: #722f37;
}

.sauce-allergens {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

/* Category Info Box */
.category-info-box {
    grid-column: 1 / -1;
    background: #722f37;
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.info-box-content {
    max-width: 600px;
    margin: 0 auto;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.info-text {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-extras {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.extras-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.extras-prices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.extra-item {
    color: #fff;
}

.extra-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
}

@media (max-width: 768px) {
    .search-container {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .search-input {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
    
    .category-info-box {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .info-title {
        font-size: 1.3rem;
    }
    
    .info-text {
        font-size: 1rem;
    }
    
    .extras-prices {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .extra-separator {
        display: none;
    }
}

/* Dressing-Modal Styles */
.size-container {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.size-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.size-container h4 {
    margin: 0 0 0.75rem 0;
    color: #722f37;
    font-size: 1.1rem;
}

.dressing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.dressing-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #722f37;
    background: #fff;
    color: #722f37;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.dressing-btn:hover {
    background: #722f37;
    color: #fff;
    transform: translateY(-1px);
}

.sauce-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #722f37;
    background: #fff;
    color: #722f37;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.sauce-btn:hover {
    background: #722f37;
    color: #fff;
    transform: translateY(-1px);
}

#modalDressingButtons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

#modalDressingButtons .dressing-btn {
    width: 100%;
    margin: 0;
}

#modalSauceButtons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

#modalSauceButtons .sauce-btn {
    width: 100%;
    margin: 0;
}

@media (max-width: 480px) {
    .dressing-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .dressing-btn,
    .sauce-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
}

/* Additives and Allergens Table */
.additives-allergens-table {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    grid-column: 1 / -1; /* Takes full width in grid */
}

.additives-allergens-table .table-header h2 {
    color: #722f37;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.tables-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.additives-table,
.allergens-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.additives-table h3,
.allergens-table h3 {
    color: #722f37;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.additives-table table,
.allergens-table table {
    width: 100%;
    border-collapse: collapse;
}

.additives-table td,
.allergens-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.additives-table td:first-child,
.allergens-table td:first-child {
    font-weight: bold;
    color: #722f37;
    text-align: center;
    width: 2rem;
}

.additives-table td:nth-child(2),
.allergens-table td:nth-child(2) {
    text-align: center;
    width: 1rem;
    color: #722f37;
}

.additives-table tr:last-child td,
.allergens-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .tables-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .additives-allergens-table {
        padding: 1rem;
    }
    
    .additives-allergens-table .table-header h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .additives-table td,
    .allergens-table td {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
}

/* Info Button - Roter Kreis unten rechts */
.info-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #722f37;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: serif;
    font-weight: bold;
    font-size: 20px;
    color: #ffffff; /* Weiß */
}

.info-button:hover {
    background: #4a1f25;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(114, 47, 55, 0.6);
}

.info-button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .info-button {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Info Modal Styles */
.info-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.info-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-modal-header {
    background: #722f37;
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.info-modal-header h2 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.info-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.info-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.info-modal-body {
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 80px);
    width: 100%;
}

.info-modal .restaurant-info-card {
    border: none;
    border-radius: 0 0 15px 15px;
    box-shadow: none;
    margin: 0;
    height: auto;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.info-modal .restaurant-header {
    display: none; /* Da wir schon einen Header im Modal haben */
}

.info-modal .restaurant-details {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 15px;
}

.info-modal .delivery-info-box {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.info-modal .restaurant-actions {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .info-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .info-modal-header {
        padding: 15px;
    }
    
    .info-modal-header h2 {
        font-size: 20px;
    }
}

/* ============ Impressum & Datenschutz Styles ============ */

/* Navigation Button (Speisekarte/Home Button) */
.nav-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
    text-decoration: none;
    color: var(--white);
}

/* Legal Pages Container */
.legal-container {
    max-width: 700px;
    margin: 3rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    min-height: calc(100vh - 6rem);
}

.legal-container h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.legal-container h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.legal-container h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.legal-container h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.legal-container p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: justify;
}

.legal-container a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-container a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.legal-container ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .nav-button {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .legal-container {
        margin: 4rem 1rem 1rem 1rem;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .legal-container h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .legal-container h2 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .legal-container h3 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.8rem 0;
    }
    
    .legal-container h4 {
        font-size: 1rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .legal-container ul {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-button {
        position: relative;
        top: auto;
        left: auto;
        margin: 1rem;
        display: block;
        text-align: center;
        width: calc(100% - 2rem);
        box-sizing: border-box;
    }
    
    .legal-container {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 6px;
    }
    
    .legal-container h1 {
        font-size: 1.6rem;
    }
    
    .legal-container h2 {
        font-size: 1.2rem;
        padding-left: 0.8rem;
        border-left: 3px solid var(--primary-color);
    }
}
    
    .info-modal-body {
        max-height: calc(95vh - 70px);
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
    }
}