/**
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 *  EDGARD Main Landing Page - Blue Theme
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 *  Version: 1.0.0
 *  Erstellt: 2025-01-10
 *  Basierend auf Stove-Theme, angepasst für Corporate Identity
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 */

/* ============================================
   CSS Custom Properties (Design System)
   ============================================ */
:root {
    /* Primary Colors - Edgard Blue Theme */
    --main-blue: #2c5aa0;
    --main-blue-dark: #1e3d6f;
    --main-blue-light: #4472c4;
    --main-blue-lighter: #e6f0ff;

    /* Accent Colors for Services */
    --accent-pv: #28a745;      /* Grün */
    --accent-stove: #ff6b35;   /* Orange */
    --accent-wallbox: #0dcaf0; /* Cyan */
    --accent-alarm: #dc3545;   /* Rot */
    --accent-network: #6610f2; /* Indigo */

    /* Neutral Colors */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, var(--main-blue), var(--main-blue-dark));
    --gradient-orange-blue: linear-gradient(135deg, var(--accent-stove), var(--main-blue));
    --gradient-dark: linear-gradient(135deg, var(--gray-800), var(--gray-900));

    /* Typography */
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --border-radius-md: 12px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 90, 160, 0.1);
    --shadow-md: 0 6px 20px rgba(44, 90, 160, 0.15);
    --shadow-lg: 0 10px 40px rgba(44, 90, 160, 0.2);

    /* Transitions */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-900);
    background: var(--gray-100);
    padding-top: 76px; /* Offset for fixed navbar */
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(30, 61, 111, 0.85) 0%,
        rgba(44, 90, 160, 0.75) 100%
    ), url("../img/hero-main.66de2ba04ead.jpg"); /* Needs generic electrician image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-xl);
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-lead {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Service Grid (The Hub)
   ============================================ */
.service-grid-section {
    padding: 6rem 0;
    background: white;
    margin-top: -4rem; /* Overlap Hero */
    position: relative;
    z-index: 10;
    border-radius: 30px 30px 0 0;
}

.service-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--main-blue); /* Default fallback */
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Service Colors */
.service-card.pv::before { background: var(--accent-pv); }
.service-card.stove::before { background: var(--accent-stove); }
.service-card.wallbox::before { background: var(--accent-wallbox); }
.service-card.alarm::before { background: var(--accent-alarm); }
.service-card.network::before { background: var(--accent-network); }

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2.5rem;
    color: white;
    background: var(--gray-200); /* Fallback */
}

/* Icon Backgrounds */
.service-card.pv .service-icon { background: linear-gradient(135deg, #28a745, #20c997); }
.service-card.stove .service-icon { background: linear-gradient(135deg, #ff6b35, #ff4500); }
.service-card.wallbox .service-icon { background: linear-gradient(135deg, #0dcaf0, #0aa2c0); }
.service-card.alarm .service-icon { background: linear-gradient(135deg, #dc3545, #b02a37); }
.service-card.network .service-icon { background: linear-gradient(135deg, #6610f2, #520dc2); }

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}

.service-desc {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

/* Buttons */
.btn-main {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--main-blue);
    color: var(--main-blue);
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
    padding: 6rem 0;
    background: var(--gray-100);
    text-align: center;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--main-blue);
}

.trust-text {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 1.1rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 6rem 0;
    background: white;
}

.contact-card {
    background: var(--main-blue-lighter);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border-left: 5px solid var(--main-blue);
}

/* ============================================
   Animations & Utils
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    color: var(--main-blue) !important;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
}

.nav-link:hover {
    color: var(--main-blue) !important;
}

@media (max-width: 768px) {
    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 2.5rem; }
    .service-grid-section { margin-top: 0; border-radius: 0; }
}
