/* ============================================================
   GEBURTSHOROSKOP — Custom CSS
   Glassmorphism · Sternenhimmel · Lila / Gold / Dunkel
   ============================================================ */

:root {
    --clr-bg:            #0B0A1A;
    --clr-bg-card:       rgba(255, 255, 255, 0.04);
    --clr-primary:       #7C5CFC;
    --clr-primary-light: #A78BFA;
    --clr-accent:        #F5A623;
    --clr-text:          #E4DCF5;
    --clr-text-muted:    #8B7FA8;
    --clr-border:        rgba(124, 92, 252, 0.2);
    --font-display:      'Playfair Display', Georgia, serif;
    --font-body:         'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Typografie ---- */
.font-display, h1, h2, h3 { font-family: var(--font-display); }

/* ---- Gradient Text ---- */
.text-gradient {
    background: linear-gradient(135deg, #A78BFA 0%, #F5A623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Card (Glassmorphism) ---- */
.card {
    background: var(--clr-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    border-color: rgba(124, 92, 252, 0.35);
    box-shadow: 0 0 28px rgba(124, 92, 252, 0.1);
}

/* ---- Buttons ---- */
.btn-primary {
    background: linear-gradient(135deg, #7C5CFC, #5B3FDB);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 92, 252, 0.5);
}
.btn-primary:active { transform: translateY(0); }

/* ---- Hero ---- */
.hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,92,252,0.22) 0%, transparent 70%);
}

/* ---- Trust Badges ---- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,92,252,0.2);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--clr-text-muted);
}

/* ---- Formulare ---- */
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(124,92,252,0.2);
}
.form-input::placeholder { color: var(--clr-text-muted); opacity: 0.7; }
.form-input[type="date"],
.form-input[type="time"] { color-scheme: dark; }

/* ---- Autocomplete ---- */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1A1535;
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--clr-text);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.autocomplete-item:hover,
.autocomplete-item.selected { background: rgba(124,92,252,0.2); }
.autocomplete-item:last-child { border-bottom: none; }

/* ---- FAQ ---- */
.faq-answer { line-height: 1.7; padding-top: 8px; }

/* ---- Locked Sections ---- */
.locked-section { cursor: pointer; }
.locked-section:hover { border-color: rgba(124,92,252,0.35) !important; }

/* ---- Fortschritt ---- */
.step-item.active { opacity: 1 !important; color: var(--clr-primary-light) !important; }
.step-item.done   { opacity: 0.6 !important; color: #6EE7B7 !important; }
.step-item.done .step-icon::before { content: '✓'; }

/* ---- Stars Canvas ---- */
#stars-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: rgba(124,92,252,0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary); }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.55s ease forwards; }

/* ---- Horoskop-Rad CSS ---- */
.chart-wheel {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(
        rgba(124,92,252,0.25) 0deg 30deg,   rgba(245,166,35,0.15) 30deg 60deg,
        rgba(124,92,252,0.25) 60deg 90deg,   rgba(245,166,35,0.15) 90deg 120deg,
        rgba(124,92,252,0.25) 120deg 150deg, rgba(245,166,35,0.15) 150deg 180deg,
        rgba(124,92,252,0.25) 180deg 210deg, rgba(245,166,35,0.15) 210deg 240deg,
        rgba(124,92,252,0.25) 240deg 270deg, rgba(245,166,35,0.15) 270deg 300deg,
        rgba(124,92,252,0.25) 300deg 330deg, rgba(245,166,35,0.15) 330deg 360deg
    );
    border: 1.5px solid rgba(124,92,252,0.4);
    box-shadow: 0 0 24px rgba(124,92,252,0.2), inset 0 0 24px rgba(0,0,0,0.3);
    animation: rotateWheel 90s linear infinite;
}
@keyframes rotateWheel {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    h1  { font-size: 2.4rem; }
    .card { border-radius: 12px; }
    .btn-primary { font-size: 1rem; }
}
