@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --light-bg: #f5f0e1;
    --light-text: #4e3b31;
    --dark-bg: #1a1a1a;
    --dark-text: #f5e1c3;
    --primary-color: #a67c52;
    --secondary-color: #8b5e34;
    --dark-box-bg: #232323; /* Leicht heller als der Dark Mode Hintergrund */
    --dark-border: #a67c52; /* Randfarbe für Struktur */
    --dark-button-bg: #a67c52;
    --dark-button-text: #fff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-container img {
    width: 90px;
    height: 90px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    border: 3px solid white;
    margin-right: 20px;
    flex-shrink: 0;

}

/* Titel in Minecraft Font */
.site-title {
    font-size: 2rem;
    font-family: 'Press Start 2P', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: white;
    margin-right: auto; /* Diese Zeile entfernen */
    text-align: center; /* Diese Zeile hinzufügen */
    flex-grow: 1; /* Diese Zeile hinzufügen */
}


#theme-toggle {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    color: white;
    width: auto;
    height: auto;
    flex-shrink: 0;

}

#theme-toggle i {
    transition: 0.3s;
}

#theme-toggle:hover {
    transform: scale(1.2);
}

/* Dark Mode */
.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* Boxen leicht heller als der Hintergrund */
section {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Dark Mode: Boxen leicht heller als Hintergrund */
.dark-mode section {
    background: #252525;
    border-radius: 10px;
    padding: 15px;
}

/* Dark Mode: Titel */
.dark-mode h2 {
    color: #f0d9b5;
}

/* Dark Mode: Links */
.dark-mode .link-grid a {
    background: var(--dark-button-bg);
    color: var(--dark-button-text);
}

/* Container mit mehr seitlichem Abstand */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Link Grid Layout */
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.link-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    min-height: 55px;
}

.link-grid a:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .logo-container img {
        width: 50px;
        height: 50px;
        max-width: 60px;
        max-height: 60px;
        border-radius: 50%;
        border: 2px solid white;
        margin-right: 10px;
    }

    .site-title {
        font-size: 2rem;
        font-family: 'Press Start 2P', sans-serif !important;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-decoration: none;
        color: white;
        text-align: center;
        flex-grow: 1;
        display: flex;
        justify-content: center; /* Stellt sicher, dass der Titel immer mittig bleibt */
    }
    

    #theme-toggle {
        background: transparent;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px;
        color: white;
        width: auto;
        height: auto;
    }

    #theme-toggle:hover {
        transform: scale(1.2);
    }

    .container {
        padding: 10px;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background-color: var(--primary-color);
    text-align: center;
    padding: 15px;
}

.footer-text {
    font-family: 'Press Start 2P', sans-serif;
    color: white;
}
