/*
Theme Name: Ibisi
Theme URI: http://10.10.0.201/public/ibisi/
Author: SVMNET
Description: Individuelles Theme für die Zahnarztpraxis Dr. Rauf Ibisi
Version: 1.0
Text Domain: ibisi
*/

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

.ibisi-home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
}

/* Stabiler, vollständig vom Seiteninhalt unabhängiger Hintergrund */

body::before {
    content: "";
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.22),
            rgba(255, 255, 255, 0.22)
        ),
        url('assets/images/hero.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

}

body {
    position: relative;
    background: transparent;
}

.ibisi-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;

    background: transparent;

    z-index: 1;
}


/* Willkommen */

.ibisi-welcome {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;

    text-align: center;
    color: #333333;
    font-family: Calibri, Arial, sans-serif;

    will-change: opacity;
}

.ibisi-welcome h1 {
    margin: 0;
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 400;
}

.ibisi-welcome p {
    margin: 6px 0 0;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 400;
}

.ibisi-welcome span {
    display: block;
    width: 36px;
    height: 2px;
    margin: 16px auto 0;

    background: rgba(150, 25, 25, 0.75);
}


/* Navigation kompletter Bereich */

.ibisi-navigation-wrap {
    position: absolute;
    left: 0;
    top: 26%;

    width: 100%;
    min-height: 260px;

    z-index: 10;
}


/* Scrollbare Navigation */

.ibisi-navigation-strip {
    position: relative;

    width: 100%;
    min-height: 255px;

    display: flex;
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden;

    background: linear-gradient(
        to bottom,
        rgba(125, 18, 18, 0.08) 0%,
        rgba(125, 18, 18, 0.16) 45%,
        rgba(125, 18, 18, 0.30) 100%
    );

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ibisi-navigation-strip::-webkit-scrollbar {
    display: none;
}


/* Navigation Bilder */

.ibisi-nav-item {
    position: relative;

    flex: 0 0 25%;
    min-width: 250px;
    min-height: 250px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 0 20px 28px;
    box-sizing: border-box;

    overflow: hidden;
    text-decoration: none;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    scroll-snap-align: start;
}

.ibisi-nav-item span {
    position: relative;
    z-index: 2;

    color: #ffffff;
    font-family: Calibri, Arial, sans-serif;
    font-size: clamp(20px, 2.4vw, 38px);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
}


/* Navigation Bilder */

.ibisi-nav-start {
    background-image:
        linear-gradient(
            rgba(125, 18, 18, 0.18),
            rgba(125, 18, 18, 0.18)
        ),
        url('assets/images/nav-start_1.jpg');
}

.ibisi-nav-services {
    background-image:
        linear-gradient(
            rgba(125, 18, 18, 0.18),
            rgba(125, 18, 18, 0.18)
        ),
        url('assets/images/nav-leistungen_1.jpg');
}

.ibisi-nav-team {
    background-image:
        linear-gradient(
            rgba(125, 18, 18, 0.18),
            rgba(125, 18, 18, 0.18)
        ),
        url('assets/images/nav-team_1.jpg');
}

.ibisi-nav-practice {
    background-image:
        linear-gradient(
            rgba(125, 18, 18, 0.18),
            rgba(125, 18, 18, 0.18)
        ),
        url('assets/images/nav-praxis_1.jpg');
}

.ibisi-nav-contact {
    background-image:
        linear-gradient(
            rgba(125, 18, 18, 0.18),
            rgba(125, 18, 18, 0.18)
        ),
        url('assets/images/nav-kontakt_1.jpg');
}


/* Navigation Pfeile */

.ibisi-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 50;

    width: 48px;
    height: 72px;

    padding: 0;
    margin: 0;

    border: 0;
    outline: 0;
    background: transparent;

    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}

.ibisi-nav-arrow-left {
    left: 0;
}

.ibisi-nav-arrow-right {
    right: 0;
}


/* Mobile */

@media (max-width: 768px) {

    .ibisi-nav-item {
        flex: 0 0 72%;
        min-width: 72%;
    }

}

/* Unterer Bereich */

.ibisi-bottom-left,
.ibisi-bottom-right,
.ibisi-discover {
    position: fixed;
    z-index: 5;

    font-family: Calibri, Arial, sans-serif;
    color: #333333;
    font-weight: 400;

    will-change: opacity;
}


/* Links unten */

.ibisi-bottom-left {
    left: 6%;
    bottom: 9%;

    font-size: clamp(20px, 1.8vw, 30px);
    line-height: 1.15;
}

.ibisi-bottom-left span {
    display: block;
    width: 38px;
    height: 2px;
    margin-top: 14px;

    background: rgba(150, 25, 25, 0.75);
}


/* Rechts unten */

.ibisi-bottom-right {
    right: 6%;
    bottom: 9%;

    max-width: 300px;

    font-size: clamp(20px, 1.8vw, 30px);
    line-height: 1.15;
    text-align: right;
}

.ibisi-bottom-right span {
    display: block;
    width: 38px;
    height: 2px;
    margin: 14px 0 0 auto;

    background: rgba(150, 25, 25, 0.75);
}


/* Mitte unten */

.ibisi-discover {
    left: 50%;
    bottom: 5%;

    transform: translateX(-50%);

    text-align: center;
    font-size: 15px;
}

.ibisi-mouse {
    width: 18px;
    height: 28px;

    margin: 0 auto 7px;

    border: 1px solid #555555;
    border-radius: 10px;
}

.ibisi-mouse::before {
    content: "";
    display: block;

    width: 2px;
    height: 5px;

    margin: 5px auto 0;

    background: #555555;
    border-radius: 2px;
}

