
/* =========================================
   PRAXIS VITAL – HOME
   Startseite: Willkommen, Über uns, Galerie
========================================= */

:root {
    --praxis-gruen: #00854A;
    --praxis-gruen-dunkel: #00683B;
    --praxis-gruen-hell: #F2F8F4;
    --text-dunkel: #202522;
    --text-normal: #454B47;
    --linie: #DDE9E1;
    --galerie-gruen: #00854A;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dunkel);
    background: #ffffff;
}


/* =========================================
   1. WILLKOMMENSBEREICH
========================================= */

.welcome-section {
    width: 100%;
    padding: 150px 24px 70px;
    background: linear-gradient(
        180deg,
        #F1F8F3 0%,
        #FAFCFA 65%,
        #FFFFFF 100%
    );
}

.Wilkommensbereich-content {
    position: relative;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 52px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #E4EDE6;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(24, 74, 44, 0.07);
}

.Wilkommensbereich-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 32px;
    bottom: 32px;
    width: 4px;
    background: var(--praxis-gruen);
    border-radius: 0 4px 4px 0;
}

.welcome-section .section-title {
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.6px;
    color: var(--praxis-gruen);
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--linie);
}

.wilkommentxt {
    width: 100%;
    max-width: 930px;
    font-size: 17px;
    line-height: 1.9;
    font-weight: 400;
    color: var(--text-normal);
    margin: 0;
    overflow-wrap: break-word;
}


/* =========================================
   2. ÜBER-UNS-BEREICH
========================================= */

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 200px 24px 90px;
    background: #ffffff;
    scroll-margin-top: 120px;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
}

.section-icon {
    display: block;
    width: 28px;
    height: 24px;
    flex-shrink: 0;
}

.section-label span {
    font-size: 13px;
    font-weight: 700;
    color: var(--praxis-gruen);
    letter-spacing: 2px;
    margin: 0;
}

.about-section .ueberschrift {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dunkel);
    line-height: 1.15;
    letter-spacing: -0.7px;
    margin: 0 0 18px;
}

.ueberuns {
    width: 100%;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-normal);
    margin: 0;
}


/* =========================================
   3. PRAXISÜBERBLICK
========================================= */

.praxis-ueberblick {
    width: 100%;
    max-width: 1000px;
    margin: 38px auto 0;
    padding: 28px 32px;
    background: #F8FBF9;
    border: 1px solid #E3ECE5;
    border-radius: 14px;
    color: var(--text-normal);
    font-size: 16px;
    line-height: 1.8;
}

.praxis-ueberblick p {
    color: var(--text-dunkel);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--linie);
}

.praxis-ueberblick ul {
    list-style-type: square;
    padding-left: 24px;
    margin: 0;
}

.praxis-ueberblick li {
    padding-left: 4px;
    margin-bottom: 8px;
}

.praxis-ueberblick li:last-child {
    margin-bottom: 0;
}

.praxis-ueberblick li::marker {
    color: var(--praxis-gruen);
}


/* =========================================
   4. BILDERGALERIE
========================================= */

.praxis-galerie {
    --galerie-gruen: #00854A;
    width: 100%;
    padding: 85px 20px 75px;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #f7fbf8 0%,
        #ffffff 100%
    );
    text-align: center;
}

.galerie-kopf {
    max-width: 720px;
    margin: 0 auto 35px;
}

.galerie-label,
.galerie-untertitel {
    color: var(--galerie-gruen);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.galerie-kopf h2 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 40px);
    color: #202522;
}

.galerie-kopf p {
    color: #606963;
    font-size: 16px;
    line-height: 1.7;
}

.galerie-slider {
    position: relative;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.galerie-buehne {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(280px, 38vw, 470px);
    perspective: 1200px;
}

.galerie-bild {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58%;
    height: 90%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 133, 74, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(25, 60, 40, 0.12);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        left 0.5s ease,
        transform 0.5s ease,
        opacity 0.5s ease,
        filter 0.5s ease,
        box-shadow 0.5s ease;
}

.galerie-bild img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f4f7f5;
}

.galerie-mitte {
    z-index: 3;
    left: 50%;
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) scale(1);
}

.galerie-mitte:hover {
    box-shadow: 0 20px 55px rgba(25, 60, 40, 0.2);
}

