:root {
    --pane-background: #f7efe6;
    --component-base-color: #ffffff;
    --component-hover-background: rgb(252, 226, 214) !important;
    --component-hover-lighter-background: rgb(254, 240, 232) !important;
    --component-focus-background: rgb(246, 205, 120);
    --component-active-background: rgb(178, 34, 52);
    --component-border-radius: 0.5rem;

    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;

    color: #222;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

* {
    outline: none;
}

html,
body {
    min-height: 100vh;
}

body,
body::backdrop,
body:fullscreen {
    margin: 0;
    background: linear-gradient(
        90deg,
        rgba(122, 16, 30, 1) 0%,
        rgba(164, 28, 44, 1) 45%,
        rgba(20, 83, 45, 1) 100%
    );
}

body::before {
    content: " ";
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.12;
    background: var(--scribble-background) repeat;
    background-size: 400px 400px;
    background-repeat: repeat;
    z-index: -1;
}

footer,
.help-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

footer {
    padding: 0.1rem;
    background-color: #14532d;
    color: white;
}

.help-footer {
    flex-wrap: wrap;
}

a:link,
a:visited {
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

h1,
h2 {
    margin: 0;
    text-align: center;
    color: rgb(248, 148, 164);
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 4rem;
}

ul {
    margin: 0;
}

select,
input,
button,
textarea {
    background-color: var(--component-base-color);
    color: inherit;
    border-radius: var(--component-border-radius);
    border: 2px hidden;
}

input:hover,
button:hover,
select:hover,
textarea:hover {
    background-color: var(--component-hover-background);
}

input:focus,
button:focus,
select:focus,
textarea:focus {
    background-color: var(--component-focus-background);
}

button:active {
    background-color: var(--component-active-background);
}

input,
select {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

textarea {
    padding-left: 0.4rem;
    padding-top: 0.2rem;
    min-width: 0;
    resize: none;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.noscript {
    display: flex;
    font-size: 2.5rem;
    font-weight: bold;
    justify-content: center;
    border-bottom: 1rem solid black;
    padding: 10px;
}

/* Weihnachtlicher Schneefall nur im Design „Winterabend“, hinter dem Inhalt. */
[data-theme="winterabend"] body::after {
    content: " ";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(3px 3px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 90px 120px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 160px 60px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 230px 180px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(4px 4px at 300px 100px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 320px 240px;
    animation: snowfall 14s linear infinite;
    opacity: 0.8;
}

@keyframes snowfall {
    from { background-position: 0 0; }
    to { background-position: 40px 240px; }
}

@media (prefers-reduced-motion: reduce) {
    [data-theme="winterabend"] body::after { animation: none; }
}

/* Tastaturfokus sichtbar halten (upstream blendet jede Kontur aus). */
:focus-visible {
    outline: 3px solid var(--focus-ring, #E8B04B) !important;
    outline-offset: 2px;
}