.ibisi-discover-arrow {
    margin-top: 2px;
    font-size: 22px;
    line-height: 1;
}

/* Dunkler Text auf der Startseite */

.ibisi-welcome,
.ibisi-welcome h1,
.ibisi-welcome p,
.ibisi-bottom-left,
.ibisi-bottom-right,
.ibisi-discover {
    font-weight: 600;
}

/* Praxislogo oben links */

.ibisi-brand {
    position: fixed;
    top: 2.6%;
    left: 3.2%;
    z-index: 20;

    width: clamp(190px, 17vw, 290px);
    height: auto;

    line-height: 0;

    opacity: 0.90;
    will-change: opacity;
}

.ibisi-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    background: transparent;
}

@media (max-width: 768px) {
    .ibisi-brand {
        top: 1.8%;
        left: 2.8%;
        width: clamp(150px, 40vw, 190px);
        opacity: 0.90;
    }
}

@media (max-width: 420px) {
    .ibisi-brand {
        top: 1.4%;
        left: 2.5%;
        width: clamp(138px, 38vw, 165px);
        opacity: 0.90;
    }
}

/* Sprachauswahl oben rechts */

.ibisi-languages {
    position: fixed;
    top: 5%;
    right: 5%;
    z-index: 20;

    display: flex;
    align-items: center;
    gap: 10px;

    font-family: Calibri, Arial, sans-serif;
    font-size: clamp(16px, 1.25vw, 20px);
    font-weight: 600;
    color: #333333;

    will-change: opacity;
}

.ibisi-languages i {
    font-style: normal;
    font-weight: 400;
    opacity: 0.65;
}

/* Leistungen – zweite Sektion */

.ibisi-services-section {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;

    background: transparent;

    font-family: Calibri, Arial, sans-serif;
}

/* Leistungen Kopfzeile */

.ibisi-services-header {
    position: relative;
    width: 100%;

    height: 239px;
    min-height: 239px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(125, 18, 18, 0.08) 0%,
            rgba(125, 18, 18, 0.16) 45%,
            rgba(125, 18, 18, 0.30) 100%
        );

    overflow: visible;
}

.ibisi-services-header::before {
    content: "";
    position: absolute;

    left: 0;
    top: -0px;

    width: 100%;
    height: 230px;

    background: rgba(125, 18, 18, 0.25);
    z-index: 0;
}

/* Leistungen Bild */

.ibisi-services-header::after {
    content: "";

    position: absolute;
	top: calc(50% - 1px);
	transform: translateY(-50%);

    width: 100%;
    height: 234px;

    background-image:
        linear-gradient(
            rgba(125, 18, 18, 0.10),
            rgba(125, 18, 18, 0.10)
        ),
        url('assets/images/nav-leistungen_1.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    z-index: 1;
}


.ibisi-services-header h2 {
    position: relative;
    z-index: 2;

    margin: 0;

    color: #ffffff;
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
}

/* Leistungen Inhalt */

.ibisi-services-content {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 0 62px;

    font-family: Calibri, Arial, sans-serif;
    color: #333333;
    opacity: 0;
    will-change: opacity;
}

/* Überschrift */

.ibisi-services-intro {
    text-align: left;
    margin-bottom: 28px;
}

.ibisi-services-intro h3 {
    margin: 0;

    font-size: clamp(32px, 2.8vw, 44px);
    font-weight: 700;
}

.ibisi-services-intro span {
    display: block;

    width: 72px;
    height: 2px;

    margin: 12px 0 0;

    background: rgba(150, 25, 25, 0.78);
}

/* Leistungen */

.ibisi-services-list {
    display: block;
}

.ibisi-service {
    position: relative;

    width: 100%;
    box-sizing: border-box;

    text-align: left;
    padding: 0 0 28px;
    margin: 0 0 26px;

    font-weight: 700;
}

.ibisi-service:not(:last-child)::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 82px;
    height: 2px;

    background: rgba(150, 25, 25, 0.78);
}

.ibisi-service:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.ibisi-service h4 {
    margin: 0 0 8px;

    font-size: clamp(29px, 2.4vw, 38px);
    font-weight: 700;
    line-height: 1.15;
}

.ibisi-service h5 {
    margin: 0 0 14px;

    font-size: clamp(23px, 1.9vw, 29px);
    font-weight: 700;
    line-height: 1.25;
}

.ibisi-service h6 {
    margin: 17px 0 6px;

    font-size: clamp(19px, 1.45vw, 22px);
    font-weight: 700;
    line-height: 1.3;
}

.ibisi-service p {
    max-width: 1050px;

    margin: 0 0 10px;

    font-size: clamp(17px, 1.12vw, 19px);
    font-weight: 700;
    line-height: 1.38;
}

.ibisi-service ul {
    max-width: 1050px;

    margin: 0 0 10px;
    padding-left: 24px;
}

.ibisi-service li {
    margin: 0 0 3px;

    font-size: clamp(17px, 1.12vw, 19px);
    font-weight: 700;
    line-height: 1.38;
}

/* Leistungen Mobile */

@media (max-width: 768px) {

    .ibisi-services-content {
        width: 88%;
        padding: 38px 0 58px;
    }

    .ibisi-services-intro {
        margin-bottom: 36px;
    }

    .ibisi-services-intro h3 {
        font-size: clamp(28px, 8vw, 34px);
    }

    .ibisi-services-intro span {
        width: 64px;
        margin-top: 13px;
    }

    .ibisi-service {
        padding-bottom: 38px;
        margin-bottom: 34px;
    }

    .ibisi-service:not(:last-child)::after {
        width: 72px;
    }

    .ibisi-service h4 {
        margin-bottom: 7px;
        font-size: clamp(25px, 7.5vw, 31px);
    }

    .ibisi-service h5 {
        margin-bottom: 19px;
        font-size: clamp(20px, 5.7vw, 24px);
    }

    .ibisi-service h6 {
        margin: 22px 0 9px;
        font-size: 18px;
    }

    .ibisi-service p,
    .ibisi-service li {
        font-size: 16px;
        line-height: 1.55;
    }

    .ibisi-service ul {
        padding-left: 21px;
    }

    .ibisi-service li {
        margin-bottom: 6px;
    }
}

