    /* Shared Components CSS - Common styles used across multiple pages */

/* ====================== */
/* PERFORMANCE OPTIMIZATIONS */
/* ====================== */
/* Content-visibility for below-fold sections */
footer,
.footer-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Improve paint performance */
.card,
.product-card,
.feature-card {
    will-change: transform;
    contain: layout style paint;
}

/* ====================== */
/* ACCESSIBILITY - REDUCED MOTION */
/* ====================== */
@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;
    }
    
    /* Disable AOS animations */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Disable video autoplay for reduced motion */
    video[autoplay] {
        animation: none !important;
    }
}

/* ====================== */
/* CSS VARIABLES (COMMON) */
/* ====================== */
:root {
    /* Color Variables - Used in multiple files */
    --dark-gray: #1F2937;
    --anthracite: #111827;
    --deep-anthracite: #0F172A;
    --accent-red: #B83232;
    --accent-red-light: #D25050;
    --accent-red-dark: #8A2626;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    
    /* Primary colors from main.css */
    --primary-color: #0055CC;
    --primary-dark: #003399;
    --primary-light: #1E78FF;
    --primary-color-rgb: 0, 85, 204;
    --secondary-color: #B83232;
    --secondary-dark: #8A2626;
    --secondary-light: #D25050;
    --secondary-color-rgb: 184, 50, 50;
}

/* ==================== */
/* GENERAL BASE STYLES  */
/* ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ==================== */
/* FOCUS-VISIBLE STYLES */
/* ==================== */
/* Better keyboard navigation indicators */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove default focus ring for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Custom focus styles for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast focus for dark backgrounds */
.bg-dark *:focus-visible,
footer *:focus-visible {
    outline-color: var(--white);
}

/* ==================== */
/* NAVIGATION COMPONENTS */
/* ==================== */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* Active Navigation Link - aktuelle Seite hervorheben */
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active:after {
    width: 100%;
    background-color: var(--primary-color);
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

.navbar-modern {
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    backdrop-filter: blur(20px);
}

/* ================== */
/* BUTTON COMPONENTS  */
/* ================== */
.btn-primary {
    background-color: var(--accent-red);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-red-dark);
    color: white !important;
    /* transform: translateY(-2px); */ /* Entfernt */
    /* box-shadow: 0 10px 15px -3px rgba(184, 50, 50, 0.3); */ /* Entfernt */
}

.btn-accent {
    background-color: var(--accent-red);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-red-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-dark);
    box-shadow: 0 0 10px rgba(var(--secondary-color-rgb), 0.3);
}

/* Modern button style */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 6px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-modern:hover::before {
    opacity: 1;
}

/* .btn-modern:hover - Bewegungseffekte entfernt */

/* =================== */
/* FORM COMPONENTS     */
/* =================== */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
    /* transform: translateY(-2px); */ /* Entfernt */
}

input:hover, textarea:hover, select:hover {
    border-color: var(--primary-light);
    /* box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.08); */ /* Entfernt */
}

/* Checkbox styling */
input[type="checkbox"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    /* transform: scale(1.05); */ /* Entfernt */
}

/* Textarea specific */
textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* =================== */
/* CARD COMPONENTS     */
/* =================== */
.modern-card {
    transition: box-shadow 0.3s;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-card:hover {
    /* transform: translateY(-10px); */ /* Entfernt */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Reduziert */
}

.value-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(225deg, #ffffff, #f3f4f6);
    border-radius: inherit;
    transform: translateZ(-10px);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.value-card:hover::before {
    transform: translateZ(-5px);
    opacity: 1;
}

/* ======================== */
/* NOTIFICATION COMPONENTS  */
/* ======================== */
.success-message {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.success-message svg {
    color: #10b981;
    margin-right: 0.75rem;
}

.error-message {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.error-message svg {
    color: #ef4444;
    margin-right: 0.75rem;
}

/* =================== */
/* ANIMATION LIBRARY   */
/* =================== */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-10px, 20px) scale(0.9);
    }
    75% {
        transform: translate(-30px, -10px) scale(1.05);
    }
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0); }
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-5px);}
    20%, 40%, 60%, 80% {transform: translateX(5px);}
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation classes */
.floating {
    animation: float 6s ease-in-out infinite;
}

.pulse-border {
    animation: pulse-border 2s infinite;
}

.shake {
    animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.animated-bg {
    background-size: 400% 400%;
    background: linear-gradient(-45deg, 
        rgba(var(--primary-color-rgb), 0.1), 
        rgba(var(--primary-color-rgb), 0.05),
        rgba(var(--secondary-color-rgb), 0.1), 
        rgba(var(--primary-color-rgb), 0.05));
    animation: gradient 15s ease infinite;
}

/* ==================== */
/* RESPONSIVE UTILITIES */
/* ==================== */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary, .btn-modern {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile-optimized spacing */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Mobile typography */
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-3xl {
        font-size: 1.75rem !important;
    }
    
    .text-2xl {
        font-size: 1.5rem !important;
    }
    
    h1 {
        line-height: 1.2;
    }
    
    h2, h3 {
        line-height: 1.3;
    }
}

/* ================== */
/* DARK MODE SUPPORT  */
/* ================== */
.dark .text-gray-600 {
    color: #D1D5DB !important;
}

.dark .text-gray-500 {
    color: #9CA3AF !important;
}

.dark .text-gray-700 {
    color: #E5E7EB !important;
}

.dark .text-gray-800 {
    color: #F3F4F6 !important;
}

.dark .text-gray-900 {
    color: #F9FAFB !important;
}

.dark .modern-card {
    background: #1F2937;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* =================== */
/* UTILITY CLASSES     */
/* =================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .glass-effect {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight-blue {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.highlight-red {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

/* Contact info icons */
.contact-info-icon {
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: white;
}

/* HSN/TSN input styling (from oil guide) */
.hsn-input, .tsn-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    text-align: center;
    font-weight: bold;
}

/* Icon hover effects */
.rounded-2xl.bg-gradient-to-br {
    position: relative;
    overflow: visible;
}

.rounded-2xl.bg-gradient-to-br::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: inherit;
    border-radius: inherit;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.value-card:hover .rounded-2xl.bg-gradient-to-br::after {
    opacity: 0.6;
}

/* Social button hover */
.social-button:hover {
    transform: translateY(-3px);
}

/* General link and button hover */
a, button {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ANIMATION ENTFERNT - verursachte störende Bewegung in Navigation */
/* a:hover, button:hover {
    transform: translateY(-2px);
} */

/* Spezifische hover-Effekte nur für bestimmte Elemente */
.btn-primary:hover,
.social-button:hover,
.card:hover:not(.nav-card) {
    transform: translateY(-2px);
}

/* ====================== */
/* PRINT STYLES           */
/* ====================== */
@media print {
    /* Hide navigation, footer, and interactive elements */
    nav,
    header nav,
    footer,
    .mobile-menu,
    #mobile-menu,
    .cookie-banner,
    .consent-banner,
    button,
    .btn-primary,
    .btn-accent,
    .social-links,
    .skip-link,
    video,
    noscript {
        display: none !important;
    }
    
    /* Reset backgrounds and colors for printing */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    /* Ensure links show URL */
    a[href]:not([href^="#"]):not([href^="javascript"])::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    /* Avoid breaking inside important elements */
    img, table, figure {
        page-break-inside: avoid;
    }
    
    /* Show images but optimize */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Remove shadows and gradients */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Ensure main content is visible */
    main,
    .container,
    article {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.5cm !important;
    }
}