/*
    Patscheider - Tailwind Custom Styles
    Ergänzende Styles für Tailwind CSS
*/

/* Custom Color Variables for reference */
:root {
    --pat-primary: #a31621;
    --pat-primary-hover: #8b1219;
    --pat-secondary: #7a1018;
    --pat-accent: #e8505b;
}

/* Preloader */
.preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background-color: #ffffff;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url(../images/preloader.svg);
    background-size: 80px;
}

/* Sticky Header Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fixed-header .sticky-header {
    animation: fadeInDown 500ms ease;
}

/* Slider Overlay */
.slider-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

/* Banner Overlay */
.banner-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Back to Top Button */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms ease;
    background: #a31621;
    color: #ffffff;
    font-size: 20px;
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap svg.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-wrap svg.progress-circle path {
    stroke: #ffffff;
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 307.919;
    stroke-dashoffset: 307.919;
    transition: stroke-dashoffset 10ms linear;
}

.progress-wrap i {
    position: relative;
    z-index: 1;
}

/* Dropdown Menu Animations */
.group:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Contact Protection Placeholder */
[int-email-protected],
[int-phone-protected] {
    display: inline-block;
    min-width: 150px;
}

/* AOS Override for smoother animations */
[data-aos] {
    pointer-events: auto !important;
}

/* Fancybox adjustments */
.fancybox__container {
    z-index: 99999 !important;
}

/* Timeline Styles */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #a31621, #7a1018);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
}
