@font-face {
    font-family: 'Jersey10';
    src: url('Jersey10-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --text-color: #fcf9dc;
    --accent-1: #5d275d;
    --accent-2: #b13e53;
    --accent-3: #38b764;
    --accent-4: #fdba4b;
}

/* Barrierefreie Farbpalette */
.accessible {
    --main-bg: #f0f0f0;
    --text-color: #000000;
    --accent-1: #0056b3;
    --accent-2: #c82333;
    --accent-3: #28a745;
    --accent-4: #ffc107;
    font-family: Arial, Helvetica, sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Jersey10', Arial, sans-serif;
    font-size: 1.125em;
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    background-color: var(--main-bg);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.pixel-border {
    border: 4px solid var(--accent-1);
    padding: 20px;
    margin-bottom: 20px;
    background-color: rgba(93, 39, 93, 0.9);
    transition: all 0.3s ease;
}
.accessible .pixel-border {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}


header {
    text-align: center;
    padding: 60px 0;
    background-color: var(--accent-1);
    position: relative;
    transition: all 0.3s ease;
}
.accessible header {
    background-color: var(--accent-1);
    color: #0056b3;
}
h1 {
    font-size: 2.666em;
    color: var(--accent-4);
    text-shadow: 2px 2px 0 var(--accent-2);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.accessible h1 {
    text-shadow: none;
    color: #0056b3;
}
h2 {
    font-size: 1.955em;
    color: var(--accent-3);
    font-size: 1.8em;
    transition: all 0.3s ease;
}
.accessible h2 {
    color: var(--accent-1);
}
p, li {
    font-size: 1.244em;
    transition: all 0.3s ease;
}
.accessible p, .accessible li {
    color: #333333;
}


.pixel-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-3);
    color: var(--text-color);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Jersey10', Arial, sans-serif;
    font-size: 1.244em;
    margin: 10px 0;
    border-radius: 4px;
    border-color: var(--accent-3);
    transition: all 0.3s ease;
}

.pixel-button:hover, .pixel-button:focus {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent-4);
    outline: 2px solid var(--accent-4);
}

.accessible .pixel-button {
    background-color: var(--main-bg);
    color: var(--accent-1);
    font-family: Arial, Helvetica, sans-serif;
}

.accessible .pixel-button:hover,.accessible .pixel-button:focus {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent-1);
    outline: 2px solid var(--accent-1);
} 

#alien-character {
    position: fixed;
    width: 80px; /* oder die tatsächliche Breite Ihres AlienRolli-Bildes */
    height: 80px; /* oder die tatsächliche Höhe Ihres AlienRolli-Bildes */
    background-image: url('AlienRolli.png');
    background-size: cover;
    z-index: 1000;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.1s linear;
}

.accessible #alien-character {
    opacity: 0.2;
}
.pixel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.accessible .pixel-bg {
    opacity: 0.1;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    p, li, .pixel-button {
        font-size: 1.1em;
    }
    .pixel-border {
        padding: 15px;
    }
    #alien-character {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.3em;
    }
    p, li, .pixel-button {
        font-size: 1em;
    }
    .pixel-border {
        padding: 10px;
    }
    #alien-character {
        width: 50px;
        height: 50px;
    }
}

footer {
    background-color: rgba(93, 39, 93, 0.9);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    transition: all 0.3s ease;
}
.accessible footer {
    background-color: var(--accent-1);
    color: #ffffff;
}
footer a {
    color: var(--accent-4);
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
}
.accessible footer a {
    color: #ffffff;
    text-decoration: underline;
}
footer img {
    vertical-align: middle;
    margin-left: 10px;
}

#accessibility-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

@media (max-width: 768px) {
    #accessibility-toggle {
        top: 10px;
        right: 10px;
        font-size: 0.9em;
        padding: 8px 12px;
    }

    header {
        padding-top: 60px; /* Erhöht den oberen Abstand im Header */
    }
}

@media (max-width: 480px) {
    #accessibility-toggle {
        top: 5px;
        right: 5px;
        font-size: 0.8em;
        padding: 6px 10px;
    }

    header {
        padding-top: 50px; /* Anpassung für noch kleinere Bildschirme */
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-1);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

 /* Stil für die Erfolgsmeldung */
 #success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--accent-3);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1002;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#success-message button {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: white;
    color: var(--accent-3);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-group {
     margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 1.2em; /* Label-Größe erhöhen */
    margin-bottom: 5px;
    color: var(--accent-1);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1.1em;
    border: 2px solid var(--accent-2);
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical; /* Benutzer darf die Höhe des Textbereichs anpassen */
}