/* ---- SCROLL-SPERRE RADIKAL ---- */
html, body,
.app-main-container,
.welcomejoy-bg,
.welcomejoy-container,
.welcome-card,
.welcomejoy-btns,
.cherry-avatars-row {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
}

html {
    touch-action: pan-y !important;
    overscroll-behavior-x: none !important;
}

/* ---- PRELOADER ---- */
#global-preloader {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, #a865a2 0%, #251632 85%, #181a20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.22s;
    max-width: 100vw;
    overflow-x: hidden;
}
#global-preloader.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s cubic-bezier(.56,1.8,.47,.85);
}
.spinner {
    border: 6px solid #3a2547;
    border-top: 6px solid #fd317b;
    border-radius: 50%;
    width: 68px;
    height: 68px;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 16px #fd317b70;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* ---- GLOBAL ---- */
html, body {
    margin: 0; padding: 0; width: 100vw; min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 50% 0%, #a865a2 0%, #251632 80%, #181a20 100%) !important;
    color: #fff;
    font-family: 'Raleway', Arial, sans-serif;
    -webkit-font-smoothing: antialiased; box-sizing: border-box;
    overscroll-behavior: none; touch-action: manipulation;
}
.app-main-container {
    width: 100vw;
    max-width: 100vw;
    min-height: calc(100vh - 64px);
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    box-sizing: border-box; position: relative; z-index: 2;
    padding: 0 0 76px 0;
    overflow-x: hidden;
}

/* ---- AVATAR SECTION ---- */
.pair-avatars-cherry {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 340px;
    margin: 32px 0 12px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
.cherry-avatars-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 470px;
    gap: 40px;
    margin-top: 0;
    overflow-x: hidden;
}
.cherry-avatars-low { margin-top: 80px; }
.cherry-avatar-col, .avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 88px;
    max-width: 220px;
    overflow: visible;
    position: relative;
}
.avatar-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #19121e;
    box-shadow: 0 0 0 4px #fe3a82b0, 0 4px 26px #0008;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2em;
    color: #fe3a82;
    font-weight: bold;
    border: 3px solid #ff95d5;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.16s;
    font-family: 'Bebas Neue', cursive;
}
.cherry-bubble, .bubble, .avatar-bubble {
    font-size: 1em;
    background: #231433;
    color: #fff;
    padding: 5px 16px;
    border-radius: 14px;
    margin-bottom: 9px;
    box-shadow: 0 3px 14px #fe3a8230;
    display: inline-block;
    margin-top: 13px;
    text-align: center;
}
.avatar-bubble.mood-bubble {
    background: #24172e;
    padding: 4px 32px 4px 13px;
    border-radius: 18px 18px 18px 6px;
    font-size: 0.98em;
    font-weight: 500;
    box-shadow: 0 1px 7px #fd317b18;
    max-width: 115px;
    display: inline-flex;
    align-items: center;
    margin-bottom: -11px;
    position: relative;
}
.avatar-mood-plus-inbubble {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #fe3a82;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.13em;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 9px #fd317b44;
    pointer-events: none;
    line-height: 1;
}

