/**
 * @file style.css
 * @description This file contains the styling for the Elektro Beck application.
 * It defines the visual appearance of the header, main content, forms, and footer.
 * The design is based on a dark theme with blue accents and a futuristic font.
 */

/* General Styles */
body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    background-color: #1a1a1a;
    color: #e0e0e0;
    overflow-x: hidden;
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
}

/* Live Art Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0779e4, #1a1a1a, #0779e4, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

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

/* Header */
/* The header contains the navigation bar and the company logo.
 * It has a semi-transparent background with a blur effect.
 */
header {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1rem 0;
    border-bottom: #0779e4 3px solid;
    backdrop-filter: blur(10px);
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    transition: color 0.3s ease;
}

header a:hover {
    color: #0779e4;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
    font-size: 24px;
}

.header-logo {
    height: 40px;
    margin-right: 10px;
}

.highlight {
    color: #0779e4;
    font-weight: bold;
}

header nav {
    margin-top: 10px;
}

/* Main Content */
/* Service Cards mit individuellen Hintergründen und Animationen */
.beleuchtungstechnik-card {
    background: linear-gradient(135deg, #fffbe6 60%, #ffe066 100%);
    box-shadow: 0 4px 24px 0 rgba(255, 214, 0, 0.12);
    border: 2px solid #FFD600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.beleuchtungstechnik-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(255, 214, 0, 0.25);
}
.lightbulb-art {
    display: block;
    margin: 0 auto 8px auto;
}

.arbeiten-unter-spannung-card {
    background: linear-gradient(135deg, #e3f0ff 60%, #0d6efd 100%);
    box-shadow: 0 4px 24px 0 rgba(13, 110, 253, 0.12);
    border: 2px solid #0d6efd;
    transition: transform 0.3s, box-shadow 0.3s;
}
.arbeiten-unter-spannung-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(13, 110, 253, 0.25);
}
.electric-bolt {
    display: block;
    margin: 0 auto 8px auto;
}

.notdienst-card {
    background: linear-gradient(135deg, #ffebee 60%, #ffcdd2 100%);
    box-shadow: 0 4px 24px 0 rgba(255, 205, 210, 0.5);
    border: 2px solid #ef9a9a;
    transition: transform 0.3s, box-shadow 0.3s;
}
.notdienst-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(255, 205, 210, 0.7);
}
.wrench-art {
    display: block;
    margin: 0 auto 8px auto;
}

.industrielle-elektrotechnik-card {
    background: linear-gradient(135deg, #fff5e6 60%, #ffcc80 100%);
    box-shadow: 0 4px 24px 0 rgba(255, 204, 128, 0.5);
    border: 2px solid #ffb74d;
    transition: transform 0.3s, box-shadow 0.3s;
}

.industrielle-elektrotechnik-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(255, 204, 128, 0.7);
}

.industrial-art {
    display: block;
    margin: 0 auto 8px auto;
}

.weitere-dienstleistungen-card {
    background: linear-gradient(135deg, #fff8e1 60%, #ffecb3 100%);
    box-shadow: 0 4px 24px 0 rgba(255, 236, 179, 0.5);
    border: 2px solid #ffe082;
    transition: transform 0.3s, box-shadow 0.3s;
}

.weitere-dienstleistungen-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(255, 236, 179, 0.7);
}

.plus-art {
    display: block;
    margin: 0 auto 8px auto;
}

.leistungselektronik-card {
    background: linear-gradient(135deg, #fffde7 60%, #fff9c4 100%);
    box-shadow: 0 4px 24px 0 rgba(255, 249, 196, 0.5);
    border: 2px solid #fff59d;
    transition: transform 0.3s, box-shadow 0.3s;
}

.leistungselektronik-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(255, 249, 196, 0.7);
}

.power-electronics-art {
    display: block;
    margin: 0 auto 8px auto;
}

.weitere-dienstleistungen-card:hover .plus-art line {
    filter: drop-shadow(0 0 8px #0d6efd);
}

.industrielle-elektrotechnik-card:hover .industrial-art path {
    filter: drop-shadow(0 0 8px #6c757d);
}

.leistungselektronik-card:hover .power-electronics-art path,
.leistungselektronik-card:hover .power-electronics-art rect {
    filter: drop-shadow(0 0 8px #0d6efd);
}

/* SVG Animationen für Servicekarten */
.lightbulb-art line, .lightbulb-art ellipse, .lightbulb-art rect {
    transition: filter 0.3s;
}
.beleuchtungstechnik-card:hover .lightbulb-art ellipse {
    filter: drop-shadow(0 0 8px #FFD600);
}
.beleuchtungstechnik-card:hover .lightbulb-art line {
    filter: drop-shadow(0 0 6px #FFD600);
}

.arbeiten-unter-spannung-card:hover .electric-bolt polyline {
    filter: drop-shadow(0 0 8px #0d6efd);
}

.notdienst-card:hover .wrench-art rect,
.notdienst-card:hover .wrench-art circle {
    filter: drop-shadow(0 0 8px #0d6efd);
}
/* The main content area holds the primary information of each page.
 * Sections within the main content have a semi-transparent background,
 * a blue border, and a blur effect to create a layered look.
 */
main {
    padding: 20px 0;
}

section {
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    border: 1px solid #0779e4;
    backdrop-filter: blur(5px);
}

h2 {
    color: #0779e4;
    text-align: center;
    margin-bottom: 20px;
}

.produkt {
    margin-bottom: 15px;
}



/* Footer */
/* The footer contains copyright information and links.
 * It has a semi-transparent background and a blue top border.
 */
footer {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: #0779e4 3px solid;
}

/* Animated Emojis */
.animated-emoji {
    display: inline-block;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

.google-maps-iframe {
    border: 0;
}


.work-image {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-item-container {
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Allow clicks to pass through */
}

.work-item-container:not(.info-visible):hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    font-size: 1.2rem;
    text-align: center;
}


.info-box {
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transition: right 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-image-drehstrom.shifted {
    transform: translateX(-50%);
}

.info-box.visible {
    right: 0;
}


/* Our Work Section */
.work-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
}

.work-item img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.work-item:hover .work-item-overlay {
    opacity: 1;
}

.overlay-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-content {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #0779e4;
}

.modal-header {
    border-bottom: 1px solid #0779e4;
}

.modal-title {
    color: #0779e4;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}


/* Carousel Image Styling */
.carousel-img-fixed-height {
    max-height: 400px; /* Adjust as needed */
    object-fit: cover;
}