:root {
    --blue: #2698d0;
    --navy: #063765;
    --pale: #eef6fc;
    --line: #cbd9e5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f9fc;
    color: #092d52;
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* =========================================
   KOPFBEREICH
   ========================================= */

.hero {
    background: linear-gradient(110deg, #07315d 0%, #0875c5 78%, #08477d);
    color: white;
}

.hero-inner {
    max-width: 1050px;
    margin: auto;
    min-height: 195px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 75px;
}

.hero img {
    width: 275px;
    max-height: 165px;
    object-fit: contain;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.15;
    margin: 0;
    font-weight: 800;
}

/* =========================================
   HAUPTBEREICH
   ========================================= */

main {
    max-width: 1050px;
    margin: 18px auto 50px;
    padding: 0 20px;
}

.card {
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 14px;
    box-shadow: 0 6px 22px #173b5b0a;
    padding: 20px 23px;
    margin: 16px 0;
}

h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-size: 23px;
    color: #073762;
}

/* Symbole vor den Abschnittsüberschriften */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 46px;
    height: 46px;
    background: #2698d0;
    border-radius: 50%;
    color: white;
    font-size: 23px;
}

/* =========================================
   FORMULARFELDER
   ========================================= */

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

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: 14px;
    font-weight: 750;
}

input:not([type=checkbox]) {
    width: 100%;
    height: 43px;
    border: 1px solid #c6d3e0;
    border-radius: 7px;
    padding: 10px 13px;
    font: inherit;
    background: white;
    color: #143957;
}

input:focus {
    outline: 2px solid #80bff5;
    outline-offset: 1px;
}

input::placeholder {
    color: #8597aa;
}

.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.zip-city {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

/* =========================================
   NUTZUNGSBEDINGUNGEN
   ========================================= */

.sub {
    margin: -7px 0 15px 66px;
    font-size: 14px;
}

.term {
    background: #eef5fb;
    border-radius: 10px;
    margin: 8px 0;
    overflow: hidden;
}

.term summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 750;
    padding: 10px 16px;
}

.term summary::-webkit-details-marker {
    display: none;
}

.term summary::after {
    content: '⌄';
    margin-left: auto;
    color: #2698d0;
    font-size: 22px;
}

.term[open] summary::after {
    content: '⌃';
}

/* Nummerierte Kreise 1–6 */

.number {
    background: #2698d0;
    color: white;
    border-radius: 50%;
    height: 34px;
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: 17px;
}

.term p {
    padding: 0 20px 16px 66px;
    margin: 0;
    font-size: 14px;
    white-space: normal;
    line-height: 1.6;
}

/* Zustimmung zu den Nutzungsbedingungen */

.accept {
    background: #f1f6fa;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    margin-top: 17px;
}

.accept input {
    width: 23px;
    height: 23px;
    accent-color: #2698d0;
    flex: none;
}

/* Einheitliche Checkbox-Farbe */

.locations-list input[type="checkbox"],
.accept input[type="checkbox"] {
    accent-color: #2698d0;
}

.red {
    color: #d62634;
}

/* =========================================
   UNTERSCHRIFT
   ========================================= */

.signrow {
    display: grid;
    grid-template-columns: 1.4fr .95fr;
    gap: 28px;
}

.signature-wrap {
    position: relative;
}

canvas {
    width: 100%;
    height: 122px;
    display: block;
    border: 2px dashed #c5d6e6;
    border-radius: 7px;
    touch-action: none;
    background: #fbfdff;
}

.placeholder {
    position: absolute;
    pointer-events: none;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #788fa5;
    font-size: 14px;
}

.placeholder.hidden {
    display: none;
}

.signmeta {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.signmeta label {
    font-weight: 700;
    font-size: 14px;
}

.smallbutton {
    margin-top: 10px;
    border: 1px solid #c4d5e4;
    background: #f5f9fc;
    color: #56718c;
    padding: 5px 13px;
    border-radius: 18px;
    cursor: pointer;
}

/* =========================================
   REGISTRIERUNGSBUTTON
   ========================================= */

.submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #076dc4;
    border: 0;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.submit:hover {
    background: #0559a3;
}

.submit:disabled {
    opacity: .6;
    cursor: wait;
}

/* =========================================
   HINWEISE UND ERGEBNIS
   ========================================= */

.notice {
    font-size: 13px;
    color: #705300;
    background: #fff8e3;
    border: 1px solid #f3df9a;
    border-radius: 9px;
    padding: 10px 15px;
}

.result {
    display: none;
    background: #e6f7eb;
    border: 1px solid #93d6a7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.result.error {
    background: #ffeded;
    border-color: #e9a5a5;
    color: #842626;
}

footer {
    text-align: center;
    color: #71869b;
    font-size: 12px;
    padding: 20px;
}

/* =========================================
   SPAMSCHUTZ
   ========================================= */

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

/* =========================================
   GEBURTSDATUM – MOBILE DARSTELLUNG
   ========================================= */

.grid,
.field {
    min-width: 0;
}

input[type="date"] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 43px;
    min-height: 43px;
    padding: 8px 13px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
}

/* iPhone Safari */

input[type="date"]::-webkit-date-and-time-value {
    min-height: 1em;
    text-align: left;
}

input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

/* =========================================
   MOBILE DARSTELLUNG
   ========================================= */

@media (max-width: 680px) {

    .hero-inner {
        gap: 12px;
        min-height: 150px;
        padding: 18px;
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        width: 180px;
        max-height: 100px;
    }

    .hero h1 {
        font-size: 27px;
    }

    main {
        padding: 0 12px;
    }

    .card {
        padding: 17px 15px;
    }

    .grid,
    .address-row,
    .signrow {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .sub {
        margin: 0 0 13px;
    }

    .term summary {
        gap: 10px;
        padding: 10px;
    }

    .term p {
        padding: 0 13px 14px;
    }

    .zip-city {
        grid-template-columns: 110px 1fr;
    }

    h2 {
        font-size: 20px;
    }
}