/* ============================================================
   Münz-Orakel — goldene Münze, ägyptischer Touch (30.09.2026)
   Kopf = Sonnenseite (Re/Ra), Zahl = Mondseite (Iah/Thot).
   3D-Flip via rotateX, Details als reines CSS/SVG-Inline.
   ============================================================ */

.coin-flip-section {
    max-width: 720px;
    margin: 0 auto 4rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(42, 26, 74, 0.55) 0%, rgba(13, 13, 26, 0.85) 100%);
    border: 1px solid rgba(212, 169, 68, 0.25);
    border-radius: 14px;
    box-shadow: var(--glow-purple);
}

.coin-flip-section h2 {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.coin-flip-section > p {
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

/* — Bühne: Perspektive für den 3D-Flip — */
.coin-stage {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    perspective: 700px;
}

.coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    animation: coin-idle-float 4s ease-in-out infinite;
}

@keyframes coin-idle-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

.coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    /* Gold-Leggings: warmer Verlauf + geprägter Rand */
    background:
        radial-gradient(circle at 32% 28%, var(--color-gold-light) 0%, var(--color-gold) 38%, #a67c1e 72%, #7a5a12 100%);
    box-shadow:
        inset 0 0 0 6px rgba(240, 215, 140, 0.35),
        inset 0 0 0 8px rgba(122, 90, 18, 0.55),
        0 8px 28px rgba(212, 169, 68, 0.45);
    border: 2px solid rgba(122, 90, 18, 0.8);
}

.coin-face-tails {
    transform: rotateX(180deg);
    /* Mondseite einen Hauch kühler */
    background:
        radial-gradient(circle at 32% 28%, #f4e3a8 0%, #d9b95c 38%, #9c7a24 72%, #6e5210 100%);
}

/* — Hieroglyphen-Symbolik — */
.coin-symbol {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(60, 40, 5, 0.6));
}

.coin-face .coin-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #3d2c08;
    font-weight: 700;
}

.coin-face .coin-sub {
    font-size: 0.62rem;
    color: rgba(61, 44, 8, 0.85);
    font-style: italic;
}

/* Ägyptischer Rahmen: Skarabäus-Ornament oben/unten als Text-Glyphe */
.coin-face::after {
    content: '𓂀';
    position: absolute;
    bottom: 8px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Glanz-Sweep beim Hover — Münze "atmet" */
.coin-stage:hover .coin {
    filter: brightness(1.08);
}

/* — Ergebnis — */
.coin-flip-result {
    min-height: 3.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.coin-flip-result.show {
    opacity: 1;
    transform: translateY(0);
}

.coin-flip-result .coin-side {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-gold-light);
    text-shadow: 0 0 14px rgba(212, 169, 68, 0.45);
    letter-spacing: 0.06em;
}

.coin-flip-result .coin-oracle {
    color: var(--color-text);
    font-style: italic;
    font-size: 1.05rem;
    max-width: 42ch;
}

#coin-flip-counter {
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Mobile */
@media (max-width: 480px) {
    .coin-stage { width: 132px; height: 132px; }
    .coin-symbol { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .coin { transition: transform 0.4s ease; animation: none; }
}

/* I-Ging-Teaser-Box unter dem Muenzwurf (05.10.2026) */
.iging-teaser {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.8rem;
    padding: 1.1rem 1.3rem;
    text-align: left;
    border: 1px solid rgba(212, 169, 68, 0.4);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(42, 26, 74, 0.5), rgba(26, 26, 53, 0.8));
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.iging-teaser:hover {
    border-color: var(--color-gold);
    box-shadow: 0 0 18px rgba(212, 169, 68, 0.3);
    transform: translateY(-2px);
}

.iging-teaser__glyph {
    flex: 0 0 auto;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--color-gold-light);
    text-shadow: 0 0 14px rgba(212, 169, 68, 0.4);
}

.iging-teaser__body {
    flex: 1 1 auto;
}

.iging-teaser__title {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.iging-teaser__text {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.iging-teaser__btn {
    flex: 0 0 auto;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--color-gold);
    background: rgba(212, 169, 68, 0.15);
    color: var(--color-gold-light);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease;
}

.iging-teaser__btn:hover {
    background: rgba(212, 169, 68, 0.32);
}

@media (max-width: 560px) {
    .iging-teaser {
        flex-direction: column;
        text-align: center;
    }
}

/* Teaser als eigenstaendige Box unter der Muenzwurf-Box (05.10.2026) */
.iging-teaser-section {
    max-width: 720px;
    margin: -2.5rem auto 4rem; /* naht an die Muenzwurf-Box an */
    padding: 0 1.5rem;
}

.iging-teaser-section .iging-teaser {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    text-align: left;
    text-decoration: none;
    border: 1px solid rgba(212, 169, 68, 0.4);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(42, 26, 74, 0.5), rgba(26, 26, 53, 0.85));
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.iging-teaser-section .iging-teaser:hover {
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 169, 68, 0.3);
    transform: translateY(-2px);
}
