/*
 * Kopf, Menue, Kopfbereich und Fuss im Stil der Webseite die-holzbauprofis.de
 * Farben von der Webseite: Blau #009EE2, Gruen #C8D224, Braun #511B0A, Fuss #002B4F
 */

body {
    padding-bottom: 0; /* alter, absolut positionierter Fuss entfaellt */
}

/* ---------- Kopfzeile ---------- */
.hbp-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
    padding-left: 72px;
    background: #fff;
    box-sizing: border-box;
}
.hbp-kopf-logo img {
    display: block;
    width: 200px;
    height: 70px;
}
.hbp-kopf-rechts {
    display: flex;
    align-items: stretch;
    height: 100%;
}
.hbp-kopf-telefon,
.hbp-kopf-social {
    display: flex;
    align-items: center;
    padding: 0 40px;
    color: #511B0A;
}
.hbp-kopf-telefon,
.hbp-kopf-telefon:focus {
    color: #511B0A;
    text-decoration: none;
    font-size: 30px;
    font-weight: 900; /* wie Webseite (geladen sind dort 400/500/700, dargestellt also 700) */
    white-space: nowrap;
}
/* Symbole (Inline-SVG, Font Awesome 5 wie auf der Webseite): Hoehe = Schriftgroesse dort (33px) */
.hbp-icon {
    display: block;
    height: 33px;
    width: auto;
}
.hbp-kopf-telefon .hbp-icon {
    margin-right: 15px;
}
.hbp-kopf-konfigurator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    background: #C8D224;
}
.hbp-kopf-konfigurator img {
    width: 52px;
    height: auto;
}
.hbp-kopf-social {
    padding: 0 50px;
}
.hbp-kopf-social a {
    color: #511B0A;
}
.hbp-kopf-social a:first-child {
    padding-right: 24px; /* Abstand Facebook - Instagram */
}
.hbp-kopf-social a + a {
    margin-left: 0;
}
/* Hover wie Webseite: Hoerer und Nummer bzw. Symbol werden blau */
.hbp-kopf-social a:hover,
.hbp-kopf-telefon:hover {
    color: #009EE2;
    text-decoration: none;
}
.hbp-kopf-menueknopf {
    width: 110px;
    padding: 0;
    border: 0;
    background: #009EE2;
    cursor: pointer;
}
.hbp-kopf-menueknopf img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---------- Menue (von rechts) ---------- */
.hbp-menue-hintergrund {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .5);
}
.hbp-menue {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2001;
    width: 75%;
    display: flex;
    flex-direction: column;
    padding: 16px 43px 0 41px;
    overflow-y: auto;
    background: #009EE2 url(/img/website/menu_hintergrund.svg) center / cover no-repeat;
    color: #fff;
    font-family: "Fira Sans", sans-serif;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform .35s ease;
}
.hbp-menue.offen {
    transform: none;
}
.hbp-menue[hidden],
.hbp-menue-hintergrund[hidden] {
    display: none;
}
.hbp-menue a,
.hbp-menue a:hover,
.hbp-menue a:focus {
    color: #fff;
    text-decoration: none;
}
.hbp-menue-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #fff;
}
.hbp-menue-kopf img {
    display: block;
}
.hbp-menue-schliessen {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.hbp-menue-schliessen span {
    position: absolute;
    left: -4px;
    top: 19px;
    width: 48px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}
.hbp-menue-schliessen span + span {
    transform: rotate(-45deg);
}
.hbp-menue-liste {
    list-style: none;
    margin: 0;
    padding: 70px 0 40px 22%;
}
.hbp-menue-liste > li > a,
.hbp-menue-auf {
    display: inline-block;
    padding: 12px 0;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: .5px;
}
.hbp-menue-auf {
    position: relative;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
}
.hbp-menue-auf::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform .2s;
}
.hbp-menue-auf[aria-expanded="true"]::before {
    margin-top: -3px;
    transform: rotate(-135deg);
}
.hbp-menue-liste ul {
    display: none;
    list-style: none;
    margin: 0 0 10px;
    padding: 0 0 0 4px;
}
.hbp-menue-liste li.offen > ul {
    display: block;
}
/* Untermenue wie Webseite: braun, gleiche Groesse wie die Hauptpunkte */
.hbp-menue-liste ul a,
.hbp-menue-liste ul a:hover,
.hbp-menue-liste ul a:focus {
    display: inline-block;
    padding: 6px 0;
    color: #511B0A;
    font-size: 28px;
    line-height: 1.75;
}
/* Hover wie Webseite: fett und unterstrichen */
.hbp-menue-liste a:hover,
.hbp-menue-auf:hover {
    font-weight: 700;
    text-decoration: underline;
}
.hbp-menue-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px 40px;
    margin-top: auto;
    padding: 30px 0 40px;
    font-size: 16px;
}
.hbp-menue-fuss a:hover {
    text-decoration: underline;
}
.hbp-menue-fuss a:hover .hbp-icon {
    color: #511B0A; /* Social-Symbole werden beim Hover braun */
}
.hbp-menue-konfigurator {
    display: flex;
    align-items: center;
}
.hbp-menue-konfigurator:hover {
    text-decoration: none !important;
}
.hbp-menue-konfigurator:hover span {
    text-decoration: underline;
}
.hbp-menue-konfigurator img {
    margin-right: 14px;
}
body.hbp-menue-aktiv {
    overflow: hidden;
}

