/* =====================================================================
   STYLES.CSS
   Professionell neu strukturiert
   ---------------------------------------------------------------------
   Diese Version ist als Vorlage zum Aufräumen gedacht.
   Die CSS-Regeln selbst wurden NICHT verändert.
   Die Blöcke sind logisch gegliedert:

   1. Reset & Variablen
   2. Basis / Typografie
   3. Layout
   4. Hero
   5. Navigation
   6. Buttons
   7. Bilder & Galerien
   8. Karten
   9. Tabellen
   10. Technische Bereiche
   11. Footer
   12. Responsive

   Hinweis:
   Die ursprüngliche Datei enthält doppelte Definitionen
   (z.B. .menu-toggle, .section.light, .tech-section .inner).
   Um absolut keine Änderung am Verhalten zu riskieren, wurden diese
   Definitionen in dieser exportierten Version nicht automatisch gelöscht.
   Sie sollten anschließend manuell zusammengeführt werden.
   =====================================================================

/* ======================================================
   1. RESET & BASIS
====================================================== */

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

:root {
    --primary: #d81f26;
    --max-width: 1200px;
    --nav-height: 65px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 0;
   
}

main {
    padding-top: var(--nav-height);
}

h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
}

h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

.center-list {
    display: table;
    margin: 20px auto;
    text-align: left;
}

.center-list3 {
    color: var(--primary);
    display: table;
    margin: 22px auto;
    text-align: left;
}

.divider {
   width: 100%;
    max-width: 850px;
    margin: 20px auto;
    border: none;
    border-top: 2px solid var(--primary);
}

.produktbeschreibung {
    max-width: 700px;   /* Breite anpassen */
    margin: 0 auto;     /* zentrieren */
    line-height: 1.7;   /* bessere Lesbarkeit */
    text-align: left;
}

.product-gallery-two {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* auf dem Handy untereinander */
    margin-top: 30px;
}

.product-gallery-two img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

.product-gallery-three {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* auf dem Handy untereinander */
    margin-top: 30px;
}

.product-gallery-three img {
    max-width: 300px;
    width: 100%;
    height: 400px;
}

.white {
    color: #fff;
}

/* ======================================================
   2. ALLGEMEINE LAYOUT-STRUKTUR
====================================================== */

.section.reverse .text {
    padding-left: 10px;
}

.section:not(.reverse) .text {
    padding-right: 10px;
}

.section {
    width: 100%;
}

.section.reverse .text ul {
    padding-left: 20px;
    margin-left: 20px;
}





.section.light {
    background-color: #eee;
}

.inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    gap: 0px;
}

.text {
    max-width: 100%;
}

.section .inner {
    align-items: stretch;
}



.text,
.image {
    flex: 1 1 0;
    min-width: 0;
    padding: 20px 0;
}


.image {
    min-height: 400px;
    background-size: cover;
    background-position: center;
}




.image-bottom {
    margin-left: 0;
}



/* ======================================================
   HERO SINGLE IMAGE
====================================================== */

.hero-single {
    position: relative;
    width: 100%;
    height: clamp(300px, 60vh, 900px);
    overflow: hidden;
    
}

.hero-image {
    width: 100%;
    height: 100%;
     object-fit: cover;
    object-position: center 0%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
   
    display: flex;
    align-items: center;
}


.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-overlay h1 {
    display: inline-block;
    padding: 15px 25px;
    background: rgba(177, 18, 18, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 6px;

    color: #fff;  /* ← HIER */
}




/* ======================================================
   NAVIGATION STABIL
====================================================== */



/* Navigation Container */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    z-index: 1000;
}

/* Innerer Bereich */
.nav-inner {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */


/* Menü */
.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Burger */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}



/* ===============================
   DESKTOP DROPDOWN
================================= */

@media (min-width: 901px) {

  .nav-links > li:hover > a {
    color: var(--primary);
  }

  .nav-links > li:hover > .submenu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

}





.nav-links a.active {
    color: var(--primary);    /* rot */
}


