[v-cloak] { display: none; }
:root { --primary-color: #0d6efd; --primary-color-rgb: 13, 110, 253; }

/* Typography: Inter/Helvetica Neue für maximale Lesbarkeit */
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Roboto', 'Arial', sans-serif; 
    background-color: #f8f9fa; 
    padding-bottom: 120px; 
}

/* HERO HEADER */
.hero-header { 
    background-color: var(--primary-color);
    background-size: cover; 
    background-position: center; 
    color: white; 
    padding: 40px 20px; 
    border-radius: 0 0 12px 12px; 
    margin-bottom: 15px; 
    position:relative; 
    min-height: 200px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    overflow: hidden;
}
.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.6); 
    z-index: 1; 
}
.hero-content { 
    position: relative; 
    z-index: 5; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%; 
    max-width: 900px; 
}
.hero-logo { 
    height: 90px; 
    width: auto; 
    max-width: 200px; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    object-fit: contain; 
    background: white; 
    padding: 8px; 
}
@media (min-width: 768px) { 
    .hero-content { 
        flex-direction: row; 
        text-align: left; 
        justify-content: flex-start; 
    } 
    .hero-logo { 
        margin-bottom: 0; 
        margin-right: 25px; 
        height: 110px; 
    } 
}

/* UPSELL BOX */
.upsell-box {
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 12px 15px;
    animation: fadeIn 0.3s ease-in;
}
.upsell-thumb {
    width: 50px;
    height: 50px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 12px;
    border: 1px solid #eee;
    background-color: #f8f9fa;
}
.upsell-icon-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.2rem;
    color: #666;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SUCHLEISTE */
.search-container {
    padding: 0 20px;
}
.search-container .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.search-container .input-group-text {
    border: none;
    background: white;
    color: #666;
    padding: 12px 15px;
}
.search-container .form-control {
    border: none;
    box-shadow: none;
    padding: 12px 15px;
}
.search-container .form-control:focus {
    border-color: transparent;
    box-shadow: none;
}
.search-container .input-group:focus-within {
    outline: 3px solid #000;
    outline-offset: 2px;
    border-radius: 8px;
}
.search-container .btn {
    border: none;
    padding: 12px 15px;
    background: white;
    color: #666;
}
.search-container .btn:hover {
    color: #000;
    background: #f8f9fa;
}

/* KATEGORIE NAV LEISTE */
.category-nav {
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    padding: 10px 20px;
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch; 
    scroll-behavior: smooth;
    margin-bottom: 20px;
}
.category-nav::-webkit-scrollbar { display: none; } 
@media (min-width: 768px) {
    .category-nav {
        justify-content: center;
    }
} 
.story-item {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer;
    transition: transform 0.1s;
}
.story-item:active { transform: scale(0.95); }
.story-circle {
    width: 70px; 
    height: 70px; 
    border-radius: 12px;
    background: #fff; 
    padding: 3px; 
    border: 2px solid var(--primary-color);
    margin-bottom: 5px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.story-img {
    width: 100%; 
    height: 100%; 
    border-radius: 8px;
    object-fit: cover; 
    background: #eee;
}
.story-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.4rem;
}
.story-label { 
    font-size: 0.8em; 
    font-weight: 600; 
    color: #333; 
}

