@font-face {
    font-family: "Anton";
    src: url("fonts/Anton-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

section {
    display: flex;
    flex-direction: column;
}

body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFF9F5;
    font-family: "Anton", Impact, "DejaVu Sans", sans-serif;
    font-weight: normal;
    font-synthesis: none;
    letter-spacing: 0.03em;
    color: #4A1F2D;
}

header {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
width: 100%;
box-sizing: border-box;
padding: 10px 0;
padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.header-buttons {
display: flex;
align-items: center;
justify-self: start;
margin-left: 10px;
}

header h1 {
margin: 0;
font-size: 1.3rem;
white-space: nowrap;
justify-self: center;
}

.header-platzhalter {
justify-self: end;
}

header button {
    margin-left: 10px;
    background: none;
    border: none;
}

main {
    margin-top: 50px;
}

section button {
    margin: 5px;
    padding: 10px 30px;
    width: 200px;
    border-radius: 8px;
    background-color: #800020;
    color: #FFF9F5;
    -webkit-text-fill-color: #FFF9F5;
    transition: background-color 0.2s;
    border: none;
    font-family: inherit;
    letter-spacing: inherit;
    appearance: none;
}

section button:hover {
    background-color: #5C0017;
}

header svg {
    width: 30px;
    height: 30px;
    fill: #4A1F2D;
    transition: fill 0.2s;
}

header button:hover svg {
    fill: #A63D55;
}

#quiztypen {
    display: none;
}

#quiz {
    display: none;
}

#ergebnis {
    display: none;
}

#modusauswahl {
    display: none;
}

#antworten {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

#antworten input {
    font-size: 16px;
    letter-spacing: inherit;
}

#feedback {
    font-weight: bold;
    min-height: 24px;
}

#feedback.richtig {
    color: #2E7D32;
}

#feedback.falsch {
    color: #C62828;
}

.zurueck-button {
    background: none;
    border: none;
    width: auto;
    padding: 8px;
    margin-top: 20px;
}

.zurueck-button svg {
    width: 24px;
    height: 24px;
    fill: #4A1F2D;
    transition: fill 0.2s;
}

.zurueck-button:hover {
    background: none;
}

.zurueck-button:hover svg {
    fill: #A63D55;
}

#rekorduebersicht {
    display: none;
}

#rekorde-liste h3 {
    margin-bottom: 4px;
}

#rekorde-liste ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

#karten-container {
    display: none;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}

#karten-container svg {
    width: 100%;
    height: auto;
}

#karten-container .eigenstaendig {
    fill: #c0c0c0;
}

#karten-container .markiert {
    fill: #C62828 !important;
    opacity: 1;
}

#karten-container .markierungspunkt {
fill: #C62828;
stroke: white;
stroke-width: 1;
}

footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    padding: 10px;
}

footer a {
    color: inherit;
}

#karten-quelle {
    display: none;
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    padding: 10px;
}

#karten-quelle a {
    color: inherit;
}

@media (max-width: 600px) {
    header svg {
        width: 22px;
        height: 22px;
    }
}

section .zurueck-button {
    background: none;
    color: #4A1F2D;
    -webkit-text-fill-color: #4A1F2D;
}

section .zurueck-button svg {
    fill: #4A1F2D;
}