/* Hover-Unterstreichung */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s;
}


.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Logo */
.logo {
    position: absolute;
    top: 20px;
    left: 300px;
    z-index: 1000;
    transition: all 0.4s ease;
    
}

.logo img {
    height: 180px;
    transition: all 0.4s ease;
}


/* Beim Scroll */
.nav.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.nav.scrolled .logo {
    top: 5px;
}

.nav.scrolled .logo img {
    height: 50px;
}


/* ======================================================
   5. SUBMENU (DROPDOWN)
====================================================== */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    position: relative;
    transition: color 0.3s ease;
}



/* Hauptmenüpunkt nur rot wenn wirklich active */
.nav-links > li > a.active {
    color: var(--primary);
}



.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: #fff;
    min-width: 220px;
    padding: 10px 0;

    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);

    opacity: 0;
    transform: translateY(15px) scale(0.98);

    pointer-events: none;   /* ← HINZUFÜGEN */

    transition: all 0.25s ease;
    z-index: 3000;
}



.submenu li a {
    display: block;
    padding: 12px 18px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.submenu li a:hover {
    color: var(--primary);
    background: rgba(216,31,38,0.05);
    padding-left: 22px;  /* leichter Slide-Effekt */
}


.submenu li a.active {
    color: var(--primary);
    font-weight: 600;
}

/* =====================================
   BUTTON PRIMARY
===================================== */

.btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #b71c22;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}


.section.light {
    background-color: #eee;
}

.company-list {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.company-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.company-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}


.fullwidth-image {
    width: 100%;
    overflow: hidden;
}

.fullwidth-image img {
    width: 100%;
    height: clamp(250px, 145vh, 700px); /* skaliert automatisch */
    object-fit: cover;
    object-position: center;
    display: block;
}



/* ===============================
   KARTEN GRID
================================= */

.card-section {
  padding: 80px 20px;
  
}

.card-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;   /* ← statt 200px */
}


/* Einzelkarte */
.card {
    max-width: 320px;   /* z.B. 300–340px */
  margin: 0 auto; 
  position: relative;
  overflow: hidden;
  border-radius: 16px;   /* ← hier erhöhen (z.B. 16px oder 20px) */
  cursor: pointer;
  transition: transform 0.3s ease;
}


/* Bild */
.card img {
  width: 100%;
 height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}



/* Overlay */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  background: rgba(216,31,38,0.85);
  color: #fff;

  padding: 20px;
  transition: 0.3s ease;
}

.card-overlay h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card-overlay span {
  font-size: 14px;
  font-weight: 500;
}

/* Hover Effekt */
.card:hover img {
  transform: scale(1.05);
}

.card:hover .card-overlay {
  background: rgba(216,31,38,0.95);
}


/* ======================================================
   7. FOOTER
====================================================== */

.footer {
    background-color: #c6282f;
    color: #fff;
    padding: 45px 20px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
}

.footer-col {
    font-size: 14px;
    line-height: 1.4;
}

.footer strong {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 5px;
}

/* ======================================================
   7.2 TECHNISCHE DATEN / TABELLEN
====================================================== */

.tech-section {
    padding: 60px 0;
}

.tech-section .inner {
    flex-direction: column;
}

.tech-intro {
    max-width: 900px;
    margin-bottom: 40px;
}

/* Tabellen */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px auto;
}

.led-table {
    width: 45%;
    border-collapse: collapse;
    margin: 10px auto;
}

.led-table2 {
    width: 65%;
    border-collapse: collapse;
    margin: 10px auto;
}

.slm-table {
    width: 30%;
    border-collapse: collapse;
    margin: 10px auto;
}

.bab-table {
    width: 50%;
    border-collapse: collapse;
    margin: 10px auto;
}

.frl-table {
    width: 70%;
    border-collapse: collapse;
    margin: 10px auto;
}

.bsb-table {
    width: 70%;
    border-collapse: collapse;
    margin: 10px auto;
}

.bh-table {
    width: 65%;
    border-collapse: collapse;
    margin: 10px auto;
}

