/* =========================================
   1. GRUNDEINSTELLUNGEN
   ========================================= */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Verhindert Scrollbalken am Hauptfenster */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #333;
}

/* =========================================
   2. HAUPT-LAYOUT
   ========================================= */
.grid-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Nutzt 100% der Bildschirmhöhe */
    width: 100vw;
}

/* OBERER BEREICH (BILDER & ESSEN) */
.content-area {
    display: flex;
    height: 90vh; /* 90% der Höhe für Inhalt */
    width: 100%;
    background-color: #000; /* Hintergrundfarbe für Lücken */
}

/* --- LINKE SEITE (BILDER) --- */
.left-panel {
    width: 65%; /* Breite der Bilder */
    background-color: #000;
    position: relative;
    border-right: 5px solid #ffba00; /* Passender Rand zum Footer */
    overflow: hidden;
}

#slideshow {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    /* 'contain' zeigt das ganze Bild (schwarze Ränder möglich) */
    /* 'cover' füllt alles aus (schneidet evtl. Köpfe ab) */
    background-size: contain; 
    
    /* ANIMATION: Weiche Überblendung */
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

/* Hilfsklasse für den Fade-Out Effekt */
#slideshow.fade-out {
    opacity: 0;
}

/* --- RECHTE SEITE (ESSEN) --- */
.right-panel {
    width: 35%; /* Breite des Speiseplans */
    background-color: white;
    position: relative;
    overflow: hidden;
}

/* Der Container für den Iframe */
.iframe-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
}

/* Der Iframe selbst - MIT ZOOM FIX */
.iframe-container iframe {
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    
    /* ZOOM: Wir verkleinern den Inhalt auf 85% */
    transform: scale(0.85); 
    transform-origin: top left; 
    
    /* Ausgleich der Größe (100 / 0.85 = ca. 118%) */
    width: 118%; 
    height: 118%;
}

/* =========================================
   3. UNTERER BEREICH (MODERNER TICKER)
   ========================================= */
.footer {
    height: 10vh; /* 10% der Höhe */
    /* Edler Farbverlauf */
    background: linear-gradient(135deg, #ff8c00 0%, #ffba00 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
    /* Schatten nach oben */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    border-top: 2px solid #fff; /* Feine weiße Kante */
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    padding-left: 100%; /* Startet rechts außerhalb */
    animation: ticker 25s linear infinite; /* Geschwindigkeit */
    
    /* Text Styling */
    font-family: 'Poppins', sans-serif; 
    color: #ffffff; 
    font-size: 3.5rem; /* Größe anpassbar */
    font-weight: 800; 
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); /* Textschatten für Lesbarkeit */
    line-height: 10vh;
}

/* Automatisches Icon vor dem Text */
.ticker::before {
    content: "📢 ";
    color: #fffbe6;
    margin-right: 30px;
    font-weight: 400;
}

/* Animation Definition */
@keyframes ticker {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Responsive Anpassung für kleinere Screens */
@media (max-height: 600px) {
    .ticker { font-size: 2rem; }
}