/* ========================================
   Grundfarben
======================================== */

:root {
    --hintergrund: #0f1712;
    --hintergrund-hell: #17231b;
    --gruen-dunkel: #1d3a2a;
    --gruen: #4f7d57;
    --gruen-hell: #8fb996;
    --text: #f1f4ef;
    --text-grau: #c5cec6;
    --linie: #2d4735;
}


/* ========================================
   Grundlayout
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--hintergrund);
    color: var(--text);
    line-height: 1.6;
}


/* ========================================
   Kopfbereich
======================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: rgba(23, 35, 27, 0.95);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--linie);

    padding: 20px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

header h1 {
    margin: 0;
    color: var(--gruen-hell);
    font-size: 1.8rem;
    white-space: nowrap;
}

/* ========================================
   Navigation
======================================== */

nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    padding: 6px 0;
    transition: color 0.2s ease;
}

nav a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background-color: var(--gruen-hell);

    transition: width 0.25s ease;
}

nav a:hover {
    color: var(--gruen-hell);
}

nav a:hover::after {
    width: 100%;
}


/* ========================================
   Hauptinhalt
======================================== */

main {
    width: min(1100px, 88%);
    margin: 0 auto;
}

section {
    padding: 70px 0;
    border-bottom: 1px solid var(--linie);
}

section h2 {
    margin-top: 0;
    color: var(--gruen-hell);
    font-size: 2rem;
}

section p {
    max-width: 800px;
    color: var(--text-grau);
    font-size: 1.05rem;
}


/* ========================================
   Startbereich
======================================== */

/* ========================================
   Startbereich / Hero
======================================== */

#start {
    min-height: 680px;
    display: flex;
    align-items: center;
    position: relative;

    background-image:
        linear-gradient(
            90deg,
            rgba(15, 23, 18, 0.97) 0%,
            rgba(15, 23, 18, 0.88) 38%,
            rgba(15, 23, 18, 0.55) 65%,
            rgba(15, 23, 18, 0.35) 100%
        ),
        url("hero-waldwelt.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 0 0 18px 18px;
}


.hero-inhalt {
    position: relative;
    z-index: 1;
    max-width: 850px;
   padding: 40px 0;
}

.status {
    display: inline-block;
    padding: 7px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--gruen);
    border-radius: 30px;
    color: var(--gruen-hell);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

#start h2 {
    margin-bottom: 20px;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 1.05;
    color: var(--text);
}

.hero-text {
    max-width: 720px;
    font-size: 1.2rem;
    color: var(--text-grau);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

.button-haupt {
    background-color: var(--gruen);
    color: white;
}

.button-haupt:hover {
    background-color: var(--gruen-hell);
    color: var(--hintergrund);
}

.button-zweit {
    border: 1px solid var(--linie);
    color: var(--text);
    background-color: var(--hintergrund-hell);
}

.button-zweit:hover {
    border-color: var(--gruen-hell);
    color: var(--gruen-hell);
}


/* ========================================
   Footer
======================================== */

footer {
    padding: 35px 8%;
    background-color: var(--hintergrund-hell);
    text-align: center;
}

footer p {
    color: var(--text-grau);
}

footer a {
    color: var(--gruen-hell);
    text-decoration: none;
    margin: 0 10px;
}

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

/* ========================================
   Inhaltsbereiche
======================================== */

#spiel,
#gege,
#dev-diary,
#galerie {
    margin: 35px 0;
    padding: 45px;
    background-color: var(--hintergrund-hell);
    border: 1px solid var(--linie);
    border-radius: 14px;
}

#spiel:hover,
#gege:hover,
#dev-diary:hover,
#galerie:hover {
    border-color: var(--gruen);
}

/* ========================================
   Bereich: Das Spiel
======================================== */

.bereich-kopf {
    max-width: 780px;
    margin-bottom: 35px;
}

.bereich-label {
    margin: 0 0 8px 0;
    color: var(--gruen-hell);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bereich-einleitung {
    font-size: 1.1rem;
    color: var(--text-grau);
}

.spiel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-karte {
    padding: 28px;
    background-color: rgba(15, 23, 18, 0.55);
    border: 1px solid var(--linie);
    border-radius: 12px;
}

.info-karte h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--gruen-hell);
    font-size: 1.2rem;
}

.info-karte p {
    margin-bottom: 0;
    color: var(--text-grau);
    font-size: 0.98rem;
}

/* ========================================
   Bereich: Gege
======================================== */

.gege-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
}

.gege-text {
    padding: 28px;
    background-color: rgba(15, 23, 18, 0.45);
    border: 1px solid var(--linie);
    border-radius: 12px;
}

.gege-text h3 {
    margin-top: 0;
    color: var(--gruen-hell);
    font-size: 1.3rem;
}