/* PRODUKT KARTE */
.menu-card { 
    border: none; 
    border-radius: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    background: white; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    cursor: pointer; 
    transition: transform 0.2s;
}
.menu-card:active { transform: scale(0.98); }
.card-img-top { 
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: contain; 
    background-position: center; 
    background-repeat: no-repeat;
    border-radius: 8px 8px 0 0;
    background-color: #f8f9fa;
}
.card-body { 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.price-badge { 
    background: #f1f3f4; 
    color: #333; 
    font-weight: bold; 
    padding: 5px 10px; 
    border-radius: 8px; 
    font-size: 0.9em; 
    align-self: flex-start; 
    margin-top: auto; 
}

/* DETAIL MODAL FIX (SCROLLING) */
.modal-bottom-sheet .modal-dialog {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    margin: 0; 
    max-width: 100%; 
    pointer-events: none;
}
@media (min-width: 768px) {
    .modal-bottom-sheet .modal-dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        max-width: 900px;
        width: 90%;
        margin: 0 auto;
    }
}
.modal-bottom-sheet .modal-content {
    border-radius: 16px 16px 0 0; 
    border: none; 
    max-height: 92vh; 
    overflow: hidden;
    pointer-events: auto; 
    display: flex; 
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
}
/* Mobile: Scrollbares Modal - Gesamter Inhalt scrollt gemeinsam */
@media (max-width: 767px) {
    .modal-bottom-sheet .modal-content {
        height: 100dvh !important; /* Volle Höhe inkl. URL-Leiste */
        max-height: 100dvh !important;
        overflow-y: auto !important; /* Erlaubt vertikales Scrollen */
        -webkit-overflow-scrolling: touch; /* Weiches Scrollen auf iPhone */
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 5000;
        background: white;
        display: block !important; /* Block statt Flex, damit alles fließt */
        padding-bottom: 120px; /* Platz für den Button unten */
    }
    /* Verhindere Body-Scroll wenn Modal offen ist (Bootstrap fügt .modal-open hinzu) */
    body.modal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
}
@media (min-width: 768px) {
    .modal-bottom-sheet .modal-content {
        border-radius: 16px;
        max-height: 90vh;
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
    }
}

/* Detail Wrapper für Grid-Layout */
.detail-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
}
@media (max-width: 767px) {
    .detail-wrapper {
        display: block !important; /* Block statt Grid auf Mobile, damit alles fließt */
        width: 100%;
        height: auto;
    }
}
@media (min-width: 768px) {
    .detail-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        height: 100%;
    }
}

/* Bild-Container */
.detail-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
}
@media (max-width: 767px) {
    .detail-image-container {
        position: relative !important; /* Scrollt mit weg, nicht fixiert */
        height: 300px !important; /* Feste Höhe für das Bild */
        width: 100%;
        flex-shrink: 0;
        z-index: 1;
        overflow: hidden;
    }
}
@media (min-width: 768px) {
    .detail-image-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
}
.detail-img { 
    width: 100%; 
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover; 
    border-radius: 16px 16px 0 0; 
    background-color: #f8f9fa;
    max-height: 40vh;
    display: block;
}
@media (max-width: 767px) {
    .detail-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0; /* Keine runden Ecken oben, da es mit scrollt */
        max-height: none;
        aspect-ratio: auto;
    }
}
@media (min-width: 768px) {
    .detail-img {
        border-radius: 16px 0 0 16px;
        max-height: none;
        height: 100%;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
}
.detail-image-container .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    opacity: 0.9;
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
    border: none;
    cursor: pointer;
}

/* Content-Container */
.detail-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
@media (max-width: 767px) {
    .detail-content-wrapper {
        width: 100%;
        height: auto;
        overflow: visible !important; /* Kein eigenes Scrolling */
        position: relative;
        z-index: 2;
        background: white;
        border-radius: 20px 20px 0 0; /* Runde Ecken oben */
        margin-top: -20px; /* Leichter Überlappungseffekt über das Bild */
        padding-top: 20px; /* Kompensiert den negativen Margin */
    }
}
@media (min-width: 768px) {
    .detail-content-wrapper {
        width: 100%;
        height: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }
}
.detail-content-wrapper .detail-header { 
    padding: 20px; 
    flex: 1;
    overflow-y: auto;
}
.detail-content-wrapper .modal-footer {
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid #eee;
}
.config-section { 
    background: #f8f9fa; 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 15px; 
}

/* MODALS - Clean Design */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.modal-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    padding: 20px;
}
.modal-header .modal-title {
    font-weight: 700;
    color: #333;
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    border-top: 1px solid #eee;
    padding: 20px;
}

