/* Hilfsklassen für Textformatierung */
/*Überschrift Beiträge*/
.text-heading {
    padding: 0 5px 5px 5px;
}
.size-medium {
    font-size: 1.6rem;
}
/*Beiträge*/
.text-text {
    padding: 5px 5px 0 5px;
}
.size-small {
    font-size: 1.1rem;
}
.weight-400 {
    font-weight: 400;
}
/*Ausrichtung*/
.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
/*Design*/
.text-light {
    color: #f7fae5;
}
.text-accent {
    color: #aecc24;
}
.weight-300 {
    font-weight: 300;
}
.weight-500 {
    font-weight: 500;
}
.weight-600 {
    font-weight: 600;
}
.size-big {
    font-size: 2rem;
}

/* Globale Schutzregeln gegen horizontales Überlaufen */
html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe,
table,
svg {
    max-width: 100%;
}

img,
video,
iframe,
svg {
    height: auto;
}

p,
h1,
h2,
h3 {
    overflow-wrap: break-word;
    word-break: normal;
}

/* === Hero mit fixiertem Hintergrundbild === */
.ueberuns-hero {
    position: relative; /* nicht mehr fixed */
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 80vh;
    overflow: hidden;
}

.ueberuns-hero-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ueberuns-hero-image {
    position: fixed; /* bleibt stehen */
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1; /* hinter dem Content */
}