.gege-text p {
    color: var(--text-grau);
}

.gege-fakten {
    display: grid;
    gap: 14px;
}

.fakt {
    padding: 18px 20px;
    background-color: rgba(15, 23, 18, 0.55);
    border: 1px solid var(--linie);
    border-radius: 10px;

    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.fakt span {
    color: var(--text-grau);
}

.fakt strong {
    color: var(--gruen-hell);
    text-align: right;
}

/* ========================================
   Bereich: Galerie
======================================== */

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galerie-karte {
    overflow: hidden;
    background-color: rgba(15, 23, 18, 0.55);
    border: 1px solid var(--linie);
    border-radius: 12px;
}

.galerie-bild {
    display: block;
    width: 100%;
    height: 220px;

    object-fit: cover;
    object-position: center;

    border-bottom: 1px solid var(--linie);
}

.galerie-karte h3 {
    margin: 22px 22px 10px;
    color: var(--gruen-hell);
}

.galerie-karte p {
    margin: 0 22px 24px;
    color: var(--text-grau);
}


/* ========================================
   Bereich: Dev Blog
======================================== */

.dev-vorschau {
    padding: 32px;
    background-color: rgba(15, 23, 18, 0.55);
    border: 1px solid var(--linie);
    border-radius: 12px;
}

.dev-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;

    margin-bottom: 16px;

    color: var(--gruen-hell);
    font-size: 0.9rem;
    font-weight: bold;
}

.dev-vorschau h3 {
    margin: 0 0 16px 0;
    color: var(--text);
    font-size: 1.6rem;
}

.dev-vorschau p {
    max-width: 800px;
    margin-bottom: 25px;
    color: var(--text-grau);
}

/* ========================================
   Dev Blog Bildervergleich
======================================== */

.entwicklung-vergleich {
    margin: 55px 0;
}

.vergleich-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 25px;
}

.vergleich-bild {
    margin: 0;
    overflow: hidden;

    background-color: rgba(15, 23, 18, 0.55);
    border: 1px solid var(--linie);
    border-radius: 12px;
}

.vergleich-bild img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.vergleich-bild figcaption {
    padding: 18px 20px;
    color: var(--text-grau);
    font-size: 0.95rem;
}


/* ========================================
   Rechtliche Unterseiten
======================================== */

.recht-seite {
    width: min(900px, 88%);
    margin: 0 auto;
}

.recht-inhalt {
    padding: 70px 0;
}

.recht-inhalt h2 {
    margin-top: 10px;
    margin-bottom: 35px;
    color: var(--text);
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.recht-inhalt h3 {
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--gruen-hell);
    font-size: 1.3rem;
}

.recht-inhalt p {
    max-width: 780px;
    color: var(--text-grau);
    line-height: 1.8;
}

.recht-inhalt a {
    color: var(--gruen-hell);
}

.recht-inhalt a:hover {
    color: var(--text);
}

/* ========================================
   404-Seite
======================================== */

.fehler-seite {
    width: min(900px, 88%);
    margin: 0 auto;
}

.fehler-inhalt {
    min-height: 65vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.fehler-inhalt h2 {
    margin: 10px 0 20px;
    color: var(--text);
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
}

.fehler-inhalt p {
    max-width: 650px;
    color: var(--text-grau);
    font-size: 1.1rem;
    line-height: 1.8;
}

.fehler-inhalt .button {
    margin-top: 20px;
}

/* ========================================
   Handy / kleinere Bildschirme
======================================== */

@media (max-width: 700px) {

    header {
    padding: 18px 6%;

    flex-direction: column;
    align-items: flex-start;

    gap: 14px;
}

    header h1 {
        font-size: 1.6rem;
    }

    nav {
        gap: 14px;
    }

    main {
        width: 88%;
    }

    section {
        padding: 50px 0;
    }

    #start {
    min-height: 560px;

    background-position: 62% center;
}

#start h2 {
    font-size: 2.7rem;
}

.hero-text {
    font-size: 1rem;
}

.hero-buttons {
    flex-direction: column;
}

.button {
    text-align: center;
}
   
.spiel-grid {
    grid-template-columns: 1fr;
}

.info-karte {
    padding: 22px;
}
   
.gege-grid {
    grid-template-columns: 1fr;
}

.fakt {
    flex-direction: column;
    gap: 4px;
}

.fakt strong {
    text-align: left;
}

.galerie-grid {
    grid-template-columns: 1fr;
}

.vergleich-grid {
    grid-template-columns: 1fr;
}

.vergleich-bild img {
    height: auto;
}

.recht-inhalt {
    padding: 50px 0;
}
   
#spiel,
#gege,
#dev-diary,
#galerie {
    padding: 28px;
}
