/* ========================================
   ZENTRALE VARIABLEN (ECHOTECH)
   Farben am Anfang für einheitliches Design
   ======================================== */
:root {
    /* === PRIMÄRE FARBEN === */
    --brand-green: #0d4d2f;           /* Hauptfarbe: Logo, Buttons, Akzente */
    --hero-gray: #445761;             /* Hintergrund: Hero, Service Cards, Stärken */
    --text-light: #e0f2e9;            /* Helle Schrift auf dunklem Grund */
    --text-dark: #0d4d2f;             /* Dunkle Schrift auf hellem Grund */
    
    /* === SEKUNDÄRE FARBEN === */
    --glass-bg: rgba(255, 255, 255, 0.25);      /* Glasmorphismus Menü-Links */
    --glass-border: rgba(255, 255, 255, 0.3);   /* Glasmorphismus Border */
    --info-block-bg: rgba(24, 120, 80, 0.05);   /* Warum EchoTech, Kontakt Boxen */
    
    /* === ABSTÄNDE & GRÖSSEN === */
    --container-width: 1320px;        /* Fixe Breite für perfekte Bündigkeit */
    --radius: 24px;                   /* Einheitlicher Border-Radius */
    --header-height: 100px;           /* Header-Höhe - höher für größeres Logo */
}

/* ========================================
   0. TOPBAR: SCHWEBENDE KONTAKTDATEN
   ======================================== */
.topbar {
    position: fixed !important;
    top: 10px !important;
    right: 40px !important;
    z-index: 1001 !important;
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
}

.topbar a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-decoration: none !important;
    
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    
    transition: all 0.3s ease !important;
}

.topbar a:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(13, 77, 47, 0.3) !important;
    color: var(--brand-green) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ========================================
   1. HEADER: TRANSPARENT + LOGO NORMAL GROß
   ======================================== */
header.header, .header, .sticky-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    position: fixed !important;
    top: 0; 
    width: 100%; 
    z-index: 1000;
    height: var(--header-height);
    display: flex !important;
    align-items: center !important;
    padding-top: 50px !important;
}

/* Container im Header - KEINE SPACE-BETWEEN Überschreibungen */
.header .container,
.header > div,
.header .container-fluid,
.container-header {
    max-width: var(--container-width) !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    /* ⭐ WICHTIG: flex-start ermöglicht freie Menü-Positionierung */
    justify-content: flex-start !important;
    padding: 0 0px !important; 
    flex-wrap: nowrap !important;
}

/* Logo: GRÖßER - 120px Höhe */
.navbar-brand {
    position: relative !important;
    z-index: 1002 !important;
    
    /* ⭐ LOGO POSITION: Minus schiebt nach links */
    margin-left: -80px !important; 
    margin-right: 40px !important;
    
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

.navbar-brand img,
.logo img,
.header .navbar-brand img {
    max-height: 150px !important;
    height: auto !important;
    width: auto !important;
    transform: none !important;
    position: relative !important;
    /* ⭐ LOGO RAGT IN HERO */
    top: 50px !important; 
}

/* ========================================
   MENÜ: EINZEILIG UND HÖHER POSITIONIERT
   ======================================== */
/* Menü: Horizontal nebeneinander - BOOTSTRAP ÜBERSCHREIBEN */
.header .mod-menu,
.header nav,
.header .navbar-nav,
ul.mod-menu,
.menu,
ul.mod-list.nav.ms-auto.d-flex,
#mod-menu1 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* ⭐ VERHINDERT MEHRZEILIGE DARSTELLUNG */
    gap: 8px !important; /* ⭐ REDUZIERT von 12px auf 8px für mehr Platz */
    list-style: none !important;
    padding: 0 !important;

    /* ⭐ MENÜ HÖHER POSITIONIEREN */
    margin-top: 0px !important; /* ⭐ GEÄNDERT von 55px auf 0px */
    margin-bottom: 0 !important;
    
    /* ⭐ MENÜ HORIZONTAL: Nach links schieben */
    margin-left: 0 !important; 
    margin-right: auto !important;

    /* Verhindere andere Positionierung */
    position: relative !important;
    left: 40px !important;  /* ⭐ DIESE ZEILE NEU HINZUFÜGEN - nach rechts schieben */
    justify-self: flex-start !important;
    align-self: center !important;
}

.header .mod-menu > li {
    display: inline-block !important;
    flex-shrink: 0 !important; /* ⭐ VERHINDERT SCHRUMPFEN DER MENÜPUNKTE */
}

.header .mod-menu > li > a {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important; /* ⭐ REDUZIERT von 20px auf 16px für kompaktere Buttons */
    color: var(--brand-green) !important;
    font-weight: 600;
    font-size: 0.85rem; /* ⭐ REDUZIERT von 0.9rem auf 0.85rem */
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header .mod-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(13, 77, 47, 0.3) !important;
    transform: translateY(-2px);
}

/* ========================================
   2. BÜNDIGKEIT: ALLE SEKTIONEN 1320px
   ======================================== */