/* =========================================================
   Übergang Hauptnavigation -> Leistungen
   Die bestehende Startseiten-Geometrie bleibt unverändert.
   ========================================================= */

/* Navigation wird erst durch JavaScript fixiert,
   sobald ihre Oberkante den oberen Fensterrand erreicht. */

.ibisi-navigation-wrap.is-fixed {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    margin: 0;
}

/* Der echte Leistungen-Header dient als fixer Zielblock. */

.ibisi-services-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 999;

    opacity: 0;
    pointer-events: none;

    will-change: opacity;
}

/* Reserviert im Leistungen-Bereich exakt den Platz,
   den der fixe Header sonst aus dem Dokumentfluss nehmen würde. */

.ibisi-services-header-space {
    width: 100%;
    height: 239px;
    min-height: 239px;
}

/* Smartphone / Tablet */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    .ibisi-hero {
        min-height: 100svh;
    }

    .ibisi-welcome {
        width: 88%;
    }

    .ibisi-languages {
        right: 4%;
        gap: 7px;

        font-size: 14px;
    }

    .ibisi-navigation-wrap,
    .ibisi-navigation-wrap.is-fixed {
        min-height: 220px;
    }

    .ibisi-navigation-strip {
        min-height: 215px;
    }

    .ibisi-nav-item {
        flex: 0 0 78%;
        min-width: 78%;
        min-height: 210px;

        padding: 0 18px 22px;
    }

    .ibisi-nav-item span {
        font-size: clamp(24px, 8vw, 32px);
    }

    .ibisi-nav-arrow {
        width: 38px;
        height: 60px;

        font-size: 42px;
    }

    .ibisi-services-header,
    .ibisi-services-header-space {
        height: 190px;
        min-height: 190px;
    }

    .ibisi-services-header::before {
        height: 184px;
    }

    .ibisi-services-header::after {
        height: 186px;
    }

    .ibisi-services-header h2 {
        font-size: clamp(32px, 10vw, 46px);
    }

    .ibisi-services-content {
        width: 90%;
        padding: 38px 0 55px;
    }

    .ibisi-services-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ibisi-service {
        padding: 16px 4px;
    }

    .ibisi-bottom-left,
    .ibisi-bottom-right {
        font-size: 16px;
    }

    .ibisi-bottom-right {
        max-width: 145px;
    }

    .ibisi-discover {
        bottom: 2.5%;
        font-size: 13px;
    }
}

/* Sehr kleine Smartphones */

@media (max-width: 420px) {

    .ibisi-welcome {
        top: 14%;
    }

    .ibisi-navigation-wrap {
        top: 29%;
    }

    .ibisi-nav-item {
        flex-basis: 84%;
        min-width: 84%;
    }

    .ibisi-languages {
        font-size: 13px;
        gap: 5px;
    }
}

/* =========================================================
   Seitenwechsel: statischer Text + Scroll-Hinweise
   ========================================================= */

.ibisi-brand,
.ibisi-languages,
.ibisi-welcome,
.ibisi-bottom-left,
.ibisi-bottom-right,
.ibisi-discover {
    transition: opacity 0.06s linear;
}

/* Scroll-Hinweise innerhalb einer Inhaltssektion */

.ibisi-section-scroll-cue {
    position: fixed;
    left: 50%;

    transform: translateX(-50%);

    z-index: 1100;

    text-align: center;
    font-family: Calibri, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333333;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.20s ease,
        visibility 0.20s ease;
}

.ibisi-section-scroll-cue.is-visible {
    opacity: 1;
    visibility: visible;
}

.ibisi-section-scroll-up {
    top: 258px;
}



.ibisi-section-scroll-cue .ibisi-mouse {
    margin-bottom: 6px;
}



.ibisi-section-scroll-up .ibisi-discover-arrow {
    margin-top: 0;
}

/* Leistungen kompakter – Desktop */

.ibisi-services-content {
    padding-top: 42px;
    padding-bottom: 62px;
}

.ibisi-services-intro {
    margin-bottom: 28px;
}

.ibisi-service {
    padding-bottom: 28px;
    margin-bottom: 26px;
}

.ibisi-service h4 {
    margin-bottom: 6px;
}

.ibisi-service h5 {
    margin-bottom: 14px;
}

.ibisi-service h6 {
    margin-top: 17px;
    margin-bottom: 6px;
}

.ibisi-service p {
    margin-bottom: 10px;
    line-height: 1.38;
}

.ibisi-service ul {
    margin-bottom: 10px;
}

.ibisi-service li {
    margin-bottom: 3px;
    line-height: 1.38;
}

/* Leistungen kompakter – Smartphone */