.tech-table thead {
    background: #f4f4f4;
}

.tech-table th {
    background: #f2f2f2;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    text-align: left;
}

.tech-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    text-align: left;
}

.tech-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.tech-table tr:hover {
    background: rgba(216,31,38,0.04);
}

/* Mast-Typ Überschrift */
.tech-table-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Hinweistext */
.tech-note {
    font-size: 13px;
    color: #666;
    margin-top: -30px;
    margin-bottom: 40px;
}

/* Boxen für Eigenschaften */
.tech-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.tech-box {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s ease;
}

.tech-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.tech-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.tech-box ul {
    list-style: none;
    padding-left: 0;
}

.tech-box ul li {
    margin-bottom: 8px;
}

/* Fundamentplan Tabelle kompakter */
.fundament-table td,
.fundament-table th {
    padding: 10px;
    font-size: 14px;
}

/* ============================= */
/* TECH TABLE DESKTOP SCHMALER */
/* ============================= */

@media (min-width: 992px) {
    .tech-section .table-wrapper {
        max-width: 800px;   /* gewünschte Breite */
        margin: 0 auto;     /* zentrieren */
        overflow-x: auto;
    }
}


/* ============================= */
/* PRODUKT GALERIE UNTEREINANDER */
/* ============================= */

.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Abstand zwischen den Bildern */
    margin-top: 30px;
}

.product-gallery img {
    max-width: 600px;   /* maximale Bildbreite */
    width: 100%;
    height: auto;
}


/* Produktbilder zentrieren */
.tech-stack .product-image {
    display: flex;
    justify-content: center;
}

.tech-stack .product-image img {
    max-width: 600px;   /* optional – verhindert zu große Bilder */
    width: 100%;
    height: auto;
}
/* ============================= */
/* PAGE IMAGE */
/* ============================= */

.page-hero {
    padding: 40px 0;
    text-align: center;
}

.page-hero-image {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
}


.text-center {
    text-align: center;
}

.tech-section .inner {
    display: flex;
    flex-direction: column;
}

.tech-section .tech-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.03);
}

/* ======================================================
   8. RESPONSIVE DESIGN
====================================================== */



 @media (max-width: 900px) {

   
    :root {
       --nav-height: 80px;
  }
    

    .logo {
    position: relative;
    top: 0;
    left: 0;
  }

  .logo img {
    height: 40px;     /* ← Mini Logo */
  }

  .nav.scrolled .logo img {
    height: 40px;     /* bleibt gleich */
  }

    .nav-inner {
        padding: 15px 20px;
    }

    .hero-overlay h1 {
      font-size: 22px;   /* kleiner auf Handy */
      padding: 12px 18px;
  }
    
    .menu-toggle {
        display: block;
    }

     .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 25px;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s ease;
    
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;   /* WICHTIG */
  }

.has-submenu.open > .submenu{
        display:block !important;
        opacity:1;
        visibility:visible;
        pointer-events:auto;
    }


    .submenu {
        position: static;
        box-shadow: none;
        opacity: 1;
        transform: none;
        display: none;
        padding-left: 12px;
    }

    .has-submenu.open .submenu {
        display: block;
    }

}

@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {

    .inner {
        flex-direction: column;
    }

    .image {
        order: 1;
        margin: 0 !important;
        padding-bottom: 5px;
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

    .text {
        order: 2;
        font-size: 16px;
        padding-bottom: 20px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .section {
        padding-bottom: 20px;
    }

    .hero-single {
    height: 280px;
}

    .hero-nav {
        font-size: 24px;
        padding: 8px 12px;
    }

    .fullwidth-image img {
        height: 220px;
    }
    .section .text,
    .section.reverse .text {
        padding: 20px 0;
    }
 .tech-table,
    .led-table,
    .led-table2,
    .slm-table,
    .bab-table,
    .frl-table,
    .bsb-table,
    .bh-table {
        width: 100%;
        font-size: 14px;
    }


    html,
body {
    overflow-x: hidden;
}
}
