/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Chakra background */
.chakra-bg {
    background-color: #f9f9f9;
    background-image: radial-gradient(circle at 50% 50%, rgba(107, 142, 123, 0.05) 0%, rgba(17, 81, 82, 0.05) 50%, rgba(250, 218, 221, 0.05) 100%);
}

/* Float animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Chakra cards */
.chakra-card {
    transition: all 0.3s ease;
}

.chakra-card:hover {
    box-shadow: 0 0 25px rgba(17, 81, 82, 0.5);
    transform: translateY(-5px);
}

/* Aura glow effect */
.aura-glow {
    box-shadow: 0 0 15px var(--glow-color, rgba(17, 81, 82, 0.7));
}

/* Chakra progress bar */
.chakra-progress-bar {
    transition: width 0.3s ease;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chakra-figure {
        width: 180px;
        height: 180px;
    }
}

/* Überschreiben der max-w-3xl Klasse */
.max-w-3xl {
    max-width: none !important;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.loader-content {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #115152;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border-bottom: 4px solid #6B8E7B;
    border-left: 4px solid transparent;
}

.loader-text {
    font-family: 'Quicksand', sans-serif;
    color: #6B8E7B;
    font-size: 16px;
    font-weight: 500;
}

.loader-dots {
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0% { opacity: 0.2; }
    20% { opacity: 0.3; }
    40% { opacity: 0.6; }
    60% { opacity: 0.9; }
    80% { opacity: 0.6; }
    100% { opacity: 0.2; }
}

@keyframes progress {
    to { stroke-dashoffset: 0; }
}

@keyframes logoGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 20px rgba(107, 142, 123, 0.3));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        filter: drop-shadow(0 0 30px rgba(107, 142, 123, 0.8));
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 20px rgba(107, 142, 123, 0.3));
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.loader-mandala {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 20px rgba(107, 142, 123, 0.5));
}

.loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0.8;
    transform-style: preserve-3d;
}

.loader-ring-1 {
    width: 280px;
    height: 280px;
    animation: mandalaRotate 12s linear infinite;
    border-image: linear-gradient(45deg, rgba(107, 142, 123, 0), #6B8E7B) 1;
    filter: drop-shadow(0 0 15px rgba(107, 142, 123, 0.7));
}

.loader-ring-2 {
    width: 220px;
    height: 220px;
    animation: mandalaRotateReverse 8s linear infinite;
    border-image: linear-gradient(-45deg, rgba(17, 81, 82, 0), #115152) 1;
    filter: drop-shadow(0 0 15px rgba(17, 81, 82, 0.7));
}

.loader-ring-3 {
    width: 160px;
    height: 160px;
    animation: mandalaRotate 6s linear infinite;
    border-image: linear-gradient(135deg, rgba(250, 218, 221, 0), #FADABD) 1;
    filter: drop-shadow(0 0 15px rgba(250, 218, 221, 0.7));
}

@keyframes mandalaRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes mandalaRotateReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
}