/* Local fonts */
@font-face {
    font-family: "Futura Std Medium";
    src: url("../assets/webfonts/Futura%20Std%20Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GopetterRegular";
    src: url("../assets/webfonts/GopetterRegular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #fff;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.5);
    color: #707070;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    margin: 0;
}

body:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
    z-index: 8;
}
a {
    text-decoration: unset;
    font-weight: bolder;
    color: #00487a;
}

ul {
    list-style-type: none;
}

li {
    line-height: 4rem;
}


.wh-colored-blue {
    background-color: rgba(0,158,227,0.04);
}

.d-flex {
    display: flex;
}

.row {
    flex-direction: row;
}
.row-reverse {
    flex-direction: row-reverse;
}


.wh-content-wrapper {
    width: 100vw;
    -webkit-transition: 1.5s -webkit-transform cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1.5s -webkit-transform cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition: 1.5s transform cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1.5s transform cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1.5s transform cubic-bezier(0.23, 1, 0.32, 1), 1s -webkit-transform cubic-bezier(0.23, 1, 0.32, 1);
}

.wh-content-wrapper.menu-shown {
    transform: translateX(10%);
}

.wh-menu-overlay {
    position: fixed;
    z-index: 1010;
    height: 100vh;
    background-color: rgb(240,248,255,1);
    width: calc(100vw * 0.8);
    max-width: 600px;
    overflow: auto;
    padding-top: 30px;
    padding-bottom: 70px;
    left: 0;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: 1s -webkit-transform cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1s -webkit-transform cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition: 1s transform cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1s transform cubic-bezier(0.23, 1, 0.32, 1);
    transition: 1s transform cubic-bezier(0.23, 1, 0.32, 1), 1s -webkit-transform cubic-bezier(0.23, 1, 0.32,1);
}

.wh-menu-overlay.show {
    -webkit-transform: translateX(0%) !important;
    -ms-transform: translateX(0%) !important;
    transform: translateX(0%) !important;
}

.wh-menu-overlay > .nav-inner {
    padding-top: 100px;
    padding-left: 100px;
}

.wh-menu-overlay > .nav-inner li {
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
    -o-transition: .3s ease-out;
    transition: .3s ease-out;
}

.wh-menu-overlay > .nav-inner li:hover:not(.active){
    transform: translateX(10px);
}

.wh-menu-overlay > .nav-inner li.active {
    font-size: 1.35rem;
}

.wh-menu-overlay > .nav-inner li.active span{
    padding-bottom: 3px;
    border-bottom: 1px dotted #00487a;
}

.wh-sticky-wrapper {
    z-index: 999;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
}

.wh-sticky-wrapper > .wh-sticky-navbar {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
    position: fixed;
    left: 0;
    font-weight: 400;
    z-index: 1002;
    width: 100%;
    top: 0;
    transition: all .5s ease-in-out;
}

.wh-sticky-wrapper.is-sticky > .wh-sticky-navbar {
    background-color: white;
    -webkit-box-shadow: 0 2px 10px 0 rgb(0 0 0 / 5%);
    box-shadow: 0 2px 10px 0 rgb(0 0 0 / 5%);
}
.wh-toggle-nav {
    left: 4rem;
}
.wh-close-nav {
    right: 4rem;
}
.wh-toggle-nav, .wh-close-nav {
    margin-top: 10px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
    cursor: pointer;
    transition: all .5s ease-in-out;
}

.wh-toggle-nav > .toggle-burger,
.wh-close-nav > .toggle-burger{
    width: 3rem;
    height: 0.3rem;
    background-color: #00487a;
    border-radius: 2px;
    transition: all .5s ease-in-out;
}
.wh-close-nav > .toggle-burger {
    background: transparent;
}

.wh-toggle-nav > .toggle-burger::before,
.wh-toggle-nav > .toggle-burger::after,
.wh-close-nav > .toggle-burger::before,
.wh-close-nav > .toggle-burger::after {
    content: '';
    position: absolute;
    width: 3rem;
    height: 0.3rem;
    background-color: #00487a;
    border-radius: 2px;
    transition: all .5s ease-in-out;
}

/* Hamburger icon: white on hero (non-sticky), blue on sticky white bar */
.wh-sticky-wrapper:not(.is-sticky) .wh-toggle-nav > .toggle-burger,
.wh-sticky-wrapper:not(.is-sticky) .wh-toggle-nav > .toggle-burger::before,
.wh-sticky-wrapper:not(.is-sticky) .wh-toggle-nav > .toggle-burger::after {
    background-color: #ffffff;
}

/* Ensure sticky state stays blue */
.wh-sticky-wrapper.is-sticky .wh-toggle-nav > .toggle-burger,
.wh-sticky-wrapper.is-sticky .wh-toggle-nav > .toggle-burger::before,
.wh-sticky-wrapper.is-sticky .wh-toggle-nav > .toggle-burger::after {
    background-color: #00487a;
}
.wh-toggle-nav > .toggle-burger::before,
.wh-close-nav > .toggle-burger::before {
    transform: translateY(-1rem);
}
.wh-toggle-nav > .toggle-burger::after,
.wh-close-nav > .toggle-burger::after {
    transform: translateY(1rem);
}

.wh-close-nav.open > .toggle-burger {
    transform: translateX(-50px);
    background: transparent;
}

.wh-close-nav.open > .toggle-burger::before {
    transform: rotate(45deg) translate(35px,-35px)
}

.wh-close-nav.open > .toggle-burger::after {
    transform: rotate(-45deg) translate(35px,35px)
}

.wh-toggle-nav.open > .toggle-burger {
    background: transparent;
}

.wh-toggle-nav.open > .toggle-burger::before,
.wh-toggle-nav.open > .toggle-burger::after{
    background: transparent;
}

/* HERO AUF START */
.wh-hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: black;
}

