/* === Grundlayout & Reset === */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

/* === Flex-Seite: Header + Content + Footer === */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === Header === */
header {
    background-color: #E30613;
    text-align: center;
    padding: 20px;
    color: white;
}

header h1 {
    margin: 0;
}

/* === Navigation === */
nav {
    background-color: #222;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
    color: #ccc;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* === Zeltplatz-Seitenbereich === */
.zeltbereich-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background-image: url('../assets/zeltplatz_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* === Zeltplatz-Grid (4x3 Matrix) === */
.zeltplatz-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    width: 100%;
    max-width: 1600px;
    box-sizing: border-box;
}

/* === Zelte & Lagerfeuer === */
.zelt{
    border-radius: 10px;
    min-height: 150px;
    font-size: 1.2em;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Zelt-Farbe */
.zelt {
    background-color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: grey;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.zelt.zelt-jungs {
    background-color: #ceeaff; /* leichtes Blau */
    border: 2px solid #A0D4FF;
}

.zelt.zelt-maedchen {
    background-color: #fdd9e5; /* leichtes Rosa */
    border: 2px solid #FFC2D8;
}

.zelt-name {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.1em;
}

.zelt-inhalt {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.zelt-links {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: top;
    text-align: center;
}

.zelt-links img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.zelt-rechts {
    flex: 1;
    padding-left: 10px;
    box-sizing: border-box;
    align-items: top;
    text-align: center;
}

.zelt-rechts ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

.zelt-rechts li {
    height: 1.2em;
}

.hover-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    border-radius: 10px;
    pointer-events: none;
}

.zelt:hover .hover-overlay {
    display: flex;
}

/* Lagerfeuer: nimmt 2x2 Platz ein */
.lagerfeuer {
    background-image: url('../assets/lagerfeuer.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 50%;
    align-items: bottom;
    color: white;
    font-size: 1.8em;
    grid-column: span 2;
    grid-row: span 2;
}

/* === Footer === */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

footer a {
    color: #ccc;
    font-size: 0.9em;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === Alerts & Buttons === */
.alert {
    background-color: #ffcccc;
    color: #990000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.button {
    background-color: #E30613;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.button:hover {
    background-color: #b4050f;
}

/* === Responsive Anpassungen === */
@media (max-width: 1024px) {
    .zeltplatz-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .lagerfeuer {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .zeltplatz-container {
        grid-template-columns: 1fr;
    }

    .lagerfeuer {
        grid-column: span 1;
        grid-row: span 1;
    }
}
