/* ==========================================================
   Vereinsverwaltung - öffentliche Bereiche
   Referenz-CSS für Antrag, Portal, Ausweis und weitere Module
   ========================================================== */

:root {
    --vv-primary: #d96d25;
    --vv-primary-dark: #b45316;
    --vv-primary-soft: #fff4ea;
    --vv-text: #1f2937;
    --vv-muted: #64748b;
    --vv-border: #dbe3ec;
    --vv-border-strong: #cbd5e1;
    --vv-card: #ffffff;
    --vv-bg: #f8fafc;
    --vv-info-bg: #eef7ff;
    --vv-info-border: #72aee6;
    --vv-error-bg: #fff1f2;
    --vv-error-border: #d63638;
    --vv-success-bg: #ecfdf3;
    --vv-success-border: #2ca043;
    --vv-radius: 14px;
    --vv-radius-small: 8px;
    --vv-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 8px 26px rgba(0, 0, 0, .07);
}

/* ==========================================================
   Grundlayout der öffentlichen VV-Module
   ========================================================== */

.vv-public-page {
    max-width: 1100px;
    margin: 0 auto;
    color: var(--vv-text);
}

.vv-public-page *,
.vv-public-page *::before,
.vv-public-page *::after {
    box-sizing: border-box;
}

.vv-public-page h1,
.vv-public-page h2,
.vv-public-page h3 {
    color: var(--vv-text);
    line-height: 1.25;
}

.vv-public-page h1 {
    font-size: 42px;
    margin: 0 0 24px;
}

.vv-public-page h2 {
    font-size: 32px;
    margin: 0 0 18px;
}

.vv-public-page h3 {
    font-size: 26px;
    margin: 0 0 18px;
}

.vv-public-page p,
.vv-public-page li {
    font-size: 17px;
    line-height: 1.6;
}

.vv-public-page a {
    color: var(--vv-primary-dark);
}

/* ==========================================================
   Karten und Modulflächen
   ========================================================== */

.vv-public-card,
.vv-application-card,
.vv-portal-card,
.vv-card-shell,
.vv-access-card,
.vv-status-card,
.vv-profile-card {
    background: var(--vv-card);
    border: 1px solid var(--vv-border);
    border-radius: var(--vv-radius);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--vv-shadow);
}

.vv-card-shell .vv-member-card,
.vv-member-card {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid var(--vv-border);
    border-left: 6px solid var(--vv-primary);
    border-radius: var(--vv-radius);
    padding: 22px;
    box-shadow: var(--vv-shadow);
}

.vv-card-shell .vv-member-card img,
.vv-member-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.vv-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

/* ==========================================================
   Moderne Formularbasis - nur eigene VV-Formularklassen
   Keine globale form/input-Regel, damit Theme-Suche unangetastet bleibt.
   ========================================================== */

.vv-form,
.vv-application-form,
.vv-portal-form,
.vv-member-form {
    display: grid;
    gap: 16px;
    margin: 0;
}

.vv-form-row {
    margin: 0;
}

.vv-form-row label,
.vv-form-row > label,
.vv-application-form label,
.vv-portal-form label,
.vv-member-form label {
    display: block;
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--vv-text);
}