/* Fade hero image into white towards the bottom (starts in last 1/4) */
.wh-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(245, 251, 254, 0) 0%,
        rgba(245, 251, 254, 0) 75%,
        rgba(245, 251, 254, 1) 100%
    );
}

.wh-hero img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.wh-hero > .hero-text {
    background: transparent;
    border-top: none;
    border-bottom: none;
    width: 100vw;
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    top: 15%;
    justify-content: center;
    z-index: 3;
}

.wh-hero > .hero-text > .hero-title {
    color: #ffffff;
    width: 100vw;
    text-align: center;
}

.hero-title > h1 {
    font-family: "Futura Std Medium", "Roboto", sans-serif !important;
    color: #ffffff;
    font-size: 3.6rem;
    font-weight: 500;
    margin-bottom: 0.2em;
    text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

.wh-hero > .hero-text > .hero-description {
    font-family: "GopetterRegular", "Roboto", sans-serif !important;
    text-align: center;
    color: #66c5ee;
    font-size: 3.0rem;
    margin-bottom: 0.5em;
    text-shadow: 0 3px 14px rgba(0,0,0,0.55);
}

/* Apply the font directly to the inner span to avoid any overrides */
.wh-hero > .hero-text > .hero-description span {
    font-family: "GopetterRegular", "Roboto", sans-serif !important;
}

.hero-overlay {    
    height: 100vh;
    width: 100vw;
    position: absolute;
    z-index: 1;
    /* Darken the image behind the text while keeping the photo visible */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.15)
    );
}

/* Make the header logo white for better contrast on the hero image */
.wh-navbar-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

/* When the sticky (white) header is active, show the logo in its original colors */
.wh-sticky-wrapper.is-sticky .wh-navbar-logo img {
    filter: none;
}

/* HEADER UNTERSEITEN */
.wh-header {
    position: relative;
    width: 100vw;
    height: 60vh;
    overflow: hidden;
}

.wh-header img {
    width: 100vw;
    height: 60vh;
    object-fit: cover;
}
.header-overlay {    
    height: 100vh;
    width: 100vw;
    position: absolute;
    background-color: rgb(255,255,255,0.15);
}


