* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #0d1b2a;
    color: #e8eef2;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

#stage {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.stage-page {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    padding: 3vh 3vw;
}

.stage-page.is-active {
    opacity: 1;
    z-index: 1;
}

.stage-page h1 {
    font-size: 4.5vh;
    margin: 0 0 2vh 0;
    color: #ffd166;
    flex: 0 0 auto;
}

/* Wagenindeling: volledig beeldvullende tabel met eigen scrollgebied voor auto-scroll bij overflow */
.stage-wagenindeling .scroll-area {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

table.wagenindeling {
    width: 100%;
    border-collapse: collapse;
    font-size: 3.2vh;
}

table.wagenindeling th, table.wagenindeling td {
    text-align: left;
    padding: 1vh 1.5vw;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

table.wagenindeling th {
    color: #9fd8ff;
    font-size: 2vh;
    text-transform: uppercase;
}

/* Nu.nl: 2x2-grid met foto, titel en intro per bericht */
.nunl-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2.5vh 2.5vw;
}

.nunl-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 1.2vh 1.2vw;
}

.nunl-card img {
    width: 100%;
    height: 22vh;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1vh;
    flex: 0 0 auto;
}

.nunl-card h3 {
    font-size: 2.4vh;
    margin: 0 0 0.8vh 0;
    color: #ffd166;
    flex: 0 0 auto;
}

.nunl-card p {
    font-size: 1.9vh;
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Pagina: eigen beheerde inhoud (titel/rijke tekst/afbeelding) */
.stage-pagina {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stage-pagina .pagina-image {
    max-width: 60%;
    max-height: 40vh;
    margin-bottom: 3vh;
    border-radius: 8px;
}

.pagina-content {
    font-size: 3vh;
    max-width: 90%;
    line-height: 1.4;
}

.pagina-content h1, .pagina-content h2, .pagina-content h3 {
    color: #ffd166;
}

.pagina-content img {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 8px;
}

.empty {
    opacity: 0.6;
    font-style: italic;
    font-size: 3vh;
}

.footer {
    position: fixed;
    bottom: 0.5vh;
    right: 1vw;
    font-size: 1.4vh;
    opacity: 0.35;
    z-index: 2;
}