/* ---------- Kopfbereich mit den vier Bildern ---------- */
.hbp-banner {
    position: relative;
    overflow: hidden;
    /* volle Fensterbreite wie der Slider der Webseite, auch innerhalb des Bootstrap-Containers */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 30px;
    background: #009EE2;
}
.hbp-banner-bilder {
    display: flex;
}
/* Desktop: Bilder erst rechts von der blauen Flaeche, damit das erste Bild nicht verdeckt wird */
@media (min-width: 992px) {
    .hbp-banner-bilder {
        padding-left: 34%;
    }
}
.hbp-banner-bilder img {
    width: 25%;
    height: 280px;
    object-fit: cover;
}
.hbp-banner-text {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 90px 30px 72px;
    background: #009EE2;
    background: linear-gradient(105deg, #0090d4 0%, #009EE2 60%);
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
    box-sizing: border-box;
}
/* #sloganText: alte Regeln in frontend.css (kursiv, 16px, Einzug) ueberstimmen */
.hbp-banner .hbp-banner-titel,
.hbp-banner #sloganText {
    display: block;
    padding: 0;
    color: #fff !important;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.15;
}
.hbp-banner-zeile {
    display: block;
    margin-top: 8px;
    color: #511B0A;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}
/* Kopfbereich (Bilder + Text) nur auf der Startseite, ausgeblendet sobald der Konfigurator laeuft */
.hbp-konfigurator-laeuft .hbp-banner {
    display: none;
}
/* Ohne Kopfbereich: Header mit dem Schatten der Webseite (dort beim Scrollen) vom Inhalt abgrenzen */
.hbp-konfigurator-laeuft .hbp-kopf {
    position: relative;
    z-index: 10;
    box-shadow: rgba(35, 35, 35, .1) 0 13px 35px -12px;
}
.hbp-konfigurator-laeuft .hb-container {
    padding-top: 30px;
}

/* ---------- Fusszeile ---------- */
.hbp-fuss {
    position: static; /* frontend.css setzt footer absolut mit fester Hoehe */
    height: auto;
    margin-top: 60px;
    background: #002B4F url(/img/website/Footer-Verlauf-komplett.svg) center bottom / cover no-repeat;
    color: #fff;
    font-family: "Fira Sans", sans-serif;
    font-size: 18px;
    line-height: 1.5;
}
.hbp-fuss a,
.hbp-fuss a:hover,
.hbp-fuss a:focus {
    color: #fff;
    text-decoration: none;
}
.hbp-fuss-social a:hover {
    opacity: .9; /* wie Webseite; Textlinks ohne Hover-Effekt */
}
/* Breite wie der Fuss der Webseite (gemessen): bis 1440px je 152px Rand, darueber breiter, hoechstens 1472px */
.hbp-fuss-innen {
    width: calc(100% - 304px);
    max-width: 1472px;
    margin: 0 auto;
    padding: 28px 0;
}
@media (min-width: 1441px) {
    .hbp-fuss-innen {
        width: calc(100% - 420px);
    }
}
.hbp-fuss-unten {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 60px;
    padding-bottom: 50px;
}
.hbp-fuss-adresse h5 {
    margin: 0 0 30px;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}
.hbp-fuss-adresse p {
    margin: 0 0 18px;
}
.hbp-fuss-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px 35px;
    font-weight: 500;
}
.hbp-fuss-social {
    display: flex;
    gap: 30px;
}
/* Zeilenumbrueche der Links an denselben Stellen wie auf der Webseite (gemessen):
   bis 1599px vor "Kontakt", 1600-1799px vor "Cookies", darueber eine Zeile */
