/* ibkguesser.css */

:root {
    --ibk-red: #DC143C;
    --ibk-light-gray: #f4f4f4;
    --ibk-dark-gray: #333;
    --ibk-white: #ffffff;
    --border-radius: 8px;
    --btn-radius: 50px;
}

/* Grundlayout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Impact', fantasy;
    background-color: var(--ibk-light-gray);
    color: var(--ibk-dark-gray);
    line-height: 1.6;
}

/* Header-Banner */
header {
    background-color: var(--ibk-red);
    color: var(--ibk-white);
    padding: 30px;
    text-align: center;
    font-size: 3rem; /* Etwas herunterskaliert, damit es auf Laptops nicht erschlägt */
}

/* Navigation */
nav {
    display: flex;
    justify-content: stretch;
    background: white;
    border-bottom: 2px solid #ddd;
}

nav a {
    flex: 1;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-right: 1px solid #eee;
}

nav a:hover {
    background-color: #f9f9f9;
}

/* Container für normale Inhaltsseiten (Startseite, Highscore, Result) */
.content-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Formular-Styling (NUR für Login/Register) */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.input-group {
    margin-bottom: 15px;
    text-align: left; /* Damit Labels über den Inputs linksbündig sind */
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button-Styling - Bereinigt und zusammengefasst */
button, .btn {
    padding: 10px 25px;
    border-radius: var(--btn-radius);
    border: 2px solid var(--ibk-red);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    background-color: var(--ibk-red);
    color: white;
    font-family: 'Impact', fantasy;
    font-size: 16px;
    margin: 10px;
    min-width: 130px;
    text-align: center;
}

button:hover, .btn:hover {
    background-color: #b31d2a;
    border-color: #b31d2a;
}

/* KORRIGIERT: Punkt hinzugefügt für die Klasse */
.button-back {
    background-color: #ddd;
    color: #333;
    border-color: #ddd;
}
.button-back:hover {
    background-color: #ccc;
    border-color: #ccc;
}

/* Highscore Tabelle - KORRIGIERT auf echte HTML-Tags */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background-color: #eee;
    text-align: left;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

th, td {
    border: 1px solid #ccc;
}

/* Game Layout - FIX: Erzwingt echtes 50/50 Nebeneinander */
.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exakt zwei gleich große Spalten */
    gap: 20px;
    margin: 20px;
    height: 65vh; /* Feste Höhe für das Spielfeld (65% des Bildschirms) */
}

/* Die Container für Bild und Karte */
.image-section, .map-section {
    background-color: #ddd;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%; /* Füllt die 65vh des Grids komplett aus */
}

/* Sorgt dafür, dass das Bild sich perfekt anpasst, ohne zu verzerren */
.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Schneidet das Bild sauber zu, damit es den Kasten füllt */
    display: block;
}

#map {
    width: 100%;
    height: 100%;
}

/* Die Buttons unter dem Grid */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}