/* =========================================================
   Gemeinsames Layout für Wizard-Seiten (Präfix .tw-)
   Genutzt von: Tätigkeit hinzufügen (/vereins-auswahl),
                Vereinsregistrierung (/vereins-registrierung)
   Der Schritt-Indikator selbst liegt in WizardStepper.razor.css
   ========================================================= */

.tw-page {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: clamp(12px, 4vw, 40px) 12px 48px;
}

.tw-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 640px;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--c-c4dcf024, rgba(196, 220, 240, 0.14));
    border-radius: 22px;
    background: linear-gradient(160deg, var(--c-b4d7f014, rgba(180, 215, 240, 0.08)), var(--c-0512268c, rgba(5, 18, 38, 0.55)));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--c-e9f1f7, #e9f1f7);
    animation: tw-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---------- Kopf ---------- */

.tw-header {
    text-align: center;
}

.tw-title {
    margin: 0;
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    font-weight: 700;
    color: var(--c-ffffff, #ffffff);
}

.tw-subtitle {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--c-ffffff99, rgba(255, 255, 255, 0.6));
}

/* ---------- Schritt-Inhalt & Animation ---------- */

.tw-viewport {
    position: relative;
    overflow: hidden;
    /* Fokus-Ringe/Schatten nicht abschneiden */
    margin: -8px;
    padding: 8px;
    min-height: 280px;
}

.tw-step {
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation-duration: 0.42s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

.tw-step.slide-in-right {
    animation-name: tw-slide-in-right;
}

.tw-step.slide-in-left {
    animation-name: tw-slide-in-left;
}

/* Inhalte des Schritts leicht versetzt einblenden */
.tw-step > * {
    animation: tw-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tw-step > *:nth-child(2) { animation-delay: 0.05s; }
.tw-step > *:nth-child(3) { animation-delay: 0.1s; }
.tw-step > *:nth-child(4) { animation-delay: 0.15s; }
.tw-step > *:nth-child(5) { animation-delay: 0.2s; }

.tw-step-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--c-ffffff, #ffffff);
}

.tw-step-hint {
    margin: -14px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--c-ffffff9e, rgba(255, 255, 255, 0.62));
}

.tw-step-hint.tw-step-hint--flush {
    margin: 0;
}

/* ---------- Felder ---------- */

.tw-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tw-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.tw-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-ffffffe6, rgba(255, 255, 255, 0.9));
}

.tw-optional {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--c-ffffff12, rgba(255, 255, 255, 0.07));
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--c-ffffff8c, rgba(255, 255, 255, 0.55));
}

.tw-counter {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--c-ffffff73, rgba(255, 255, 255, 0.45));
}

.tw-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.45;
}

.tw-input:focus {
    outline: none;
    border-color: var(--accent-border);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

.tw-input::placeholder {
    opacity: 0.45 !important;
}

textarea.tw-input {
    resize: vertical;
    min-height: 96px;
}

.tw-field-hint {
    margin: -8px 0 0;
    font-size: 0.85rem;
    color: var(--c-ffffff99, rgba(255, 255, 255, 0.6));
}

/* Mehrspaltige Feldzeilen (auf Mobil untereinander) */
.tw-grid {
    display: grid;
    gap: 16px;
}

.tw-grid--plz {
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
}

.tw-grid--strasse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 90px) minmax(0, 90px);
}

/* Fester Wert, der nicht bearbeitet werden kann */
.tw-readonly {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border: 1px dashed var(--c-c4dcf033, rgba(196, 220, 240, 0.2));
    border-radius: 14px;
    background: var(--c-00000026, rgba(0, 0, 0, 0.15));
}

.tw-readonly-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-ffffff80, rgba(255, 255, 255, 0.5));
}

.tw-readonly-value {
    font-weight: 600;
    color: var(--c-ffffff, #ffffff);
    overflow-wrap: anywhere;
}

/* Eingabefeld mit Icon links */
.tw-input-icon {
    position: relative;
}

.tw-input-icon > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--c-ffffff73, rgba(255, 255, 255, 0.45));
    pointer-events: none;
    transition: color 0.2s ease;
}

.tw-input-icon > .tw-input {
    padding-left: 46px;
}

.tw-input-icon:focus-within > i {
    color: var(--accent);
}

.tw-input--mono,
.tw-mono {
    font-family: "Source Code Pro", ui-monospace, monospace;
    letter-spacing: 0.04em;
}