/* MAIN PART */
.wh-section {
    width: 100vw;
    padding-top: 100px;
    padding-bottom: 100px;
    justify-content: center;
}

.wh-section-wrapper {
    width: 100%;
    max-width: 1100px;
    padding-right: 20px;
    padding-left: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.wh-section-wrapper > .p-t{
    margin-top: 80px;
    margin-left: 20px;
}
.wh-section-wrapper > .p-b{
    margin-bottom: 80px;
    margin-right: 20px;
}

.picture-wrapper {
    max-height: 420px;
    max-width: 420px;
    aspect-ratio: 1/1;
    -webkit-aspect-ratio: 1/1;
}

.picture-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    -webkit-box-shadow: 2px 6px 15px 0px lightgray;
    box-shadow: 2px 6px 15px 0px lightgray;
    transition: 0.35s ease-in-out;
}
.picture-container:hover {
    transform: scale(1.02);
    cursor: pointer;
}
.fullscreen-overlay {
    align-items: center;
    justify-content: center;
    background-color: rgb(0,0,0,0.0);
    position: absolute;
    height: 100%;
    width: 100%;
    max-height: 420px;
    max-width: 420px;
    transform-origin: 50%;
    transition: 0.5s ease-in-out;
    
}
.fullscreen-overlay i {
    font-size: 4rem;
    color: white;
    transform-origin: 50%;
    transform: scale(0,0);
    transition: 0.35s ease-in-out;
}
.picture-container:hover .fullscreen-overlay{
    background-color: rgb(0,0,0,0.3);
}
.picture-container:hover .fullscreen-overlay i {
    transform: scale(1,1);
}


.row-reverse > .picture-container {
    -webkit-box-shadow: -2px 6px 15px 0px lightgray;
    box-shadow: -2px 6px 15px 0px lightgray;
}

.picture-container img {
    background-color: white;
    width: 100%;
    object-fit: cover;
}

.picture-full-wrapper {
    display: none;    
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 10000;
    background: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    padding: 15px;
    transition: 0.5s ease-in-out;
    opacity: 0;
    justify-content: center;
}

.full-picture {
    align-self: center;
    height: max-content;
    position: relative;
}

.picture-full-wrapper img {
    object-fit: contain;
    max-width: 100%;
    max-height: 80vh;
}
.cross {
  position: absolute;
  right: 5px;
  top: 10px;
  width: 3rem;
  height: 3rem;
  transition: 0.3s ease-in-out;
  z-index: 10001;
}
.cross:hover {
    cursor: pointer;
    transform: scale(1.5);
}
.cross:before, .cross:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 3.1rem;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.95);
}
.cross:before {
    transform: rotate(45deg);
}
.cross:after {
    transform: rotate(-45deg);
}


.text-wrapper {
    align-self: flex-end;
    max-width: 500px;
}

.row-reverse > .text-wrapper {
    align-self: flex-start;
}

.text-wrapper h2,
.text-wrapper h1{
    color: #00487a;
    margin: 0;
    font-size: 1.8rem;
}


/* Homepage offer: larger headline */
#aktuelles-angebot .section-heading h2 {
    font-size: 2.6rem;
    line-height: 1.15;
}

/* More space between headline and subheadline in the offer section */
#aktuelles-angebot .section-subheading {
    margin-top: 12px;
}


/* Offer image: 1.2x size, keep original aspect ratio, remove cropping constraints */
#aktuelles-angebot .picture-wrapper {
    aspect-ratio: auto;
    -webkit-aspect-ratio: auto;

    /* 1.2x size compared to the default 420px */
    max-width: 504px;
    max-height: none;
    height: auto;
    width: 100%;
}

#aktuelles-angebot .picture-container {
    height: auto;
    width: 100%;
    position: relative;
}

#aktuelles-angebot .picture-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media only screen and (max-width: 980px){
    #aktuelles-angebot .section-heading h2 {
        font-size: 2.2rem;
    }
}

@media only screen and (max-width: 480px){
    #aktuelles-angebot .section-heading h2 {
        font-size: 2.0rem;
    }
}

