/* ============================================
   TummyTalk Design System — "Femtech Glow"
   Edel, feminin, klar. Glass + Gradients + Ringe.
   ============================================ */

:root {
    /* Farbtokens */
    --tt-rose: #D97FA8;
    --tt-rose-deep: #C56E97;
    --tt-rose-dusk: #A85878;
    --tt-peach: #F2C4B3;
    --tt-lavender: #9C8AB8;
    --tt-periwinkle: #8C96C6;
    --tt-sage: #7FA98F;
    --tt-amber: #E3A857;
    --tt-terra: #C97B63;
    --tt-blue: #6E9FC4;
    --tt-petrol: #2C6E6B;

    /* Neutrale */
    --tt-cream: #FAF7F4;
    --tt-pearl: #FDFBFA;
    --tt-ink: #3D2E3A;        /* Aubergine statt Grau für Text */
    --tt-ink-soft: #7A6875;
    --tt-line: rgba(61, 46, 58, 0.08);

    /* Verläufe */
    --tt-gradient-hero: linear-gradient(135deg, #D97FA8 0%, #C98BB8 55%, #9C8AB8 100%);
    --tt-gradient-aurora: linear-gradient(160deg, #FDF3F7 0%, #FAF3F8 40%, #F3F1FA 100%);
    --tt-gradient-glow: linear-gradient(135deg, #E8A7C4 0%, #D97FA8 50%, #B48BC4 100%);

    /* Tiefe */
    --tt-shadow-soft: 0 8px 32px rgba(168, 88, 120, 0.10);
    --tt-shadow-float: 0 16px 48px rgba(168, 88, 120, 0.16);
    --tt-radius: 24px;
    --tt-radius-sm: 16px;

    /* Safe Area / Phone-Bühne (siehe css/mobile-shell.css) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --app-max: 430px;
}

/* ---------- Basis ---------- */
.tt-body {
    background: var(--tt-gradient-aurora);
    color: var(--tt-ink);
    min-height: 100vh;
}

/* Aurora-Hintergrund: schwebende Farbnebel */
.tt-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.tt-aurora::before,
.tt-aurora::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: tt-drift 18s ease-in-out infinite alternate;
}

.tt-aurora::before {
    background: radial-gradient(circle, #F2C4D8 0%, transparent 70%);
    top: -20vw;
    right: -20vw;
}

.tt-aurora::after {
    background: radial-gradient(circle, #D5CCEC 0%, transparent 70%);
    bottom: -25vw;
    left: -20vw;
    animation-delay: -9s;
}

@keyframes tt-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(6vw, 4vw) scale(1.15); }
}

/* ---------- Typografie ---------- */
.tt-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--tt-ink);
}

.tt-label {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tt-ink-soft);
}

.tt-number {
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

/* ---------- Glass-Karte ---------- */
.tt-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tt-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--tt-shadow-float);
}

/* ---------- Glow-CTA ---------- */
.tt-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--tt-gradient-glow);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 32px;
    font-size: 1.05em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(217, 127, 168, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: tt-breathe 4s ease-in-out infinite;
}

.tt-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 36px rgba(217, 127, 168, 0.55);
}

.tt-cta:active {
    transform: scale(0.97);
}

@keyframes tt-breathe {
    0%, 100% { box-shadow: 0 8px 28px rgba(217, 127, 168, 0.40); }
    50%      { box-shadow: 0 8px 36px rgba(217, 127, 168, 0.60); }
}

/* ---------- Score-Ringe (Apple-Style) ---------- */
.tt-ring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 18px;
}

.tt-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.tt-ring:hover {
    transform: translateY(-3px);
}

.tt-ring svg {
    transform: rotate(-90deg);
}

.tt-ring-track {
    fill: none;
    stroke: rgba(61, 46, 58, 0.07);
    stroke-width: 7;
}

.tt-ring-progress {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tt-ring-wrap {
    position: relative;
    width: 88px;
    height: 88px;
}

.tt-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35em;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--tt-ink);
}

.tt-ring-value small {
    font-size: 0.55em;
    color: var(--tt-ink-soft);
    margin-left: 1px;
}

.tt-ring-label {
    font-size: 0.78em;
    font-weight: 600;
    color: var(--tt-ink-soft);
}

/* ---------- Icon-Kreise ---------- */
.tt-icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(217, 127, 168, 0.12);
    color: var(--tt-rose-dusk);
    flex-shrink: 0;
}

.tt-icon-chip svg {
    width: 20px;
    height: 20px;
}

/* ---------- Sektions-Header ---------- */
.tt-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tt-section-head h2,
.tt-section-head h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.35em;
    color: var(--tt-ink);
    margin: 0;
}

/* ---------- Einblend-Animation ---------- */
.tt-rise {
    opacity: 0;
    transform: translateY(16px);
    animation: tt-rise 0.6s ease forwards;
}

.tt-rise-1 { animation-delay: 0.05s; }
.tt-rise-2 { animation-delay: 0.15s; }
.tt-rise-3 { animation-delay: 0.25s; }
.tt-rise-4 { animation-delay: 0.35s; }
.tt-rise-5 { animation-delay: 0.45s; }

@keyframes tt-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Bottom-Nav (Glass) ---------- */
.tt-nav {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 -8px 32px rgba(168, 88, 120, 0.08) !important;
}

.tt-nav .nav-item svg {
    width: 22px;
    height: 22px;
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
    .tt-aurora::before,
    .tt-aurora::after,
    .tt-cta,
    .tt-rise {
        animation: none;
    }
    .tt-rise {
        opacity: 1;
        transform: none;
    }
}
