/* Allgemeine Stile für Elat Webseite */

/* Farbvariablen */
:root {
    /* Hauptfarben */
    --primary-color: #0055CC; /* Kräftigeres Blau als Hauptfarbe */
    --primary-dark: #003399;
    --primary-light: #1E78FF;
    --primary-color-rgb: 0, 85, 204;
    
    /* Unterfarben - dezenteres Rot */
    --secondary-color: #B83232; /* Gedämpfteres Rot als Unterfarbe */
    --secondary-dark: #8A2626;
    --secondary-light: #D25050;
    --secondary-color-rgb: 184, 50, 50;
    
    /* Neutrale Farben bleiben */
    --neutral-dark: #1F2937; /* gray-800 */
    --neutral-medium: #6B7280; /* gray-600 */
    --neutral-light: #F9FAFB; /* gray-50 */
}

/* Verhindert horizontales Scrollen auf allen Seiten */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Cross-browser text size adjust to replace vendor-only usage */
:host, html {
    -webkit-text-size-adjust: 100%; /* Safari support */
    text-size-adjust: 100%; /* Modern browsers */
}

/* TailwindCSS override for better browser compatibility */
html {
    -webkit-text-size-adjust: 100% !important; /* Safari support */
    text-size-adjust: 100% !important; /* Modern browsers: Chrome 54+, Edge 79+, Firefox */
}

/* Dark Mode Unterstützung */
.dark {
    --neutral-dark: #F9FAFB; /* Umgekehrt für Dark Mode */
    --neutral-medium: #D1D5DB;
    --neutral-light: #1F2937;
    
    color-scheme: dark;
}

.dark body {
    background-color: #111827;
    color: #F9FAFB;
}

/* Header-Styling - sticky navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hover-Effekte für Links */
a.hover\:text-blue-800:hover, a.hover\:text-\[var\(--primary-color\)\]:hover {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Hintergrundbild für weiße Bereiche */
.bg-pattern {
    background-image: url('../../bilder/back.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-pattern-card {
    background-image: url('../../bilder/back.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.bg-pattern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.bg-pattern-card > * {
    position: relative;
    z-index: 2;
}

.bg-pattern-solid {
    background-image: url('../../bilder/back.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.bg-pattern-solid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    z-index: 1;
}

.bg-pattern-solid > * {
    position: relative;
    z-index: 2;
}

/* Generelle Farbersetzungen für Tailwind-Klassen */
.text-blue-800 {
    color: var(--primary-color);
}

.bg-blue-800 {
    background-color: var(--primary-color);
}

.bg-blue-600 {
    background-color: var(--primary-light);
}

.hover\:bg-blue-700:hover {
    background-color: var(--primary-dark);
}

.hover\:text-blue-300:hover {
    color: var(--secondary-light);
}

/* Abgerundete Ecken für Bilder */
.bg-gray-200 img {
    border-radius: 4px;
}

/* Container-Anpassungen */
.container {
    max-width: 1200px;
}

/* Responsive Verbesserungen */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Verbesserte Touch-Targets für Mobile */
    button, a.btn-primary, a.btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Bessere Text-Lesbarkeit auf kleinen Bildschirmen */
    h1 {
        line-height: 1.2;
    }
    
    h2, h3 {
        line-height: 1.3;
    }
    
    /* Mobile Navigation */
    #mobile-menu {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Verbesserte Grid-Responsive-Verhalten */
@media (max-width: 640px) {
    .grid {
        gap: 1rem !important;
    }
    
    /* Mobile-optimierte Schriftgrößen */
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-3xl {
        font-size: 1.75rem !important;
    }
    
    .text-2xl {
        font-size: 1.5rem !important;
    }
    
    /* Mobile-optimierte Abstände */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Industrial Card Mobile Anpassungen */
    .industrial-card {
        margin-bottom: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid {
        gap: 1.5rem !important;
    }
}

/* Bessere Image Responsive-Verhalten */
img {
    max-width: 100%;
    height: auto;
}

video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Video Container Mobile-Optimierung */
.video-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobile Fix: Reduziere starke negative Insets bei absolut positionierten Glüheffekten */
@media (max-width: 640px) {
    .absolute.-inset-4 {
        inset: -0.5rem !important;
    }
}

@media (max-width: 640px) {
    .video-container {
        height: 50vh !important;
        min-height: 300px !important;
    }
}

/* Mobile-optimierte Button-Größen */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
    }
}

/* Transition-Effekte */
.transition {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Verbesserte Blau-Rot Farbakzente */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-dark);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.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);
}

/* Stärkere Hervorhebung der Hauptnavigation */
header nav a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
    text-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.3);
}

/* Blau-Rot Gradient für Sektions-Hintergründe */
.bg-blue-red-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

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

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

/* Zusätzliche Blau-Rot Styling-Elemente */
.blue-red-border {
    border: 2px solid transparent;
    border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-image-slice: 1;
}

.blue-red-glow {
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5),
                0 0 15px rgba(var(--secondary-color-rgb), 0.5);
}

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

/* Blau-Rot Effekte für Buttons und interaktive Elemente */
.button-blue-red {
    position: relative;
    color: white;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    overflow: hidden;
    z-index: 1;
}

.button-blue-red:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transition: width 0.3s ease;
    z-index: -1;
}

.button-blue-red:hover:before {
    width: 100%;
}

/* Gradient background animation moved to shared-components.css */

/* Glass effect moved to shared-components.css */

/* Animations moved to shared-components.css */

/* Animation für Blob-Elemente */
@keyframes blob {
    0% {
        transform: scale(1) translate(0px, 0px);
    }
    33% {
        transform: scale(1.1) translate(30px, -30px);
    }
    66% {
        transform: scale(0.9) translate(-30px, 30px);
    }
    100% {
        transform: scale(1) translate(0px, 0px);
    }
}

.animate-blob {
    animation: blob 10s infinite alternate;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Animation keyframes moved to shared-components.css */

/* Modern card styles moved to shared-components.css */

/* Welleneffekt für Sektionsübergänge */
.wave-top {
    position: relative;
    overflow: hidden;
}

.wave-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill:%23ffffff;'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    z-index: 10;
}

.dark .wave-top::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill:%23111827;'/%3E%3C/svg%3E");
}

/* Modern button styles moved to shared-components.css */

/* Moderne Navigationsleiste */
.navbar-modern {
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dark .navbar-modern.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll-To-Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
    cursor: pointer;
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.5);
}