/* Validierung */
.tw-input.is-invalid {
    border-color: var(--c-ff8a9a99, rgba(255, 138, 154, 0.6));
}

.tw-input.is-invalid:focus {
    box-shadow: 0 0 0 4px var(--cs-ff8a9a33, rgba(255, 138, 154, 0.2));
}

.tw-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -4px;
    font-size: 0.82rem;
    color: var(--accent-danger);
    animation: tw-fade-up 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tw-valid-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    animation: tw-pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Kleine Ablauf-Erklärung (z. B. 1-Cent-Überweisung) */
.tw-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--c-75c8ff33, rgba(117, 200, 255, 0.2));
    border-radius: 16px;
    background: var(--c-75c8ff0f, rgba(117, 200, 255, 0.06));
    list-style: none;
}

.tw-timeline li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--c-ffffffcc, rgba(255, 255, 255, 0.8));
}

/* Verbindungslinie zwischen den Punkten */
.tw-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    bottom: -14px;
    left: 15px;
    width: 2px;
    background: var(--c-75c8ff40, rgba(117, 200, 255, 0.25));
}

.tw-timeline-dot {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-75c8ff26, rgba(117, 200, 255, 0.15));
    font-size: 0.85rem;
    color: var(--accent-info);
}

.tw-timeline--success {
    max-width: 460px;
    text-align: left;
    animation: tw-fade-up 0.4s 0.75s both;
}

/* ---------- Vereinssuche ---------- */

.tw-search {
    position: relative;
}

.tw-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--c-ffffff80, rgba(255, 255, 255, 0.5));
    pointer-events: none;
}

.tw-search-input {
    padding-left: 46px;
    padding-right: 46px;
}

.tw-search-spinner {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid var(--c-ffffff2e, rgba(255, 255, 255, 0.18));
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: tw-spin 0.7s linear infinite;
}

.tw-search-spinner--inline,
.tw-search-spinner--btn {
    position: static;
    display: inline-block;
    margin: 0;
}

.tw-search-spinner--btn {
    width: 14px;
    height: 14px;
    border-color: var(--c-06221840, rgba(6, 34, 24, 0.25));
    border-top-color: var(--accent-on);
}

.tw-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.tw-results li {
    animation: tw-fade-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tw-results li:nth-child(2) { animation-delay: 0.03s; }
.tw-results li:nth-child(3) { animation-delay: 0.06s; }
.tw-results li:nth-child(4) { animation-delay: 0.09s; }
.tw-results li:nth-child(n+5) { animation-delay: 0.12s; }

.tw-result,
.tw-selected {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-c4dcf024, rgba(196, 220, 240, 0.14));
    border-radius: 14px;
    background: var(--c-b4d7f00d, rgba(180, 215, 240, 0.05));
    color: inherit;
    text-align: left;
}

.tw-result {
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.tw-result:hover,
.tw-result:focus-visible {
    outline: none;
    border-color: var(--accent-border);
    background: var(--accent-bg);
    transform: translateX(3px);
}

.tw-result-icon,
.tw-selected-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-bg);
    color: var(--accent);
}

