
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
    --dirt-dark: #382719;
    --dirt-medium: #65452d;
    --dirt-light: #89613d;
    --grass: #638b36;
    --grass-dark: #3e6428;
    --wood: #53351f;
    --wood-light: #79502f;
    --parchment: #e8d5a8;
    --parchment-dark: #c6aa77;
    --ink: #46331f;
    --white: #f3e8d1;

    --pixel-font: 'Press Start 2P', monospace;
    --text-font: 'VT323', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--white);
    font-family: var(--text-font);
    font-size: 22px;

    /* Pixelartige Dirt-Textur */
    background-color: var(--dirt-medium);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 15px,
            rgba(0, 0, 0, 0.10) 16px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.08) 0px,
            transparent 16px,
            rgba(255, 255, 255, 0.04) 17px
        ),
        linear-gradient(
            135deg,
            #795335,
            #503520 45%,
            #68472c
        );

    background-attachment: fixed;
}

/* Navigation */

.navigation {
    min-height: 76px;
    padding: 16px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background:
        linear-gradient(
            180deg,
            #79512e,
            #4a301d
        );

    border-bottom: 5px solid #2e1d12;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
}

.nav-logo,
.footer-logo {
    font-family: var(--pixel-font);
    color: #e7c98e;
    text-decoration: none;
    font-size: 20px;
    text-shadow: 3px 3px #302014;
}

.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--pixel-font);
    font-size: 10px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #c7e68a;
}

/* Hero */

.hero {
    position: relative;
    min-height: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(25, 35, 20, 0.35),
            rgba(25, 25, 15, 0.65)
        ),
        linear-gradient(
            180deg,
            #789b62 0%,
            #526d3d 48%,
            #394c2c 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 70px 24px 100px;
}

.hero-emblem {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: #80512c;
    border: 6px solid #3c2818;
    box-shadow:
        inset 0 0 0 4px #a87542,
        8px 8px 0 rgba(0, 0, 0, 0.3);

    color: #f1d59b;
    font-family: var(--pixel-font);
    font-size: 18px;
}

.hero-subtitle {
    font-family: var(--pixel-font);
    font-size: 11px;
    line-height: 2;
    color: #e6d6a8;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: var(--pixel-font);
    font-size: clamp(25px, 5vw, 46px);
    line-height: 1.8;
    color: #fff1ce;
    text-shadow:
        4px 4px #3b2919,
        7px 7px rgba(0, 0, 0, 0.3);
}

.hero-description {
    max-width: 550px;
    margin: 25px auto 35px;
    font-size: 27px;
    line-height: 1.3;
    color: #f1e8d0;
}

.hero-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 38px;

    background:
        linear-gradient(
            180deg,
            #729c3e 0px,
            #729c3e 9px,
            #765035 9px,
            #765035 100%
        );

    border-top: 5px solid #405e29;
}

/* Pixel Buttons */

.pixel-button {
    display: inline-block;
    padding: 19px 25px;

    border: 4px solid #2c1d12;
    border-radius: 0;

    background: linear-gradient(
        180deg,
        #8c6339,
        #634125
    );

    color: #fff0cc;
    text-decoration: none;
    font-family: var(--pixel-font);
    font-size: 10px;
    line-height: 1.8;

    box-shadow:
        inset 0 0 0 3px #a77a49,
        5px 5px 0 rgba(0, 0, 0, 0.3);

    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
}

.pixel-button:hover:not(:disabled) {
    filter: brightness(1.2);
    transform: translateY(-3px);
}

