/* Custom CSS für twentyfive.coach Landingpage */

/* Hero Video: Vollbild- und Lautstärke-Buttons ausblenden */
#hero-video::-webkit-media-controls-fullscreen-button,
#hero-video::-webkit-media-controls-mute-button,
#hero-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

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

/* Screen Reader Only Class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Headline Carousel Animation */
.headline-text {
    display: block;
    opacity: 0;
    animation: fadeOut 0.5s ease-in-out;
}

.headline-text.active {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Video Player Custom Styling */
video {
    border-radius: 1rem;
}

video::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

/* Smooth Hover Transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Details/Summary Styling (FAQ) */
details[open] summary {
    color: #2563EB;
}

details summary {
    outline: none;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* Loading Animation for Images */
img {
    animation: imageLoad 0.3s ease-in-out;
}

@keyframes imageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Pulse Animation for CTAs */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

/* Focus Visible Styles for Accessibility */
*:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Badge Preview Animation */
@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

.badge-preview {
    animation: badgePulse 2s infinite;
}

/* Skeleton Loading for Images */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Menu Slide Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.show {
    max-height: 500px;
}


/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor !important;
    }
}

/* Dark Mode Preparation (for future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here if needed */
}

/* Custom Utilities */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Aspect Ratio for Videos */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Text Balance for Headlines */
.text-balance {
    text-wrap: balance;
}

/* Grid Auto Flow */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Backdrop Blur Support */
.backdrop-blur-fallback {
    background-color: rgba(255, 255, 255, 0.95);
}

@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-fallback {
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
    }
}
