@charset "UTF-8";

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Oswald:wght@400;500;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

h1, h2, h3, h4, h5, h6, .font-oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Styling for the hero section background */
.hero-bg {
    position: relative; /* Needed for the pseudo-element */
    z-index: 0; /* Establish a stacking context */
}

/* Pseudo-element for the blurred background image */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0; /* Replaces top, left, right, bottom: 0 */
    z-index: -1; /* Place the pseudo-element behind the content */

    /* Background image - Placeholder für Robotik/AGV */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/e-vein-kabelzeichnung3d.png');
    background-size: cover;
    background-position: center;

    /* The blur effect */
    filter: blur(4px);

    /* Start slightly zoomed in for the scroll effect */
    transform: scale(1.1);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zoom-out effect on scroll */
body.is-scrolled .hero-bg::before {
    transform: scale(1);
}

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75); display: flex;
    align-items: center; justify-content: center;
    z-index: 1000; padding: 1rem;
}

.modal-content {
    background: white; padding: 2.5rem; border-radius: 0.5rem;
    max-width: 800px; width: 100%; max-height: 90vh;
    overflow-y: auto; position: relative;
}

.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    font-size: 1.5rem; font-weight: bold; cursor: pointer; color: #555;
}

#viewer-modal {
    z-index: 2000; /* Stellt sicher, dass es über allem liegt */
}

#close-viewer-modal {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#close-viewer-modal:hover {
    transform: scale(1.1);
    background-color: #a93226; /* Dunkleres Rot beim Überfahren */
}

.clickable-3d-model {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.play-icon-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(180, 180, 180, 0.3); /* e-vein blau, transparent */
    border-radius: 0.5rem; /* Gleicher Radius wie das Bild */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Lässt Klicks zum Bild durch */
}

.clickable-3d-model:hover .play-icon-overlay {
    opacity: 1;
}

.play-icon {
    /* Positionierung für die exakte Mitte */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Visuelle Stile */
    width: 80px;
    height: 80px;
    background-color: rgba(192, 57, 43, 0.85); /* e-vein rot */
    border-radius: 50%;
    display: flex; /* Zentriert das SVG im Kreis */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Overwrite specific size for play icon container usage in style tag of index.html if needed or consolidate */
.play-icon-container .play-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.play-icon-container:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(192, 57, 43, 0.8);
}


.clickable-3d-model:hover .play-icon {
    /* Behält die Zentrierung bei und skaliert */
    transform: translate(-50%, -50%) scale(1.1);
}

.lang-flag {
    transition: all 0.2s ease-in-out;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* Scroll Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-from-left {
    transform: translateX(-50px);
}

.slide-in-from-right {
    transform: translateX(50px);
}

.slide-up-fade-in {
     transform: translateY(50px);
}

.card-grow-in {
    transform: scale(0.9) translateY(20px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.play-icon-container {
    position: relative;
    cursor: pointer;
}