.container-hero, 
.hero-inner, 
.tech-stack-section, 
.services-section, 
.services-container,
.stärken-wrapper,
.about-section,
.contact-section,
.footer .container {
    max-width: var(--container-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* Hero: Bündig */
.container-hero,
.hero-inner {
    padding: 40px 20px !important;
    box-sizing: border-box !important;
}

.hero-section {
    width: 100% !important;
    background: var(--hero-gray) !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
}

.hero-section > div,
.hero-section .container {
    max-width: var(--container-width) !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

/* ========================================
   3. SERVICE CARDS: MIT HOVER-EFFEKT
   ======================================== */
.services-section {
    background: transparent !important;
    padding: 60px 0 !important;
    margin-bottom: 4rem;
    position: relative;
    overflow: visible !important;
}

.services-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    position: relative;
    z-index: 1;
    padding: 0 20px !important;
    max-width: var(--container-width) !important;
    margin: 0 auto !important;
    align-items: stretch !important;
}

.service-card {
    position: relative;
    background: transparent !important;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* ⭐ HOVER-EFFEKT WIEDERHERGESTELLT */
.service-card:hover {
    transform: translateY(-8px);
}

/* Card Inner: Intensiver Glaseffekt */
.service-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--hero-gray) !important;
    backdrop-filter: blur(14px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* ⭐ DRAMATISCHER SCHATTEN BEI HOVER */
.service-card:hover .service-card-inner {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* Bild-Container */
.service-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

/* ⭐ BILD-ZOOM BEI HOVER */
.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

/* Content-Bereich */
.service-card-content {
    padding: 1.5rem;
    background: rgba(96, 115, 126, 0.45);
    color: #f5f5f5;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center !important;
}

.service-card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--text-light) !important;
    font-weight: 600;
    text-align: center !important;
}

.service-card-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.85);
    text-align: center !important;
}

/* ========================================
   4. FEATURE BADGES: GRÜNE GLASMORPHISMUS
   ======================================== */
.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    
    background: linear-gradient(135deg, rgba(24, 120, 80, 0.14), rgba(34, 150, 100, 0.08));
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    
    border: 1px solid rgba(205, 245, 230, 0.6);
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.14),
        0 0 0 1px rgba(0, 0, 0, 0.3);
    
    font-size: 0.88rem;
    color: #f5f5f5;
    text-align: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.feature-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), transparent 55%);
    opacity: 0.25;
    pointer-events: none;
}

/* ⭐ BADGE HOVER-EFFEKT */
.feature-badge:hover {
    background: linear-gradient(135deg, rgba(34, 150, 100, 0.22), rgba(24, 120, 80, 0.12));
    border-color: rgba(225, 255, 245, 0.9);
    transform: translate3d(0, -2px, 0);
    box-shadow:
        0 6px 14px rgba(0,0,0,0.18),
        0 0 0 1px rgba(255,255,255,0.12);
}

a.feature-badge {
    color: #f5f5f5;
    text-decoration: none;
}

/* ========================================
   5. UNSERE STÄRKEN: MIT HOVER-SCHATTEN
   ======================================== */
.stärken-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

.stärken-card-inner {
    background: var(--hero-gray) !important;
    backdrop-filter: blur(14px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
    border-radius: var(--radius) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 40px 25px !important;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ⭐ STÄRKEN HOVER-EFFEKT */
.stärken-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.stärken-card-inner h3 { 
    color: var(--text-light) !important; 
    margin-top: 15px;
    margin-bottom: 10px;
}

.stärken-card-inner p { 
    color: rgba(255, 255, 255, 0.85) !important; 
}

/* ========================================
   6. ÜBERSCHRIFTEN: GRÜN & MITTIG
   ======================================== */
.section-title-green,
.stärken-wrapper h2,
.about-section h2,
.contact-section h2 {
    color: var(--brand-green) !important;
    text-align: center !important;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

/* ========================================
   7. INFO-BLÖCKE (WARUM ECHOTECH, KONTAKT)
   ======================================== */
.about-section, 
.contact-section {
    background: var(--info-block-bg) !important;
    border-radius: var(--radius) !important;
    padding: 40px !important;
    border: 1px solid rgba(13, 77, 47, 0.1) !important;
    margin-bottom: 40px;
}

.about-section p,
.contact-section p {
    text-align: center !important;
}

/* ========================================
   8. FOOTER: WIEDERHERGESTELLT
   ======================================== */
footer {
    display: block !important;
    padding: 40px 0 !important;
    border-top: 1px solid #eee;
    background: #ffffff !important;
    margin-top: 60px;
}

footer .moduletable {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
}

footer a {
    color: var(--brand-green) !important;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #187850 !important;
}

/* ========================================
   9. PLATZ FÜR FIXIERTEN HEADER + TOPBAR
   ======================================== */
body { 
    padding-top: 100px !important;
}

/* ========================================
   10. RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .services-container,
    .stärken-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* ⭐ GRID-ANPASSUNGEN FÜR MOBILE */
    .services-container,
    .stärken-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* ⭐ DESKTOP-MENÜ AUF MOBILE/TABLET KOMPLETT AUSBLENDEN */
    .header .mod-menu,
    .header nav,
    .header .navbar-nav,
    ul.mod-menu,
    .menu,
    ul.mod-list.nav.ms-auto.d-flex,
    #mod-menu1 {
        display: none !important;
    }
    
    /* ⭐ HAMBURGER-BUTTON SICHTBAR MACHEN */
    .navbar-toggler,
    button[data-bs-toggle="offcanvas"],
    .header-toggle,
    button.navbar-toggler {
        display: block !important;
        position: relative !important;
        z-index: 1003 !important;
        background: var(--glass-bg) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 8px !important;
        padding: 8px 12px !important;
    }
    
    /* ⭐ HEADER KOMPAKT */
    header.header, .header, .sticky-header {
        height: auto !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .header .container,
    .header > div {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
    }
    
    /* ⭐ LOGO LINKS POSITIONIEREN */
    .navbar-brand {
        margin-left: 0 !important;
        margin-right: auto !important;
        margin-bottom: 0 !important;
    }
    
    .navbar-brand img,
    .logo img,
    .header .navbar-brand img {
        max-height: 50px !important;
        top: 0 !important;
    }
    
    /* ⭐ TOPBAR AUSBLENDEN */
    .topbar {
        display: none !important;
    }
    
    /* ⭐ BODY PADDING */
    body {
        padding-top: 70px !important;
    }
}