/* Globale Regeln für horizontales Scrollen verhindern */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Unterstrich für Navigation */
.nav-underline {
    position: relative;
    display: inline-block;
}
.nav-underline::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 60%;
    border-bottom: 3px solid #3b9fd5;
    transition: width 0.3s cubic-bezier(.4,0,.2,1);
}
.nav-underline:hover::after,
.nav-underline:focus::after {
    width: 100%;
}

/* Logo Hover Effects */
.logo-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.logo-hover:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-hover:active {
    transform: scale(0.98);
}

/* Pulsierender Logo-Effekt für Navigation */
.nav-logo-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-logo-hover:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(173, 201, 14, 0.3));
}

.nav-logo-hover:active {
    transform: scale(0.95);
}

/* Logo Slider Animation - Komplett neue Version */
@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-slider-container {
    position: relative;
    max-height: 120px;
    overflow: hidden;
    background: white;
    border: 1px solid #f0f0f0;
}

.logo-slider {
    display: flex;
    align-items: center;
    width: max-content;
    animation: slideLogos 45s linear infinite;
    animation-play-state: running;
    will-change: transform;
    transform: translateX(0);
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 120px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0 16px;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.logo-item img {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    width: auto;
    height: auto;
    display: block;
}

/* Pause Animation on Hover */
.logo-slider-container:hover .logo-slider {
    animation-play-state: paused;
}

/* Force animation to work - override any other styles */
.logo-slider {
    animation: slideLogos 45s linear infinite !important;
    animation-play-state: running !important;
}

/* Ensure animation works on all browsers */
@supports (animation: slideLogos 45s linear infinite) {
    .logo-slider {
        animation: slideLogos 45s linear infinite !important;
    }
}

/* Neuer Logo Slider - Komplett neue Styles */
@keyframes slideCustomerLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideCustomerWebsites {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Erster Logo Slider - Vertrauen unserer Kunden */
.customer-logos-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 100px;
    width: 100%;
    max-width: 100vw;
}

.customer-logos-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    max-width: none;
}

.customer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 100px;
    margin: 0 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.customer-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.customer-logo img {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    width: auto;
    height: auto;
    display: block;
}