.vv-application-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-portal-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-member-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-access-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-application-form select,
.vv-portal-form select,
.vv-member-form select,
.vv-access-card select,
.vv-application-form textarea,
.vv-portal-form textarea,
.vv-member-form textarea,
.vv-access-card textarea {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 13px;

    background: #ffffff;
    border: 1px solid var(--vv-border-strong);
    border-radius: var(--vv-radius-small);

    color: var(--vv-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;

    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.vv-application-form textarea,
.vv-portal-form textarea,
.vv-member-form textarea,
.vv-access-card textarea {
    min-height: 120px;
}

.vv-application-form input:focus,
.vv-portal-form input:focus,
.vv-member-form input:focus,
.vv-access-card input:focus,
.vv-application-form select:focus,
.vv-portal-form select:focus,
.vv-member-form select:focus,
.vv-access-card select:focus,
.vv-application-form textarea:focus,
.vv-portal-form textarea:focus,
.vv-member-form textarea:focus,
.vv-access-card textarea:focus {
    outline: none;
    border-color: var(--vv-primary);
    box-shadow: 0 0 0 3px rgba(217, 109, 37, .16);
}

.vv-application-form input[readonly],
.vv-portal-form input[readonly],
.vv-member-form input[readonly],
.vv-access-card input[readonly],
.vv-application-form input[disabled],
.vv-portal-form input[disabled],
.vv-member-form input[disabled],
.vv-access-card input[disabled],
.vv-application-form select[disabled],
.vv-portal-form select[disabled],
.vv-member-form select[disabled],
.vv-access-card select[disabled],
.vv-application-form textarea[disabled],
.vv-portal-form textarea[disabled],
.vv-member-form textarea[disabled],
.vv-access-card textarea[disabled] {
    background: #f6f8fb;
    color: var(--vv-muted);
}

.vv-portal-form .vv-field-admin-only {
    background: var(--vv-info-bg) !important;
    border-color: var(--vv-info-border) !important;
}

.vv-field-note {
    margin: 6px 0 0;
    color: var(--vv-muted);
    font-size: 14px;
}

.vv-photo-preview {
    margin: 0 0 10px;
}

.vv-photo-preview img {
    display: block;
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

/* ==========================================================
   Checkboxen
   ========================================================== */

.vv-form-row-checkbox .vv-checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.vv-form-row-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    accent-color: var(--vv-primary);
}

/* ==========================================================
   Buttons und Aktionen
   ========================================================== */

.vv-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.vv-button,
.vv-public-page .vv-button,
.vv-public-page a.vv-button,
.vv-public-page button.vv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;

    border: 1px solid transparent;
    border-radius: var(--vv-radius-small);

    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
    cursor: pointer;
}

.vv-button-primary,
.vv-public-page button.vv-button-primary {
    background: var(--vv-primary);
    color: #ffffff !important;
}

.vv-button-primary:hover,
.vv-public-page button.vv-button-primary:hover {
    background: var(--vv-primary-dark);
    color: #ffffff !important;
}

.vv-button-secondary,
.vv-public-page a.vv-button-secondary {
    background: #ffffff;
    color: var(--vv-primary-dark) !important;
    border-color: var(--vv-primary);
}

.vv-button-secondary:hover,
.vv-public-page a.vv-button-secondary:hover {
    background: var(--vv-primary-soft);
    color: var(--vv-primary-dark) !important;
}

/* ==========================================================
   Hinweise, Fehler und Erfolgsmeldungen
   ========================================================== */

.vv-info-box,
.vv-notice {
    border-radius: var(--vv-radius-small);
    padding: 12px 14px;
    margin: 14px 0 18px;
}

.vv-info-box {
    background: var(--vv-info-bg);
    border-left: 4px solid var(--vv-info-border);
}

.vv-info-box p,
.vv-notice p {
    margin: 6px 0 0;
}

.vv-notice ul {
    margin: 0 0 0 20px;
}

.vv-notice-error {
    background: var(--vv-error-bg);
    border-left: 4px solid var(--vv-error-border);
}

.vv-notice-success {
    background: var(--vv-success-bg);
    border-left: 4px solid var(--vv-success-border);
}

/* ==========================================================
   Raster für spätere Module
   ========================================================== */

.vv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vv-full {
    grid-column: 1 / -1;
}

.vv-public-page table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.vv-public-page th,
.vv-public-page td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
}

/* ==========================================================
   Sicherheitsnetz für Theme-Suchfelder
   ========================================================== */

