:root {
    --background: #f8f5ef;
    --text: #222222;
    --muted: #666666;

    --accent: #4f6547;
    --accent-hover: #3f5239;

    --border: #ddd6ca;

    --max-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family:
            Inter,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;

    line-height: 1.7;
}

main {
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
}

/* ------------------------------------------------ */
/* Hero */
/* ------------------------------------------------ */

.hero {
    padding: 3.5rem 0 1rem;
}

.mark {
    margin: 0 0 1rem;

    color: var(--accent);

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;

    font-size: clamp(2.4rem, 5.2vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;

    max-width: 14ch;
}

.lead {
    margin-top: 1.75rem;

    max-width: 42rem;

    font-size: 1.2rem;
    color: var(--muted);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.button,
button {
    display: inline-block;

    margin-top: 2rem;

    border: none;
    border-radius: 999px;

    padding: 0.95rem 1.4rem;

    background: var(--accent);
    color: white;

    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition:
            background 0.2s ease,
            transform 0.2s ease;
}

.button:hover,
button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ------------------------------------------------ */
/* Content */
/* ------------------------------------------------ */

.content {
    margin: 1rem 0 1rem 0;
}

h2 {
    margin-bottom: 1.5rem;

    font-size: 1.9rem;
    line-height: 1.2;
}

.content p,
.signup p {
    color: var(--muted);
}

.content p {
    margin-bottom: 1.5rem;
}

/* ------------------------------------------------ */
/* Signup */
/* ------------------------------------------------ */

.signup {
    margin: 3.5rem 0 2rem;

    padding: 2.5rem;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.65);

    backdrop-filter: blur(6px);
}

form {
    margin-top: 2rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="email"] {
    width: 100%;

    padding: 1rem 1.1rem;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: white;

    font: inherit;
}

input[type="email"]:focus {
    outline: 3px solid rgba(79, 101, 71, 0.18);
    border-color: var(--accent);
}

.checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;

    color: var(--muted);
    font-size: 0.95rem;
}

.checkbox input {
    margin-top: 0.3rem;
}

#form-message {
    min-height: 1.5rem;

    color: var(--accent);
    font-weight: 600;
}

/* ------------------------------------------------ */
/* Footer */
/* ------------------------------------------------ */

footer {
    width: min(100% - 40px, var(--max-width));
    margin: 3.5rem auto 0;

    padding: 2rem 0 4rem;

    color: var(--muted);
    font-size: 0.9rem;
}

/* ------------------------------------------------ */
/* Mobile */
/* ------------------------------------------------ */

@media (max-width: 700px) {
    main,
    footer {
        width: min(100% - 28px, var(--max-width));
    }

    .hero {
        padding: 2.5rem 0 1.5rem;
    }

    h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        max-width: 12ch;
    }

    .lead {
        font-size: 1.05rem;
    }

    .content {
        margin: 2.5rem 0;
    }

    .signup {
        padding: 1.75rem;
        border-radius: 20px;
    }
}

.language-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.language-switch a {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
}

.language-switch a:hover {
    opacity: 1;
}

.language-switch a.active {
    opacity: 1;
    font-weight: 600;
}

/* ------------------------------------------------ */
/* Termine */
/* ------------------------------------------------ */

.appointments {
    margin: 2rem 0 1.25rem;

    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.55);
}

.appointments table {
    width: 100%;

    border-collapse: collapse;

    text-align: left;
}

.appointments th,
.appointments td {
    padding: 1rem 1.1rem;
}

.appointments th {
    color: var(--text);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.appointments td {
    color: var(--muted);

    border-top: 1px solid var(--border);
}

.appointments td:first-child {
    color: var(--text);
    font-weight: 600;
}

.appointment-weekday {
    display: block;

    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 700;
}

.content .appointment-note {
    margin-top: 1rem;

    font-size: 0.95rem;
}

.appointments th,
.appointments td {
    padding: 0.85rem 0.75rem;
    font-size: 0.9rem;
}

.appointments th:nth-child(2),
.appointments td:nth-child(2) {
    white-space: nowrap;
}

.supporters {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.supporters li {
    padding: 0.45rem 0.8rem;
    border: 1px solid #d8d5cf;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: #183A2B;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}