/* ---- DISTANCE ---- */
.cherry-distance, .distance-bubble, .distance-bubble-new {
    margin-bottom: 25px;
    background: #1d0b1e;
    color: #fff;
    font-size: 1.17em;
    border-radius: 18px;
    padding: 6px 29px;
    border: 2px solid #ad78b8;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 13px #ad78b822;
    z-index: 9;
    white-space: nowrap;
    pointer-events: none;
    position: relative;
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
    width: 100vw; height: 64px;
    max-width: 100vw;
    background: rgba(28,14,32,0.97);
    border-top: 1px solid #322145;
    display: flex; justify-content: space-around; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 1050; box-shadow: 0 -3px 18px #000a;
    pointer-events: all;
    backdrop-filter: blur(6px);
    overflow-x: hidden;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    color: #a292b8; text-decoration: none;
    font-size: 0.95em; flex: 1;
    transition: color 0.19s;
    padding: 0;
    height: 100%;
    justify-content: center;
    position: relative;
}
.nav-item.active { color: #ff2d75; }
.nav-item .material-icons { font-size: 2.48em; margin-bottom: 1px; transition: color 0.18s; filter: none; }
.nav-item.active .material-icons { color: #ff2d75 !important; filter: drop-shadow(0 0 4px #ff2d7575); }
.nav-item .material-icons.home { color: #a292b8; }
.nav-item.active .material-icons.home { color: #ff2d75; }

/* ---- AVATAR MODAL ---- */
#avatarModal-inner {
    background: #232;
    padding: 26px 20px 18px 20px;
    border-radius: 22px;
    box-shadow: 0 8px 60px #000b;
    max-width: 340px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#avatarModal-inner h3 {
    color: #fff; font-size: 1.2em;
}
#avatarModal-inner input[type="file"] {
    margin-bottom:12px;
}
.avatar-modal-preview {
    width: 220px; height: 220px; background: #19121e; margin-bottom: 15px; border-radius: 50%; overflow: hidden;
}
.avatar-modal-btn {
    background: #232;
    color: #fff;
    padding: 8px 22px;
    border-radius: 14px;
    border: none;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    margin-right: 10px;
}
.avatar-modal-btn.main {
    background: #fe3a82;
    color: #fff;
    font-weight: bold;
}
.avatar-modal-btn.main:hover {
    background: #ff2d75;
}

/* ---- TOAST ---- */
.toast {
    position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%);
    background: #20141f; color: #fff; padding: 13px 26px; border-radius: 16px;
    box-shadow: 0 3px 22px #fe3a8235; font-size: 1.05em; z-index: 9989;
    opacity: 0; transition: opacity .22s;
}
.toast.show { opacity: 1; }

/* ---- WELCOME SCREENS ---- */
.welcomejoy-bg {
    position: fixed;
    z-index: 0;
    left:0;top:0;width:100vw;height:100vh;
    max-width: 100vw;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 50% 0%, #a865a2 0%, #251632 80%, #181a20 100%) !important;
}
.welcomejoy-container {
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    padding: 0 7vw;
    box-sizing: border-box;
    overflow-x: hidden;
}
.welcomejoy-lang {
    width: 100vw;
    max-width: 100vw;
    display: flex;
    justify-content: flex-end;
    padding: 18px 15px 0 0;
    overflow-x: hidden;
}
.lang-btn {
    background: rgba(28,13,37,0.72);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 1em;
    font-weight: 700;
    padding: 7px 16px 7px 14px;
    box-shadow: 0 2px 9px #0005;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.flag-emoji { font-size: 1.2em; margin-left: 5px; }
.welcomejoy-illu {
    margin-top: 17vw;
    margin-bottom: 25px;
    width: 210px;
    max-width: 92vw;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}
.welcomejoy-illu lottie-player {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto;
    display: block;
}
.welcomejoy-title {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 2.23em;
    font-weight: 900;
    color: #fd317b;
    text-align: center;
    margin-bottom: 7px;
    margin-top: 3vw;
    letter-spacing: 0.01em;
}
.welcomejoy-sub {
    color: #fff;
    text-align: center;
    font-size: 1.14em;
    font-weight: 500;
    margin-bottom: 25px;
    margin-top: 0;
    max-width: 410px;
    text-shadow: 0 2px 12px #fd317b19;
}
.welcomejoy-btns {
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 30px;
    margin-top: 4vw;
    max-width: 410px;
    overflow-x: hidden;
}
.welcomejoy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
    border-radius: 20px;
    font-size: 1.16em;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: background 0.16s, color 0.16s, box-shadow 0.19s;
    letter-spacing: 0.03em;
    border: none;
    box-shadow: 0 2px 14px #fe3a8242;
    cursor: pointer;
}

.welcomejoy-btn.main {
    background: linear-gradient(98deg, #fe3a82 15%, #ffb03a 97%);
    color: #fff;
}
.welcomejoy-btn.main:hover {
    background: linear-gradient(92deg, #ffb03a 5%, #fe3a82 94%);
}
.welcomejoy-btn.secondary {
    background: rgba(28,13,37,0.71);
    color: #ff84bb;
    font-weight: 700;
    border: none;
}
.welcomejoy-btn.secondary:hover {
    background: #281132;
    color: #fff;
}
.welcomejoy-terms {
    width: 100%;
    color: #ccccdd;
    font-size: 0.95em;
    text-align: center;
    margin-top: auto;
    margin-bottom: 18px;
}
.welcomejoy-terms a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

/* ---- WELCOME CARD/LOGIN CARD ---- */
.welcome-card {
    background: rgba(28, 11, 33, 0.62);
    border-radius: 36px;
    box-shadow: 0 8px 40px #000a, 0 2px 26px #fd317b22;
    max-width: 410px;
    width: 100%;
    min-width: 0;
    margin: 9vh auto 0 auto;
    padding: 18px 25px 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
    /* GLASMORPHISM */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* wichtig für Safari & viele Mobile */
    border: 1.2px solid rgba(255,255,255,0.13);
}


.welcome-header-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 5px;
}
.welcome-back-btn {
    color: #fd317b;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 2.1em;
    line-height: 1;
    display: flex;
    align-items: center;
    padding: 0 4px 0 0;
    margin-right: 4px;
    transition: color .15s;
    text-decoration: none;
}
.welcome-back-btn:hover {
    color: #ffb03a;
}
.welcome-header-spacer {
    flex: 1;
}
.welcome-logo {
    display: flex; align-items: center; justify-content: center; width: 100%; margin-bottom: 3px;
}
.welcome-inner {
    width: 100%;
    display: flex; flex-direction: column; align-items: center;
    margin-top: 6px;
}
.welcome-login-title {
    color: #fff;
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 900;
    font-size: 1.7em;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
}
.welcomejoy-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-width: 100vw;
    overflow-x: hidden;
}
.welcomejoy-field {
    width: 100%;
    margin-bottom: 7px;
}
.welcomejoy-field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 15px;
    background: #1c1024;
    color: #fff;
    border: 2px solid #24143a;
    font-size: 1.05em;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    box-shadow: 0 1px 8px #fd317b18;
    transition: border .14s, box-shadow .17s, background .18s;
    box-sizing: border-box;
}
.welcomejoy-field input:focus {
    border: 2px solid #fd317b;
    background: #211024;
}
.welcomejoy-linkrow {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}
.welcomejoy-link {
    color: #43ffd8;
    text-decoration: underline;
    font-weight: 700;
    font-size: 1em;
    display: inline-block;
    margin-top: 0;
    width: 100%;
    padding: 6px 0;
    box-sizing: border-box;
}
.welcomejoy-link:hover {
    color: #fd317b;
    text-decoration: underline;
}