.site-header .search-form,
.site-header #searchform,
.site-header form.search-form,
header .search-form,
header #searchform,
header form.search-form {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.site-header .search-form input,
.site-header #searchform input,
.site-header form.search-form input,
header .search-form input,
header #searchform input,
header form.search-form input {
    width: auto !important;
    max-width: none !important;
    min-height: auto !important;
    height: auto !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================
   Mobile Darstellung
   ========================================================== */

@media (max-width: 768px) {
    .vv-public-page h1 {
        font-size: 34px;
    }

    .vv-public-page h2 {
        font-size: 28px;
    }

    .vv-public-page h3 {
        font-size: 23px;
    }

    .vv-public-card,
    .vv-application-card,
    .vv-portal-card,
    .vv-card-shell,
    .vv-access-card,
    .vv-status-card,
    .vv-profile-card,
    .vv-card-shell .vv-member-card,
    .vv-member-card {
        padding: 18px;
        border-radius: 12px;
    }

    .vv-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vv-application-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .vv-portal-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .vv-member-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .vv-access-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .vv-application-form select,
    .vv-portal-form select,
    .vv-member-form select,
    .vv-access-card select,
    .vv-application-form textarea,
    .vv-portal-form textarea,
    .vv-member-form textarea,
    .vv-access-card textarea {
        min-height: 44px;
        padding: 9px 11px;
        font-size: 16px;
    }

    .vv-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vv-button,
    .vv-public-page .vv-button {
        width: 100%;
    }
}

/* ==========================================================
   Pflichtfelder und Validierung
   ========================================================== */

.vv-required-marker {
    color: #d63638;
    font-weight: 800;
}

.vv-form-row-error label,
.vv-form-row-error .vv-checkbox-label {
    color: #991b1b;
}

.vv-form-row-error input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-form-row-error select,
.vv-form-row-error textarea {
    border-color: #d63638 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, .14) !important;
}

.vv-field-error-message {
    margin: 7px 0 0;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.vv-form-row-checkbox .vv-checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--vv-border);
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.5;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.vv-form-row-checkbox .vv-checkbox-label:hover {
    background: var(--vv-primary-soft);
    border-color: var(--vv-primary);
}

.vv-form-row-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--vv-primary);
}

.vv-form-row-checkbox.vv-form-row-error .vv-checkbox-label {
    background: #fff7f7;
    border-color: #d63638;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, .12);
}
/* =========================================================
   Vereinsverwaltung - Material-inspirierter Token-Datepicker
   ========================================================= */

.vv-public-card .vv-access-check,
.vv-access-check {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 620px;
}

.vv-access-check .vv-notice {
    margin: 0 0 4px;
}

.vv-access-check .vv-form-row {
    margin: 0;
}

.vv-access-check label {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
}

