/* Krafttier Oracle Styles - Brauntöne & Goldene Glows */

/* Google Font für verspieltere Schrift */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --braun-dunkel: #3d2817;
    --braun-mittel: #6b4423;
    --braun-hell: #a0724e;
    --braun-sehr-hell: #d4a574;
    --gold: #d4af37;
    --gold-hell: #ffd700;
}

.krafttier-oracle-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Cormorant Garamond', serif;
    background: radial-gradient(circle at center, #2a1810, #1a0f08);
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4), inset 0 0 100px rgba(0,0,0,0.8);
}

/* Intro Bereich */
.oracle-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(109, 68, 35, 0.3), rgba(160, 114, 78, 0.3));
    border-radius: 15px;
    border: 2px solid var(--gold);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.8),
        0 0 60px rgba(212, 175, 55, 0.4),
        inset 0 0 40px rgba(0,0,0,0.5);
}

.oracle-intro h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.8em;
    font-weight: 700;
    color: var(--gold-hell);
    margin-bottom: 12px;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 1),
        0 0 20px rgba(212, 175, 55, 0.8),
        0 0 30px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.4),
        2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

.oracle-intro p {
    font-size: 1.3em;
    color: var(--braun-sehr-hell);
    font-style: italic;
    margin: 0;
    text-shadow: 
        0 0 8px rgba(212, 175, 55, 0.6),
        0 0 15px rgba(212, 175, 55, 0.3),
        1px 1px 3px rgba(0,0,0,0.8);
}

/* Beschreibungsbox */
.oracle-beschreibung {
    text-align: center;
    margin: 20px auto 30px;
    padding: 20px 30px;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(61, 40, 23, 0.9), rgba(107, 68, 35, 0.9));
    border-radius: 12px;
    border: 2px solid var(--braun-hell);
    box-shadow: 
        0 0 25px rgba(160, 114, 78, 0.6),
        0 0 50px rgba(160, 114, 78, 0.3),
        inset 0 0 30px rgba(0,0,0,0.6);
}

.oracle-beschreibung h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6em;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 
        0 0 8px rgba(212, 175, 55, 0.9),
        0 0 15px rgba(212, 175, 55, 0.5),
        1px 1px 3px rgba(0,0,0,0.9);
}

.oracle-beschreibung p {
    font-size: 1.1em;
    color: var(--braun-sehr-hell);
    line-height: 1.7;
    margin: 8px 0;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Kartenkreis Container */
.karten-kreis-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

#karten-kreis {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
}

/* Einzelne Karte */
.karte-wrapper {
    position: absolute;
    width: 120px;
    height: 180px;
    left: 50%;
    top: 50%;
    margin-left: -60px;
    margin-top: -90px;
    cursor: pointer;
    transition: filter 0.3s ease;
    transform-origin: center center;
}

.karte-wrapper:hover {
    z-index: 100 !important;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9));
}

.karte-wrapper:hover .karte-rueckseite {
    border-color: var(--gold-hell);
}

.karte {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.karte-rueckseite {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3),
        0 10px 30px rgba(0,0,0,0.8);
    border: 3px solid var(--gold);
    background: linear-gradient(135deg, var(--braun-dunkel), var(--braun-mittel));
    transition: border-color 0.3s ease;
}

.karte-rueckseite img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zentrale Animation/Effekt im Kartenkreis */
.kreis-zentrum {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin-left: -90px;
    margin-top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.4),
        inset 0 0 40px rgba(212, 175, 55, 0.2);
    animation: pulseCenter 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.kreis-zentrum::before {
    content: "✧";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: var(--gold);
    animation: rotateSymbol 8s linear infinite, glowPulse 2s ease-in-out infinite;
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 1),
        0 0 40px rgba(212, 175, 55, 0.6);
}

.kreis-zentrum::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px dashed var(--gold);
    animation: rotateBorder 12s linear infinite reverse;
    opacity: 0.5;
}

@keyframes pulseCenter {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes rotateSymbol {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateBorder {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(212, 175, 55, 1),
            0 0 40px rgba(212, 175, 55, 0.6);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(212, 175, 55, 1),
            0 0 60px rgba(212, 175, 55, 0.8),
            0 0 90px rgba(212, 175, 55, 0.4);
    }
}

/* Partikel-Effekte beim Aufdecken */
.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-hell);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    animation: floatParticle 3s ease-out forwards;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* Ergebnis-Anzeige */
#karten-ergebnis {
    animation: fadeInResult 0.8s ease-in;
}

@keyframes fadeInResult {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ergebnis-header {
    text-align: center;
    margin-bottom: 25px;
}

.oracle-button {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, var(--braun-mittel), var(--braun-dunkel));
    color: var(--gold-hell);
    border: 2px solid var(--gold);
    padding: 15px 35px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3),
        0 5px 20px rgba(0,0,0,0.8);
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        1px 1px 3px rgba(0,0,0,0.9);
    letter-spacing: 1px;
}

.oracle-button:hover {
    background: linear-gradient(135deg, var(--braun-hell), var(--braun-mittel));
    transform: translateY(-3px);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.9),
        0 0 60px rgba(212, 175, 55, 0.5),
        0 8px 25px rgba(0,0,0,0.9);
}

.ergebnis-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    background: linear-gradient(135deg, rgba(61, 40, 23, 0.95), rgba(107, 68, 35, 0.95));
    padding: 35px;
    border-radius: 20px;
    border: 3px solid var(--gold);
    box-shadow: 
        0 0 35px rgba(212, 175, 55, 0.8),
        0 0 70px rgba(212, 175, 55, 0.4),
        inset 0 0 50px rgba(0,0,0,0.6);
}

