/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #100F0D;
}

html {
    scroll-behavior: smooth;
}

body {
    max-width: 100vw;
}

main,
header,
footer,
section {
    width: 100%;
    max-width: 100%;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

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

a {
    color: #FF914D;
    transition: color 0.2s ease;
}

a:hover {
    color: #e68a3f;
    text-decoration: none;
}

/* Table Styles */
th,
td {
    padding: 1.3rem 1rem;
    text-align: center;
}

/* Responsive table improvements */
@media (max-width: 768px) {

    th,
    td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {

    th,
    td {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
    }
}


/* Heading Classes */
.heading-xl {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.heading-lg {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.heading-md {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.heading-sm {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.55;
    text-align: left;
    color: #3a3a40;
    margin: 0;
    padding-right: 5rem;
}

.text-content {
    font-size: 1.4rem;
    font-weight: 400;
}

#text-content-note {
    font-size: 1.4rem;
    font-weight: 400;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

/* Kompakte Tabelle für Heizlastberechnung */
#text-content-note th,
#text-content-note td {
    padding: 0;
    font-size: 1.4rem;
    vertical-align: middle;
    white-space: nowrap;
}

#text-content-note input {
    padding: 0.2rem 0.3rem;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive styles for the calculator table */
@media (max-width: 768px) {
    #text-content-note {
        font-size: 1.2rem;
    }

    #text-content-note td {
        padding: 2px 4px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #text-content-note {
        font-size: 1rem;
    }

    #text-content-note td {
        font-size: 0.85rem;
        padding: 2px;
    }

    #text-content-note input {
        padding: 0.1rem 0.2rem;
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.accent-color {
    color: #FF914D;
}

.text-shadow {
    text-shadow: 0 0 1px #100F0D;
}

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

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.underline {
    text-decoration: underline;
}

.border-bottom {
    border-bottom: 2px solid #7F7F7F;
}

.border-bottom-light {
    border-bottom: 2px solid #7F7F7F4D;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    padding: 1rem 2rem;
    background: rgba(16, 15, 13, 0.9);
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    height: 40px;
    margin-right: 1rem;
}

.logo-text {
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-size: 1.6rem;
    text-align: left;
    flex-shrink: 0;
}

.logo-fuchs {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #FF914D;
}

.logo-group {
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: whitesmoke;
    margin: 0 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FF914D;
}

.header-btn {
    display: flex;
    width: 250px;
    height: 31px;
    padding: 20px 29px;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 5px;
    background: #FF914D;
    color: #FFF;
    border: none;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: #e68a3f;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - 80px);
    margin: 0;
    padding: 0;
    background-color: #211f1f;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: left;
    margin-left: 10%;
    top: 30%;
    padding: 2rem;
    padding-right: 7rem;
    background-color: #100F0DB2;
    display: inline-block;
    border-radius: 5px;
    font-size: 1.5rem;
}

.hero-bg {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(16, 15, 13, 1) 100%),
        url('Images/Hero.webp');
    background-size: cover;
    background-position: center;
    position: absolute;
    width: 100%;
    height: calc(100vh - 80px);
    margin: 0;
    overflow: hidden;
}

/* Info Section */
.Infopage {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 2rem;
    background: linear-gradient(to bottom, #100F0D 70%, #A2A2A2 100%);
    color: #F5F3F0;
    box-sizing: border-box;
}

.flex-container {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    margin-top: 50px;
    padding: 5rem 0;
}

/* Specific styles for BHKW+WP image */
.flex-container img[src*="BHKW+WP"] {
    min-width: 400px;
    width: 100%;
    max-width: 600px;
    object-fit: contain;
}

/* Add responsive handling for smaller screens */
@media (max-width: 1024px) {
    .flex-container {
        padding: 3rem 0;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        padding: 2rem 0;
        gap: 2rem;
    }

    .flex-container img[src*="BHKW+WP"] {
        min-width: 300px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .flex-container {
        padding: 1.5rem 0;
        gap: 1.5rem;
    }
}

/* Wirtschaftlichkeit und Amortisation der BHKW-Hybridanlage */
#info2 {
    background-image: url('Images/Wpshow.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    text-align: left;
    display: inline-block;
    border-radius: 5px;
    font-size: 1.2rem;
    overflow: hidden;
    position: relative;
}

#Lagerhalle {
    width: 100vw;
    min-width: 40vw;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.toggle-btn {
    border: 2px solid #FF914D;
    color: #FF914D;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    padding: 0;
    outline: none;
    text-shadow: 0 0 1px #100F0D;
}

.toggle-btn:hover {
    color: #ba6f31;
    border-color: #ba6f31;
}

.arrow {
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: inline-block;
    transform-origin: center;
}

.arrow.rotated {
    transform: rotate(90deg);
}

.collapsible-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
        opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
        padding 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-family: inherit;
    color: inherit;
}

/* Spezifische Schriftart für den Wirtschaftlichkeits-Bereich (heading-lg context) */
.left-align .collapsible-text {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Spezifische Schriftart für den BHKW Contractor-Bereich (heading-sm context) */
.heading-sm .collapsible-text {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.55;
}

.collapsible-text.open {
    max-height: 1000px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Responsive Styles für bessere mobile Erfahrung */
@media (max-width: 768px) {

    /* Wirtschaftlichkeits-Bereich responsive */
    .left-align .collapsible-text {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    /* BHKW Contractor-Bereich responsive */
    .heading-sm .collapsible-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .faq-answer {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {

    /* Wirtschaftlichkeits-Bereich responsive */
    .left-align .collapsible-text {
        font-size: 1.2rem;
        line-height: 1.5;
    }

    /* BHKW Contractor-Bereich responsive */
    .heading-sm .collapsible-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .faq-answer {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

#info3 {
    background-image: url('Images/Bergkamen-Büro\ .jpg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 60vh;
}

.left-align {
    text-align: left;
    position: relative;
    z-index: 2;
    width: 60%;
}

.container {
    background-color: #EFE1CE;
    padding: 28px 44px;
    border-radius: 5px;
    margin: 100px 0;
    color: #100F0D;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

/* Tabelle Technisches Datenblatt */
.Technisches-Datenblatt {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5% 0 10% 0;
    padding: 0 1rem;
}

#Tabelle-TDB {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: clamp(0.7rem, 2vw, 1rem);
}

#Tabelle-TDB th,
#Tabelle-TDB td {
    padding: clamp(0.3rem, 1vw, 0.8rem);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#Tabelle-TDB th:first-child,
#Tabelle-TDB td:first-child {
    text-align: left;
}

.Technisches-Datenblatt h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

/* Responsive Regeln für Technisches Datenblatt */
@media (max-width: 1024px) {
    .Technisches-Datenblatt {
        margin: 5% 0 10% 0;
    }
}

@media (max-width: 768px) {
    .Technisches-Datenblatt {
        padding: 0 0.5rem;
        margin: 4% 0 8% 0;
    }

    /* Mobile optimized table layout */
    #Tabelle-TDB {
        width: 100%;
        display: block;
    }

    #Tabelle-TDB th {
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    .Technisches-Datenblatt {
        padding: 0 0.3rem;
        margin: 3% 0 6% 0;
    }

    /* Card-style table for very small screens */
    #Tabelle-TDB thead {
        display: none;
        /* Hide table header on very small screens */
    }

    #Tabelle-TDB,
    #Tabelle-TDB tbody,
    #Tabelle-TDB tr,
    #Tabelle-TDB td {
        display: block;
        width: 100%;
    }

    #Tabelle-TDB tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 0.5rem;
    }

    #Tabelle-TDB td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
    }

    #Tabelle-TDB td:last-child {
        border-bottom: none;
    }

    #Tabelle-TDB td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
    }
}

/* Contractor Section */
.Contractor {
    width: 100%;
    background: linear-gradient(#A2A2A2 0%, #F5F3F0 100%);
}

.Container-contractor {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    flex-wrap: nowrap;
    padding: 0 2rem;
    margin-bottom: 15rem;
}

.Container-contractor>* {
    flex: 1;
}

.Contractor-Bild {
    width: 40%;
    height: auto;
    border-radius: 10px;
}

#BHKW-Contractor {
    text-align: left;
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 2.5rem 0;
}

.heading-Center {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 2.5rem 0;
}

.card-grid {
    display: grid;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 10rem auto 0 auto;
    width: 100%;
    justify-content: center;
    /* Fixed column count instead of auto-fit */
    grid-template-columns: repeat(4, 1fr);
}

.Animations-block {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(60, 60, 70, 0.10), 0 1.5px 10px 0 rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.8rem 2.2rem 2.1rem 2.2rem;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 320px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    z-index: 1;
}


/* Expansion effect for desktop view */
@media (min-width: 1400px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .Animations-block {
        max-width: none;
    }
}

.Animations-block video,
.Animations-block img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    max-width: 360px;
    box-shadow: 0 2px 14px rgba(80, 80, 110, 0.06);
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* Card Content Headings */
.card-heading {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
    text-align: center;
    color: #202026;
}

.card-text {
    font-weight: 400;
    font-size: 1.07rem;
    line-height: 1.55;
    text-align: center;
    color: #3a3a40;
    margin: 0;
}

/* Responsive breakpoints for consistent card grid layout */
@media (min-width: 992px) and (max-width: 1399px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .Animations-block {
        max-width: none;
    }
}

@media (max-width: 991px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }

    .Animations-block {
        padding: 2rem 1rem 1.5rem 1rem;
        max-width: 500px;
    }
}

