* {
    box-sizing: border-box;
}

:root {
    --brand-blue: #0a3d62;
    --brand-blue-light: #eaf2fb;
    --brand-orange: #e8590c;
    --text: #1c2530;
    --muted: #5b6b7a;
    --border: #d8dee5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f6f8;
    color: var(--text);
    margin: 0;
    padding: 0;
}

.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.site-header {
    padding: 8px 4px 20px;
}

.site-title h1 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--brand-blue);
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.container {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(10, 61, 98, 0.08);
    border-top: 3px solid var(--brand-orange);
}

.container.narrow {
    max-width: 380px;
    margin: 40px auto;
}

h1 {
    margin-top: 0;
    font-size: 22px;
    color: var(--brand-blue);
}

label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-blue);
    margin: 26px 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-section-title:first-child {
    margin-top: 0;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-right: 4px;
    vertical-align: middle;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.12);
}

select:disabled {
    background: #f0f2f4;
    color: #9aa5b1;
}

.step-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 560px) {
    .step-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0 12px;
    }
}

.hint {
    font-size: 13px;
    color: var(--brand-orange);
    min-height: 16px;
    margin: 8px 0 0;
}

button {
    margin-top: 24px;
    width: 100%;
    padding: 12px;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

button:hover:not(:disabled) {
    background: #082f4c;
}

button:disabled {
    background: #b7c2cc;
    cursor: not-allowed;
}

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fdecea;
    color: #c62828;
}

.alert-info {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.alert-info div + div {
    margin-top: 8px;
}

.alert-success {
    background: #e6f4ea;
    color: #256428;
}

a {
    color: var(--brand-blue);
}

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 20px;
}

/* Honeypot: für Menschen unsichtbar, bleibt aber im DOM (Bots füllen es oft aus) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

.access-gate {
    text-align: center;
    padding: 24px 8px 12px;
}

.access-gate-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.access-gate-title {
    font-size: 19px;
    color: var(--brand-blue);
    margin: 0 0 8px;
}

.access-gate-text {
    font-size: 14px;
    color: var(--muted);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.6;
}

.access-gate-contact {
    display: inline-block;
    margin-top: 18px;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* Status-/Ergebnisseiten (Bestätigen, Ablehnen, Danke-Seite) */
.status-page {
    text-align: center;
    padding: 20px 8px 8px;
}

.status-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}

.status-icon.status-success { background: #e6f4ea; }
.status-icon.status-info { background: var(--brand-blue-light); }
.status-icon.status-warning { background: #fff3cd; }
.status-icon.status-error { background: #fdecea; }

.status-title {
    font-size: 20px;
    margin: 0 0 10px;
}

.status-page .status-title { color: var(--brand-blue); }

.status-text {
    font-size: 14px;
    color: var(--muted);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.65;
}

.status-details {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 4px 20px;
    margin: 22px auto 4px;
    max-width: 380px;
    text-align: left;
}

.status-details-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #eceff2;
    font-size: 14px;
}

.status-details-row:last-child { border-bottom: none; }

.status-details-label {
    color: var(--muted);
    font-size: 12px;
    flex-shrink: 0;
    padding-top: 2px;
}

.status-details-value {
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.status-actions {
    margin-top: 26px;
}

.status-actions a {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-blue);
    border-bottom: 1px solid currentColor;
    font-size: 14px;
}
