* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f1eb;
    color: #202020;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand {
    color: #123d2a;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}

.logo {
    height: 58px;
    width: auto;
    max-width: 170px;
}

nav {
    position: absolute;
    right: 16px;
}

nav a,
.site-footer a {
    color: #123d2a;
    font-weight: 700;
}

/* Layout */
.container {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 16px;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

h1 {
    margin-top: 0;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Formular */
label {
    display: block;
    font-weight: 700;
    margin: 18px 0 6px;
}

label span {
    font-weight: 400;
    color: #666;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #bbb;
    border-radius: 10px;
    font: inherit;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
}

.checkbox input {
    width: auto;
    margin-top: 4px;
}

button {
    border: 0;
    border-radius: 12px;
    padding: 14px 20px;
    background: #123d2a;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.1);
}

button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Hinweise / Ergebnisse */
.hint {
    background: #eef6ef;
    border-left: 4px solid #123d2a;
    padding: 12px;
    border-radius: 8px;
}

.progress-area {
    margin: 20px 0;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 18px;
    background: #e4e4e4;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #123d2a;
    transition: width .2s ease;
}

.result-box {
    margin: 18px 0;
    padding: 16px;
    border-radius: 12px;
}

.result-box h2 {
    margin-top: 0;
}

.result-box.success {
    background: #eef6ef;
    border: 1px solid #b9d7c1;
}

.result-box.error {
    background: #fff0f0;
    border: 1px solid #e2b5b5;
}

pre {
    background: #f3f3f3;
    padding: 12px;
    border-radius: 8px;
    overflow: auto;
}

/* Footer */
.site-footer {
    width: 100%;
    margin-top: 50px;
    padding: 24px 16px 34px;
    text-align: center;
    color: #555;
    background: #f7f7f7;
    border-top: 1px solid #ddd;
}

.site-footer a {
    color: #123d2a;
    font-weight: 700;
}

.footer-links {
    margin-bottom: 22px;
}

/* Sponsor im Footer */
.sponsor-footer {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.sponsor-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.sponsor-inner img {
    display: block;
    max-width: 240px;
    width: 100%;
    height: auto;
}

/* Mobil */
@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .header-inner {
        padding: 14px 16px;
    }

    nav {
        position: static;
        margin-top: 10px;
        transform: none;
    }

    .logo {
        height: 48px;
        max-width: 150px;
    }

    .site-footer {
        margin-top: 40px;
        padding: 22px 16px 32px;
    }

    .sponsor-inner img {
        max-width: 220px;
    }
}

