/* Allgemeines Styling */
@media (min-width: 1000px) {
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: 0;
        padding: 0;
        color: #333;
        line-height: 1.6;
        position: relative;
        background-image: url('./img/hintergrund.png'); 
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
}

@media (max-width: 999px) {
    body {
        font-size: 14px;
        background-image: url('./img/hintergrund-mobil.png'); 
        background-attachment: scroll; /* Fix für mobile Darstellung */
        background-size: contain; /* Falls das Bild abgeschnitten wird */
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: 0;
        padding: 0;
        color: #333;
        line-height: 1.6;
        position: relative;
    }

    p {
        line-height: 1.4;
    }
}

/* Dunkle Overlay-Schicht für das Hintergrundbild */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 60% Verdunklung */
    z-index: -1; /* Hält das Overlay hinter dem Inhalt */
}

/* Header Styling */
header {
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Links und Logo gleichmäßig verteilt */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Galerie- und Kontakt-Symbole */
.header-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #e00000;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

.header-icon:hover {
    color: #b00000;
    transform: scale(1.1);
    
}

.header-icon img {
    display: none; /* Standardmäßig Bilder ausblenden */
}

.desktop-link {
    display: inline; /* Standardmäßig Text anzeigen */
}

/* Logo */
.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo img {
    height: 75px; /* Kleinere Größe für Mobilgeräte */
    max-width: 100%;
}

/* Desktop Styling */
@media (min-width: 769px) {
    .header-wrapper {
        padding: 0 40px;
    }

    .header-icon {
        height: 75px;
        width: 75px;
        font-size: 18px; /* Textgröße auf Desktop */
    }

    .header-icon img {
        display: none; /* Bilder auf Desktop ausblenden */
    }

    .desktop-link {
        display: inline; /* Text sichtbar machen */
        font-size: 25px;
    }

    .header-logo img {
        height: 90px; /* Größeres Logo auf Desktop */
    }
}


/* Hero-Bereich */
.hero {
    position: relative;
    height: 91vh;
  
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}



.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 45px;
    margin-bottom: 25px;
    margin-top: -150px;
}

.Wärme {
    font-size: 20px;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: bold;
}

.hero-tagline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Für Desktop: Wörter nebeneinander */
    gap: 10px;
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 25px;
    text-align: center;
}

.hero-tagline span {
    font-size: 25px; /* Kleinere Schriftgröße auf Handygröße */
    font-weight: bold;
  
    padding: 8px 12px;
    border-radius: 5px;
    text-transform: uppercase;
}


.hero-cta {
    color: white;
    background-color: #e00000;
    padding: 10px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
    bottom: 30px;
}

.hero-cta:hover {
    background-color: #b00000;
}

/* Sparrechner-Bereich */
.sparrechner {
    position: relative;
    background: white;
    padding: 50px 20px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.sparrechner-box {
    flex: 1 1 100%; /* Sicherstellen, dass sie auf kleineren Geräten vollbreit sind */
    background: rgb(255, 255, 255);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 20px; /* Abstand für kleinere Geräte */
}

.sparrechner-box h2 {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.sparrechner-box span {
    color: #e00000;
    font-weight: bold;
}

.sparrechner-info p {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.2em;
    text-align: center;
}

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

label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-size: 1.1em;
}

input, select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 15px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.2em;
    background-color: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: #e00000;
    box-shadow: 0 0 5px rgba(224, 0, 0, 0.5);
}

button {
    background-color: #e00000;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #b00000;
}

button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(224, 0, 0, 0.5);
}

#result {
    margin-top: 30px;
    font-weight: bold;
    color: #333;
    text-align: center;
    font-size: 1.5em;
}
#sparrechner {
    margin-top: 50px; /* Mehr Abstand zum Hero-Bereich */
}


/* Wärmepumpen-Bereich */
.waermepumpen {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: none; /* Kein zusätzliches Hintergrundbild */
}

.waermepumpen .container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    background: rgba(255, 255, 255, 0.95); /* Heller Hintergrund */
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.waermepumpen-text {
    flex: 1;
    text-align: left;
}

.waermepumpen-text h2 {
    font-size: 2.5em;
    color: #e00000; /* Rote Akzentfarbe */
    margin-bottom: 15px;
}

.waermepumpen-text p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.waermepumpen-text ul {
    list-style: none;
    padding: 0;
}

.waermepumpen-text li {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #e00000;
}