.hbp-fuss-umbruch {
    display: none;
    flex-basis: 100%;
    height: 0;
}
@media (min-width: 992px) and (max-width: 1599px) {
    .hbp-fuss-umbruch.vor-kontakt { display: block; }
}
@media (min-width: 1600px) and (max-width: 1799px) {
    .hbp-fuss-umbruch.vor-cookies { display: block; }
}

/* ---------- Tablet und Handy ---------- */
/* Telefon wie Webseite: ab 1199px Hoerer mit Nummer, darunter nur der kurze Hoerer (unter 768px 20px gross) */
.hbp-kopf-telefon-kurz {
    display: none;
}
@media (max-width: 1198px) {
    .hbp-kopf-telefon-lang {
        display: none;
    }
    .hbp-kopf-telefon-kurz {
        display: flex;
    }
}
@media (max-width: 767px) {
    .hbp-kopf-telefon-kurz .hbp-icon {
        height: 20px;
    }
}
/* Menue unten: erst unter 767px alle Eintraege einzeln untereinander (wie Webseite am Handy), darueber nebeneinander */
@media (max-width: 766px) {
    .hbp-menue .hbp-menue-fuss {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }
    .hbp-menue-fuss > a {
        display: flex;
        align-items: center;
        min-height: 48px;
    }
    .hbp-menue-fuss > a:has(.hbp-icon) {
        min-height: 55px;
    }
}
@media (max-width: 1199px) {
    .hbp-banner-text {
        width: 60%;
    }
}
@media (max-width: 991px) {
    .hbp-fuss-innen {
        width: calc(100% - 32px);
    }
    .hbp-kopf {
        height: 80px;
        padding-left: 12px;
    }
    .hbp-kopf-logo img {
        width: 145px;
        height: 51px;
    }
    .hbp-kopf-social {
        display: none;
    }
    .hbp-kopf-telefon {
        padding: 0 20px;
    }
    .hbp-kopf-konfigurator,
    .hbp-kopf-menueknopf {
        width: 80px;
    }
    .hbp-kopf-konfigurator img {
        width: 42px;
    }
    .hbp-menue {
        width: 100%;
        padding: 16px 30px 0;
    }
    .hbp-menue-liste {
        padding: 40px 0 30px 30px;
    }
    .hbp-menue-fuss {
        justify-content: center;
        gap: 18px 30px;
    }
    /* Kopfbereich: Bilder oben, blaue Flaeche darunter wie auf der Webseite am Handy */
    .hbp-banner-bilder img {
        width: 50%;
        height: 170px;
    }
    /* Handy: nur Essbereich (2.) und Anbau mit Treppe (4.) - der Hochformat-Ausschnitt (1.) wirkt hier unpassend */
    .hbp-banner-bilder img:nth-child(1),
    .hbp-banner-bilder img:nth-child(3) {
        display: none;
    }
    .hbp-banner-text {
        position: relative;
        width: 100%;
        padding: 30px 16px;
        clip-path: none;
    }
    .hbp-banner .hbp-banner-titel,
    .hbp-banner #sloganText {
        font-size: 30px;
    }
    .hbp-banner-zeile {
        font-size: 26px;
    }
    .hbp-fuss-unten {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hbp-fuss-links {
        justify-content: center;
        max-width: none;
        margin-top: 30px;
    }
    .hbp-fuss-social {
        flex-basis: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }
    .hbp-fuss-konfigurator {
        display: flex;
        justify-content: center;
    }
}
@media (max-width: 400px) {
    .hbp-kopf-logo img {
        width: 125px;
        height: 44px;
    }
    .hbp-kopf-telefon {
        padding: 0 14px;
    }
    .hbp-kopf-konfigurator,
    .hbp-kopf-menueknopf {
        width: 70px;
    }
}

/* Fokusrahmen nur bei Tastaturbedienung (nach Mausklick/Escape kein schwarzer Rahmen um die Knoepfe) */
.hbp-kopf-menueknopf:focus:not(:focus-visible),
.hbp-menue-schliessen:focus:not(:focus-visible),
.hbp-menue-auf:focus:not(:focus-visible) {
    outline: none;
}
