/**
 * Styling für Öffnungszeiten-Anzeige
 */

/* Vorbestellungs-Information */
.pre-order-info {
    background-color: #eff6ff;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #1e40af;
    display: flex;
    align-items: center;
}

.pre-order-info i {
    margin-right: 8px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .pre-order-info {
        padding: 10px;
        font-size: 13px;
    }
}

/* Weitere Öffnungszeiten am heutigen Tag */
.later-opening-today {
    margin-top: 5px;
    font-size: 13px;
    color: #6b7280;
    padding-left: 16px;
    line-height: 1.3;
}

.restaurant-status-container {
   
}

.restaurant-status {
    margin-bottom: 10px;
}

.restaurant-status .status-main {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Eleganter Lieferando-Style Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: default;
    white-space: nowrap;
}

.status-badge.closed {
    padding: 6px 16px;
}

.status-badge.open {
    background: #008848;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 136, 72, 0.15);
    position: relative;
}

.status-badge.open::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-badge.open:hover {
    background: #007239;
    box-shadow: 0 4px 8px rgba(0, 136, 72, 0.2);
    transform: translateY(-1px);
}

.status-badge.closed {
    background: #f7f7f7;
    color: #6b7280;
    border-color: #e5e7eb;
    padding: 6px 16px;
    font-size: 13px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-badge.closed:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.status-badge i {
    font-size: 14px;
    opacity: 0.9;
}

.status-badge.open i {
    color: white;
}

.status-badge.closed i {
    color: #9ca3af;
}

.status-text {
    font-weight: 500;
    line-height: 1.3;
}

.restaurant-opening-hours {
    margin-top: 5px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.opening-hours-summary {
    font-size: 14px;
    color: #374151;
}

/* Modal-Styling für Öffnungszeiten */
.opening-hours-modal-list {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 8px;
    max-width: 100%;
}

.opening-hours-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.day-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: #fff;
    border-left: 3px solid transparent;
}

.day-row.today {
    border-left-color: #ff6b35;
    background-color: #fff8f0;
}

.day-row .day-name {
    font-weight: 600;
    min-width: 100px;
    color: #374151;
}

.day-row.today .day-name {
    color: #ff6b35;
}

.day-row .day-times {
    color: #4b5563;
    text-align: right;
    line-height: 1.5;
}

.day-row .closed-text {
    color: #ef4444;
    font-style: italic;
}

@media (max-width: 768px) {
    .restaurant-opening-hours {
        padding: 10px;
    }
    
    .opening-hours-summary {
        font-size: 13px;
    }
    
    .day-row {
        padding: 6px 8px;
    }
    
    .day-row .day-name {
        min-width: 80px;
        font-size: 13px;
    }
    
    .day-row .day-times {
        font-size: 13px;
    }
}

/* Modal-Styling */
.hours-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.opening-hours-modal {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.opening-hours-modal h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.hours-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hours-list li:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: bold;
    min-width: 100px;
}

.day-times {
    color: #333;
}

.day-closed .day-closed-text {
    color: #a94442;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.close-modal-btn:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 576px) {
    .hours-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .day-name {
        margin-bottom: 5px;
    }
}

/* Öffnungszeiten-Tabelle */
.opening-hours-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
}

.opening-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.opening-hours-table th,
.opening-hours-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.opening-hours-table thead tr {
    background-color: #f8fafc;
}

.opening-hours-table th {
    font-weight: 600;
    color: #4b5563;
}

.opening-hours-table tbody tr:hover {
    background-color: #f8fafc;
}

.opening-hours-table .day-column {
    width: 25%;
    font-weight: 500;
}

.opening-hours-table .day-name {
    font-weight: 500;
}

.opening-hours-table tr.today {
    background-color: #f0fdf4;
}

.opening-hours-table tr.today .day-name {
    font-weight: 600;
    color: #10b981;
}

.opening-hours-table .closed-text {
    color: #ef4444;
    font-style: italic;
}

.opening-hours-table .hours-cell {
    color: #1f2937;
}

/* Restaurant Info Modal Anpassungen */
.restaurant-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow-y: auto;
    padding: 15px;
}

.restaurant-info-modal.open {
    display: flex;
}

.restaurant-info-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: scroll;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 100000;
}

.restaurant-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.restaurant-info-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.restaurant-info-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.restaurant-info-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.info-section {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: block;
    width: 100%;
}

.info-section:last-child {
    border-bottom: none;
    padding-bottom: 20px;
}