.galerie-links {
    z-index: 2;
    left: 22%;
    opacity: 0.65;
    filter: blur(2px);
    transform: translate(-50%, -50%) scale(0.76);
}

.galerie-rechts {
    z-index: 2;
    left: 78%;
    opacity: 0.65;
    filter: blur(2px);
    transform: translate(-50%, -50%) scale(0.76);
}

.galerie-links::after,
.galerie-rechts::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.galerie-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 9px 14px;
    border-radius: 30px;
    background: rgba(0, 80, 44, 0.88);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transform: translateY(5px);
    transition: 0.25s ease;
}

.galerie-mitte:hover .galerie-zoom,
.galerie-mitte:focus-visible .galerie-zoom {
    opacity: 1;
    transform: translateY(0);
}

.galerie-pfeil {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid #dce9e0;
    border-radius: 50%;
    background: #fff;
    color: var(--galerie-gruen);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-50%);
    transition: background 0.2s, color 0.2s;
}

.galerie-pfeil:hover {
    background: var(--galerie-gruen);
    color: #fff;
}

.galerie-zurueck {
    left: 0;
}

.galerie-weiter {
    right: 0;
}

.galerie-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 24px auto 12px;
}

.galerie-punkt {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid var(--galerie-gruen);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.galerie-punkt.aktiv {
    background: var(--galerie-gruen);
    transform: scale(1.15);
}

.galerie-hinweis {
    color: #737b75;
    font-size: 13px;
}

.galerie-beschriftung {
    position: absolute;
    z-index: 4;
    left: 14px;
    bottom: 14px;
    max-width: 72%;
    padding: 9px 13px;
    border-radius: 20px;
    background: rgba(0, 80, 44, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    pointer-events: none;
}


/* =========================================
   5. LIGHTBOX
========================================= */

.galerie-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 65px 70px;
    background: rgba(12, 19, 15, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.galerie-lightbox.offen {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Normales Bild und Panorama zunächst ausblenden */

.galerie-lightbox .lightbox-bild,
.galerie-lightbox #panorama-viewer {
    display: none !important;
}

/* Normales Bild anzeigen */

.galerie-lightbox.offen:not([data-panorama="true"]) .lightbox-bild {
    display: block !important;
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    border-radius: 8px;
}

/* Panorama-Grundfläche */

#panorama-viewer {
    display: none;
    position: relative;
    flex: 0 1 auto;
    width: min(1100px, calc(100vw - 180px));
    height: min(75vh, 650px);
    min-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

/* Panorama anzeigen */

.galerie-lightbox.offen[data-panorama="true"] #panorama-viewer {
    display: block !important;
    flex: 0 1 auto !important;
    width: min(1100px, calc(100vw - 140px)) !important;
    height: min(75vh, 650px) !important;
    max-height: 75vh;
    min-height: 300px;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
}

/* Schließen-Button */

.lightbox-schliessen {
    position: absolute;
    top: 18px;
    right: 28px;
    z-index: 100000;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}

/* Bildwechsel-Pfeile */

.lightbox-pfeil {
    position: relative;
    z-index: 100000;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.lightbox-pfeil:hover {
    background: var(--galerie-gruen);
}

/* Bildzähler */

.lightbox-zaehler {
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    color: #fff;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}


/* =========================================
   6. HORIZONTALE PANORAMA-STEUERUNG
========================================= */

/* Keine vertikale Browser-Geste im Panorama */

#panorama-viewer {
    touch-action: none !important;
    user-select: none;
    -webkit-user-select: none;
}

/* Maus-Cursor: Ziehen möglich */

#panorama-viewer .pnlm-render-container {
    cursor: grab !important;
    touch-action: none !important;
    user-select: none;
    -webkit-user-select: none;
}

/* Während des Ziehens */

#panorama-viewer.vital-dragging .pnlm-render-container {
    cursor: grabbing !important;
}

/* Zoom- und Vollbildbedienelemente bleiben anklickbar */

#panorama-viewer .pnlm-ui,
#panorama-viewer .pnlm-controls-container {
    pointer-events: auto;
}


/* =========================================
   7. TEAM-ABSCHNITT
========================================= */

.team-section {
    margin-top: 50px;
    margin-bottom: 40px;
    text-align: center;
}