/* Buttons - Flat Design */
.btn {
    border-radius: 8px;
    font-weight: 600;
    box-shadow: none;
    transition: all 0.2s;
}
.btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.btn-primary {
    background-color: var(--primary-color);
    border: none;
}
.btn-dark {
    background-color: #1a1a1a;
    border: none;
}
.btn-dark:hover {
    background-color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Profile & Login Modals - Schwarz-Weiß Design */
#profileModal .btn-primary,
#loginModal .btn-primary {
    background-color: #000;
    border: none;
    color: white;
}
#profileModal .btn-primary:hover,
#loginModal .btn-primary:hover {
    background-color: #333;
    color: white;
}
#profileModal .btn-outline-primary,
#loginModal .btn-outline-primary {
    border-color: #000;
    color: #000;
    background-color: transparent;
}
#profileModal .btn-outline-primary:hover,
#loginModal .btn-outline-primary:hover {
    background-color: #000;
    color: white;
    border-color: #000;
}
#profileModal .btn-outline-danger,
#loginModal .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}
#profileModal .btn-outline-danger:hover,
#loginModal .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Links in Modals - Schwarz */
#profileModal a,
#loginModal a,
#profileModal .btn-link,
#loginModal .btn-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}
#profileModal a:hover,
#loginModal a:hover,
#profileModal .btn-link:hover,
#loginModal .btn-link:hover {
    color: #333;
    text-decoration: underline;
}

/* Modal Headers - Schwarz */
#profileModal .modal-title,
#loginModal .modal-title {
    color: #000;
    font-weight: 700;
}

/* Form Labels in Modals */
#profileModal .form-label,
#loginModal .form-label {
    color: #333;
    font-weight: 600;
}

/* Inputs - Flat Design */
.form-control, .form-select, .form-input, textarea, select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"] {
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: none;
}
.form-control:focus, .form-select:focus, .form-input:focus, textarea:focus, select:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus, input[type="password"]:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Checkboxen & Radio-Buttons - Schwarz-Weiß Design */
input[type="checkbox"],
input[type="radio"],
.form-check-input {
    accent-color: #000;
    cursor: pointer;
    width: 1.1em;
    height: 1.1em;
}

/* Form Check Labels */
.form-check-label {
    cursor: pointer;
}

/* Form Switch (Toggle) - Schwarz-Weiß */
.form-check-input:checked {
    background-color: #000;
    border-color: #000;
}
.form-check-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

/* Form Switch (Bootstrap Toggle Switches) */
.form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:checked {
    background-color: #000;
    border-color: #000;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

/* CART & UI */
.sticky-cart { 
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 95%; 
    max-width: 600px; 
    background: #1a1a1a; 
    color: white; 
    border-radius: 12px; 
    padding: 16px 24px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer;
    transition: all 0.2s;
}
.sticky-cart:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.sticky-cart.hidden { display: none; }
.check-row { 
    display: flex; 
    align-items: center; 
    margin-bottom: 5px; 
    gap: 8px; 
}
.check-row input:not(:checked) + label { 
    text-decoration: line-through; 
    color: #888; 
    opacity: 0.7; 
}
.success-screen { 
    padding: 20px; 
    max-width: 600px; 
    margin: 0 auto; 
}
.stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
}
.step-line {
    flex: 1;
    min-width: 20px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}
