@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #0A2540; /* Navy Blue */
    --accent-color: #0b3d91; /* User's Dark Blue */
    --accent-hover: #1456d1; /* User's Hover Blue */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F4F7FA; /* Coller light bg */
    --white: #FFFFFF;
    --black: #0A2540; /* Replaced black structure with Navy */
    --off-black: #071A2D; /* Deeper navy */
    --shadow: 0 4px 15px rgba(0, 37, 64, 0.08); /* Blue-tinted shadow */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid white; /* Weißer Rahmen für Elektro-Look */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--accent-hover);
    border-color: white;
    box-shadow: 0 0 15px rgba(20, 86, 209, 0.7);
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.96);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.white-border-btn {
    background: #0b3d91; /* dunkles Blau */
    color: white;
    border: 2px solid white;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
}

.white-border-btn:hover {
    background: #1456d1;
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.white-border-btn:active {
    transform: scale(0.97);
}

button {
    border: 2px solid white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--black);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.phone-link {
    color: var(--accent-color);
    font-weight: 700;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
    font-weight: 300;
    letter-spacing: 1px; /* Slightly reduced for longer name */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Page Hero */
.page-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Services Detail */
.services-detail {
    padding: 80px 0;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    scroll-margin-top: 100px; /* Offset for sticky header */
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-text {
    flex: 1;
}

/* Service Gallery (About Us) */
.what-we-do {
    padding: 80px 0;
    background-color: var(--white);
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    text-align: center;
    background-color: var(--white);
    padding: 0;
    border-radius: 0;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid #eee;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.gallery-item-content {
    padding: 25px;
}

.gallery-item h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.gallery-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.service-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.service-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.service-text ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-text ul li {
    font-weight: 600;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.value-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* References Section */
.references-section {
    padding: 80px 0;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.reference-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

.reference-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reference-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.95), rgba(10, 37, 64, 0.7), transparent);
    padding: 40px 30px 30px;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.reference-card:hover img {
    transform: scale(1.1);
}

.reference-card:hover .reference-overlay {
    transform: translateY(0);
}

.reference-card:hover {
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.reference-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reference-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ref-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item .icon {
    font-size: 1.5rem;
    background-color: var(--accent-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.business-hours {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.business-hours h3 {
    margin-bottom: 15px;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 45, 98, 0.1);
}

@media (max-width: 768px) {
    .service-item, .service-item.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .service-image {
        width: 100%;
    }

    .service-image img {
        height: 250px;
    }
}
.cta-section {
    padding: 60px 0;
    background: #0A2540; /* Solid professional dark blue */
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 50px;
    border-radius: 12px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

@media (max-width: 992px) {
    .cta-glass-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 25px;
    }
}

.cta-content-wrapper {
    flex: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff3b30;
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    font-weight: 400;
}

@media (max-width: 992px) {
    .cta-section p {
        margin-bottom: 0;
    }
}

.cta-phone-btn {
    font-size: 1.5rem !important;
    padding: 12px 30px !important;
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    display: inline-block;
}

.cta-phone-btn:hover {
    background: var(--accent-hover) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}
/* Footer (existing styles remain) */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

/* ================================================== */
/* NEUE STARTSEITE (PROFESSIONELL & VERNÜNFTIG)       */
/* ================================================== */
.hero-professional {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: url('../images/dark_electrician_hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,37,64, 0.95) 0%, rgba(10,37,64, 0.7) 100%);
    z-index: 1;
}

.hero-content-pro {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding-top: 0;
}

.hero-text-box {
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4da6ff; /* Hellblau-Akzent */
    margin-bottom: 15px;
    border-left: 3px solid #4da6ff;
    padding-left: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-professional h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-professional p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 650px;
}

.hero-action-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-professional h1 { font-size: 2.5rem; }
    .hero-action-btns { flex-direction: column; }
    .hero-action-btns .btn { width: 100%; text-align: center; }
}

/* Trust Bar */
.trust-bar {
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    margin-top: -30px;
    border-radius: 8px;
    padding: 20px 0;
}

.trust-bar-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.trust-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

/* Services Clean */
.section-padding { padding: 90px 0; }
.bg-light { background-color: var(--bg-light); }

.section-heading { margin-bottom: 50px; }
.section-heading h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-heading p { color: var(--text-light); font-size: 1.1rem; }
.text-center { text-align: center; }

.service-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card-clean {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #4da6ff;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(11, 61, 145, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.service-card-clean h3 { margin-bottom: 15px; font-size: 1.25rem; }
.service-card-clean p { color: var(--text-light); flex-grow: 1; margin-bottom: 25px; }
.service-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

/* Warum Wir Clean */
.why-us-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.why-us-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.why-us-image img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.why-us-content {
    flex: 1.2;
}

.accent-text {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.why-us-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.why-us-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.why-us-list {
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.why-us-list li {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.why-us-list strong {
    color: var(--primary-color);
    margin-right: 5px;
}

.mt-20 { margin-top: 20px; }

@media (max-width: 992px) {
    .why-us-split { flex-direction: column; }
    .why-us-image { margin-bottom: 30px; width: 100%; }
}

/* Footer (restored) */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 0; /* Abstand zum Vor-Bereich entfernt (Feedback) */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
}