.tw-result-text,
.tw-selected-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tw-result-title {
    font-weight: 600;
    color: var(--c-ffffff, #ffffff);
    overflow-wrap: anywhere;
}

.tw-result-sub {
    font-size: 0.8rem;
    color: var(--c-ffffff99, rgba(255, 255, 255, 0.6));
}

.tw-result-chevron {
    color: var(--c-ffffff59, rgba(255, 255, 255, 0.35));
    transition: color 0.2s ease;
}

.tw-result:hover .tw-result-chevron {
    color: var(--accent);
}

.tw-selected {
    border-color: var(--accent-border);
    background: var(--accent-bg);
    animation: tw-pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tw-selected.is-checking {
    border-color: var(--c-c4dcf033, rgba(196, 220, 240, 0.2));
    background: var(--c-b4d7f00d, rgba(180, 215, 240, 0.05));
}

/* ---------- Rollenauswahl ---------- */

.tw-choices {
    display: grid;
    gap: 12px;
}

.tw-choice {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px;
    border: 1px solid var(--c-c4dcf024, rgba(196, 220, 240, 0.14));
    border-radius: 16px;
    background: var(--c-b4d7f00d, rgba(180, 215, 240, 0.05));
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tw-choice:hover {
    border-color: var(--c-c4dcf04c, rgba(196, 220, 240, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--cs-00000033, rgba(0, 0, 0, 0.2));
}

.tw-choice:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.tw-choice.is-active {
    border-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

.tw-choice-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--c-ffffff0f, rgba(255, 255, 255, 0.06));
    font-size: 1.35rem;
    color: var(--c-ffffffcc, rgba(255, 255, 255, 0.8));
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tw-choice.is-active .tw-choice-icon {
    background: var(--accent);
    color: var(--accent-on);
}

.tw-choice-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tw-choice-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--c-ffffff, #ffffff);
}

.tw-choice-sub {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--c-ffffff9e, rgba(255, 255, 255, 0.62));
}

.tw-choice-radio {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 2px solid var(--c-ffffff4c, rgba(255, 255, 255, 0.3));
    border-radius: 50%;
    transition: border-color 0.2s ease;
}

.tw-choice-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tw-choice.is-active .tw-choice-radio {
    border-color: var(--accent);
}

.tw-choice.is-active .tw-choice-radio::after {
    transform: scale(1);
}

/* ---------- Vorschlags-Chips ---------- */

.tw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tw-chip {
    padding: 6px 14px;
    border: 1px solid var(--c-c4dcf02e, rgba(196, 220, 240, 0.18));
    border-radius: 999px;
    background: transparent;
    font-size: 0.82rem;
    color: var(--c-ffffffbf, rgba(255, 255, 255, 0.75));
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tw-chip:hover,
.tw-chip:focus-visible {
    outline: none;
    border-color: var(--accent-border);
    color: var(--c-ffffff, #ffffff);
}

.tw-chip.is-active {
    border-color: var(--accent);
    background: var(--accent-bg);
    color: var(--accent);
}

/* ---------- Zusammenfassung ---------- */

.tw-summary {
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 1px solid var(--c-c4dcf024, rgba(196, 220, 240, 0.14));
    border-radius: 16px;
    background: var(--c-0000002e, rgba(0, 0, 0, 0.18));
    overflow: hidden;
}

.tw-summary-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
}

.tw-summary-row + .tw-summary-row {
    border-top: 1px solid var(--c-c4dcf01a, rgba(196, 220, 240, 0.1));
}

.tw-summary-row dt {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-ffffff8c, rgba(255, 255, 255, 0.55));
}

.tw-summary-row dt i {
    width: 16px;
    margin-right: 6px;
    color: var(--accent);
}

.tw-summary-row dd {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-weight: 600;
    color: var(--c-ffffff, #ffffff);
    overflow-wrap: anywhere;
}

.tw-summary-desc {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--c-ffffffa6, rgba(255, 255, 255, 0.65));
    white-space: pre-line;
}

.tw-summary-desc.tw-summary-desc--strong {
    font-weight: 500;
    color: var(--c-ffffffe6, rgba(255, 255, 255, 0.9));
}

/* ---------- Hinweise ---------- */

.tw-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: tw-fade-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tw-alert > i {
    margin-top: 3px;
}

.tw-alert small {
    opacity: 0.85;
}

.tw-alert-success {
    border-color: var(--accent-border);
    background: var(--accent-bg);
    color: var(--accent);
}

.tw-alert-warning {
    border-color: var(--c-ffb84d59, rgba(255, 184, 77, 0.35));
    background: var(--c-ffb84d1a, rgba(255, 184, 77, 0.1));
    color: var(--accent-warning);
}

.tw-alert-danger {
    border-color: var(--c-ff8a9a66, rgba(255, 138, 154, 0.4));
    background: var(--c-ff8a9a1a, rgba(255, 138, 154, 0.1));
    color: var(--accent-danger);
}

.tw-alert-info {
    border-color: var(--c-75c8ff59, rgba(117, 200, 255, 0.35));
    background: var(--c-75c8ff14, rgba(117, 200, 255, 0.08));
    color: var(--accent-info);
}

/* Aktion direkt unter einem Hinweis (z. B. "Tätigkeit erfassen & Verein einladen") */
.tw-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: -6px;
}

.tw-btn.tw-btn--inline {
    margin-left: 0;
    flex: 0 0 auto;
}

.tw-field-hint.tw-field-hint--flush {
    margin-top: -2px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.tw-alert-link {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

.tw-link {
    flex: 0 0 auto;
    padding: 2px 4px;
    border: none;
    background: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-info);
    cursor: pointer;
}

.tw-link:hover,
.tw-link:focus-visible {
    outline: none;
    text-decoration: underline;
}

.tw-link.tw-link--inline {
    padding: 0;
    color: inherit;
    text-decoration: underline;
}

/* ---------- Fußzeile / Buttons ---------- */

.tw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--c-c4dcf01a, rgba(196, 220, 240, 0.1));
}