.text-wrapper .section-subheading {
    color: #66c5ee;
    font-size: 1.4rem;
    margin-top: -10px;
}

.text-wrapper > .section-description {
    margin-top: 20px;
    margin-bottom: 35px;
}

.section-btns {
    flex-wrap: wrap;
}
.info-btn {
    min-width: 225px;
    margin-right: 20px;
    letter-spacing: 1.4px;
    font-weight: 200;
    font-size: 0.8rem;
    padding: 15px 45px;
    margin-top: 30px;
    border-radius: 0;
    border: none;
    background-color: transparent;
    border: 1px solid lightgray;
    transition: 0.3s ease-out;
    cursor: pointer;
    position: relative;
}

.info-btn a {

    transition: 0.3s ease-out;
}

.info-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background-color: #00487a;
    transform-origin: left;
    transform: scaleX(0);
    transition: 0.3s ease-in-out;
}
.info-btn:hover::before {
    transform: scaleX(1);
}

.info-btn:hover a{
    color: white;
}

/* Secondary CTA: dark-blue filled button (e.g., "ZUM INSERAT") */
.info-btn.hp-btn {
    border-color: #00487a;
}

.info-btn.hp-btn::before {
    /* keep the dark-blue fill visible by default */
    transform: scaleX(1);
}

.info-btn.hp-btn a {
    color: #ffffff;
}

.info-btn.hp-btn:hover::before {
    /* keep it filled on hover as well */
    transform: scaleX(1);
}

.info-btn.hp-btn:hover a {
    color: #ffffff;
}

/* FOOTER */

.wh-footer-wrapper {
    width: 100vw;
    flex-wrap: wrap;
}

.form-stand {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgba(0,158,227,0.2);
}

.wh-formular {
    max-width: 650px;
    padding: 30px 50px;
}

.wh-formular > .text-wrapper {
    padding-left: 10px;
}

.form-kontakt {
    max-width: 500px;
}
.form-heading h2 {
    color: #00487a;
    margin: 0;
    font-size: 1.6rem;
}

.text-wrapper .form-subheading {
    color: #66c5ee;
    font-size: 1.3rem;
    margin-top: -10px;
}

.text-wrapper > .form-description {
    margin-top: 10px;
    margin-bottom: 35px;
}

.form-fields {
    flex-wrap: wrap;
}
.form-field, .form-check {
    margin-bottom: 10px;
}

.form-field > * {
    padding: 0.4rem 0.7rem;
    width: 100%;
    color: #00487a;
    background-color: transparent;
    border-radius: 0;
    border: 2px solid white;
    font-size: 0.8rem;
    line-height: 1.5;
    -webkit-appearance: none !important;
}
.form-field > *::placeholder {
    color: #00487a;
}
.form-check {
    align-items: flex-start;
}
.form-checkbox{
    align-items: center;
    margin-right: 10px;
}

.col-half {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}
.col-full {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
}
.col-1third {
    flex: 0 0 33.3333333333%;
    max-width: 33.3333333333%;
    padding: 0 10px;
}
.col-2third {
    flex: 0 0 66.6666666667%;
    max-width: 66.6666666667%;
    padding: 0 10px;
}

.form-input_submit {
    justify-content: center;
}

.submit-btn {
    color: white;
    letter-spacing: 1.4px;
    font-weight: 200;
    font-size: 0.8rem;
    padding: 15px 45px;
    margin-top: 10px;
    border-radius: 0;
    border: none;
    background-color: transparent;
    border: 1px solid lightgray;
    transition: 0.3s ease-out;
    cursor: pointer;
    position: relative;
}
.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background-color: #00487a;
    transform-origin: 50%;
    transform: scaleX(1);
    transition: 0.3s ease-in-out;
}
.submit-btn:hover::before {
    transform: scaleX(0);
}
.submit-btn:hover{
    color: #00487a;
    border: 1px solid #00487a;
}

.wh-location-map {
    flex: 1;
}

