@font-face {
    font-family: 'exosoftbold';
    src: url(font/exo.bold.otf) format('opentype');
    font-display: swap;
}
@font-face {
    font-family: 'exosoftregular';
    src: url(font/exo.regular.otf) format('opentype');
    font-display: swap;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'exosoftregular', sans-serif;
}


/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.preloader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #e08d34;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===== HEADER / HERO ===== */
.header {
    min-height: 100vh;
    width: 100%;
    background: rgba(200, 140, 70, 0.3);
    position: relative;
    overflow: hidden;
}

/* Fallback background image when video is hidden (tablets & mobile) */
@media (max-width: 1285px) {
    .header {
        background-color: #b8915a; /* visible while image loads */
        background-image: linear-gradient(rgba(200, 140, 70, 0.3), rgba(200, 140, 70, 0.3)), url(image/5558web.jpg);
        background-position: center;
        background-size: cover;
    }
}

/* Background video — correctly positioned, covers full header */
#backgroundvideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* On mobile: CSS fallback image (above) shows while video loads.
   Video plays over it once loaded thanks to playsinline. */


/* ===== LEISTUNGEN VIDEO ===== */
.leistungen-video {
    width: 100%;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    display: block;
}


/* ===== NAVBAR ===== */
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

nav img {
    width: 150px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #e08d34;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

nav .fa {
    display: none;
}

/* Desktop: hide hamburger + X */
@media (min-width: 701px) {
    .fa-bars, .fa-times {
        display: none !important;
    }
}

/* Mobile navbar */
@media (max-width: 700px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        background: #e08d34;
        text-align: left;
        transition: right 0.3s ease;
        z-index: 10;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul li {
        display: block;
        padding: 20px;
    }

    .fa-bars {
        display: block !important;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .fa-times {
        display: block !important;
        color: #fff;
        font-size: 22px;
        margin: 10px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px;
    }
}


/* ===== HERO TEXT BOX ===== */
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.text-box h1 {
    font-size: 80px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 16px;
    color: #fff;
}

@media (max-width: 700px) {
    .text-box h1 {
        font-size: 35px;
    }
}

@media (max-width: 500px) {
    .text-box h1 {
        font-size: 25px;
    }
    .text-box p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .hero-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}


/* ===== BUTTONS ===== */
.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.green-btn {
    color: #e08d34;
    border: 1px solid #e08d34;
}

.hero-btn:hover {
    border-color: #e08d34;
    background: #e08d34;
    color: white;
}


/* ===== CONTENT SECTIONS ===== */
.breite {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 36px;
    font-weight: 600;
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

p {
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row {
    display: flex;
    justify-content: space-between;
}

.row-weitere {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 950px) {
    .row {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .breite {
        width: 90%;
        padding: 50px 0;
    }

    .row {
        flex-direction: column;
    }

    .breite-col {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .orange {
        padding: 15px;
        border-radius: 8px;
    }
}


/* ===== BREITE COLS ===== */
.breite-col {
    flex-basis: 48%;
    box-sizing: border-box;
}

.orange {
    background: #e08d34;
    border-radius: 10px;
    padding: 20px;
    color: white;
}

.breite-col > img {
    height: auto;
    max-width: 100%;
    border-radius: 10px;
}

.mitte {
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ===== ABWICKLUNG SECTION ===== */
.abwicklung {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.weitere-col {
    width: 95%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.weitere-col > img {
    width: 100%;
    display: block;
}

/* Orange hover layer over images */
.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover {
    background: rgba(200, 140, 70, 0.3);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

@media (max-width: 1100px) {
    .layer h3 {
        font-size: 18px;
    }
}

@media (max-width: 700px) {
    .layer h3 {
        font-size: 16px;
    }
}

@media (max-width: 690px) {
    .row-weitere {
        flex-direction: column;
    }

    .row-weitere > a {
        display: flex;
        justify-content: center;
    }

    .weitere-col {
        width: 60%;
    }

    .weitere-col > img {
        width: 100%;
    }

    /* Show hover overlay permanently on touch devices (no cursor) */
    .layer {
        background: rgba(200, 140, 70, 0.4) !important;
    }

    .layer h3 {
        bottom: 49% !important;
        opacity: 1 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }
}


/* ===== FOOTER ===== */
.up {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 100px;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background-color: rgb(247, 247, 247);
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.footer p {
    font-size: 14px;
}

.footerunten a:link,
.footerunten a:visited {
    text-decoration: none;
    color: black;
}

.footerunten {
    padding: 10px;
    text-align: right;
}

@media (max-width: 700px) {
    .footer p {
        font-size: 12px;
    }

    .footer .logo {
        width: 120px;
    }
}


/* ===== SUB-PAGE HEADER ===== */
.sub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(200, 140, 70, 0.3), rgba(200, 140, 70, 0.3)), url(image/10.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

.sub-header h1 {
    margin-top: 70px;
    font-size: 60px;
}

@media (max-width: 700px) {
    .sub-header h1 {
        font-size: 35px;
    }

    .abwicklung-col h1 {
        font-size: 25px;
    }
}


/* ===== KONTAKT ===== */
.contact-us {
    width: 80%;
    margin: auto;
    margin-top: 100px;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-col {
    flex: 1 1 60%;
}

.contact-icon {
    flex: 1 1 35%;
    text-align: center;
}

.contact-icon img {
    max-width: 100%;
    height: auto;
}

.contact-col div {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-col div .fa {
    font-size: 28px;
    color: #e08d34;
    margin: 10px;
    margin-right: 30px;
}

@keyframes soft-shake-stronger {
    0%   { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(-3px, 0) rotate(-3deg); }
    40%  { transform: translate(3px, 0) rotate(3deg); }
    60%  { transform: translate(-3px, 0) rotate(-3deg); }
    80%  { transform: translate(3px, 0) rotate(3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.contact-icon img:hover {
    animation: soft-shake-stronger 0.6s infinite;
    display: inline-block;
    cursor: pointer;
}

.contact-icon img:active {
    animation: soft-shake-stronger 0.6s infinite;
}


/* ===== GALERIE MODAL / LIGHTBOX ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    margin: auto;
}

.modal-content {
    position: relative;
    text-align: center;
}

.modal-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

.modal .close:hover,
.modal .close:focus {
    color: #e08d34;
}

.modal .prev,
.modal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 30px;
    user-select: none;
    transition: 0.3s;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1000;
}

.modal .prev:hover,
.modal .next:hover {
    background-color: #e08d34;
}

.modal .prev {
    left: 0;
}

.modal .next {
    right: 0;
}

.mySlides {
    display: none;
}
