/* TSV Online-Beitritt – Formular im Vereinsdesign 4b */

#top .tsvb,
.tsvb {
    --tsvbPrimary: #2F4769;
    --tsvbPrimaryDark: #22345a;
    --tsvbInk: #0f1726;
    --tsvbMuted: #4f5b6e;
    --tsvbLine: #cdd5e1;
    --tsvbError: #b3261e;
    max-width: 860px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--tsvbInk);
}

#top .tsvb [hidden] {
    display: none !important;
}

#top .tsvb .tsvbNote,
#top .tsvb .tsvbHint {
    margin: 0 0 16px;
    font-size: 15px;
    color: var(--tsvbMuted);
}

#top .tsvb .tsvbCard {
    margin: 0 0 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 38, 0.06);
    min-width: 0;
}

#top .tsvb .tsvbLegend {
    padding: 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--tsvbPrimaryDark);
}

#top .tsvb .tsvbGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

#top .tsvb .tsvbGridAddress {
    margin-top: 14px;
}

#top .tsvb .tsvbField {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    min-width: 0;
}

#top .tsvb .tsvbFieldWide {
    grid-column: 1 / -1;
}

#top .tsvb .tsvbLabel {
    font-size: 14px;
    font-weight: 600;
    color: var(--tsvbInk);
}

#top .tsvb .tsvbField input,
#top .tsvb .tsvbField select {
    border: unset;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
    font: inherit;
    color: var(--tsvbInk);
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--tsvbLine);
    transition: box-shadow 100ms ease-in-out;
}

#top .tsvb .tsvbField select {
    cursor: pointer;
}

#top .tsvb .tsvbField input:hover,
#top .tsvb .tsvbField select:hover {
    box-shadow: inset 0 0 0 1px var(--tsvbPrimary);
}

#top .tsvb .tsvbField input:focus,
#top .tsvb .tsvbField select:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--tsvbPrimary);
}

#top .tsvb .tsvbFieldInvalid input,
#top .tsvb .tsvbFieldInvalid select {
    box-shadow: inset 0 0 0 2px var(--tsvbError);
}

#top .tsvb .tsvbError {
    min-height: 18px;
    font-size: 13px;
    color: var(--tsvbError);
}

#top .tsvb .tsvbConsent {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e6eaf0;
}

#top .tsvb .tsvbConsentTitle {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--tsvbMuted);
}

#top .tsvb .tsvbCheck {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 15px;
    cursor: pointer;
}

#top .tsvb .tsvbCheck input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    accent-color: var(--tsvbPrimary);
    cursor: pointer;
}

#top .tsvb .tsvbActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

#top .tsvb .tsvbResult .tsvbActions {
    margin: 16px 0 0;
}

#top .tsvb .tsvbButton {
    border: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    box-sizing: border-box;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    color: var(--tsvbPrimary);
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--tsvbLine);
    cursor: pointer;
    transition: background-color 100ms ease-in-out, color 100ms ease-in-out, box-shadow 100ms ease-in-out;
}

#top .tsvb .tsvbButton:hover,
#top .tsvb .tsvbButton:focus-visible {
    background: #eef2f8;
    box-shadow: inset 0 0 0 1px var(--tsvbPrimary);
}

#top .tsvb .tsvbButtonPrimary {
    color: #fff;
    background: var(--tsvbPrimary);
    box-shadow: none;
}

#top .tsvb .tsvbButtonPrimary:hover,
#top .tsvb .tsvbButtonPrimary:focus-visible {
    color: #fff;
    background: var(--tsvbPrimaryDark);
    box-shadow: none;
}

#top .tsvb .tsvbButtonQuiet {
    margin-top: 14px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tsvbMuted);
}

#top .tsvb .tsvbButtonBusy {
    opacity: 0.6;
    cursor: progress;
}

#top .tsvb .tsvbFormError {
    margin: 0 0 12px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--tsvbError);
    background: #fdecea;
    border-radius: 10px;
}

#top .tsvb .tsvbResult {
    margin-top: 24px;
    border-left: 4px solid var(--tsvbPrimary);
}

#top .tsvb .tsvbResultTitle {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    text-transform: none;
    color: var(--tsvbPrimaryDark);
}

@media (max-width: 600px) {
    #top .tsvb .tsvbGrid {
        grid-template-columns: minmax(0, 1fr);
    }

    #top .tsvb .tsvbCard {
        padding: 16px 14px;
    }

    #top .tsvb .tsvbActions .tsvbButton {
        width: 100%;
    }
}