/* Krafttier Bild Rahmen - zentriert und größer */
.krafttier-bild {
    text-align: center;
    margin-bottom: 20px;
}

.krafttier-bild img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.8),
        0 0 50px rgba(212, 175, 55, 0.4),
        0 10px 40px rgba(0,0,0,0.9);
    border: 4px solid var(--gold);
    background: var(--braun-dunkel);
    padding: 8px;
}

.krafttier-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.8em;
    font-weight: 700;
    color: var(--gold-hell);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 15px;
    text-shadow: 
        0 0 12px rgba(212, 175, 55, 1),
        0 0 24px rgba(212, 175, 55, 0.8),
        0 0 36px rgba(212, 175, 55, 0.6),
        2px 2px 5px rgba(0,0,0,0.9);
    letter-spacing: 2px;
}

/* Beschreibungs-Box */
.krafttier-beschreibung {
    background: linear-gradient(135deg, rgba(107, 68, 35, 0.4), rgba(160, 114, 78, 0.4));
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid var(--braun-hell);
    box-shadow: 
        0 0 20px rgba(160, 114, 78, 0.6),
        0 0 40px rgba(160, 114, 78, 0.3),
        inset 0 0 30px rgba(0,0,0,0.5);
}

.krafttier-beschreibung p {
    font-size: 1.15em;
    line-height: 1.7;
    color: var(--braun-sehr-hell);
    margin: 0;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Eigenschaften */
#krafttier-eigenschaften {
    margin: 25px 0;
}

.eigenschaft-item {
    background: linear-gradient(135deg, rgba(61, 40, 23, 0.6), rgba(107, 68, 35, 0.6));
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--braun-mittel);
    box-shadow: 
        0 0 15px rgba(160, 114, 78, 0.5),
        0 0 30px rgba(160, 114, 78, 0.2),
        inset 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.eigenschaft-item:hover {
    transform: translateX(8px);
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.7),
        0 0 50px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(0,0,0,0.5);
    border-color: var(--gold);
}

.eigenschaft-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.3em;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    text-shadow: 
        0 0 8px rgba(212, 175, 55, 0.8),
        0 0 15px rgba(212, 175, 55, 0.4),
        1px 1px 3px rgba(0,0,0,0.9);
}

.eigenschaft-name::before {
    content: "✦";
    margin-right: 12px;
    color: var(--gold-hell);
    font-size: 1.4em;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 1),
        0 0 20px rgba(255, 215, 0, 0.6);
}

.eigenschaft-text {
    color: var(--braun-sehr-hell);
    line-height: 1.6;
    font-size: 1.05em;
    text-shadow: 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Interpretations-Box */
.krafttier-interpretation {
    background: linear-gradient(135deg, rgba(107, 68, 35, 0.5), rgba(160, 114, 78, 0.5));
    padding: 28px;
    border-radius: 15px;
    margin-top: 25px;
    border: 3px solid var(--gold);
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.7),
        0 0 50px rgba(212, 175, 55, 0.3),
        inset 0 0 35px rgba(0,0,0,0.6);
}

.krafttier-interpretation h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold-hell);
    font-size: 1.7em;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.9),
        0 0 20px rgba(212, 175, 55, 0.5),
        2px 2px 4px rgba(0,0,0,0.9);
}

.krafttier-interpretation p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--braun-sehr-hell);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Mantra-Box */
.krafttier-mantra {
    background: linear-gradient(135deg, var(--braun-mittel), var(--braun-dunkel));
    color: var(--gold-hell);
    padding: 22px 35px;
    border-radius: 50px;
    text-align: center;
    margin-top: 25px;
    border: 2px solid var(--gold);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.8),
        0 0 60px rgba(212, 175, 55, 0.4),
        inset 0 0 40px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.mantra-icon {
    font-size: 2.2em;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.krafttier-mantra p {
    margin: 0;
    font-size: 1.25em;
    font-style: italic;
    font-weight: 500;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.4),
        1px 1px 3px rgba(0,0,0,0.9);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 15, 8, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(160, 114, 78, 0.3);
    border-top-color: var(--gold-hell);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.6),
        inset 0 0 20px rgba(212, 175, 55, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Karten-Animation beim Ausblenden */
.karte-fade-out {
    animation: fadeOutCard 0.6s ease-out forwards;
}

@keyframes fadeOutCard {
    to {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(3px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #karten-kreis {
        width: 400px;
        height: 400px;
    }
    
    .karte-wrapper {
        width: 80px;
        height: 120px;
        margin-left: -40px;
        margin-top: -60px;
    }
    
    .ergebnis-content {
        padding: 25px;
    }
    
    .krafttier-bild img {
        max-width: 400px;
    }
    
    .oracle-intro h2 {
        font-size: 2em;
    }
    
    .krafttier-info h3 {
        font-size: 2.2em;
    }
}

@media (max-width: 480px) {
    #karten-kreis {
        width: 300px;
        height: 300px;
    }
    
    .karte-wrapper {
        width: 60px;
        height: 90px;
        margin-left: -30px;
        margin-top: -45px;
    }
    
    .krafttier-bild img {
        max-width: 100%;
    }
    
    .oracle-intro {
        padding: 18px;
    }
    
    .oracle-intro h2 {
        font-size: 1.6em;
    }
    
    .oracle-intro p {
        font-size: 1.1em;
    }
    
    .oracle-beschreibung {
        padding: 15px 20px;
    }
}