/*
 * Sprach-Reiter im Termin-Formular (public/js/event-translate.js).
 * Nur Tokens aus tokens.css bzw. die --ae-*-Werte des Formulars - der helle
 * Modus kommt damit von selbst. Mobile first: die drei Reiter teilen sich die
 * Breite, jedes Tap-Ziel ist mindestens 44px hoch.
 */

.et-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: var(--ae-field);
}

.et-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.et-tab[aria-selected="true"] {
    border-color: var(--accent-text);
    background: var(--accent-soft);
    color: var(--accent-text);
}

.et-tab:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 2px;
}

/* Kleiner Punkt in der Ecke: in dieser Sprache steht schon ein Titel.
   Fest positioniert, damit er die Beschriftung auf dem Handy nicht umbricht. */
.et-tab--filled::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.et-hint {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Sprach-Marke an Titel, Untertitel und Beschreibung. */
.et-chip {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

/* Feld traegt einen unangetasteten Vorschlag von sotra. */
.et-machine {
    border-style: dashed;
    border-color: var(--accent-line);
}

.et-status {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

.et-status:empty {
    display: none;
}

.et-status--ok {
    color: var(--muted);
}

.et-status--error {
    color: var(--ae-err-text);
}

.et-again {
    align-self: flex-start;
    margin-top: 10px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--accent-line);
    border-radius: 12px;
    background: transparent;
    color: var(--accent-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.et-again[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .et-tab { font-size: 0.8rem; padding: 8px 2px; }
}
