/*
 * Farben und Schriften oben anpassen, damit die Seite zur Hauptwebsite passt.
 * Bewusst keine externen Schriften (z. B. Google Fonts) – aus Datenschutzgründen.
 */
:root {
    --bg: #e6ecea;
    --paper: #fbfcfb;
    --ink: #1c2624;
    --muted: #5a6663;
    --line: #c9d3d0;
    --accent: #2e5e55;
    --accent-hover: #244b44;
    --accent-ink: #ffffff;
    --success: #2e6a3e;
    --error: #9b2f24;
    --focus: #d18f1f;

    --font-heading: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 2rem;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
}

.site-header,
.panel,
.site-footer {
    width: 100%;
    max-width: 34rem;
}

.site-header {
    padding: 0.5rem 0 1.25rem;
}

.site-name {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    text-decoration: none;
}

.site-name:hover {
    text-decoration: underline;
}

.panel {
    background: var(--paper);
    border-top: 6px solid var(--accent);
    border-radius: 2px 2px 10px 10px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 1px 0 var(--line);
}

h1 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.85rem, 5vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1rem;
}

.lead {
    color: var(--muted);
    max-width: 30rem;
}

a {
    color: var(--accent);
}

/* ---- Formular ---- */

.form {
    margin: 1.75rem 0 1.5rem;
}

.label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.input {
    display: block;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.input:hover {
    border-color: var(--muted);
}

.input[aria-invalid="true"] {
    border-color: var(--error);
}

.field-error {
    margin: 0.5rem 0 0;
    color: var(--error);
    font-weight: 600;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-hover);
}

.button--quiet {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 1.5px var(--accent);
}

.button--quiet:hover {
    background: var(--bg);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.fineprint {
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

/* Honeypot: für Menschen unsichtbar, für Screenreader ausgeblendet */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Meldungen ---- */

.message--success h1 {
    color: var(--success);
}

.message--error h1 {
    color: var(--error);
}

.panel:has(.message--success) {
    border-top-color: var(--success);
}

.panel:has(.message--error) {
    border-top-color: var(--error);
}

.actions {
    margin: 1.5rem 0 0;
}

.actions .button {
    margin-top: 0;
}

/* ---- Fußzeile ---- */

.site-footer {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--muted);
}

@media (max-width: 30rem) {
    .panel {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}