/* Wirtschaftlichkeit Section */
.Wirtschaftlichkeit {
    background-color: #F5F3F0;
    padding-top: 10rem;
    color: #100F0D;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: linear-gradient(to bottom, #F5F3F0 80%, #EFE1CE 100%);
}

.Desk {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Ausrichtung oben */
    justify-content: space-between;
    /* Gleichmäßige Verteilung */
    gap: 2rem;
    /* Abstand zwischen den Elementen */
    width: 100%;
    /* Volle Breite nutzen */
    flex-wrap: nowrap;
    /* Kein Umbruch */
    padding: 5%;
    font-family: 'Caveat', cursive;
}

.Notizzettel {
    background-color: #FFFA6D;
    padding: 2rem 1rem;
    box-shadow: 0 12px 42px 0 rgba(0, 0, 0, 0.17), 0 1.5px 10px 0 rgba(0, 0, 0, 0.09);
    width: 100%;
    max-width: 100vw;
    margin: 2rem auto;
    position: relative;
}


.calculator-section {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.curved-arrow-container {
    position: absolute;
    right: 10%;
    top: 10px;
    width: 200px;
    height: 150px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.curved-arrow {
    width: 100%;
    height: 100%;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .curved-arrow-container {
        right: 5%;
        width: 150px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .curved-arrow-container {
        display: none;
    }
}

.notebook-double {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    background: #f3eee5;
    padding: 2rem 1rem;
    border-radius: 22px;
    box-shadow: 0 12px 42px 0 rgba(0, 0, 0, 0.17), 0 1.5px 10px 0 rgba(0, 0, 0, 0.09);
    transform: rotate(-12deg) scale(0.9);
    width: 100%;
    max-width: 100vw;
    margin: 2rem 0 2rem auto;
    position: relative;
    overflow-x: visible;
}

.notebook-page {
    background: repeating-linear-gradient(to bottom, #fffbe9, #fffbe9 38px, #e5e5e5 39px, #fffbe9 40px);
    min-height: 100%;
    width: 48%;
    min-width: 560px;
    max-width: 100%;
    display: inline-block;
    border-radius: 18px;
    box-shadow: 2px 2px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 0 0.7rem;
    padding: 2.6rem 2.2rem 2.4rem 2.7rem;
    overflow: hidden;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    font-weight: 500;
}

.notebook-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.23;
}

.notebook-page::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #fffbe9 60%, #e0d2b2 100%);
    border-bottom-right-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.13);
    transform: rotate(10deg) skew(-8deg, 4deg);
    opacity: 0.7;
    pointer-events: none;
}

.notebook-page.left::before,
.notebook-page.right::before {
    position: absolute;
    top: 0;
    left: 36px;
    width: 2px;
    height: 100%;
    background: #f2bc8d;
    opacity: 0.7;
    pointer-events: none;
}

.spiral {
    width: 36px;
    min-height: 560px;
    background: repeating-radial-gradient(circle at 18px 36px, #bbb 0 4px, transparent 4px 18px),
        repeating-radial-gradient(circle at 18px 504px, #bbb 0 4px, transparent 4px 18px);
    border-radius: 20px;
    margin: 0 0.15rem;
    z-index: 8;
    position: relative;
    pointer-events: none;
}

.notebook-page>* {
    position: relative;
    z-index: 5;
}

/* Notebook page content spacing */
.notebook-page p,
.notebook-page li,
.notebook-page ul,
.notebook-page ol,
.notebook-page h1,
.notebook-page h2,
.notebook-page h3,
.notebook-page h4,
.notebook-page h5,
.notebook-page h6 {
    margin-bottom: 0.4em;
    margin-top: 0.2em;
}

.notebook-page ul,
.notebook-page ol {
    padding-left: 1.2em;
}

.notebook-page {
    line-height: 1.3;
}

/* Contact Section */
.Kontakt {
    background-color: #EFE1CE;
    padding: 4rem 2rem;
    color: #100F0D;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    width: 100%;
    padding: 2rem;
    background-color: #EFE1CE;
}

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

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #100F0D;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
        padding 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
        opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 0 1.5rem;
    color: #3a3a40;
    opacity: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    opacity: 1;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
}

/* Contact Section Redesign */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: #EFE1CE;
}

.contact-form {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.contact-form label {
    color: #100F0D;
    font-weight: 600;
}

.submit-btn {
    background: #FF914D;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #e68a3f;
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 300px;
    }
}

/* Responsive Anpassung (für kleinere Bildschirme) */
@media (max-width: 1200px) {
    .notebook-double {
        width: 98vw;
        padding: 1rem 0.3rem;
    }

    .notebook-page {
        min-width: 380px;
        padding: 1.4rem 0.7rem 1.2rem 3rem;
        font-size: 1rem;
    }

    .spiral {
        min-height: 340px;
    }

    .flex-container {
        gap: 2rem;
    }
}

/* Tablet + Small Laptops */
@media (max-width: 900px) and (min-width: 769px) {
    .hero-content {
        margin-left: 0;
        padding: 1.2rem;
        padding-right: 1.2rem;
        font-size: 1.1rem;
    }

    .flex-container,
    .container-colum,
    .vergleich {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    #Lagerhalle {
        width: 90vw;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Notebook Section */
    .notebook-double {
        flex-direction: column;
        align-items: stretch;
        width: 100vw;
        min-width: 0;
        padding: 0.3rem 0.1rem;
    }

    .spiral {
        display: none;
    }

    .notebook-page {
        width: 96vw;
        min-width: 0;
        align-items: stretch;
        margin: 1.2rem auto;
        padding: 1rem 3rem;
        font-size: 0.95rem;
    }

    table {
        font-size: 0.93rem;
    }

    .footer-navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 1.2rem 0.4rem;
    }

    .footer-navbar>div {
        width: 100%;
        margin-bottom: 0.8rem;
    }

    .footer-logo-text,
    .logo-fuchs,
    .logo-group {
        text-align: left;
    }

    .footer-nav-links {
        padding-left: 0.5rem;
    }

    video {
        width: 80vw !important;
        height: auto !important;
        max-width: 360px;
        margin: 0.4rem auto 0.8rem auto;
        display: block;
        border-radius: 12px;
    }
}

/* Mobile (max 600px) */
@media (max-width: 600px) {

    html,
    body {
        font-size: 16px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero-content {
        font-size: 0.99rem;
        padding: 0.7rem 0.4rem;
    }

    h1,
    .heading-xl {
        font-size: 1.25rem;
    }

    .heading-lg,
    h2 {
        font-size: 1.08rem;
    }

    .text-content {
        font-size: 1rem;
    }

    .Contractor {
        padding: 1rem;
    }

    video {
        width: 95vw !important;
        height: auto !important;
        max-width: 360px;
        margin-bottom: 0.8rem;
    }

    /* Notebook */
    .notebook-double {
        padding: 0.2rem 0.02rem;
    }

    .notebook-page {
        padding: 0.7rem 3rem;
        width: 99vw;
        font-size: 0.93rem;
        align-items: stretch;
    }

    table,
    th,
    td {
        font-size: 0.82rem;
        padding: 0.4rem 0.3rem;
        word-break: break-word;
    }

    table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

    .footer-navbar {
        padding: 0.5rem 0.1rem;
        gap: 1rem;
    }

    .footer-navbar>div {
        margin-bottom: 0.4rem;
    }

    .footer-nav-links {
        font-size: 0.97rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.2rem 0;
    }
}

/* Footer Section */
.footer-navbar {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: #100F0D;
    color: #F5F3F0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.slogan {
    border-left: #FF914D 5px solid;
    margin: 0;
}

/* Responsive Regeln für Wirtschaftlichkeit Section */
@media (max-width: 1024px) {
    .Desk {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        padding: 3rem 2rem;
    }

    .Desk>div:first-child {
        order: 1;
        width: 100%;
        max-width: 500px;
    }

    .Desk>div:last-child {
        order: 2;
        width: 100%;
    }

    .Notizzettel {
        max-width: 400px;
        margin: 0 auto 2rem auto;
        transform: rotate(2deg);
        transition: transform 0.3s ease;
    }

    .notebook-double {
        transform: rotate(-8deg) scale(0.95);
        margin: 0 auto;
        width: 95%;
        max-width: 900px;
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .Wirtschaftlichkeit {
        padding-top: 5rem;
    }

    .Desk {
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .Notizzettel {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
        max-width: 350px;
    }

    .notebook-double {
        transform: rotate(-5deg) scale(0.9);
        width: 98%;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 1rem;
    }

    .notebook-page {
        min-width: 280px;
        max-width: 650px;
        width: 100%;
        padding: 1.2rem 3rem;
        font-size: 1rem;
        margin: 0.8rem auto;
        align-items: stretch;
    }

    .spiral {
        display: none;
    }
}

@media (max-width: 576px) {
    .Desk {
        gap: 1.5rem;
        padding: 1.5rem 0.5rem;
    }

    .Notizzettel {
        padding: 1rem 0.8rem;
        font-size: 0.8rem;
        max-width: 300px;
    }

    .Notizzettel h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .Notizzettel h3,
    .Notizzettel h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .notebook-double {
        transform: rotate(0deg) scale(1);
        width: 100%;
        padding: 1rem 0.5rem;
        flex-direction: column;
        align-items: center;
    }

    .notebook-page {
        min-width: 220px;
        max-width: 450px;
        margin: 0.3rem auto;
        padding: 0.8rem 3rem;
        font-size: 0.85rem;
        width: 95%;
        align-items: stretch;
    }

    .spiral {
        display: none;
    }
}

/* Responsive styles for notebook and Wirtschaftlichkeit section */
@media (max-width: 768px) {
    .notebook-double {
        flex-direction: column;
    }

    .notebook-page {
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .spiral {
        display: none;
    }
}

@media (max-width: 576px) {
    .Desk {
        padding: 10px;
    }

    .notebook-page {
        padding: 15px;
    }

    .Wirtschaftlichkeit {
        padding: 20px 10px;
    }
}

/* Contractor Section */
@media (max-width: 1024px) {
    .Container-contractor {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 2rem;
        margin-bottom: 5rem;
    }

    .Container-contractor>* {
        flex: none;
        width: 100%;
        max-width: 600px;
    }

    .Contractor-Bild {
        width: 100%;
        max-width: 400px;
        order: 2;
    }

    .Container-contractor>div:last-child {
        order: 1;
        text-align: center;
    }

    #BHKW-Contractor {
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .Container-contractor {
        padding: 1.5rem 1rem;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .Contractor-Bild {
        max-width: 300px;
    }

    #BHKW-Contractor {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .heading-sm {
        padding-right: 0;
        text-align: center;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .Container-contractor {
        padding: 1rem 0.5rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .Contractor-Bild {
        max-width: 250px;
    }

    #BHKW-Contractor {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .heading-sm {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Burger Animation when active */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu Container */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 1rem;
        height: 80px;
    }

    .logo-text {
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(16, 15, 13, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        color: #fff;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem;
        display: block;
        transition: color 0.3s ease;
        margin: 0;
    }

    .nav-links a:hover {
        color: #FF914D;
    }

    .header-btn {
        width: 200px;
        height: auto;
        padding: 1rem 2rem;
        margin-top: 1rem;
    }

    .hero {
        height: calc(100vh - 80px);
    }
}