/* Custom Styles for Momente der Ruhe */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container max-width override for consistency */
.container {
    max-width: 1400px;
}

/* Custom Animations */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8D0530;
    box-shadow: 0 0 0 3px rgba(141, 5, 48, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: hsl(25, 10%, 50%);
}

/* Button Hover States */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Link Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Responsive Image Fixes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section Video Styles */
#heroVideo {
    opacity: 0;
    transition: opacity 0.8s ease-in;
    transform: scaleX(-1); /* Mirror horizontally */
}

#heroVideo.loaded {
    opacity: 1;
}

/* Ensure video covers entire area */
video {
    object-fit: cover;
}

/* Optimize video performance */
#heroVideo {
    will-change: opacity, transform;
}

/* Hide video on very slow connections */
@media (prefers-reduced-data: reduce) {
    #heroVideo {
        display: none;
    }
}

/* Accessibility - Focus Visible */
*:focus-visible {
    outline: 2px solid #8D0530;
    outline-offset: 2px;
}

/* Custom Scrollbar (for webkit browsers) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(35, 25%, 97%);
}

::-webkit-scrollbar-thumb {
    background: #8D0530;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6A0424;
}

/* Mobile Bottom Bar Padding Compensation */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
}

/* Print Styles */
@media print {
    .mobile-bottom-bar,
    button {
        display: none;
    }
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

/* Selection Color */
::selection {
    background-color: rgba(141, 5, 48, 0.3);
    color: hsl(25, 15%, 25%);
}

/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Adjust based on content - will be dynamically set by JS */
    transition: max-height 0.3s ease-in;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-trigger {
    cursor: pointer;
    border: none;
    background: transparent;
}

.accordion-trigger:focus {
    outline: 2px solid #8D0530;
    outline-offset: -2px;
}

