/* ==========================================================================
   KANTINE WILHELMSBURG - ZENTRALES DESIGN (style.css)
   ========================================================================== */
html {
    overflow-y: scroll; 
}
/* --- 1. BASIS-STYLING & HINTERGRUND --- */
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    background-image: url('images/behörde.jpg'); 
    background-size: cover; 
    background-attachment: fixed; 
    background-repeat: no-repeat; 
    background-position: center; 
    line-height: 1.6; 
}

/* --- 2. HAUPT-LAYOUT (WRAPPER & CONTAINER) --- */
.wrapper { 
    max-width: 1050px; 
    margin: 0 auto; 
    background: white; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column; 
    box-shadow: 0 0 15px rgba(0,0,0,0.2); 
}

.container { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 30px; 
    padding: 40px; 
    flex: 1; 
}

/* --- 3. KOPFBEREICH & NAVIGATION (HEADER) --- */
header { 
    background: #9e0b0f; 
    color: white; 
    padding: 20px 40px; 
}

.top-links { 
    text-align: right; 
    font-size: 11px; 
    margin-bottom: 10px; 
}

.top-links a { 
    color: white; 
    text-decoration: none; 
    margin-left: 15px; 
}

.top-links a:hover { 
    text-decoration: underline; 
}

nav { 
    background: #fff; 
    border-bottom: 1px solid #ddd; 
    padding: 10px 40px; 
    display: flex; 
}

.nav-item { 
    margin-right: 25px; 
    text-decoration: none; 
    color: #333; 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
}

.nav-item::before { 
    content: ""; 
    width: 10px; 
    height: 10px; 
    border: 2px solid #9e0b0f; 
    border-radius: 50%; 
    margin-right: 8px; 
}

.nav-item.active::before { 
    background-color: #9e0b0f; 
}

/* --- 4. SEITENLEISTE (SIDEBAR) & BUTTONS --- */
.sidebar-box { 
    border: 1px solid #ddd; 
    padding: 20px; 
    margin-bottom: 20px; 
    border-radius: 8px; 
    text-align: center; 
    background: #fafafa; 
}

.btn { 
    display: block; 
    background: #eee; 
    border: 1px solid #ccc; 
    padding: 10px; 
    text-decoration: none; 
    color: #333; 
    margin-top: 10px; 
    border-radius: 4px; 
    font-weight: bold; 
}

.btn:hover { 
    background: #e0e0e0; 
}

.btn-red { 
    background: #9e0b0f; 
    color: white; 
    border: none; 
}

.btn-red:hover { 
    background: #80090c; 
    color: white; 
}

/* --- 5. FUSSZEILE (FOOTER) --- */
footer {
    background-color: #666;
    color: #ffffff;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    font-size: 13px;
    line-height: 1.4;
}

.footer-left h3, .footer-right h3 {
    font-size: 16px;
    margin-bottom: 12px;
    margin-top: 0;
    font-weight: bold;
}

.footer-left p {
    margin: 2px 0;
}

.map-box {
    width: 100%;
    height: 150px;
    background-color: #ddd;
    border: 1px solid #999;
    margin-top: 10px;
}

.map-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 6. BISTRO DESKTOP TOOLTIPS (Neu hinzugefügt!) --- */
.bistro-list {
    line-height: 2;
}

.bistro-list li {
    margin-bottom: 10px;
}

/* Das Element, über das man mit der Maus fährt */
.bistro-link {
    color: #9e0b0f;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    display: inline-block;
    border-bottom: 1px dashed #9e0b0f;
}

/* Der Tooltip ist standardmäßig versteckt */
.tooltip {
    display: none; 
    position: absolute;
    left: 0;
    top: 30px;
    background-color: #fff;
    color: #333;
    width: 320px;
    padding: 15px;
    border: 1px solid #ccc;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    font-weight: normal;
    border-radius: 4px;
}

/* Wenn man mit der Maus auf den Link geht, wird der Tooltip sichtbar */
.bistro-link:hover .tooltip {
    display: block;
}

.tooltip h4, .tooltip h5 {
    margin: 0 0 10px 0;
    color: #9e0b0f;
}

.tooltip img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.price-table td {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* Diese neue Regel verhindert das Umbrechen der Preise und schiebt sie schick nach rechts */
.price-table td:last-child {
    white-space: nowrap;
    text-align: right;
    padding-left: 15px;
}

.pfand-info {
    display: block;
    font-size: 11px;
    color: #666;
}


/* ==========================================================================
   7. MOBILE OPTIMIERUNG (Ansicht für Smartphones & kleine Tablets)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Header & Navigation für Touch-Bedienung optimieren */
    header { 
        padding: 15px 20px; 
        text-align: center; 
    }
    .top-links { 
        text-align: center; 
        margin-bottom: 15px; 
    }
    .top-links a { 
        display: inline-block; 
        margin: 5px 10px; 
        padding: 5px;
    }
    nav { 
        padding: 10px 20px; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .nav-item { 
        margin: 5px 10px; 
        padding: 5px 0;
    }

    /* Layout von nebeneinander auf untereinander umstellen */
    .container { 
        grid-template-columns: 1fr; 
        padding: 20px; 
        gap: 20px;
    }

    /* Buttons (Speiseplan) für Daumenklicks vergrößern */
    .btn { 
        padding: 15px; 
        font-size: 16px; 
    }

    /* Footer-Spalten untereinander anordnen */
    footer { 
        grid-template-columns: 1fr; 
        padding: 20px; 
        text-align: center;
        gap: 20px;
    }

    /* --- BISTRO MOBILE FIX (Ohne Hover-Zwang) --- */
    .bistro-list {
        padding-left: 0;
        list-style: none;
    }
    
    .bistro-list li {
        margin-bottom: 20px;
        background: #f8f8f8;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #eee;
    }

    .bistro-link {
        border-bottom: none;
        display: block;
    }

    /* Tooltips auf Mobile immer als Karte unter dem Text anzeigen */
    .tooltip {
        position: static; 
        display: block !important; /* Überschreibt das Verstecken am Desktop */
        width: 100%; 
        box-sizing: border-box;
        box-shadow: none;
        padding: 10px 0 0 0;
        border: none;
        margin-top: 15px;
        border-top: 1px solid #ddd;
        background: transparent;
    }
}