/* =====================================================
   base.css – Gemeinsames Basis-Design
   Für BedWars-Turnier / Beamer / OBS
   ===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0b0b0b;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #f8fafc;
}

/* =====================================================
   VIEWPORT / SCALING
   ===================================================== */

#viewport {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #0b0b0b;
}

/*
   Breitere Designfläche.
   Dadurch haben die Blöcke mehr Platz und es entstehen weniger Zeilenumbrüche.
   Die Höhe ergibt sich weiterhin aus dem Inhalt.
*/
#page {
    width: 2560px;
    min-height: 1080px;
    transform-origin: top left;
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible;
}

/* ================= HEADER ================= */

#header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 72px;
    height: 150px;
    border-bottom: 3px solid #1e293b;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo.left {
    justify-content: flex-start;
}

.header-logo.right {
    justify-content: flex-end;
}

.header-logo img.logo {
    height: 112px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
}

.header-center {
    text-align: center;
}

.header-center h1 {
    font-size: 52px;
    margin: 0;
    line-height: 1.05;
}

.header-center h2 {
    font-size: 30px;
    margin: 6px 0 0;
    line-height: 1.1;
    color: #ef4444;
}

#meta {
    margin-top: 6px;
    font-size: 19px;
    line-height: 1.1;
    color: #cbd5f5;
}

/* ================= CONTENT ================= */

#container {
    width: 100%;
    padding: 22px 48px 18px;
    overflow: visible;
}

.section-title {
    margin: 20px 0 12px;
    text-align: center;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: #e5e7eb;
    text-transform: uppercase;
}

/* ================= TABLES ================= */

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 22px;
}

.ranking-table thead th {
    padding: 8px 12px;
    border-bottom: 2px solid #334155;
    text-align: left;
    color: #cbd5e1;
}

.ranking-table tbody td,
.ranking-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #334155;
}

.panel {
    background: #020617;
    border: 2px solid #1e293b;
    border-radius: 12px;
    padding: 18px 20px;
    overflow: hidden;
}

#footer {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}