.tw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.tw-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.tw-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.tw-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tw-btn-primary {
    margin-left: auto;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-on);
    box-shadow: 0 6px 18px var(--cs-75f0a22e, rgba(117, 240, 162, 0.18));
}

.tw-btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.tw-btn-primary .fa-arrow-right {
    transition: transform 0.2s ease;
}

.tw-btn-primary:hover:not(:disabled) .fa-arrow-right {
    transform: translateX(3px);
}

.tw-btn-ghost {
    border: 1px solid var(--c-c4dcf02e, rgba(196, 220, 240, 0.18));
    background: transparent;
    color: var(--c-ffffffcc, rgba(255, 255, 255, 0.8));
}

.tw-btn-ghost:hover:not(:disabled) {
    border-color: var(--c-c4dcf059, rgba(196, 220, 240, 0.35));
    color: var(--c-ffffff, #ffffff);
}

/* ---------- Erfolg ---------- */

.tw-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0 8px;
    text-align: center;
}

.tw-success-icon {
    width: 88px;
    height: 88px;
}

.tw-success-circle {
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: tw-draw 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.tw-success-check {
    stroke: var(--accent);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: tw-draw 0.35s 0.55s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.tw-success-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--c-ffffff, #ffffff);
    animation: tw-fade-up 0.4s 0.6s both;
}

.tw-success-text {
    max-width: 440px;
    margin: 0;
    line-height: 1.55;
    color: var(--c-ffffffb8, rgba(255, 255, 255, 0.72));
    animation: tw-fade-up 0.4s 0.7s both;
}

.tw-success .tw-btn {
    margin: 8px 0 0;
    animation: tw-fade-up 0.4s 0.8s both;
}

.tw-success-anfragen {
    max-width: 460px;
    text-align: left;
    animation: tw-fade-up 0.4s 0.8s both;
}

/* Dünner Balken, der die automatische Weiterleitung anzeigt */
.tw-success-redirect {
    width: 160px;
    height: 3px;
    border-radius: 999px;
    background: var(--c-ffffff1a, rgba(255, 255, 255, 0.1));
    overflow: hidden;
}

.tw-success-redirect span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: left center;
    animation: tw-redirect 4s linear forwards;
}

/* ---------- Keyframes ---------- */

@keyframes tw-card-in {
    from { opacity: 0; transform: translateY(16px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

@keyframes tw-slide-in-right {
    from { opacity: 0; transform: translateX(56px); }
    to { opacity: 1; transform: none; }
}

@keyframes tw-slide-in-left {
    from { opacity: 0; transform: translateX(-56px); }
    to { opacity: 1; transform: none; }
}

@keyframes tw-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes tw-pop-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes tw-spin {
    to { transform: rotate(360deg); }
}

@keyframes tw-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes tw-redirect {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
    .tw-card {
        gap: 22px;
        border-radius: 18px;
    }

    .tw-choice {
        padding: 14px;
        gap: 12px;
    }

    .tw-choice-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .tw-summary-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "label link"
            "value value";
        gap: 6px 12px;
    }

    .tw-summary-row dt { grid-area: label; }
    .tw-summary-row dd { grid-area: value; }
    .tw-summary-row .tw-link { grid-area: link; }

    .tw-grid--strasse {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .tw-grid--strasse > .tw-field:first-child {
        grid-column: 1 / -1;
    }

    .tw-btn {
        padding: 0 16px;
    }

    .tw-btn-primary {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-card,
    .tw-step,
    .tw-step > *,
    .tw-results li,
    .tw-selected,
    .tw-alert,
    .tw-field-error,
    .tw-valid-badge,
    .tw-timeline--success,
    .tw-success-title,
    .tw-success-text,
    .tw-success .tw-btn {
        animation: none;
    }

    .tw-success-circle,
    .tw-success-check {
        animation: none;
        stroke-dashoffset: 0;
    }

    .tw-result,
    .tw-choice,
    .tw-btn {
        transition: none;
    }
}
