.vvea-app {
    --vvea-green: #2f7d32;
    --vvea-green-dark: #245f27;
    --vvea-green-soft: #eef7ef;
    --vvea-blue-soft: #eef5fb;
    --vvea-border: #d7dee5;
    --vvea-text: #1f2933;
    --vvea-muted: #5f6b76;
    --vvea-danger: #a12622;
    --vvea-focus: #1557b0;
    color: var(--vvea-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    margin: 24px auto;
    max-width: 880px;
}

.vvea-app * { box-sizing: border-box; }

.vvea-shell {
    background: #fff;
    border: 1px solid var(--vvea-border);
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(31, 41, 51, 0.10);
    overflow: hidden;
}

.vvea-header {
    align-items: center;
    background: linear-gradient(135deg, var(--vvea-green-soft), #fff);
    border-bottom: 1px solid var(--vvea-border);
    display: flex;
    gap: 18px;
    padding: 26px 30px;
}

.vvea-brand-mark {
    align-items: center;
    background: var(--vvea-green);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 54px;
    font-size: 31px;
    font-weight: 700;
    height: 54px;
    justify-content: center;
}

.vvea-kicker {
    color: var(--vvea-green-dark);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.vvea-header h1 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.16;
    margin: 0;
}

.vvea-main { padding: 30px; }

.vvea-top-note {
    background: #f6faf6;
    border-bottom: 1px solid var(--vvea-border);
    color: var(--vvea-text);
    font-size: 16px;
    line-height: 1.5;
    padding: 14px 30px;
}

.vvea-top-note strong {
    color: var(--vvea-green-dark);
}

.vvea-welcome h2,
.vvea-question h2,
.vvea-summary h2 {
    font-size: clamp(25px, 3vw, 33px);
    line-height: 1.25;
    margin: 0 0 18px;
}

.vvea-lead {
    font-size: 21px;
    margin-bottom: 18px;
}

.vvea-reassurance {
    background: var(--vvea-blue-soft);
    border-left: 5px solid #3978a8;
    border-radius: 10px;
    padding: 15px 17px;
}

.vvea-privacy {
    background: var(--vvea-green-soft);
    border-radius: 10px;
    margin-top: 18px;
    padding: 15px 17px;
}

.vvea-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.vvea-app .vvea-button,
.vvea-app button.vvea-button,
.vvea-app a.vvea-button {
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    background: #ffffff !important;
    border: 2px solid var(--vvea-green) !important;
    border-radius: 12px;
    color: var(--vvea-green-dark) !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: 12px 19px;
    text-align: center;
    text-decoration: none;
    text-shadow: none !important;
    box-shadow: none;
}

.vvea-app .vvea-button:hover,
.vvea-app button.vvea-button:hover,
.vvea-app a.vvea-button:hover { background: var(--vvea-green-soft) !important; }
.vvea-button:focus-visible,
.vvea-input:focus-visible,
.vvea-choice:focus-visible {
    outline: 4px solid rgba(21, 87, 176, .28);
    outline-offset: 2px;
}

.vvea-app .vvea-button--primary,
.vvea-app button.vvea-button--primary,
.vvea-app a.vvea-button--primary {
    background: var(--vvea-green) !important;
    border-color: var(--vvea-green) !important;
    color: #ffffff !important;
}
.vvea-app .vvea-button--primary:hover,
.vvea-app button.vvea-button--primary:hover,
.vvea-app a.vvea-button--primary:hover { background: var(--vvea-green-dark) !important; }
.vvea-app .vvea-button--secondary,
.vvea-app button.vvea-button--secondary,
.vvea-app a.vvea-button--secondary { border-color: #7b8792 !important; color: #35424d !important; }
.vvea-app .vvea-button--danger,
.vvea-app button.vvea-button--danger,
.vvea-app a.vvea-button--danger { border-color: var(--vvea-danger) !important; color: var(--vvea-danger) !important; }
.vvea-app .vvea-button.is-reading,
.vvea-app button.vvea-button.is-reading,
.vvea-app a.vvea-button.is-reading {
    background: #eef6ff !important;
    border-color: #1557b0 !important;
    color: #0d3c78 !important;
}
.vvea-app .vvea-button[disabled],
.vvea-app button.vvea-button[disabled],
.vvea-app a.vvea-button[disabled] {
    background: #e8eeea !important;
    border-color: #bcc8c0 !important;
    color: #4e5b53 !important;
    cursor: not-allowed;
    opacity: 1;
}

.vvea-progress-wrap { margin-bottom: 26px; }
.vvea-progress-text {
    color: var(--vvea-muted);
    font-size: 16px;
    margin: 0 0 7px;
}
.vvea-progress {
    background: #edf0f2;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}
.vvea-progress > span {
    background: var(--vvea-green);
    display: block;
    height: 100%;
    transition: width .25s ease;
}

.vvea-helper {
    color: var(--vvea-muted);
    margin: -4px 0 18px;
}

.vvea-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.vvea-input {
    background: #fff;
    border: 2px solid #86919b;
    border-radius: 10px;
    font-size: 21px;
    min-height: 56px;
    padding: 12px 14px;
    width: 100%;
}

.vvea-input-row {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.vvea-mic-button {
    min-width: 160px;
}

.vvea-mic-button.is-listening {
    animation: vvea-pulse 1s infinite;
    background: #fff3f2;
    border-color: var(--vvea-danger);
    color: var(--vvea-danger);
}

@keyframes vvea-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(161, 38, 34, .28); }
    50% { box-shadow: 0 0 0 9px rgba(161, 38, 34, 0); }
}

.vvea-choice-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vvea-app .vvea-choice,
.vvea-app button.vvea-choice {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff !important;
    border: 2px solid #87939d !important;
    border-radius: 12px;
    color: var(--vvea-text) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    min-height: 58px;
    padding: 13px 16px;
    text-align: center;
    text-shadow: none !important;
    box-shadow: none;
}
.vvea-app .vvea-choice:hover,
.vvea-app button.vvea-choice:hover { background: #f6f8f9 !important; }
.vvea-app .vvea-choice:focus-visible,
.vvea-app button.vvea-choice:focus-visible {
    outline: 3px solid rgba(42, 107, 59, 0.22);
    outline-offset: 2px;
}
.vvea-app .vvea-choice.is-selected,
.vvea-app button.vvea-choice.is-selected {
    background: var(--vvea-green-soft) !important;
    border-color: var(--vvea-green) !important;
    box-shadow: inset 0 0 0 1px var(--vvea-green);
    color: var(--vvea-text) !important;
}

.vvea-status {
    border-radius: 10px;
    margin-top: 16px;
    min-height: 0;
    padding: 0;
}
.vvea-status:not(:empty) {
    background: var(--vvea-green-soft);
    padding: 12px 14px;
}
.vvea-status--error:not(:empty) {
    background: #fff1f0;
    color: var(--vvea-danger);
}

.vvea-speech-result {
    background: #fff9e8;
    border: 1px solid #e8d18d;
    border-radius: 10px;
    margin-top: 14px;
    padding: 13px 15px;
}

.vvea-summary-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}
.vvea-summary-item {
    background: #f6f8f9;
    border-radius: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(160px, 38%) 1fr;
    padding: 12px 14px;
}
.vvea-summary-item dt { font-weight: 700; }
.vvea-summary-item dd { margin: 0; }

.vvea-footer {
    background: #f7f9fa;
    border-top: 1px solid var(--vvea-border);
    color: var(--vvea-muted);
    font-size: 14px;
    padding: 18px 30px;
}
.vvea-footer p { margin: 2px 0; }
.vvea-version { font-size: 13px; }

.vvea-notice {
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
}
.vvea-notice--error { background: #fff1f0; color: var(--vvea-danger); }

@media (max-width: 680px) {
    .vvea-app { font-size: 17px; margin: 12px auto; }
    .vvea-shell { border-radius: 14px; }
    .vvea-header, .vvea-main { padding: 21px 18px; }
    .vvea-top-note { padding: 12px 18px; font-size: 15px; }
    .vvea-footer { padding: 16px 18px; }
    .vvea-input-row { grid-template-columns: 1fr; }
    .vvea-mic-button { width: 100%; }
    .vvea-choice-grid { grid-template-columns: 1fr; }
    .vvea-actions .vvea-button { width: 100%; }
    .vvea-summary-item { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .vvea-app *, .vvea-app *::before, .vvea-app *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.vvea-section-badge {
    background: var(--vvea-green-soft);
    border: 1px solid #bcd9be;
    border-radius: 999px;
    color: var(--vvea-green-dark);
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 6px 11px;
}

.vvea-summary-group {
    border-top: 1px solid var(--vvea-border);
    margin-top: 28px;
    padding-top: 22px;
}

.vvea-summary-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.vvea-summary-heading h3 {
    font-size: 22px;
    line-height: 1.3;
    margin: 0;
}

.vvea-button--small {
    font-size: 15px;
    min-height: 42px;
    padding: 8px 13px;
}

@media (max-width: 680px) {
    .vvea-summary-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .vvea-summary-heading .vvea-button {
        width: 100%;
    }
}

.vvea-select {
    min-height: 58px;
    width: 100%;
}


.vvea-legal-note {
    background: #fff9e8;
    border-left: 5px solid #b98400;
    border-radius: 10px;
    margin: 16px 0;
    padding: 14px 16px;
}

.vvea-legal-note strong { display: block; margin-bottom: 4px; }

.vvea-optional {
    color: var(--vvea-muted);
    font-size: 16px;
    font-weight: 400;
}

.vvea-checkbox-row {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin: 18px 0;
}

.vvea-checkbox-row input {
    flex: 0 0 auto;
    height: 26px;
    margin-top: 2px;
    width: 26px;
}

.vvea-review-card {
    background: #f6f8f9;
    border: 1px solid var(--vvea-border);
    border-radius: 12px;
    margin: 14px 0;
    padding: 16px;
}

.vvea-review-card h3 { font-size: 22px; margin: 0 0 10px; }
.vvea-review-card dl { margin: 0; }

.vvea-review-row {
    border-top: 1px solid #e0e5e8;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 42%) 1fr auto;
    padding: 11px 0;
}

.vvea-review-row:first-of-type { border-top: 0; }
.vvea-review-row dt { font-weight: 700; }
.vvea-review-row dd { margin: 0; overflow-wrap: anywhere; }

.vvea-warning-list {
    background: #fff9e8;
    border: 1px solid #e4cf89;
    border-radius: 12px;
    padding: 16px 18px 16px 38px;
}

.vvea-success {
    background: var(--vvea-green-soft);
    border: 1px solid #b8d7bb;
    border-radius: 12px;
    padding: 18px;
}

.vvea-small-text { color: var(--vvea-muted); font-size: 15px; }

@media (max-width: 680px) {
    .vvea-review-row { grid-template-columns: 1fr; }
    .vvea-review-row .vvea-button { width: 100%; }
}

/* M011.2: Auswahlfragen gehen nach der Entscheidung automatisch weiter. */
.vvea-choice-hint {
    margin: 10px 0 0;
    color: #4a5863;
    font-size: 0.95rem;
}

.vvea-choice:disabled {
    cursor: wait;
    opacity: 0.82;
}

.vvea-choice.is-selected:disabled {
    opacity: 1;
}

/* M011.3: Theme-sichere Kontraste für Auswahlbuttons. */
.vvea-app .vvea-choice *,
.vvea-app button.vvea-choice * {
    color: inherit !important;
}

.vvea-app .vvea-choice:disabled,
.vvea-app button.vvea-choice:disabled {
    color: var(--vvea-text) !important;
}

.vvea-app .vvea-choice.is-selected:disabled,
.vvea-app button.vvea-choice.is-selected:disabled {
    background: var(--vvea-green-soft) !important;
    border-color: var(--vvea-green) !important;
    color: var(--vvea-text) !important;
}

/* M011.4: Theme-sichere Kontraste für alle Aktionsbuttons, auch im deaktivierten Zustand. */
.vvea-app .vvea-button *,
.vvea-app button.vvea-button *,
.vvea-app a.vvea-button * {
    color: inherit !important;
}

.vvea-app .vvea-button:active,
.vvea-app button.vvea-button:active,
.vvea-app a.vvea-button:active {
    transform: translateY(1px);
}


/* M011.6: Verständliches Starten und Beenden der Spracheingabe. */
.vvea-dictation-hint {
    color: var(--vvea-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 8px 0 0;
}

.vvea-app .vvea-mic-button.is-listening,
.vvea-app button.vvea-mic-button.is-listening {
    background: #8f211e !important;
    border-color: #8f211e !important;
    color: #ffffff !important;
    min-width: 235px;
}