.vv-access-check input[type="text"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vv-access-check input[type="text"]:focus {
    border-color: #d66f2a;
    box-shadow: 0 0 0 3px rgba(214, 111, 42, 0.18);
}

.vv-md-date-dialog[hidden] {
    display: none;
}

.vv-md-date-dialog {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.vv-md-date-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.vv-md-date-surface {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 430px);
    max-height: 92vh;
    overflow: auto;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.vv-md-date-header {
    position: relative;
    padding: 22px 72px 22px 24px;
    background: #1662d4;
    color: #ffffff;
}

.vv-md-date-year {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.86;
}

.vv-md-date-title {
    margin-top: 8px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.vv-md-date-edit {
    position: absolute;
    right: 18px;
    top: 22px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
}

.vv-md-date-edit:hover,
.vv-md-date-edit:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.vv-md-date-calendar,
.vv-md-date-input-mode {
    padding: 24px;
}

.vv-md-date-monthbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.vv-md-date-prev,
.vv-md-date-next {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.vv-md-date-prev:hover,
.vv-md-date-next:hover,
.vv-md-date-prev:focus,
.vv-md-date-next:focus {
    background: #f3f4f6;
    outline: none;
}

.vv-md-date-month {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.vv-md-date-weekdays,
.vv-md-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.vv-md-date-weekdays {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.vv-md-date-empty {
    min-height: 42px;
}

.vv-md-date-day {
    min-width: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    font-size: 16px;
    cursor: pointer;
}

.vv-md-date-day:hover,
.vv-md-date-day:focus {
    background: #eef2ff;
    outline: none;
}

.vv-md-date-day.is-selected {
    background: #1662d4;
    color: #ffffff;
    font-weight: 700;
}

.vv-md-date-input-mode label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.vv-md-date-manual {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
}

.vv-md-date-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 16px 18px;
}

.vv-md-date-action {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1662d4;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.vv-md-date-action:hover,
.vv-md-date-action:focus {
    background: #eef2ff;
    outline: none;
}

.vv-md-date-action-primary {
    color: #0f58c7;
}

.vv-access-actions {
    margin-top: 4px;
}

.vv-access-check .vv-button,
.vv-access-check button.vv-button {
    width: 100%;
    max-width: 320px;
    min-height: 56px;
    justify-content: center;
    text-align: center;
}

@media (max-width: 640px) {
    .vv-access-check {
        gap: 16px;
    }

    .vv-access-check input[type="text"] {
        min-height: 50px;
        font-size: 16px;
    }

    .vv-md-date-surface {
        width: min(92vw, 420px);
    }

    .vv-md-date-title {
        font-size: 31px;
    }

    .vv-md-date-calendar,
    .vv-md-date-input-mode {
        padding: 20px;
    }

    .vv-access-check .vv-button,
    .vv-access-check button.vv-button {
        max-width: none;
        width: 100%;
    }
}
/* ==========================================================
   UI Sprint 2 - Einheitliche moderne Formularfelder
   Für Antrag, Portal, Mitgliederformulare und Zugriffskarten
   Ergänzung am Dateiende, keine bestehenden Basisregeln entfernen
   ========================================================== */

.vv-public-page {
    --vv-field-height: 52px;
    --vv-field-radius: 12px;
    --vv-field-border: #d6dee9;
    --vv-field-border-hover: #b9c6d6;
    --vv-field-bg: #ffffff;
    --vv-field-bg-soft: #fbfcfe;
    --vv-field-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --vv-field-focus-shadow: 0 0 0 4px rgba(217, 109, 37, 0.14);
}

/* Formularabstände etwas kompakter und ruhiger */
.vv-form,
.vv-application-form,
.vv-portal-form,
.vv-member-form {
    gap: 14px;
}

/* Formularzeilen bleiben der gemeinsame Anker für Inputs, Selects und Hinweise */
.vv-form-row {
    position: relative;
    margin: 0;
}

/* Labels moderner, aber weiterhin gut lesbar */
.vv-form-row > label,
.vv-application-form .vv-form-row > label,
.vv-portal-form .vv-form-row > label,
.vv-member-form .vv-form-row > label,
.vv-access-card .vv-form-row > label {
    display: block;
    margin: 0 0 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

/* Pflichtstern bleibt klar sichtbar */
.vv-required-marker {
    color: #d63638;
    font-weight: 800;
}

/* Gemeinsame Feldoptik für Textfelder, Selects und Textareas */
.vv-application-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-portal-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-member-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-access-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-application-form select,
.vv-portal-form select,
.vv-member-form select,
.vv-access-card select,
.vv-application-form textarea,
.vv-portal-form textarea,
.vv-member-form textarea,
.vv-access-card textarea {
    width: 100%;
    max-width: 100%;
    min-height: var(--vv-field-height);

    padding: 13px 15px;

    background-color: var(--vv-field-bg);
    border: 1px solid var(--vv-field-border);
    border-radius: var(--vv-field-radius);

    color: var(--vv-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;

    box-shadow: var(--vv-field-shadow);
    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

/* Textareas bewusst höher */
.vv-application-form textarea,
.vv-portal-form textarea,
.vv-member-form textarea,
.vv-access-card textarea {
    min-height: 132px;
    resize: vertical;
}

/* Moderne Selects mit eigenem Pfeil */
.vv-application-form select,
.vv-portal-form select,
.vv-member-form select,
.vv-access-card select {
    padding-right: 48px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px 18px;
}

.vv-application-form select::-ms-expand,
.vv-portal-form select::-ms-expand,
.vv-member-form select::-ms-expand,
.vv-access-card select::-ms-expand {
    display: none;
}

/* Hover-Zustand */
.vv-application-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.vv-portal-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.vv-member-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.vv-access-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.vv-application-form select:hover,
.vv-portal-form select:hover,
.vv-member-form select:hover,
.vv-access-card select:hover,
.vv-application-form textarea:hover,
.vv-portal-form textarea:hover,
.vv-member-form textarea:hover,
.vv-access-card textarea:hover {
    border-color: var(--vv-field-border-hover);
    background-color: var(--vv-field-bg-soft);
}

/* Fokus-Zustand */
.vv-application-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.vv-portal-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.vv-member-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.vv-access-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.vv-application-form select:focus,
.vv-portal-form select:focus,
.vv-member-form select:focus,
.vv-access-card select:focus,
.vv-application-form textarea:focus,
.vv-portal-form textarea:focus,
.vv-member-form textarea:focus,
.vv-access-card textarea:focus {
    border-color: var(--vv-primary);
    background-color: #ffffff;
    box-shadow: var(--vv-field-focus-shadow);
}

/* Platzhalter dezenter */
.vv-application-form input::placeholder,
.vv-portal-form input::placeholder,
.vv-member-form input::placeholder,
.vv-access-card input::placeholder,
.vv-application-form textarea::placeholder,
.vv-portal-form textarea::placeholder,
.vv-member-form textarea::placeholder,
.vv-access-card textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Readonly und disabled klar, aber nicht kaputt wirkend */
.vv-application-form input[readonly],
.vv-portal-form input[readonly],
.vv-member-form input[readonly],
.vv-access-card input[readonly],
.vv-application-form input[disabled],
.vv-portal-form input[disabled],
.vv-member-form input[disabled],
.vv-access-card input[disabled],
.vv-application-form select[disabled],
.vv-portal-form select[disabled],
.vv-member-form select[disabled],
.vv-access-card select[disabled],
.vv-application-form textarea[disabled],
.vv-portal-form textarea[disabled],
.vv-member-form textarea[disabled],
.vv-access-card textarea[disabled] {
    background-color: #f6f8fb;
    border-color: #e2e8f0;
    color: var(--vv-muted);
    cursor: not-allowed;
}

/* Datei-Upload bleibt funktional, bekommt aber dieselbe Grundoptik */
.vv-form-row-file input[type="file"] {
    min-height: auto;
    padding: 12px 14px;
    background-color: #ffffff;
}

/* Hinweise unter Feldern etwas ruhiger */
.vv-field-note {
    margin-top: 7px;
    color: var(--vv-muted);
    font-size: 13px;
    line-height: 1.45;
}

/* Checkboxen nicht wie normale Textlabels behandeln */
.vv-form-row-checkbox .vv-checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;

    width: 100%;
    margin: 0;
    padding: 13px 15px;

    background: #ffffff;
    border: 1px solid var(--vv-field-border);
    border-radius: var(--vv-field-radius);

    color: var(--vv-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;

    box-shadow: var(--vv-field-shadow);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.vv-form-row-checkbox .vv-checkbox-label:hover {
    background: var(--vv-primary-soft);
    border-color: var(--vv-primary);
}

.vv-form-row-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--vv-primary);
}

/* Fehlerzustand bleibt dominant und überschreibt die moderne Feldoptik */
.vv-form-row-error > label,
.vv-form-row-error .vv-checkbox-label {
    color: #991b1b;
}

.vv-form-row-error input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.vv-form-row-error select,
.vv-form-row-error textarea {
    border-color: #d63638 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 4px rgba(214, 54, 56, 0.14) !important;
}

.vv-form-row-checkbox.vv-form-row-error .vv-checkbox-label {
    background: #fff7f7;
    border-color: #d63638;
    box-shadow: 0 0 0 4px rgba(214, 54, 56, 0.12);
}

.vv-field-error-message {
    margin: 7px 0 0;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* Datepicker-Input optisch an die allgemeinen Felder angleichen */
.vv-access-check input[type="text"],
.vv-md-date-manual {
    min-height: var(--vv-field-height);
    padding: 13px 15px;
    border: 1px solid var(--vv-field-border);
    border-radius: var(--vv-field-radius);
    background-color: #ffffff;
    box-shadow: var(--vv-field-shadow);
}

.vv-access-check input[type="text"]:focus,
.vv-md-date-manual:focus {
    border-color: var(--vv-primary);
    box-shadow: var(--vv-field-focus-shadow);
    outline: none;
}

/* Karten bei Formularen etwas hochwertiger, ohne Ausweis-Logik anzufassen */
.vv-application-card,
.vv-portal-card,
.vv-profile-card,
.vv-access-card {
    border-color: #d9e2ec;
}

.vv-application-card h3,
.vv-portal-card h3,
.vv-profile-card h3,
.vv-access-card h3 {
    margin-bottom: 24px;
}

/* Mobile Feinschliff */
@media (max-width: 768px) {

    .vv-form,
    .vv-application-form,
    .vv-portal-form,
    .vv-member-form {
        gap: 13px;
    }

    .vv-form-row > label,
    .vv-application-form .vv-form-row > label,
    .vv-portal