/* ============================================================
   signup-alt-5e.css — Sprechblasen + Bot-Avatar (Card bleibt)
   ============================================================ */
.sv5e-page {
    min-height: calc(100dvh - var(--hp-nav-h, 68px));
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem 4rem;
    background: linear-gradient(180deg, #fff 0%, var(--hp-cream, #F7F3EC) 100%);
}

.sv5e-wrap {
    width: 100%;
    max-width: 560px;
}

.sv5e-form {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    box-shadow: 0 16px 40px rgba(20, 18, 14, 0.06);
    border: 1px solid rgba(20, 18, 14, 0.06);
}

.sv5e-dots { margin: 0 0 1.5rem; }

.sv5e-step { animation: sv5eFade .35s ease; }
@keyframes sv5eFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Turn (Avatar + Bubble) ─────────────────────────────────── */
.sv5e-turn {
    display: flex;
    gap: 0.625rem;
    align-items: flex-end;
    margin: 0 0 0.5rem;
}

.sv5e-avatar {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sv5e-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    background: var(--hp-cream, #F7F3EC);
    border: 1px solid rgba(20, 18, 14, 0.06);
}
.sv5e-avatar__dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2px solid #fff;
}

.sv5e-bubble {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.125rem, 2.6vw, 1.4rem);
    font-weight: 500;
    color: var(--hp-ink, #1A1714);
    line-height: 1.3;
    background: var(--hp-cream, #F7F3EC);
    padding: 0.875rem 1.125rem;
    border-radius: 18px 18px 18px 4px;
    margin: 0;
    max-width: calc(100% - 46px);
}

/* ─── Input ─────────────────────────────────────────────────── */
.sv5e-input {
    margin-left: 0;
    margin-bottom: 1.25rem;
}
.sv5e-input input {
    width: 100%;
    padding: 1.125rem 1.25rem;
    font-size: 1.25rem;
    font-family: inherit;
    color: var(--hp-ink, #1A1714);
    background: #fff;
    border: 2px solid rgba(20, 18, 14, 0.10);
    border-radius: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sv5e-input input:focus {
    outline: none;
    border-color: var(--hp-terra, #C4784A);
    box-shadow: 0 0 0 4px rgba(196, 120, 74, 0.14);
}

/* ─── Optionen-Liste ─────────────────────────────────────────── */
.sv5e-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin: 0 0 1.25rem 0;
}
@media (min-width: 480px) {
    .sv5e-options { grid-template-columns: 1fr 1fr; }
}
.sv5e-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.25rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 2px solid rgba(20, 18, 14, 0.10);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.sv5e-option:hover {
    border-color: rgba(196, 120, 74, 0.4);
    background: rgba(196, 120, 74, 0.03);
}
.sv5e-option__input { position: absolute; opacity: 0; pointer-events: none; }
.sv5e-option__radio {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(20, 18, 14, 0.25);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease;
}
.sv5e-option__radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hp-terra, #C4784A);
    transform: scale(0);
    transition: transform .15s ease;
}
.sv5e-option__input:checked + .sv5e-option__radio { border-color: var(--hp-terra, #C4784A); }
.sv5e-option__input:checked + .sv5e-option__radio::after { transform: scale(1); }
.sv5e-option:has(.sv5e-option__input:checked) {
    border-color: var(--hp-terra, #C4784A);
    background: rgba(196, 120, 74, 0.06);
}
.sv5e-option__label {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hp-ink, #1A1714);
    line-height: 1.35;
}

/* ─── Theme-Tiles ────────────────────────────────────────────── */
.sv5e-theme-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0 0 1.25rem 0;
}
@media (min-width: 480px) {
    .sv5e-theme-tiles { grid-template-columns: repeat(3, 1fr); }
}
.sv5e-theme-tile {
    --tile-bg: #F7F3EC;
    --tile-sec: #C4784A;
    --tile-acc: #1A1714;
    --tile-ink: #1A1714;
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(20, 18, 14, 0.10);
    background: #fff;
    transition: border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.sv5e-theme-tile:hover { transform: translateY(-2px); border-color: rgba(20, 18, 14, 0.18); }
.sv5e-theme-tile__input { position: absolute; opacity: 0; pointer-events: none; }
.sv5e-theme-tile__cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 92px;
    padding: 0.625rem 0.75rem;
    background: linear-gradient(135deg, var(--tile-bg) 0%, var(--tile-sec) 100%);
}
.sv5e-theme-tile__dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tile-acc);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.sv5e-theme-tile__lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sv5e-theme-tile__line {
    height: 6px;
    width: 100%;
    border-radius: 3px;
    background: var(--tile-acc);
    opacity: 0.55;
}
.sv5e-theme-tile__line--short {
    width: 55%;
    opacity: 0.85;
}
.sv5e-theme-tile__body {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem 0.625rem;
    background: #fff;
}
.sv5e-theme-tile__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hp-ink, #1A1714);
    line-height: 1.2;
}
.sv5e-theme-tile__check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hp-terra, #C4784A);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity .15s ease, transform .15s ease;
    z-index: 2;
}
.sv5e-theme-tile:has(.sv5e-theme-tile__input:checked) {
    border-color: var(--hp-terra, #C4784A);
    box-shadow: 0 0 0 3px rgba(196, 120, 74, 0.18);
}
.sv5e-theme-tile:has(.sv5e-theme-tile__input:checked) .sv5e-theme-tile__check {
    opacity: 1;
    transform: scale(1);
}

/* ─── Consents (im Final-Step) ──────────────────────────────── */
.sv5e-consents {
    margin: 0.75rem 0 1rem 0;
    display: grid;
    gap: 0.625rem;
    padding: 1rem 1.125rem;
    background: rgba(20, 18, 14, 0.025);
    border-radius: 12px;
    border: 1px solid rgba(20, 18, 14, 0.06);
}
.sv5e-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    color: var(--hp-ink, #1A1714);
    line-height: 1.5;
    cursor: pointer;
    padding: 0.25rem 0;
    min-height: 32px;
}
.sv5e-consent input {
    margin-top: 1px;
    width: 22px;
    height: 22px;
    accent-color: var(--hp-terra, #C4784A);
    flex-shrink: 0;
    cursor: pointer;
}
.sv5e-consent a {
    color: var(--hp-terra, #C4784A);
    text-decoration: underline;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.sv5e-form .wizard__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}
.sv5e-form .wizard__button {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 600;
}

@media (max-width: 540px) {
    .sv5e-form { padding: 1.5rem 1.125rem; border-radius: 18px; }
    .sv5e-bubble { padding: 0.75rem 0.9rem; font-size: 1.0625rem; max-width: calc(100% - 40px); }
    .sv5e-input input { font-size: 1.0625rem; padding: 1rem; }
    .sv5e-avatar { width: 30px; height: 30px; }
    .sv5e-consent { font-size: 1rem; gap: 0.875rem; }
    .sv5e-consent input { width: 24px; height: 24px; }
}