.wh-location-map img{
    width: 100%;
    max-width: 1260px;
    min-width: 300px;
}

.wh-footer-info {
    height: 70px;
    width: 100vw;
    justify-content: center;
    align-items: center;
} 


.li-bullet {
    padding-left: 0px;
    padding-right: 10px;
}
.footer-divider {
    padding-left: 10px;
    padding-right: 10px;
}

.dat-imp-container {
    max-width: 650px;
    padding-top: 200px;
}


@media only screen and (max-width: 1260px){
    .wh-location-map {
        flex: 100%;
    }
    .wh-location-map img {
        height: 100%;
    }
}

@media only screen and (max-width: 980px){
    :root {
        font-size: 15px;
    }
    .wh-toggle-nav, 
    .wh-close-nav { 
        left: 3rem;
    }
    .wh-section {
        padding-top: 50px;
        padding-bottom: 0px;
    }
    .wh-section-wrapper {
        justify-content: center;
    }
    .wh-section-wrapper > .p-t {
        margin-top: 0px;
        margin-bottom: 30px;
        margin-right: 20px;
    }
    .wh-section-wrapper > .p-b {
        margin-left: 20px;
        margin-bottom: 30px;
    }
    .text-wrapper {
        text-align: center;
        padding-bottom: 50px;
    }
}


@media only screen and (max-width: 800px) {
    :root {
        font-size: 15px;
    }
}

@media only screen and (max-width: 600px) {
    .wh-formular {
        padding: 50px 20px;
    }
}

@media only screen and (max-width: 480px) {
    .wh-menu-overlay > .nav-inner {
        padding-left: 0px;
    }
    .wh-toggle-nav, 
    .wh-close-nav { 
        left: 1.5rem;
    }
}

@media only screen and (max-width: 400px) {
    :root {
        font-size: 13px;
    }
}

@media only screen and (max-width: 350px) {
    .hero-title > h1 {
        font-size: 2.4rem;
    }
    .hero-description span {
        font-size: 1.9rem !important;
    }
    .wh-toggle-nav, 
    .wh-close-nav { 
        left: 1rem;
    }
}


.verkauft {
    font-size: 4rem;
    float: left;
    top: 0.7em;
    right: -3em;
    position: absolute; /* or fixed if you want it to always be visible */
    transform: rotate(45deg);
    background: rgba(255, 0, 0, 0.6);
    color: rgba(255, 255, 255, 1);
    font-weight: bold;
    padding-left: 3em;  padding-right: 3em;
    padding-top: .5em;  padding-bottom: .5em;
    border: 0;  margin: 0;
    height: auto;   width: auto;
}

.verkauft::before {
    content: 'Verkauft';
}

/* Minimal slideshow arrows on image (offer section) */
.offer-slideshow-container {
    position: relative;
}

/* Ensure arrows are above the image */
#offer-slideshow {
    position: relative;
    z-index: 1;
}

.offer-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    /* compact hit-area around the icon */
    width: auto;
    height: auto;
    padding: 10px 14px;

    border: none;
    background: rgba(0,0,0,0.18);
    color: rgba(255,255,255,0.95);
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.85;
    transition: opacity 0.2s ease-in-out, background 0.2s ease-in-out;
}

.offer-slide-prev {
    left: 10px;
}

.offer-slide-next {
    right: 10px;
}

.offer-slide-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.28);
}

.offer-slide-icon {
    font-size: 56px;
    line-height: 1;
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    user-select: none;
}

@media only screen and (max-width: 480px) {
    .offer-slide-btn {
        padding: 8px 12px;
    }
    .offer-slide-icon {
        font-size: 46px;
    }
}

#offer-slideshow{
    opacity: 1;
    transition: none;
}

#offer-slideshow.is-fading{
    opacity: 1;
}

/* Fullscreen offer slideshow */
#offer-slideshow-full{
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transition: none;
}

#offer-slideshow-full.is-fading{
    opacity: 1;
}

#offer-picture-full .offer-slideshow-container{
    max-width: 1100px;
}