@media (max-width: 768px) {

    .ibisi-services-content {
        width: 90%;
        padding: 30px 0 46px;
    }

    .ibisi-services-intro {
        margin-bottom: 24px;
    }

    .ibisi-services-intro h3 {
        font-size: clamp(29px, 8.2vw, 35px);
    }

    .ibisi-services-intro span {
        margin-top: 10px;
    }

    .ibisi-service {
        padding: 0 2px 24px;
        margin-bottom: 22px;
    }

    .ibisi-service h4 {
        margin-bottom: 5px;
        font-size: clamp(26px, 7.7vw, 32px);
    }

    .ibisi-service h5 {
        margin-bottom: 12px;
        font-size: clamp(21px, 6vw, 25px);
        line-height: 1.18;
    }

    .ibisi-service h6 {
        margin: 15px 0 5px;
        font-size: 19px;
        line-height: 1.22;
    }

    .ibisi-service p,
    .ibisi-service li {
        font-size: 17px;
        line-height: 1.38;
    }

    .ibisi-service p {
        margin-bottom: 9px;
    }

    .ibisi-service ul {
        margin-bottom: 9px;
        padding-left: 21px;
    }

    .ibisi-service li {
        margin-bottom: 3px;
    }

    .ibisi-section-scroll-up {
        top: 208px;
    }

    

    .ibisi-section-scroll-cue {
        font-size: 13px;
    }
}

/* =========================================================
   Leistungen-Inhalt: fester Übergang ohne Hochscrollen
   ========================================================= */

.ibisi-services-content-space {
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
}

.ibisi-services-content.is-staged {
    position: fixed;
    left: 6%;
    right: auto;

    width: 88%;
    max-width: 1200px;

    margin: 0;

    z-index: 950;

    pointer-events: none;
    will-change: opacity;
}

@media (min-width: 1365px) {
    .ibisi-services-content.is-staged {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {

    .ibisi-services-content.is-staged {
        left: 5%;

        width: 90%;
        max-width: none;

        margin: 0;
    }
}

/* Stabiler Hintergrund auf Mobilgeräten – ohne weiße Unterkante */

@media (max-width: 768px) {

    html,
    body {
        background: transparent;
        overscroll-behavior-y: auto;
    }

    body::before {
        top: -2px;
        bottom: auto;

        width: 100vw;
        height: calc(100lvh + 4px);

        background-position: center center;
        background-size: cover;
    }
}


/* =========================================================
   Leistungen: sauberes Mobile-Scrollen und End-Hinweis
   ========================================================= */

.ibisi-section-scroll-cue {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ibisi-services-end-cue {
    position: relative;
    width: max-content;
    max-width: 90%;
    margin: 28px auto 36px;
    text-align: center;
    font-family: Calibri, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    background: transparent;
}

.ibisi-home,
.ibisi-hero,
.ibisi-services-section,
.ibisi-services-content,
.ibisi-services-list {
    touch-action: pan-y;
}

.ibisi-navigation-strip {
    touch-action: pan-x pan-y;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .ibisi-services-end-cue {
        margin-top: 24px;
        margin-bottom: max(34px, env(safe-area-inset-bottom));
        font-size: 13px;
    }

    .ibisi-section-scroll-up {
        top: 202px;
    }
}

/* =========================================================
   TEAM – gleiche Mechanik wie Leistungen
   ========================================================= */

.ibisi-team-section {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;

    background: transparent;

    font-family: Calibri, Arial, sans-serif;
}

/* Gleiche Kopfzeilen-Geometrie wie Leistungen */

.ibisi-team-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 239px;
    min-height: 239px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    z-index: 998;

    opacity: 0;
    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(125, 18, 18, 0.08) 0%,
            rgba(125, 18, 18, 0.16) 45%,
            rgba(125, 18, 18, 0.30) 100%
        );

    overflow: visible;
    will-change: opacity;
}

.ibisi-team-header::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 230px;

    background: rgba(125, 18, 18, 0.25);

    z-index: 0;
}

.ibisi-team-header::after {
    content: "";

    position: absolute;
    top: calc(50% - 1px);

    transform: translateY(-50%);

    width: 100%;
    height: 234px;

    background-image:
        linear-gradient(
            rgba(125, 18, 18, 0.10),
            rgba(125, 18, 18, 0.10)
        ),
        url('assets/images/nav-team_1.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    z-index: 1;
}

.ibisi-team-header h2 {
    position: relative;
    z-index: 2;

    margin: 0;

    color: #ffffff;
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
}

.ibisi-team-header-space {
    width: 100%;
    height: 239px;
    min-height: 239px;
}

.ibisi-team-content-space {
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
}

.ibisi-team-content {
    width: 88%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 42px 0 62px;

    box-sizing: border-box;

    color: #333333;
    opacity: 0;
    will-change: opacity;
}

.ibisi-team-content.is-staged {
    position: fixed;
    left: 6%;

    width: 88%;
    max-width: 1200px;

    margin: 0;

    z-index: 947;

    pointer-events: none;
}

.ibisi-team-intro {
    max-width: 1050px;
    margin: 0 0 30px;

    text-align: left;
}

.ibisi-team-intro h3 {
    margin: 0;

    font-size: clamp(32px, 2.8vw, 44px);
    font-weight: 700;
}

.ibisi-team-intro > span {
    display: block;

    width: 72px;
    height: 2px;

    margin: 12px 0 18px;

    background: rgba(150, 25, 25, 0.78);
}

.ibisi-team-intro p {
    margin: 0 0 10px;

    font-size: clamp(17px, 1.12vw, 19px);
    font-weight: 700;
    line-height: 1.38;
}

.ibisi-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;
}