/* ---- MEDIA QUERIES ---- */
@media (max-width: 700px) {
    .bottom-nav { height: 54px !important; }
    .nav-item .material-icons { font-size: 2em; }
}
@media (max-width: 650px) {
    .pair-avatars-cherry { min-height: 140px;}
    .cherry-avatars-row { gap: 13vw; }
    .cherry-avatars-low { margin-top: 44px;}
    .avatar-circle { width: 66px; height: 66px; font-size: 1.5em; }
    .cherry-avatar-col { min-width: 32px;}
    .avatar-bubble.mood-bubble { font-size: 0.78em; max-width: 54vw;}
    .avatar-mood-plus-inbubble { width: 13px; height: 13px; font-size: 0.85em; right: 4px;}
    .welcomejoy-illu { margin-top: 13vw; width: 68vw; }
    .welcomejoy-illu lottie-player { width: 44vw !important; height: 44vw !important;}
    .welcomejoy-title { font-size: 1.47em; }
    .welcomejoy-sub { font-size: 1em; }
    .welcomejoy-btn { font-size: 1em; padding: 13px 0;}
}
@media (max-width: 480px) {
    .welcome-card {
        padding: 11vw 4vw 8vw 4vw;
        max-width: 99vw;
        border-radius: 19px;
    }
    .welcome-logo lottie-player {
        width: 35vw !important;
        height: 35vw !important;
        min-width: 54px !important;
        min-height: 54px !important;
    }
}
@media (max-width: 450px) {
    .welcomejoy-illu { margin-top: 13vw; width: 68vw; }
    .welcomejoy-illu lottie-player { width: 44vw !important; height: 44vw !important;}
    .welcomejoy-title { font-size: 1.47em; }
    .welcomejoy-sub { font-size: 1em; }
    .welcomejoy-btn { font-size: 1em; padding: 13px 0;}
}
/* ------------------------------------------ */
/* Custom Styling für dein Select-Dropdown    */
/* ------------------------------------------ */