.team-section > .section-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 35px;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.team-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    width: 270px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-group:first-child .team-row .team-card:first-child .team-img,
.team-group:last-child .team-card:last-child .team-img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: auto;
}

.team-image-wrapper {
    width: 270px;
    height: 338px;
    overflow: hidden;
    background-color: #f4f8f5;
}

.team-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-img.team-hd {
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.team-info {
    padding: 18px 15px;
    text-align: left;
}

.team-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.team-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.team-group {
    margin-top: 55px;
}

.group-title {
    font-size: 1.1rem;
    color: #00854A;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}


/* =========================================
   8. TABLET
========================================= */

@media (max-width: 900px) {

    .lightbox-pfeil {
        position: fixed;
        top: 50%;
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(0, 133, 74, 0.9);
        color: #ffffff;
        border: 2px solid #ffffff;
        border-radius: 50%;
        font-size: 22px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%);
    }

    .lightbox-zurueck {
        left: 10px;
    }

    .lightbox-weiter {
        right: 10px;
    }
}


/* =========================================
   9. HANDY
========================================= */

@media (max-width: 700px) {

    .Wilkommensbereich-content {
        padding: 28px 23px 30px;
        border-radius: 14px;
    }

    .Wilkommensbereich-content::before {
        top: 24px;
        bottom: 24px;
        width: 3px;
    }

    .welcome-section .section-title {
        font-size: clamp(27px, 6vw, 35px);
        line-height: 1.3;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .wilkommentxt {
        font-size: 16px;
        line-height: 1.8;
    }

    .about-section .ueberschrift {
        font-size: 36px;
    }

    .ueberuns {
        font-size: 16px;
        line-height: 1.8;
    }

    .praxis-ueberblick {
        padding: 23px 20px;
        margin-top: 28px;
        font-size: 15px;
    }

    .praxis-ueberblick p {
        font-size: 17px;
    }

    .praxis-galerie {
        padding: 55px 12px 48px;
    }

    .galerie-kopf {
        margin-bottom: 20px;
    }

    .galerie-kopf p {
        font-size: 15px;
    }

    .galerie-buehne {
        height: 290px;
    }

    .galerie-bild {
        width: 72%;
        height: 84%;
        border-radius: 12px;
    }

    .galerie-links {
        left: 12%;
        opacity: 0.4;
        filter: blur(2px);
        transform: translate(-50%, -50%) scale(0.65);
    }

    .galerie-rechts {
        left: 88%;
        opacity: 0.4;
        filter: blur(2px);
        transform: translate(-50%, -50%) scale(0.65);
    }

    .galerie-pfeil {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .galerie-zurueck {
        left: 2px;
    }

    .galerie-weiter {
        right: 2px;
    }

    .galerie-zoom {
        opacity: 1;
        right: 8px;
        bottom: 8px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .galerie-lightbox {
        gap: 8px;
        padding: 55px 8px;
    }

    .lightbox-schliessen {
        top: 10px;
        right: 15px;
    }

    .galerie-beschriftung {
        left: 7px;
        bottom: 7px;
        max-width: 90%;
        padding: 6px 9px;
        font-size: 10px;
    }
}


/* =========================================
   10. PANORAMA AUF KLEINEN HANDYS
========================================= */

@media (max-width: 600px) {

    .galerie-lightbox.offen:not([data-panorama="true"]) .lightbox-bild {
        max-width: calc(100vw - 80px);
        max-height: calc(100vh - 120px);
    }

    .galerie-lightbox.offen[data-panorama="true"] #panorama-viewer {
        width: calc(100vw - 100px) !important;
        height: 65vh !important;
        min-height: 260px;
        max-height: calc(100vh - 80px);
    }
}


/* =========================================
   11. SEHR KLEINE HANDYS
========================================= */

@media (max-width: 380px) {

    .Wilkommensbereich-content {
        padding: 24px 18px;
    }

    .welcome-section .section-title {
        font-size: 26px;
    }

    .praxis-ueberblick {
        padding: 20px 16px;
    }
}


/* =========================================
   12. REDUZIERTE ANIMATIONEN
========================================= */

@media (prefers-reduced-motion: reduce) {

    .galerie-bild,
    .galerie-punkt,
    .galerie-lightbox,
    .team-card {
        transition: none;
    }
}