.ibisi-team-card {
    min-width: 0;

    background: rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.ibisi-team-photo {
    width: 100%;
    aspect-ratio: 4 / 3;

    background-image:
        linear-gradient(
            rgba(125, 18, 18, 0.08),
            rgba(125, 18, 18, 0.08)
        ),
        url('assets/images/nav-team.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ibisi-team-card-text {
    padding: 18px 18px 22px;

    text-align: left;
}

.ibisi-team-card h4 {
    margin: 0 0 5px;

    font-size: clamp(24px, 1.9vw, 31px);
    font-weight: 700;
    line-height: 1.15;
}

.ibisi-team-card h5 {
    margin: 0 0 12px;

    font-size: clamp(19px, 1.35vw, 22px);
    font-weight: 700;
    line-height: 1.2;
}

.ibisi-team-card p {
    margin: 0;

    font-size: clamp(16px, 1.05vw, 18px);
    font-weight: 700;
    line-height: 1.38;
}

.ibisi-team-end-cue {
    position: relative;

    width: max-content;
    max-width: 90%;

    margin: 28px auto 36px;

    text-align: center;
    font-family: Calibri, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

@media (min-width: 1365px) {

    .ibisi-team-content.is-staged {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {

    .ibisi-team-header,
    .ibisi-team-header-space {
        height: 190px;
        min-height: 190px;
    }

    .ibisi-team-header::before {
        height: 184px;
    }

    .ibisi-team-header::after {
        height: 186px;
    }

    .ibisi-team-header h2 {
        font-size: clamp(32px, 10vw, 46px);
    }

    .ibisi-team-content,
    .ibisi-team-content.is-staged {
        width: 90%;
        max-width: none;
    }

    .ibisi-team-content {
        padding: 30px 0 46px;
    }

    .ibisi-team-content.is-staged {
        left: 5%;
        margin: 0;
    }

    .ibisi-team-intro {
        margin-bottom: 24px;
    }

    .ibisi-team-intro h3 {
        font-size: clamp(29px, 8.2vw, 35px);
    }

    .ibisi-team-intro > span {
        width: 64px;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .ibisi-team-intro p {
        font-size: 17px;
        line-height: 1.38;
    }

    .ibisi-team-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ibisi-team-photo {
        aspect-ratio: 16 / 10;
    }

    .ibisi-team-card-text {
        padding: 15px 14px 18px;
    }

    .ibisi-team-card h4 {
        font-size: clamp(26px, 7.7vw, 32px);
    }

    .ibisi-team-card h5 {
        font-size: 19px;
    }

    .ibisi-team-card p {
        font-size: 17px;
        line-height: 1.38;
    }

    .ibisi-team-end-cue {
        margin-top: 24px;
        margin-bottom: max(34px, env(safe-area-inset-bottom));
        font-size: 13px;
    }
}



/* Leistungen – gemeinsamer transparenter Text-Hintergrund */

.ibisi-services-content {
    box-sizing: border-box;
    padding-left: 28px;
    padding-right: 28px;

    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}


/* TEAM – kompakter Übergang ohne großen Leerraum */

.ibisi-team-header-space {
    height: 0 !important;
    min-height: 0 !important;
}

.ibisi-team-section {
    min-height: auto;
}

/* Team "Nach oben" */

.ibisi-team-scroll-up {
    position: fixed;
    left: 50%;
    top: 258px;

    transform: translateX(-50%);

    z-index: 1100;

    text-align: center;
    font-family: Calibri, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333333;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.20s ease,
        visibility 0.20s ease;
}

.ibisi-team-scroll-up.is-visible {
    opacity: 1;
    visibility: visible;
}

.ibisi-team-scroll-up .ibisi-mouse {
    margin-bottom: 6px;
}

/* Team – kompakte Zeilen, Text links / Foto rechts */

.ibisi-team-grid {
    display: block;
}

.ibisi-team-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: stretch;

    gap: 0;

    margin: 0 0 22px;

    background: rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.ibisi-team-card-text {
    padding: 18px 22px 20px;
}

.ibisi-team-photo {
    width: 220px;
    min-height: 155px;
    aspect-ratio: auto;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ibisi-team-end-cue,
.ibisi-services-end-cue {
    transition: opacity 0.18s linear;
}

/* Mobile */

@media (max-width: 768px) {

    .ibisi-services-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ibisi-team-scroll-up {
        top: 202px;
        font-size: 13px;
    }

    /*
     * На телефоне фото не ставим справа от текста:
     * сначала компактное фото, затем текст.
     */
    .ibisi-team-card {
        display: flex;
        flex-direction: column;

        margin-bottom: 20px;
    }

    .ibisi-team-photo {
        order: 1;

        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 8;

        background-position: center 28%;
    }

    .ibisi-team-card-text {
        order: 2;

        padding: 14px 16px 17px;
    }
}


/* Abstand zwischen Leistungen-Ende und Team-Wechsel */

.ibisi-services-end-cue {
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .ibisi-services-end-cue {
        margin-bottom: max(20px, env(safe-area-inset-bottom));
    }
}


/* =========================================================
   Feinabstimmung Leistungen -> Team
   ========================================================= */

/* Kein künstlicher voller Bildschirm am Ende von Leistungen. */
.ibisi-services-section {
    min-height: auto;
}

/* End-Hinweis näher an den nächsten Abschnitt. */
.ibisi-services-end-cue {
    margin-top: 18px;
    margin-bottom: 8px;
}

/* Team-Start: genug Platz zwischen "Nach oben" und erstem Text,
   aber kein großer leerer Übergangsbereich. */
.ibisi-team-content {
    padding-top: 34px;
}

.ibisi-team-scroll-up {
    top: 252px;
}

@media (max-width: 768px) {

    .ibisi-services-end-cue {
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .ibisi-team-scroll-up {
        top: 200px;
    }

    .ibisi-team-content {
        padding-top: 28px;
    }
}


/* =========================================================
   FINAL: Leistungen -> Team Übergang und Team-Hinweise
   ========================================================= */

/* Der letzte Leistungen-Hinweis sitzt näher am Übergang. */
.ibisi-services-end-cue {
    margin-top: 14px;
    margin-bottom: 4px;
}

/* Team-Nach-oben: gut sichtbar direkt unter der Kopfzeile. */
.ibisi-team-scroll-up {
    top: 252px;
    z-index: 1200;
}

/* Der Team-Inhalt beginnt mit genügend Abstand unter dem Hinweis. */
.ibisi-team-content {
    padding-top: 34px;
}

/* Der End-Hinweis von Team wird erst nach Freigabe des Inhalts sichtbar. */
.ibisi-team-end-cue {
    opacity: 0;
    margin-top: 20px;
    margin-bottom: 28px;
    transition: opacity 0.18s linear;
}

@media (max-width: 768px) {

    .ibisi-services-end-cue {
        margin-top: 12px;
        margin-bottom: 4px;
    }

    .ibisi-team-scroll-up {
        top: 202px;
    }

    .ibisi-team-content {
        padding-top: 28px;
    }

    .ibisi-team-end-cue {
        margin-top: 18px;
        margin-bottom: max(26px, env(safe-area-inset-bottom));
    }
}


/* =========================================================
   Kein Text-Overlay beim Wechsel Leistungen -> Team
   ========================================================= */

.ibisi-services-content,
.ibisi-services-end-cue,
.ibisi-team-content,
.ibisi-team-header,
.ibisi-services-header {
    transition: opacity 0.08s linear;
}

/* =========================================================
   FINAL: Einheitliche Höhe Hauptnavigation / Seitenköpfe
   ========================================================= */

/*
 * Desktop:
 * Seitenkopf außen = 239px
 * Bildfläche innen = 234px
 * Die Hauptnavigation verwendet ab jetzt exakt dieselben Maße.
 */

.ibisi-navigation-wrap,
.ibisi-navigation-wrap.is-fixed {
    height: 239px;
    min-height: 239px;
}

.ibisi-navigation-strip {
    height: 239px;
    min-height: 239px;
}

.ibisi-nav-item {
    height: 234px;
    min-height: 234px;
    align-self: center;
}

/*
 * Dadurch bleiben oben und unten nur wenige Pixel der roten
 * Grundfläche sichtbar – genau wie bei Leistungen / Team.
 */

@media (max-width: 768px) {

    /*
     * Mobile:
     * Seitenkopf außen = 190px
     * Bildfläche innen = 186px
     */

    .ibisi-navigation-wrap,
    .ibisi-navigation-wrap.is-fixed {
        height: 190px;
        min-height: 190px;
    }

    .ibisi-navigation-strip {
        height: 190px;
        min-height: 190px;
    }

    .ibisi-nav-item {
        height: 186px;
        min-height: 186px;
        align-self: center;
    }
}


/* =========================================================
   Feinabstimmung: weichere Header-Übergänge
   ========================================================= */

.ibisi-services-header,
.ibisi-team-header {
    transition: opacity 0.14s linear;
}


/* =========================================================
   PRAXIS – gleiche Mechanik wie Team
   ========================================================= */
.ibisi-praxis-section{position:relative;z-index:1;width:100%;min-height:auto;background:transparent;font-family:Calibri,Arial,sans-serif}
.ibisi-praxis-header{position:fixed;top:0;left:0;width:100%;height:239px;min-height:239px;display:flex;align-items:center;justify-content:center;z-index:997;opacity:0;pointer-events:none;overflow:visible;will-change:opacity;transition:opacity .14s linear;background:linear-gradient(to bottom,rgba(125,18,18,.08) 0%,rgba(125,18,18,.16) 45%,rgba(125,18,18,.30) 100%)}
.ibisi-praxis-header::before{content:"";position:absolute;left:0;top:0;width:100%;height:230px;background:rgba(125,18,18,.25);z-index:0}
.ibisi-praxis-header::after{content:"";position:absolute;top:calc(50% - 1px);transform:translateY(-50%);width:100%;height:234px;background-image:linear-gradient(rgba(125,18,18,.10),rgba(125,18,18,.10)),url('assets/images/nav-praxis_1.jpg');background-size:cover;background-position:center;background-repeat:no-repeat;z-index:1}
.ibisi-praxis-header h2{position:relative;z-index:2;margin:0;color:#fff;font-size:clamp(38px,4vw,62px);font-weight:600;letter-spacing:.03em;text-align:center}
.ibisi-praxis-header-space,.ibisi-praxis-content-space{width:100%;height:0;min-height:0;margin:0;padding:0}
.ibisi-praxis-content{width:88%;max-width:1200px;margin:0 auto;padding:34px 28px 44px;box-sizing:border-box;color:#333;opacity:0;will-change:opacity;background:rgba(255,255,255,.22);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.ibisi-praxis-content.is-staged{position:fixed;left:6%;width:88%;max-width:1200px;margin:0;z-index:946;pointer-events:none}
.ibisi-praxis-intro{margin:0 0 28px;text-align:left}
.ibisi-praxis-intro h3{margin:0;font-size:clamp(32px,2.8vw,44px);font-weight:700}
.ibisi-praxis-intro>span{display:block;width:72px;height:2px;margin:12px 0 18px;background:rgba(150,25,25,.78)}
.ibisi-praxis-intro p{max-width:1050px;margin:0;font-size:clamp(17px,1.12vw,19px);font-weight:700;line-height:1.38}
.ibisi-praxis-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:24px}
.ibisi-praxis-photo{width:100%;aspect-ratio:16/9;background-image:linear-gradient(rgba(125,18,18,.06),rgba(125,18,18,.06)),url('assets/images/nav-praxis.jpg');background-size:cover;background-position:center;background-repeat:no-repeat}
.ibisi-praxis-scroll-up{position:fixed;left:50%;top:252px;transform:translateX(-50%);z-index:1200;text-align:center;font:600 14px Calibri,Arial,sans-serif;color:#333;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
.ibisi-praxis-scroll-up.is-visible{opacity:1;visibility:visible}
.ibisi-praxis-scroll-up .ibisi-mouse{margin-bottom:6px}
.ibisi-praxis-end-cue{position:relative;width:max-content;max-width:90%;margin:20px auto 28px;text-align:center;font:600 14px Calibri,Arial,sans-serif;color:#333;opacity:0;transition:opacity .18s linear}
@media(min-width:1365px){.ibisi-praxis-content.is-staged{left:50%;transform:translateX(-50%)}}
@media(max-width:768px){
.ibisi-praxis-header{height:190px;min-height:190px}
.ibisi-praxis-header::before{height:184px}.ibisi-praxis-header::after{height:186px}
.ibisi-praxis-header h2{font-size:clamp(32px,10vw,46px)}
.ibisi-praxis-content,.ibisi-praxis-content.is-staged{width:90%;max-width:none}
.ibisi-praxis-content{padding:28px 16px 34px}.ibisi-praxis-content.is-staged{left:5%;margin:0}
.ibisi-praxis-intro{margin-bottom:22px}.ibisi-praxis-intro h3{font-size:clamp(29px,8.2vw,35px)}
.ibisi-praxis-intro>span{width:64px;margin-top:10px;margin-bottom:15px}
.ibisi-praxis-intro p{font-size:17px;line-height:1.38}
.ibisi-praxis-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px}
.ibisi-praxis-photo{aspect-ratio:4/3}
.ibisi-praxis-scroll-up{top:202px;font-size:13px}
.ibisi-praxis-end-cue{margin-top:18px;margin-bottom:max(26px,env(safe-area-inset-bottom));font-size:13px}
}



/* =========================================================
   KONTAKT & ANFAHRT – letzter Bereich
   ========================================================= */

.ibisi-contact-section {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: auto;
    background: transparent;
    font-family: Calibri, Arial, sans-serif;
}

.ibisi-contact-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 239px;
    min-height: 239px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 996;
    opacity: 0;
    pointer-events: none;
    overflow: visible;
    will-change: opacity;
    transition: opacity .14s linear;
    background: linear-gradient(
        to bottom,
        rgba(125,18,18,.08) 0%,
        rgba(125,18,18,.16) 45%,
        rgba(125,18,18,.30) 100%
    );
}

.ibisi-contact-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 230px;
    background: rgba(125,18,18,.25);
    z-index: 0;
}

.ibisi-contact-header::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    transform: translateY(-50%);
    width: 100%;
    height: 234px;
    background-image:
        linear-gradient(
            rgba(125,18,18,.10),
            rgba(125,18,18,.10)
        ),
        url('assets/images/nav-kontakt_1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.ibisi-contact-header h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: clamp(38px,4vw,62px);
    font-weight: 600;
    letter-spacing: .03em;
    text-align: center;
}

.ibisi-contact-header-space,
.ibisi-contact-content-space {
    width: 100%;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.ibisi-contact-content {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto 42px;
    padding: 34px 28px 42px;
    box-sizing: border-box;
    color: #333;
    opacity: 0;
    will-change: opacity;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.ibisi-contact-content.is-staged {
    position: fixed;
    left: 6%;
    width: 88%;
    max-width: 1200px;
    margin: 0;
    z-index: 945;
    pointer-events: none;
}

.ibisi-contact-intro {
    margin: 0 0 26px;
    text-align: left;
}

.ibisi-contact-intro h3 {
    margin: 0;
    font-size: clamp(32px,2.8vw,44px);
    font-weight: 700;
}

.ibisi-contact-intro > span {
    display: block;
    width: 72px;
    height: 2px;
    margin: 12px 0 18px;
    background: rgba(150,25,25,.78);
}

.ibisi-contact-intro p,
.ibisi-contact-card p,
.ibisi-contact-map-text p {
    margin: 0;
    font-size: clamp(17px,1.12vw,19px);
    font-weight: 700;
    line-height: 1.38;
}

.ibisi-contact-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin-top: 22px;
}

.ibisi-contact-card {
    padding: 20px;
    background: rgba(255,255,255,.24);
}

.ibisi-contact-card h4,
.ibisi-contact-map-text h4 {
    margin: 0 0 8px;
    font-size: clamp(22px,1.8vw,28px);
    font-weight: 700;
}

.ibisi-contact-map-placeholder {
    margin-top: 24px;
    min-height: 180px;
    display: flex;
    align-items: center;
    padding: 26px;
    box-sizing: border-box;
    background:
        linear-gradient(
            rgba(255,255,255,.28),
            rgba(255,255,255,.28)
        ),
        url('assets/images/nav-kontakt.jpg');
    background-size: cover;
    background-position: center;
}

.ibisi-contact-map-text {
    max-width: 640px;
    padding: 18px 20px;
    background: rgba(255,255,255,.58);
}

.ibisi-contact-scroll-up {
    position: fixed;
    left: 50%;
    top: 252px;
    transform: translateX(-50%);
    z-index: 1200;
    text-align: center;
    font: 600 14px Calibri,Arial,sans-serif;
    color: #333;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.ibisi-contact-scroll-up.is-visible {
    opacity: 1;
    visibility: visible;
}

.ibisi-contact-scroll-up .ibisi-mouse {
    margin-bottom: 6px;
}

@media (min-width:1365px) {
    .ibisi-contact-content.is-staged {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width:768px) {

    .ibisi-contact-header {
        height: 190px;
        min-height: 190px;
    }

    .ibisi-contact-header::before {
        height: 184px;
    }

    .ibisi-contact-header::after {
        height: 186px;
    }

    .ibisi-contact-header h2 {
        font-size: clamp(28px,8.2vw,40px);
    }

    .ibisi-contact-content,
    .ibisi-contact-content.is-staged {
        width: 90%;
        max-width: none;
    }

    .ibisi-contact-content {
        padding: 28px 16px 34px;
        margin-bottom: max(28px,env(safe-area-inset-bottom));
    }

    .ibisi-contact-content.is-staged {
        left: 5%;
        margin: 0;
    }

    .ibisi-contact-intro h3 {
        font-size: clamp(29px,8.2vw,35px);
    }

    .ibisi-contact-intro > span {
        width: 64px;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .ibisi-contact-intro p,
    .ibisi-contact-card p,
    .ibisi-contact-map-text p {
        font-size: 17px;
        line-height: 1.38;
    }

    .ibisi-contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 18px;
    }

    .ibisi-contact-card {
        padding: 16px;
    }

    .ibisi-contact-map-placeholder {
        min-height: 150px;
        margin-top: 16px;
        padding: 14px;
    }

    .ibisi-contact-map-text {
        padding: 14px;
    }

    .ibisi-contact-scroll-up {
        top: 202px;
        font-size: 13px;
    }
}


/* =========================================================
   RECHTLICHE SEITEN – Impressum / Datenschutz / AGB
   ========================================================= */

.ibisi-legal-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 150px 0 70px;
    font-family: Calibri, Arial, sans-serif;
    color: #333333;
}

.ibisi-legal-page .ibisi-brand {
    opacity: 0.90;
}

.ibisi-legal-back {
    position: fixed;
    top: 4.2%;
    right: 5%;
    z-index: 30;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.ibisi-legal-back:hover {
    text-decoration: underline;
}

.ibisi-legal-wrap {
    width: 88%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 36px 38px 44px;
    background: rgba(255,255,255,.36);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.ibisi-legal-wrap h1 {
    margin: 0;
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
}

.ibisi-legal-title-line {
    display: block;
    width: 72px;
    height: 2px;
    margin: 13px 0 30px;
    background: rgba(150,25,25,.78);
}

.ibisi-legal-wrap h2 {
    margin: 30px 0 10px;
    font-size: clamp(22px, 1.9vw, 29px);
    font-weight: 700;
    line-height: 1.2;
}

.ibisi-legal-wrap p,
.ibisi-legal-wrap li {
    font-size: clamp(16px, 1.05vw, 18px);
    font-weight: 600;
    line-height: 1.5;
}

.ibisi-legal-wrap p {
    margin: 0 0 12px;
}

.ibisi-legal-note {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(150,25,25,.28);
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: .78;
}

.ibisi-legal-bottom-nav {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(51,51,51,.16);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ibisi-legal-bottom-nav a {
    color: #333333;
    text-decoration: none;
    font-weight: 700;
}

.ibisi-legal-bottom-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ibisi-legal-page {
        padding: 120px 0 46px;
    }

    .ibisi-legal-back {
        top: 3%;
        right: 4%;
        font-size: 14px;
    }

    .ibisi-legal-wrap {
        width: 92%;
        padding: 28px 18px 34px;
    }

    .ibisi-legal-title-line {
        width: 64px;
        margin-bottom: 24px;
    }

    .ibisi-legal-wrap h2 {
        margin-top: 25px;
    }

    .ibisi-legal-wrap p,
    .ibisi-legal-wrap li {
        font-size: 16px;
        line-height: 1.48;
    }
}

.ibisi-legal-footer a {
    color: #333333;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
}

.ibisi-legal-footer a:hover {
    color: rgba(150, 25, 25, 0.90);
    text-decoration: none;
}

/* =========================================================
   FOOTER – Impressum / Datenschutz / AGB
   ========================================================= */

.ibisi-legal-footer {
    position: relative;
    z-index: 20;

    width: 88%;
    max-width: 1200px;
    box-sizing: border-box;

    margin: 18px auto 42px;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;

    text-align: center;
    font-family: Calibri, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333333;

    background: rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.ibisi-legal-footer a {
    color: #333333;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
}

.ibisi-legal-footer a:hover {
    color: rgba(150, 25, 25, 0.90);
    text-decoration: none;
}

.ibisi-legal-separator {
    opacity: 0.55;
}

@media (max-width: 768px) {

    .ibisi-contact-section {
        padding-bottom: 8px;
    }

    .ibisi-legal-footer {
        width: 90%;
        max-width: none;

        margin: 14px auto max(34px, env(safe-area-inset-bottom));
        padding: 15px 14px;

        gap: 9px;

        font-size: 14px;
        line-height: 1.3;
    }
}

/* =========================================================
   MOBILE FIX: Logo + Willkommen bleiben immer getrennt
   Unabhängig von iPhone-/Android-Auflösung.
   ========================================================= */

@media (max-width: 768px) {

    .ibisi-brand-welcome {
        position: fixed;
        top: max(10px, env(safe-area-inset-top));
        left: 0;
        width: 100%;
        z-index: 20;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        pointer-events: none;
    }

    .ibisi-brand-welcome .ibisi-brand {
        position: relative;
        top: auto;
        left: auto;

        align-self: flex-start;
        width: clamp(145px, 40vw, 190px);

        margin: 0 0 8px 12px;
    }

    .ibisi-brand-welcome .ibisi-welcome {
        position: relative;
        top: auto;
        left: auto;
        transform: none;

        width: 92%;
        margin: 0 auto;

        text-align: center;
    }
}

@media (max-width: 420px) {

    .ibisi-brand-welcome .ibisi-brand {
        width: clamp(138px, 38vw, 165px);
        margin-left: 10px;
        margin-bottom: 8px;
    }

    .ibisi-brand-welcome .ibisi-welcome {
        width: 94%;
    }
}

