/* Voice Enroll 1.2.3 – elegante, ruhige Kachel im 70-plus-Stil */

.ve-wrap {
    margin: 40px auto;
    padding: 24px 28px;
    border-radius: 10px;
    border: 1px solid #808080;
    background: #f5f5f5;
    box-shadow: 9px 9px 12px rgba(0, 0, 0, 0.25);
    font-family: Georgia, "Liberation Serif", serif;
    color: #003b78;
    max-width: 560px;
    text-align: center;
}

.ve-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

/* Ein großer, ruhiger Hauptbutton */
.ve-btn {
    font-family: Georgia, "Liberation Serif", serif;
    font-size: 28px;
    line-height: 1.2;
    padding: 14px 32px;
    border-radius: 10px;
    border: 1px solid #808080;
    cursor: pointer;
    background: #003b78;
    color: #ffffff;
    box-shadow: 9px 9px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease-in-out, filter 0.15s ease-in-out;
}

.ve-btn:hover,
.ve-btn:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.ve-btn[disabled] {
    opacity: 0.6;
    cursor: default;
    transform: none;
    filter: none;
}

/* Recorder-Bereich unter dem Button: Zeit + dünner Fortschrittsbalken */
.ve-recorder {
    margin: 6px auto 14px auto;
    max-width: 420px;
    text-align: center; /* Timer mittig */
}

.ve-recorder-row {
    display: flex;
    justify-content: center; /* Timer mittig statt space-between */
    align-items: baseline;
    margin-bottom: 4px;
}

.ve-timer {
    font-size: 18px;
    font-family: Georgia, "Liberation Serif", serif;
}

/* Dünner Balken, optisch ruhig */
.ve-progress {
    width: 100%;
    height: 4px;
}

/* Aktionen erst nach Aufnahme sinnvoll */
.ve-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ve-btn-primary,
.ve-btn-secondary {
    font-family: Georgia, "Liberation Serif", serif;
    border-radius: 10px;
    border: 1px solid #808080;
    cursor: pointer;
    box-shadow: 9px 9px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease-in-out, filter 0.15s ease-in-out;
}

/* Speichern etwas prominenter */
.ve-btn-primary {
    font-size: 22px;
    line-height: 1.2;
    padding: 10px 26px;
    background: #003b78;
    color: #ffffff;
}

/* Anhören dezenter */
.ve-btn-secondary {
    font-size: 20px;
    line-height: 1.2;
    padding: 8px 20px;
    background: #ffffff;
    color: #003b78;
}

.ve-btn-primary:hover,
.ve-btn-secondary:hover,
.ve-btn-primary:focus,
.ve-btn-secondary:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.ve-btn-primary[disabled],
.ve-btn-secondary[disabled] {
    opacity: 0.6;
    cursor: default;
    transform: none;
    filter: none;
}

/* Statusmeldung darunter */
.ve-msg {
    margin-top: 8px;
    font-size: 20px;
    min-height: 1.2em;
}

.ve-msg.ve-ok {
    color: #006400;
}

.ve-msg.ve-error {
    color: #b00020;
}

/* Responsiv */
@media (max-width: 640px) {
    .ve-wrap {
        padding: 18px 16px;
        max-width: 100%;
    }
    .ve-recorder {
        max-width: 100%;
    }
    .ve-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ve-btn,
    .ve-btn-primary,
    .ve-btn-secondary {
        width: 100%;
        text-align: center;
    }
}