/* Slogan-Box */
.ueberuns-hero-slogan {
    position: absolute; /* bleibt innerhalb der Hero-Sektion */
    top: 300px;
    left: 0;
    max-width: min(92%, 680px);
    padding: 10px 20px 10px 10px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    background: rgba(85, 100, 18, 0.65);
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.ueberuns-hero-slogan h1 {
    margin: 5px;
    color: #aecc24;
    font-size: 2.75rem;
    line-height: 1.1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    overflow-wrap: anywhere;
}

.ueberuns-hero-slogan p {
    margin: 5px;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ueberuns-backscroll {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    background-color: #f4f5f6;
    border-top: 30px solid #aecc24;
    border-bottom: 30px solid #aecc24;
}

.ueberuns-wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #f4f5f6;
}

/* Titelbereich */
.ueberuns-top {
    padding-top: 60px;
}

.text-wrapper {
    width: 100%;
    max-width: 100%;
    padding: clamp(14px, 2vw, 24px);
    background: #FBFDF6;
    color: #222b08;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.text-wrapper + .text-wrapper {
    margin-top: 20px;
}

.ueberuns-leftbox {
    width: 100%;
    max-width: 100%;
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.ueberuns-textbox-mit-bild::after {
    content: "";
    display: block;
    clear: both;
}

.ueberuns-inline-img {
    float: right;
    width: min(28%, 320px);
    min-width: 220px;
    height: auto;
    margin: 0 0 0 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.ueberuns-absatz-unter-bild {
    clear: right;
    margin-top: 18px;
}
.ueberuns-rightbox {
    text-align: right;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Zwei Bilder zwischen linker Textbox und Centerbox */
.ueberuns-bilderbox {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(16px, 3vw, 32px);
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
}

.ueberuns-bilderbox img {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: clamp(220px, 28vw, 340px);
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
.ueberuns-centerbox {
    width: 100%;
    max-width: 100%;
    padding: clamp(14px, 2vw, 24px);
    text-align: center;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ueberuns-centerbox-wrapper {
    width: 100%;
    max-width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #556412;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.ueberuns-header-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 350px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Doppelte Textboxen untereinander */
.ueberuns-textsplit {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
}

.ueberuns-header-team {
    width: 100%;
    max-width: 100%;
}
/* Full-Width Team-Slider wie der Marken-Slider der Homepage */
.team-slider-section {
    width: 100%;
    max-width: 100%;
    margin: 40px 0 0;
    overflow: hidden;
}

.team-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 18px 70px;
    overflow: hidden;
    background-color: #6B7C1D;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.team-slider-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.team-slider-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    max-width: none;
    will-change: transform;
}

.team-card {
    display: flex;
    flex: 0 0 clamp(220px, 22vw, 290px);
    flex-direction: column;
    margin: 0 22px 0 0;
    overflow: hidden;
    background: #FBFDF6;
    color: #222b08;
    border-radius: 3px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.team-card img {
    display: block;
    width: 100%;
    height: clamp(190px, 20vw, 260px);
    object-fit: cover;
}

.team-card-text {
    padding: 10px 12px 12px;
    text-align: center;
}

.team-card-text h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #414D0D;
}

.team-card-text p {
    margin: 0;
    color: #556412;
    font-size: 0.9rem;
    line-height: 1.3;
}

.team-nav {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 120px;
    border: none;
    background: #aecc24;
    color: #212607;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.team-prev {
    left: 5px;
}

.team-next {
    right: 5px;
}

.team-nav:hover,
.team-nav:focus-visible {
    background-color: #c3df35;
    outline: none;
    transform: translateY(-50%) scale(1.04);
}


/* Mittelbereich: Text links, Slideshow rechts */
.ueberuns-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    overflow: hidden;
}

/* Linke Textbox */
.ueberuns-left {
    display: flex;
    flex: 1 1 45%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    text-align: center;
}

.ueberuns-left h2 {
    margin-bottom: 15px;
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
}

.ueberuns-left p {
    font-size: clamp(1rem, 1.7vw, 1.1rem);
    line-height: 1.5;
}

/* Slideshow */
.ueberuns-slideshow {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Innerer Container */
.ueberuns-slideshow-inner {
    display: flex;
    width: 100%;
    max-width: 100%;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* Jedes Bild nimmt 100 % der sichtbaren Breite ein */
.ueberuns-slideshow-inner img {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Buttons */
.slide-btn {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    max-width: 18%;
    height: 100%;
    border: none;
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    cursor: pointer;
    font-size: 30px;
    z-index: 10;
    pointer-events: auto;
    transition: background-color 0.2s ease;
}

/* Hover-Effekt */
.slide-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Links- und Rechts-Position */
.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Optional: Symbol in der Mitte des Buttons */
.slide-btn::before {
    display: block;
}

/* Tablet: 768px bis 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .ueberuns-hero {
        height: 65vh;
    }

    .ueberuns-hero-image {
        width: 100%;
        height: 100vh;
        max-width: 100%;
    }

    .ueberuns-hero-slogan {
        top: clamp(120px, 20vh, 180px);
        padding: 10px 20px 10px 10px;
        max-width: 82vw;
    }

    .ueberuns-wrapper {
        width: 92%;
    }

    .ueberuns-top {
        padding-top: 45px;
    }

    .ueberuns-leftbox,
    .ueberuns-centerbox {
        font-size: 1rem;
    }

    .ueberuns-inline-img {
        width: min(34%, 280px);
        min-width: 200px;
        margin: 0 0 10px 20px;
    }

    .ueberuns-bilderbox {
        gap: 20px;
    }

    .ueberuns-centerbox br,
    .ueberuns-header-team br {
        display: none;
    }

    .team-slider {
        padding: 16px 56px;
    }

    .team-card {
        flex-basis: clamp(220px, 30vw, 280px);
        margin-right: 18px;
    }

    .team-nav {
        width: 38px;
        height: 110px;
    }

    .ueberuns-middle {
        flex-wrap: wrap;
        gap: 24px;
    }

    .ueberuns-left,
    .ueberuns-slideshow {
        flex: 1 1 100%;
        width: 100%;
    }

    .ueberuns-left {
        height: auto;
        min-height: 180px;
        padding: 18px 10px;
    }

    .ueberuns-header-img,
    .ueberuns-slideshow-inner img {
        height: clamp(280px, 42vw, 380px);
    }
}

/* Handy / Mobile: bis 767px */
@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
    }

    .ueberuns-hero {
        height: 58vh;
        min-height: 360px;
    }

    .ueberuns-hero-image {
        width: 100%;
        height: 100vh;
        max-width: 100%;
    }

    .ueberuns-hero-slogan {
        top: clamp(95px, 20vh, 150px);
        bottom: auto;
        left: 0;
        max-width: calc(100% - 18px);
        padding: 10px 20px 10px 10px;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .ueberuns-backscroll {
        border-top-width: 18px;
        border-bottom-width: 18px;
    }

    .ueberuns-wrapper {
        width: 94%;
    }

    .ueberuns-top {
        padding-top: 30px;
    }

    .text-wrapper {
        padding: 14px;
    }

    .ueberuns-leftbox,
    .ueberuns-centerbox {
        font-size: 1rem;
    }

    .ueberuns-inline-img {
        float: right;
        display: block;
        width: min(46%, 260px);
        min-width: 150px;
        max-width: 100%;
        margin: 0 0 10px 16px;
    }

    .ueberuns-bilderbox {
        flex-direction: column;
        gap: 14px;
    }

    .ueberuns-bilderbox img {
        height: clamp(210px, 62vw, 310px);
    }

    .ueberuns-centerbox {
        padding: 14px;
        text-align: left;
        text-shadow: none;
    }

    .ueberuns-centerbox br,
    .ueberuns-header-team br {
        display: none;
    }

    .ueberuns-textsplit {
        margin: 28px 0;
    }

    .ueberuns-header-img {
        height: clamp(220px, 58vw, 320px);
    }

    .team-slider-section {
        margin-top: 32px;
    }

    .team-slider {
        padding: 14px 44px;
    }

    .team-card {
        flex: 0 0 clamp(200px, 68vw, 240px);
        margin-right: 14px;
    }

    .team-card img {
        height: clamp(170px, 56vw, 240px);
    }

    .team-nav {
        width: 32px;
        height: 96px;
        font-size: 1.2rem;
    }

    .team-prev {
        left: 4px;
    }

    .team-next {
        right: 4px;
    }

    .ueberuns-middle {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-top: 32px;
    }

    .ueberuns-left,
    .ueberuns-slideshow {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .ueberuns-left {
        height: auto;
        min-height: 0;
        padding: 8px 0 0;
    }

    .ueberuns-left h2 {
        margin-bottom: 8px;
    }

    .ueberuns-slideshow-inner img {
        height: clamp(220px, 62vw, 320px);
    }

    .slide-btn {
        width: 34px;
        font-size: 24px;
    }
}