/* Mobile Anpassungen für Logo Slider */
@media (max-width: 768px) {
    .customer-logos-wrapper {
        max-width: 100%;
        overflow: hidden;
    }
    
    .customer-logo {
        min-width: 150px;
        margin: 0 10px;
    }
    
    .customer-logo img {
        max-width: 120px;
        max-height: 60px;
    }
    
    .customer-logo img[src*="walbusch"] {
        max-height: 80px;
        margin-top: 20px;
    }
    
    /* Zusätzliche mobile Anpassungen */
    .max-w-7xl {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .max-w-6xl {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .max-w-5xl {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    .customer-logo {
        min-width: 120px;
        margin: 0 8px;
    }
    
    .customer-logo img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .customer-logo img[src*="walbusch"] {
        max-height: 70px;
        margin-top: 15px;
    }
    
    /* Zusätzliche Anpassungen für sehr kleine Bildschirme */
    .px-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-12 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}



.bg-yellow-400, .btn-invert {
    background-color: #3b9fd5 !important;
}

.btn-invert:hover {
    color: #041926 !important;
}

.text-green-600, a:hover {
    color: #3b9fd5 !important;
}

.slider-state {
    color: #3b9fd5 !important;
}

.next:hover, .prev:hover {
    background-color: #3b9fd5 !important;
}

/* Unterstrich für H1/H2 */
.heading-underline {
    position: relative;
    display: inline-block;
}
.heading-underline::after {
    content: '';
    display: block;
    margin: 0.5rem auto 0 auto;
    width: 60%;
    border-bottom: 4px solid #3b9fd5;
    transition: width 0.3s cubic-bezier(.4,0,.2,1);
}
.heading-underline:hover::after,
.heading-underline:focus::after {
    width: 100%;
}

/* Line clamp für Text-Abschneidung */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Intro Animation Styles */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(4, 25, 38, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-overlay.fade-out {
    opacity: 0;
    transform: translateY(-100%);
}

.intro-content {
    text-align: center;
    color: white;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.intro-overlay.fade-out .intro-content {
    transform: translateY(-50px) scale(0.8);
}

.logo-container {
    margin-bottom: 2rem;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo {
    width: 350px;
    height: auto;
    opacity: 0;
    transform: scale(0.5);
    animation: logoAppear 1s ease-out 0.5s forwards;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.subline-container {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: sublineAppear 0.5s ease-out 1.5s forwards;
    position: relative;
    margin-top: 2rem;
    min-height: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes sublineAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.subline-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    min-height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
    font-size: 1.75rem;
    line-height: 2.5rem;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes fadeInButton {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .intro-logo {
        width: 280px;
    }

    .subline-container {
        font-size: 1.5rem;
    }

    .cursor {
        font-size: 1.5rem;
    }

    .logo-container {
        height: 250px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .intro-logo {
        width: 220px;
    }

    .subline-container {
        font-size: 1.25rem;
    }

    .cursor {
        font-size: 1.25rem;
    }

    .logo-container {
        height: 200px;
        margin-bottom: 1.5rem;
    }
}



/* Kachel Hover-Effekt für Referenzen & Branchenlösungen */
.referenz-card {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 8px 0 rgba(18,60,43,0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.referenz-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(18,60,43,0.18);
    z-index: 2;
}
.referenz-card img {
    transition: filter 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
}
.referenz-card:hover img {
    filter: brightness(1.08) saturate(1.1) drop-shadow(0 0 16px #adc90e55);
}

/* Hero Slider Animationen */
.animate-slide-in-left {
    animation: slideInLeft 1.5s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1.5s ease-out forwards;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Arrow Animationen */
.animate-slide-in-left-arrow {
    animation: slideInLeftArrow 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-slide-in-right-arrow {
    animation: slideInRightArrow 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes slideInLeftArrow {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.3);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-20px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRightArrow {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.3);
    }
    50% {
        opacity: 0.8;
        transform: translateX(20px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Barrierefreiheit Styles */
.high-contrast {
    --text-color: #000000;
    --bg-color: #ffffff;
    --accent-color: #0000ff;
    --border-color: #000000;
}

.high-contrast * {
    color: var(--text-color) !important;
    background-color: var(--bg-color) !important;
    border-color: var(--border-color) !important;
}

.high-contrast a {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

.dark-mode {
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --accent-color: #4ade80;
    --border-color: #404040;
}

.dark-mode * {
    color: var(--text-color) !important;
    background-color: var(--bg-color) !important;
    border-color: var(--border-color) !important;
}

.dark-mode a {
    color: var(--accent-color) !important;
}

.show-focus *:focus {
    outline: 3px solid #ff0000 !important;
    outline-offset: 2px !important;
}

.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Sticky Navigation Styles */
.sticky-contact-form input,
.sticky-contact-form select,
.sticky-contact-form textarea {
    font-size: 14px;
}

.sticky-contact-form button {
    font-size: 14px;
    font-weight: 600;
}

/* Accessibility Focus Styles */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #adc90e;
    outline-offset: 2px;
}

/* High Contrast Focus */
.high-contrast button:focus,
.high-contrast a:focus,
.high-contrast input:focus,
.high-contrast select:focus,
.high-contrast textarea:focus {
    outline: 3px solid #0000ff;
    outline-offset: 2px;
}

/* Dark Mode Focus */
.dark-mode button:focus,
.dark-mode a:focus,
.dark-mode input:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
    outline: 3px solid #4ade80;
    outline-offset: 2px;
}

/* Ausfahrbare Barrierefreiheits-Navigation am unteren Bildschirmrand */
.accessibility-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.accessibility-wimpel {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 51;
}

.accessibility-wimpel:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.2);
}

.accessibility-wimpel:focus {
    outline: 2px solid #adc90e;
    outline-offset: 2px;
}

.accessibility-panel {
    position: relative;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 50;
    font-size: 0.875rem;
}

.accessibility-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.accessibility-link:hover {
    background-color: #f3f4f6;
    color: #adc90e;
}

.accessibility-link:focus {
    outline: 2px solid #adc90e;
    outline-offset: 2px;
}

.accessibility-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
}

.accessibility-btn:hover {
    background-color: #adc90e;
    color: white;
}

.accessibility-btn:focus {
    outline: 2px solid #adc90e;
    outline-offset: 2px;
}

/* Responsive Anpassungen für ausfahrbare Barrierefreiheits-Navigation */
@media (max-width: 768px) {
    .accessibility-nav-container {
        bottom: 0;
    }
    
    .accessibility-wimpel {
        width: 2.5rem;
        height: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .accessibility-panel {
        padding: 0.75rem;
    }
    
    .accessibility-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .accessibility-btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .accessibility-nav-container {
        bottom: 0;
    }
    
    .accessibility-wimpel {
        width: 2.25rem;
        height: 2.25rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .accessibility-wimpel svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .accessibility-panel {
        padding: 0.5rem;
    }
    
    .accessibility-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }
    
    .accessibility-btn {
        padding: 0.125rem 0.25rem;
        font-size: 0.5rem;
    }
}

/* Alte Skip Links (versteckt für Screen Reader) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #adc90e;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sticky Navigation Verbesserungen */
.sticky-nav-container {
    position: relative;
}

.sticky-panel {
    position: absolute;
    top: 0;
    right: 4rem;
    transform: translateY(-50%);
    z-index: 9999;
}

/* Responsive Anpassungen für Sticky Panels */
@media (max-width: 768px) {
    .sticky-panel {
        position: fixed;
        top: 50% !important;
        right: 1rem !important;
        left: 1rem !important;
        transform: translateY(-50%) !important;
        width: calc(100% - 2rem) !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .sticky-panel {
        top: 10% !important;
        transform: none !important;
        max-height: 80vh !important;
    }
}

/* Animation für Panel-Ausfahren */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Panel Transition Styles */
.panel-enter {
    animation: slideInFromRight 0.3s ease-out forwards;
}

.panel-leave {
    animation: slideOutToRight 0.2s ease-in forwards;
}

/* Sticky Button Hover Effects */
.sticky-button {
    transition: all 0.2s ease;
}

.sticky-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sticky-button:focus {
    outline: 3px solid #adc90e;
    outline-offset: 2px;
}

/* Panel Content Scrolling */
.panel-content {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #adc90e #f3f4f6;
}

.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #adc90e;
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: #123c2b;
}

/* Z-Index Management */
.sticky-nav-container {
    z-index: 9998;
}

.sticky-panel {
    z-index: 9999;
}

/* Focus Management für Panels */
.panel-focus-trap {
    outline: none;
}

/* Kontrast-Verbesserungen */
.high-contrast .bg-gray-50 {
    background-color: #ffffff !important;
}

.high-contrast .text-gray-600 {
    color: #000000 !important;
}

.high-contrast .border-gray-300 {
    border-color: #000000 !important;
}

/* Dark Mode Verbesserungen */
.dark-mode .bg-white {
    background-color: #1a1a1a !important;
}

.dark-mode .text-gray-900 {
    color: #ffffff !important;
}

.dark-mode .text-gray-600 {
    color: #d1d5db !important;
}

.dark-mode .border-gray-300 {
    border-color: #404040 !important;
}

/* Barrierefreiheit Button Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.accessibility-button:focus {
    animation: pulse 2s infinite;
}

/* Print Styles */
@media print {
    .sticky-nav,
    .sticky-button {
        display: none !important;
    }
}

/* Reduced Motion für Nutzer mit Vestibularstörungen */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast für Nutzer mit Sehbehinderungen */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --bg-color: #ffffff;
        --accent-color: #0000ff;
        --border-color: #000000;
    }
}

/* Dark Mode für Nutzer mit Lichtempfindlichkeit */
@media (prefers-color-scheme: dark) {
    .auto-dark-mode {
        --text-color: #ffffff;
        --bg-color: #1a1a1a;
        --accent-color: #4ade80;
        --border-color: #404040;
    }
}