.step-line.active,
.step-line.completed {
    background-color: var(--primary-color);
}
.step-item.step { 
    text-align: center; 
    background: #f8f9fa; 
    padding: 0 10px; 
}
.step-icon { 
    width: 30px; 
    height: 30px; 
    background: #ddd; 
    color: white; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 5px; 
    font-size: 0.8em; 
}
.step.active .step-icon { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.step.done .step-icon { background: #00e676; color: white; }
.step.inactive .step-icon { background: #ddd; color: #999; }

/* Pulsieren des aktiven Schritts (Küche) */
@keyframes pulse-animation {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0); }
}
.step-icon.pulsing {
  animation: pulse-animation 2s infinite;
  background-color: var(--primary-color) !important;
  color: white !important;
  border: 2px solid var(--primary-color);
}
.status-card { 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    text-align: center; 
    margin-bottom: 20px; 
}
.big-time { 
    font-size: 3rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    line-height: 1; 
    margin: 10px 0; 
}
.receipt { 
    background: white; 
    border-radius: 12px; 
    padding: 20px; 
    border: 1px dashed #ccc; 
    margin-bottom: 30px; 
}
.receipt-item { 
    border-bottom: 1px solid #eee; 
    padding: 10px 0; 
    font-size: 0.9em; 
}
.delivery-toggle { 
    display: flex; 
    gap: 10px; 
    background: #eee; 
    padding: 5px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
}
.delivery-toggle div { 
    flex: 1; 
    text-align: center; 
    padding: 10px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: all 0.2s; 
}
.delivery-toggle div.active { 
    background: white; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    color: #000; 
}
.form-label { 
    font-size: 0.9em; 
    font-weight: bold; 
    margin-bottom: 4px; 
    display: block; 
}
.form-input { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    margin-bottom: 10px; 
}
.form-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
    outline: none;
}
.closed-banner { 
    background: #d32f2f; 
    color: white; 
    text-align: center; 
    padding: 10px; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 2000; 
    font-weight: bold; 
}
.info-btn { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(255,255,255,0.2); 
    color: white; 
    border-radius: 8px; 
    width: 35px; 
    height: 35px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 10; 
}
.user-btn {
    position: absolute;
    top: 20px;
    right: 65px;
    background: rgba(0,0,0,0.3);
    color: white;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.user-btn:hover {
    background: rgba(0,0,0,0.5);
}
.user-btn i {
    color: white;
    font-size: 1.2rem;
}
.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.hours-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 5px 0; 
    border-bottom: 1px solid #eee; 
}
.hours-row.today { 
    font-weight: bold; 
    color: var(--primary-color); 
}
.category-header { 
    border-left: 4px solid var(--primary-color); 
    padding-left: 10px; 
    margin-top: 10px; 
}
.footer-link { 
    color: #666; 
    text-decoration: none; 
    margin: 0 10px; 
    font-size: 0.85em; 
    cursor: pointer; 
}

/* INFO SECTION / FOOTER - Clean Design */
.info-section {
    background: white;
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid #eee;
}
.info-title {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-section p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}
.info-section a {
    color: #333;
    text-decoration: none;
}
.info-section a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.map-frame {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 8px;
    margin-top: 15px;
    background: #eee;
}
.hours-list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}
.hours-list-item.active {
    font-weight: 700;
    color: #333;
}
.payment-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    opacity: 0.5;
    filter: grayscale(100%);
}
.payment-icons i {
    font-size: 1.5rem;
    color: #666;
}

/* Info Modal (Hours Modal) - Schwarz-Weiß Design */
#hoursModal .fa-cc-visa,
#hoursModal .fa-cc-mastercard,
#hoursModal .fa-cc-paypal,
#hoursModal .fa-google-pay,
#hoursModal .fa-apple-pay,
#hoursModal .fa-money-bill-wave {
    color: #333 !important;
    filter: grayscale(100%);
    opacity: 0.7;
}
#hoursModal .btn-outline-dark {
    border-color: #000;
    color: #000;
    background-color: transparent;
}
#hoursModal .btn-outline-dark:hover {
    background-color: #000;
    color: white;
    border-color: #000;
}
#hoursModal h6 {
    color: #333;
    font-weight: 700;
}
#hoursModal .text-muted {
    color: #666 !important;
}

/* Bestellhistorie - Schwarz-Weiß Design */
#profileModal .card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 12px;
}
#profileModal .card-body {
    padding: 16px;
}
#profileModal .badge {
    background-color: white;
    color: #000;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}
#profileModal .badge.bg-warning,
#profileModal .badge.bg-info,
#profileModal .badge.bg-success {
    background-color: white !important;
    color: #000 !important;
    border: 1px solid #ddd;
}
#profileModal .btn-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    padding: 0;
}
#profileModal .btn-link:hover {
    color: #333;
    text-decoration: underline;
}
#profileModal .border-top {
    border-top: 1px solid #f0f0f0 !important;
}