.info-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Zahlungsmethoden und Liefermethoden im Modal */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    line-height: 1.4;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list li i {
    margin-right: 10px;
    color: #666;
    min-width: 18px;
    text-align: center;
    font-size: 16px;
}

/* Entferne die Tab-spezifischen Styles */
/* Tabs für verschiedene Öffnungszeiten-Typen */
.opening-hours-tabs .nav-tabs {
    display: none;
}

.opening-hours-tabs .tab-content {
    padding-top: 0;
}

.opening-hours-tabs .tab-pane {
    display: block;
}

.mt-3 {
    margin-top: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .opening-hours-table {
        font-size: 13px;
    }
    
    .opening-hours-table th, 
    .opening-hours-table td {
        padding: 6px 8px;
    }
    
    .opening-hours-table th.day-column {
        width: 80px;
    }
    
    .restaurant-info-content {
        max-width: 100%;
    }
    
    .info-section {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .opening-hours-table-container {
        max-height: 250px;
        overflow-x: auto;
    }
    
    .opening-hours-table {
        min-width: 480px;
    }
    
    .restaurant-info-content {
        max-height: 85vh;
    }
}

.contact-button {
    background-color: #10b981 !important;
    display: inline-block;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

.contact-button:hover {
    background-color: #059669 !important;
    color: white;
    text-decoration: none;
    transform: none;
}

/* Lieferando-Style Service-Verfügbarkeit */
.service-availability {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 160px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-item.available {
    background: rgba(16, 185, 129, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.service-item.available i {
    color: white;
}

.service-item.unavailable {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    color: #64748b;
}

.service-item.unavailable i {
    color: #94a3b8;
}

.service-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.service-item span {
    font-weight: 500;
    line-height: 1.3;
}

.service-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .service-availability {
        margin-top: 10px;
        gap: 12px;
        flex-direction: column;
    }
    
    .service-item {
        font-size: 13px;
        padding: 6px 10px;
        min-width: auto;
        width: 100%;
    }
    
    .service-item i {
        font-size: 15px;
        width: 16px;
    }
}

@media (max-width: 480px) {
    .service-availability {
        gap: 8px;
    }
    
    .service-item {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .service-item i {
        font-size: 14px;
    }
}

/* Liefermethoden */
.delivery-methods {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.delivery-method {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f3f4f6;
    font-size: 14px;
    position: relative;
}

.delivery-method.available {
    background-color: #ecfdf5;
    color: #065f46;
}

/* Hinzugefügte Stile für inaktive Liefermethoden */
.delivery-method.available.inactive {
    background-color: #fff1f2;
    color: #be123c;
    opacity: 0.9;
}

.delivery-method.available.inactive span {
    text-decoration: line-through;
    opacity: 0.8;
}

.delivery-method.available.inactive i {
    opacity: 0.6;
}

.delivery-method i {
    margin-right: 6px;
    font-size: 16px;
}

.delivery-method span {
    font-weight: 500;
}

/* Hinweis, wenn alle Liefermethoden inaktiv sind */
.all-methods-inactive-notice {
    margin-top: 10px;
    padding: 6px 10px;
    background-color: #fef2f2;
    color: #dc2626;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    font-style: italic;
    width: 100%;
}

/* Hinzugefügter Stil für Status-Beschriftungen */
.method-status {
    font-size: 11px;
    display: block;
    margin-top: 3px;
    color: #dc2626;
    font-style: italic;
}

/* ===== STICKY CATEGORY SLIDER MIT VOLLER BREITE ===== */
.category-slider-container {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    margin-left: -20px;
    margin-right: -20px;
    padding: 16px 20px;
    background: transparent;
}

/* Wenn gescrollt wird */
.category-slider-container.scrolled {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Smooth transition für den Hintergrund */
.category-slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-slider-container.scrolled::before {
    opacity: 1;
}

/* Restaurant Header bleibt sichtbar */
.restaurant-header {
    transition: all 0.3s ease;
}

/* Category Slider bleibt im Container */
.category-slider-container .category-slider {
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .category-slider-container {
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px;
    }
    
    
    .category-slider-container.scrolled {
        padding-left: calc(50vw - 50% + 15px);
        padding-right: calc(50vw - 50% + 15px);
            padding-top: 6px;
    padding-bottom: 6px;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .category-slider-container {
        margin-left: -10px;
        margin-right: -10px;
        padding: 0 10px;
    }
    
    .category-slider-container.scrolled {
        padding-left: calc(50vw - 50% + 10px);
        padding-right: calc(50vw - 50% + 10px);
    }
} 