.waermepumpen-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.waermepumpen-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Anpassungen */
@media (max-width: 820px) {
    .waermepumpen .container {
        flex-direction: column;
        text-align: center;
    }
    
    .waermepumpen-text {
        text-align: center;
    }
}


.projekte {
    position: relative;
    min-height: 100vh; /* Sicherstellen, dass der Container immer mindestens die Höhe des Viewports hat */
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20 20px; /* Sicherstellen, dass keine horizontalen Ränder bei kleinen Bildschirmen entstehen */
    box-sizing: border-box;
}



.projekte-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column; /* Statt row → Inhalte untereinander */
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin: 0 auto; /* Sorgt für exakte horizontale Zentrierung */
    text-align: center;
}


.projekte-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 20px 0;
}


.projekte-info h2 {
    font-size: 2.5em;
    color: #e00000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.projekte-info p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333;
}

.learn-more-button {
    color: white;
    border: none;
    font-size: 1.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}



/* Bildbereich */
.projekte-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    padding-top: 20px;
}


.projekte-image img {
    display: block;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
}





/* Kontaktinfo-Bereich mit weißem Hintergrund */
.contact-info-section {
    background-color: #fff; /* Weißer Hintergrund */
    padding: 30px 0;
    text-align: center;
}

.contact-info-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-container h2 {
    color: #e00000;
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-info-container p {
    font-size: 1.1em;
    margin: 5px 0;
}

/* Statusnachricht */
#statusMessage {
    margin-top: 20px;
    font-size: 1em;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #e00000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
/* ========== HEADER ========== */
@media (max-width: 1024px) {
    .header-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        padding: 10px;
        max-width: 90%;
        margin: 0 auto;
    }

    .header-logo img {
        height: auto;
        max-width: 180px;
        margin-left: 10px;
    }

    .header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-icon img {
        display: block;
        width: 35px;
        height: auto;
        margin: 0 10px;
    }

    .desktop-link {
        display: none;
    }
}

/* ========== HERO-BEREICH ========== */
@media (max-width: 820px) {
    .hero {
        padding: 80px 10px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 18px; /* Beibehaltung der Schriftgröße, damit ISOLIERUNG & BRANDSCHUTZ nebeneinander bleiben */
        white-space: nowrap;
        margin-top: 15px;
    }

    .hero-tagline {
        display: flex;
        justify-content: center;
        gap: 15px;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .hero-tagline span {
        font-size: 12px;
        font-weight: bold;
        padding: 6px 12px;
        border-radius: 5px;
        text-transform: uppercase;
        
    }
    .hero-cta {
        font-size: 12px;
        padding: 12px 20px;
    }

    .Wärme {
font-size: 15px;

    }
}

/* Tablet-Version */
@media (max-width: 1024px) {
    /* Sparrechner */
    .sparrechner {
        padding: 30px 10px;
        height: auto;
    }

    .sparrechner-box {
        padding: 20px;
    }

    .sparrechner-box h2 {
        font-size: 1.8em;
    }

    .sparrechner-info p {
        font-size: 1em;
    }

    /* Wärmepumpen */
    .waermepumpen .container {
        flex-direction: column;
        padding: 30px;
    }

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

    .waermepumpen-text h2 {
        font-size: 2em;
    }

    .waermepumpen-text p {
        font-size: 1.1em;
    }

    .waermepumpen-image img {
        max-width: 80%;
    }

    /* Projekte */
    .projekte-content {
        padding: 40px;
        width: 95%;
    }

    .projekte-info h2 {
        font-size: 2em;
    }
}

/* Mobile-Version (Smartphones) */
@media (max-width: 768px) {
    /* Sparrechner */
    .sparrechner {
        padding: 20px;
    }

    .sparrechner-box {
        padding: 15px;
    }

    .sparrechner-box h2 {
        font-size: 1.5em;
    }

    .sparrechner-info p {
        font-size: 0.9em;
    }

    /* Wärmepumpen */
    .waermepumpen {
        padding: 20px;
    }

    .waermepumpen .container {
        padding: 20px;
        gap: 20px;
    }

    .waermepumpen-text h2 {
        font-size: 1.8em;
    }

    .waermepumpen-text p {
        font-size: 1em;
    }

    .waermepumpen-image img {
        max-width: 90%;
    }

    /* Projekte */
    .projekte-content {
        padding: 30px;
    }

    .projekte-info h2 {
        font-size: 1.8em;
    }

    .projekte-info p {
        font-size: 1em;
    }

    .projekte-image img {
        max-width: 90%;
    }
}