/* Nav Tabs in Profil - Schwarz-Weiß */
#profileModal .nav-tabs {
    border-bottom: 1px solid #eee;
}
#profileModal .nav-link {
    color: #666;
    border: none;
    border-bottom: 2px solid transparent;
}
#profileModal .nav-link:hover {
    color: #000;
    border-bottom-color: #ddd;
}
#profileModal .nav-link.active {
    color: #000;
    background-color: transparent;
    border-bottom-color: #000;
    font-weight: 700;
}

/* Accessibility - High-Contrast Focus */
:focus-visible {
    outline: 3px solid #000 !important;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Bei schwarzem Hintergrund muss der Fokus weiß sein */
.btn-dark:focus-visible,
.sticky-cart:focus-visible,
.bg-dark :focus-visible,
[style*="background.*#000"]:focus-visible,
[style*="background.*#1a1a1a"]:focus-visible {
    outline-color: #fff !important;
}

/* Focus für interaktive Elemente */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.menu-card:focus-visible {
    outline: 3px solid #000 !important;
    outline-offset: 2px;
}

/* Visually Hidden für Screenreader */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip Link für Tastatur-Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}
.skip-link:focus {
    top: 0;
}

/* Animation für Menü-Details */
.animate-fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(-5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Pulse Animation für Bewertungs-Danke */
@keyframes pulse { 
    0% { opacity: 0.7; transform: scale(1); } 
    50% { opacity: 1; transform: scale(1.05); } 
    100% { opacity: 0.7; transform: scale(1); } 
}

/* Desktop Modal Fix: Zentriert und 2-Spalten-Layout */
@media (min-width: 992px) {
    /* 1. Reset Positionierung: Weg vom unteren Rand, hin zur Mitte */
    .modal-bottom-sheet .modal-dialog {
        position: fixed !important;
        top: 50% !important;
        bottom: auto !important; 
        left: 50% !important; 
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        max-width: 900px !important;
        width: 90% !important;
        pointer-events: auto;
    }

    /* 2. Modal Content: Grid-Layout für den Inhalt (Bild Links, Text Rechts) */
    .modal-bottom-sheet .modal-content {
        display: grid !important;
        grid-template-columns: 45% 55%; /* Bild etwas schmaler als Text */
        grid-template-rows: 1fr auto;   /* Textbereich wächst, Footer fix */
        grid-template-areas: 
            "image content"
            "image footer";
        max-height: 85vh; /* Damit es auf den Screen passt */
        overflow: hidden;
        border-radius: 16px !important;
    }

    /* 3. Detail Wrapper: Grid-Container */
    .detail-wrapper {
        display: contents !important; /* Lässt Grid durch die Wrapper-Ebene durch */
    }

    /* 4. Bild-Bereich (Links) */
    .detail-image-container {
        grid-area: image;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .detail-img {
        height: 100% !important; /* Bild füllt die ganze Höhe */
        width: 100% !important;
        object-fit: cover;
        border-radius: 16px 0 0 16px !important; /* Runde Ecken nur links */
        aspect-ratio: auto !important; /* Überschreibe aspect-ratio für volle Höhe */
    }

    /* 5. Content-Wrapper: Grid für Header und Footer */
    .detail-content-wrapper {
        grid-area: content;
        display: grid;
        grid-template-rows: 1fr auto;
        grid-template-areas: 
            "header"
            "footer";
        height: 100%;
        overflow: hidden;
    }

    /* 6. Text-Bereich (Rechts Oben) */
    .detail-header {
        grid-area: header;
        overflow-y: auto; /* Scrollbar nur für den Text, wenn nötig */
        padding: 30px !important;
    }

    /* 7. Footer (Rechts Unten) */
    .detail-content-wrapper .modal-footer {
        grid-area: footer;
        border-top: 1px solid #eee;
        padding: 20px 30px !important;
        background: white;
        margin-top: 0 !important;
    }

    /* 8. Close Button etwas verschieben */
    .detail-image-container .btn-close {
        top: 15px !important;
        left: 15px !important; /* Auf Desktop links oben im Bild */
        right: auto !important;
    }
}

/* Custom Styling für den Toggle Switch */
.form-check-input[type="checkbox"] {
    /* Standard-Style vom Browser entfernen */
    appearance: none !important;
    -webkit-appearance: none !important;
    
    /* Die "Bahn" (Hintergrund) */
    position: relative;
    width: 52px !important;
    height: 30px !important;
    background-color: #e2e8f0;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    outline: none;
    vertical-align: middle;
    margin-top: 0;
}

/* Der Kreis (Knob) */
.form-check-input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); /* Optional: Den Kreis etwas weicher animieren */
}

