/**
 * Custom Styles - Optimiert & Vollständig
 * Author: gfxMedia.at (https://gfxmedia.at)
 * 
 * Professionelle CSS für moderne, conversion-optimierte Websites
 */

/* ============================================================================
   ANIMATIONS
   ========================================================================== */

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* ============================================================================
   SCROLL ANIMATIONS (mit Intersection Observer)
   ========================================================================== */

[data-animate] {
    opacity: 0;
}

[data-animate].animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

[data-animate="fadeIn"].animated {
    animation-name: fadeIn;
}

[data-animate="slideUp"].animated {
    animation-name: slideUp;
}

[data-animate="scaleIn"].animated {
    animation-name: scaleIn;
}

/* Animation Delays */
[data-delay="100"] { animation-delay: 0.1s; }
[data-delay="200"] { animation-delay: 0.2s; }
[data-delay="300"] { animation-delay: 0.3s; }
[data-delay="400"] { animation-delay: 0.4s; }
[data-delay="500"] { animation-delay: 0.5s; }
[data-delay="600"] { animation-delay: 0.6s; }
[data-delay="700"] { animation-delay: 0.7s; }
[data-delay="800"] { animation-delay: 0.8s; }

/* ============================================================================
   NAVIGATION FIXES
   ========================================================================== */

/* Dropdown Navigation */
.nav-item {
    position: relative;
}

.group:hover > ul {
    display: block !important;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Dropdown Menu Position Fix */
nav .group {
    position: relative;
}

nav .group ul {
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* ============================================================================
   CUSTOM COMPONENTS
   ========================================================================== */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-accent:hover {
    background: var(--secondary-hover);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 255, 0, 0.3);
}

/* ============================================================================
   FORM STYLES
   ========================================================================== */

/* Input Focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 46, 91, 0.1);
}

/* Floating Label */
.floating-label {
    position: relative;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: white;
    padding: 0 0.25rem;
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.5rem;
    width: 1.5rem;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.5rem;
    top: 0.25rem;
    width: 0.375rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* ============================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Hover Lift */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Shadow Variants */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.06);
}

.shadow-custom-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 10px 20px rgba(0, 0, 0, 0.08);
}

.shadow-glow-primary {
    box-shadow: 0 0 20px rgba(0, 46, 91, 0.3);
}

.shadow-glow-accent {
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.4);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   LOADING STATES
   ========================================================================== */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================================================
   CONTACT MODAL
   ========================================================================== */

#contactModal {
    z-index: 9999 !important;
}

/* Contact Modal Animations */
@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleInModal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleInModal 0.3s ease-out;
}

/* ============================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 46, 91, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 46, 91, 0.95) 0%, rgba(0, 46, 91, 0.8) 100%);
}

/* ============================================================================
   TRUST BADGES
   ========================================================================== */

.trust-badge {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.trust-badge:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.trust-badge i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ============================================================================
   PRICING CARDS
   ========================================================================== */

.pricing-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s;
    background: white;
    border: 2px solid #e5e7eb;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 46, 91, 0.2);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.08);
}

.pricing-card.featured:hover {
    transform: scale(1.12);
}

/* ============================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-stars {
    color: var(--accent-color);
}

/* ============================================================================
   PROCESS STEPS
   ========================================================================== */

.process-step {
    position: relative;
    padding-left: 4rem;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    nav, footer, .no-print, button, .cta-section {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ========================================================================== */

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

/* ============================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ============================================================================
   SELECTION COLOR
   ========================================================================== */

::selection {
    background: var(--accent-color);
    color: var(--primary-color);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Logo Styles */
.logo-container {
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 10;
}
/* FAQ Toggle Functionality */
.active > div:last-child {
    display: block !important;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}