.welcomejoy-select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 15px;
    background: #1c1024;
    color: #fff;
    border: 2px solid #24143a;
    font-size: 1.05em;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    box-shadow: 0 1px 8px #fd317b18;
    transition: border 0.14s, box-shadow 0.17s, background 0.18s;
    box-sizing: border-box;
    appearance: none;           /* Standardpfeil entfernen */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    /* Eigenen Pfeil einblenden */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6H0z%22%20fill%3D%22%23fd317b%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px 6px;
}

/* Fokus-Styling */
.welcomejoy-select:focus {
    border-color: #fd317b;
    background-color: #211024;
    box-shadow: 0 0 8px #fd317bcc;
    color: #fff;
}

/* Hover-Styling (wenn nicht gefocust) */
.welcomejoy-select:hover:not(:focus) {
    border-color: #ffb03a;
    box-shadow: 0 0 6px #ffb03a88;
}

/* Native Pfeile in IE/Edge verbergen */
.welcomejoy-select::-ms-expand {
    display: none;
}

/* ------------------------------------------ */
/* Styling für die ausgeklappten Optionen     */
/* ------------------------------------------ */

.welcomejoy-select option {
    background-color: #1c1024; /* dunkler Options-Hintergrund */
    color: #fff;               /* weiße Schrift */
}

/* Optional: leichter Hover-Effekt in der Liste */
.welcomejoy-select option:hover {
    background-color: #fd317b33; 
    color: #fff;
}
.btn-answer-option {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    padding: 12px 16px;
    font-size: 1em;
    border-radius: 14px;
    background: linear-gradient(90deg, #ff2d75 0%, #43ffd8 100%);
    color: #151622;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: background 0.25s ease, color 0.25s ease;
    word-break: break-word;
    white-space: normal;
    overflow: hidden;
}

.btn-answer-option input[type="radio"] {
    margin: 0 8px 0 0;
    transform: scale(1.2);
    vertical-align: middle;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-answer-option:hover {
    background: linear-gradient(90deg, #fd317bcc 0%, #48ffd8cc 100%);
    color: #121214;
}

@media (max-width: 700px) {
    .btn-answer-option {
        font-size: 0.97em;
        padding: 9px 7px;
    }
}
@media (max-width: 450px) {
    .btn-answer-option {
        font-size: 0.93em;
        padding: 8px 3vw;
    }
}

/* Optional: Checked state styling (JS needed to toggle a class on label) */
.card-btn-group {
    display: flex;
    flex-direction: column;
    gap: 14px;  /* <- Abstand zwischen den Antwort-Optionen, ggf. anpassen */
}
.welcome-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
    gap: 20px;  /* <--- NEU: Abstand zwischen Fragetext, Antworten, Freitext, Button */
}