/* AKTIV-Zustand (Schwarz erzwingen) */
.form-check-input[type="checkbox"]:checked {
    background-color: #000000 !important; /* Festes Schwarz */
    border-color: #000000 !important;
}

/* Kreis verschieben bei Aktiv */
.form-check-input[type="checkbox"]:checked::after {
    transform: translateX(22px);
}

/* ZWINGT den Menü-Switch auf Schwarz */
#menu-switch-black:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important; /* Entfernt roten Glüh-Effekt */
}

/* Verhindert roten Rand beim Klicken (Fokus) */
#menu-switch-black:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1) !important;
}

/* Stellt sicher, dass der Kreis (Knob) weiß bleibt */
#menu-switch-black:checked::after {
    background-color: #ffffff !important;
    transform: translateX(22px); /* Wichtig für die Animation */
}

/* --- SONDERANGEBOTE SLIDER --- */
.special-offers-container {
    margin: 0 -15px; /* Damit es bis an den Rand des Bildschirms geht auf Mobile */
}
.special-offers-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 15px 15px 15px;
    padding-inline: 7.5%; /* Fix padding for center-aligning the first card */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.special-offers-slider::-webkit-scrollbar {
    display: none;
}
.special-offer-card {
    flex: 0 0 85%; /* Using 85% width combined with 7.5% padding centers it perfectly (85 + 7.5 + 7.5 = 100) */
    scroll-snap-align: center; /* Fix snap align to center rather than start */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #dc3545;
}
.offer-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    font-size: 0.85rem;
    border-bottom-right-radius: 12px;
}
.offer-img-wrapper {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.special-offer-card .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Pagination Dots */
.offer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e9ecef;
    transition: all 0.3s ease;
}
.offer-dot.active {
    background-color: #dc3545 !important;
    width: 24px;
    border-radius: 4px;
}

/* Desktop Ansicht */
@media (min-width: 768px) {
    .special-offers-slider {
        padding-inline: 0; /* Reset für Desktop */
    }
    .special-offer-card {
        flex: 0 0 calc(33.333% - 11px); /* 1/3 der Breite bei 16px Gap (circa 11px Abzug) */
        scroll-snap-align: start; /* Reset für Desktop */
    }
}

/* ==========================================
   TOUCH-TARGETS — Mindestgröße 44x44px
   ========================================== */
.btn,
[role="button"],
.category-chip,
.payment-option {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mengen-Stepper im Warenkorb — kritisch für Fehlklicks */
.cart-qty-btn,
button[aria-label*="erhöhen"],
button[aria-label*="verringern"],
button[aria-label*="entfernen"] {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dynamische Kontrastfarbe: falls --brand-text via JS gesetzt */
.btn-primary,
.category-chip.active,
.payment-option.selected {
    color: var(--brand-text, #fff);
}

/* Input font-size 16px minimum (verhindert iOS Auto-Zoom) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select,
    .form-control,
    .form-input {
        font-size: 16px !important;
    }
}

/* Verbindungsstatus-Indicator (Shop) */
.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}
.connection-status.connected { background: #d1fae5; color: #065f46; }
.connection-status.reconnecting { background: #fef3c7; color: #92400e; }