.pixel-button:active:not(:disabled) {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.pixel-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.submit-button {
    margin-top: 25px;
    width: 100%;

    background: linear-gradient(
        180deg,
        #729b3e,
        #4c762d
    );

    border-color: #263d1b;

    box-shadow:
        inset 0 0 0 3px #91b95a,
        5px 5px 0 rgba(0, 0, 0, 0.35);

    color: #fff4d5;
}

.submit-button:hover:not(:disabled) {
    filter: brightness(1.15);
    transform: translateY(-3px);
}

.submit-button:active:not(:disabled) {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.submit-button:disabled {
    filter: grayscale(0.6);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Sections */

.document-section {
    max-width: 1000px;
    margin: 90px auto;
    padding: 0 25px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.section-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--wood);
    border: 3px solid #291a10;
    box-shadow: inset 0 0 0 2px #8a633b;

    color: #e9c98d;
    font-family: var(--pixel-font);
    font-size: 11px;
}

.section-heading h2 {
    font-family: var(--pixel-font);
    font-size: clamp(15px, 3vw, 21px);
    line-height: 1.8;
    color: #f4dfb2;
    text-shadow: 3px 3px #352315;
}

/* Pergament */

.parchment {
    position: relative;
    padding: clamp(28px, 5vw, 60px);

    color: var(--ink);

    background-color: var(--parchment);
    background-image:
        radial-gradient(
            ellipse at 20% 30%,
            rgba(255, 255, 255, 0.35),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 80% 70%,
            rgba(125, 82, 36, 0.12),
            transparent 50%
        );

    border: 9px solid #76502d;
    outline: 3px solid #352216;
    box-shadow:
        inset 0 0 0 3px var(--parchment-dark),
        0 10px 25px rgba(0, 0, 0, 0.35);
}

.document-decoration {
    text-align: center;
    color: #98733f;
    font-size: 28px;
    margin-bottom: 25px;
}

.parchment h3 {
    font-family: var(--pixel-font);
    font-size: 13px;
    line-height: 2;
    text-align: center;
    margin-bottom: 28px;
    color: #654322;
}

.parchment p {
    font-size: 25px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.audio-player {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px dashed #a98c5c;
}

.audio-label {
    display: block;
    margin-bottom: 12px;
    font-family: var(--pixel-font);
    font-size: 10px;
    line-height: 1.8;
    color: #654322;
}

.audio-player audio {
    display: block;
    width: 100%;
    max-width: 500px;
}

/* Manifest */

.manifesto {
    background-color: #e2cea0;
}

.manifest-divider {
    height: 2px;
    margin: 35px 0;
    background: #ad9061;
}

.manifest-rules {
    list-style: none;
    margin: 25px 0;
}

.manifest-rules li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.35;
}

.manifest-rules li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    color: #78502d;
    font-size: 15px;
}

.manifest-ending {
    margin-top: 35px;
    padding: 20px;
    border-left: 5px solid #92703e;
    background: rgba(143, 107, 54, 0.1);
    font-style: italic;
}

/* Zugang */

.access-section {
    padding: 80px 25px;
    background:
        linear-gradient(
            180deg,
            #49301e,
            #302014
        );

    border-top: 8px solid #729b3e;
    border-bottom: 8px solid #1d140e;
}

.access-section .section-heading {
    max-width: 700px;
    margin: 0 auto 35px;
}

.light-heading h2 {
    color: #f0d8a6;
}

.access-panel {
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(25px, 5vw, 45px);

    background: #64442b;
    border: 5px solid #291a10;
    box-shadow:
        inset 0 0 0 3px #93673c,
        8px 8px 0 rgba(0, 0, 0, 0.2);
}

.access-intro {
    margin-bottom: 30px;
    font-size: 25px;
    line-height: 1.4;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.application-form label {
    margin-top: 10px;
    font-family: var(--pixel-font);
    font-size: 10px;
    line-height: 1.8;
    color: #f3dcae;
}

.application-form input[type="text"] {
    width: 100%;
    padding: 15px;

    background: #e8d5a8;
    border: 4px solid #302014;
    border-radius: 0;

    color: #3b291a;
    font-family: var(--text-font);
    font-size: 23px;
}

.application-form input:focus {
    outline: 3px solid #a2c76d;
}

.application-form input::placeholder {
    color: #80694a;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.8;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
    accent-color: #8caa4d;
}

.submit-button {
    margin-top: 25px;
    width: 100%;
}

.access-note {
    margin-top: 20px;
    text-align: center;
    color: #d2bd97;
    font-size: 19px;
}

/* Minecraft-Benutzernamenprüfung */

.username-status {
    display: none;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 12px;
    padding: 16px;
    border: 3px solid transparent;
    border-radius: 3px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow:
        0 3px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.username-status.visible {
    display: flex;
}

.username-status.success {
    background: #e5f1dc;
    border-color: #62964e;
    color: #31552a;
}

.username-status.error {
    background: #f4dfd9;
    border-color: #b65d4c;
    color: #78382e;
}

.username-status.pending {
    background: #f3ead0;
    border-color: #b8954d;
    color: #695323;
}

.username-status strong {
    display: block;
    margin-bottom: 3px;
}

.username-status .status-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.3;
}

/* Server-Rückmeldungen */

.application-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    padding: 16px;
    border: 3px solid transparent;
    border-radius: 3px;
    font-size: 22px;
    line-height: 1.4;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.application-status strong {
    display: block;
    margin-bottom: 3px;
}

.application-status .status-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.application-status.success {
    background: #e5f1dc;
    border-color: #62964e;
    color: #31552a;
}

.application-status.error {
    background: #f4dfd9;
    border-color: #b65d4c;
    color: #78382e;
}

.application-status.warning {
    background: #f3ead0;
    border-color: #b8954d;
    color: #695323;
}

/* Mobile */

@media (max-width: 650px) {

    .navigation {
        flex-direction: column;
        padding: 20px 12px;
    }

    .nav-links {
        justify-content: center;
        gap: 16px;
    }

    .nav-links a {
        font-size: 8px;
    }

    .hero {
        min-height: 480px;
    }

    .hero-subtitle {
        font-size: 8px;
    }

    .hero-description {
        font-size: 23px;
    }

    .document-section {
        margin: 65px auto;
        padding: 0 17px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-heading h2 {
        font-size: 13px;
    }

    .parchment {
        border-width: 6px;
        padding: 25px 20px;
    }

    .parchment h3 {
        font-size: 10px;
    }

    .parchment p,
    .manifest-rules li {
        font-size: 21px;
    }

    .audio-label,
    .application-form label {
        font-size: 8px;
    }
}



