/* ═══════════════════════════════════════════════════════════════════════════
   OS About Block
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.os-about-block {
    width: 100%;
        margin-bottom: 32px;
    box-sizing: border-box;
}

.os-about--pad-none  { padding: 0; }
.os-about--pad-small  { padding: 40px 0; }
.os-about--pad-medium { padding: 80px 0; }
.os-about--pad-large  { padding: 120px 0; }

/* ── Inner row ────────────────────────────────────────────────────────────── */
.os-about__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    /* the columns had no gap at all and sat flush against each other;
       overridable per block through the "Columns Gap" field */
    gap: var(--os-about-gap, 4rem);
}

/* The button closes the column, so it should not stretch with align-items. */
/* Bis zu zwei Buttons: der Wrapper hält sie nebeneinander und bricht auf
   schmalen Spalten um. Die Ausrichtung sitzt jetzt am Wrapper — sonst würde
   bei zwei Buttons jeder für sich ausgerichtet. */
.os-about__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin-top: 8px;
}

.os-about__button {
    margin-top: 0;
    margin-bottom: 0;
}

.os-about__col.text-align-center .os-about__buttons { align-self: center; justify-content: center; }
.os-about__col.text-align-right .os-about__buttons { align-self: flex-end; justify-content: flex-end; }

/* ── Vertical Alignment ──────────────────────────────────────────────────── */
/* Nur im zweispaltigen Zeilenlayout: bei einer Spalte — und unterhalb von
   960px, wo .os-about__inner auf column umschaltet — würde align-items die
   BREITE der Spalten steuern und sie auf Inhaltsbreite schrumpfen lassen.
   Ohne Auswahl bleibt align-items:stretch, die Spalten sind dann gleich hoch. */
.os-about--cols-2.os-about--valign-top .os-about__inner    { align-items: flex-start; }
.os-about--cols-2.os-about--valign-middle .os-about__inner { align-items: center; }
.os-about--cols-2.os-about--valign-bottom .os-about__inner { align-items: flex-end; }

.os-about--cols-1 .os-about__inner {
    flex-direction: column;
    max-width: 1240px;
    margin: 0 auto;
}

/* ── Columns ─────────────────────────────────────────────────────────────── */
.os-about__col {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2vw;
}

.os-about__col.text-align-center { text-align: center; align-items: center; }
.os-about__col.text-align-right  { text-align: right;  align-items: flex-end; }

/* ─── Column entrance animations ─────────────────────────────────────────── */
.os-about__col--anim-from-left,
.os-about__col--anim-from-right,
.os-about__col--anim-from-top,
.os-about__col--anim-from-bottom,
.os-about__col--anim-fade-in {
    opacity: 0;
    transition:
        opacity  0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.os-about__col--anim-from-left   { transform: translateX(-64px); }
.os-about__col--anim-from-right  { transform: translateX(64px);  }
.os-about__col--anim-from-top    { transform: translateY(-64px); }
.os-about__col--anim-from-bottom { transform: translateY(64px);  }
.os-about__col--anim-fade-in     { transform: none; }

/* fade-out: visible → fades when scrolled past */
.os-about__col--anim-fade-out {
    opacity: 1;
    transition: opacity 0.6s ease;
}
.os-about__col--anim-fade-out.os-about__col--faded {
    opacity: 0;
}

/* triggered by JS IntersectionObserver */
.os-about__col--visible {
    opacity: 1   !important;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENT TYPES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Image: static ───────────────────────────────────────────────────────── */
.os-about__img {
    width: auto;
    margin: auto;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--os-radius);
}

/* ── Image: masonry ──────────────────────────────────────────────────────── */
.os-about__masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
}

.os-about__masonry-item:nth-child(even) {
    margin-top: 28px;
}

.os-about__masonry-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ── Image: gallery slider ───────────────────────────────────────────────── */
.os-about__gallery-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--os-radius);
}

.os-about__gallery-slider .swiper-slide {
    overflow: hidden;
    border-radius: var(--os-radius);
}

.os-about__gallery-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Navigation: position only — appearance comes from the central component */
.os-about__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.os-about__nav--prev { left: 12px; }
.os-about__nav--next { right: 12px; }

.os-about__gallery-pagination {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

/* ── Parallax column ─────────────────────────────────────────────────────── */
.os-about__col--type-parallax {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    padding: 0 !important;
}

.os-about__parallax-host {
    position: absolute;
    inset: 0;
}

.os-about__parallax-layer {
    position: absolute;
    inset: -30% 0;
    height: 160%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0, var(--os-about-py, 0px), 0);
    backface-visibility: hidden;
}

.os-about__parallax-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    pointer-events: none;
}

/* ── Text (WYSIWYG) ──────────────────────────────────────────────────────── */
.os-about__text {
    width: 100%;
}

.os-about__text ul,
.os-about__text ol {
    padding-inline-start: 22px;
}

/* ── Highlight Text ──────────────────────────────────────────────────────── */
/* Der feste gap ist raus: die Abstände kommen jetzt von den Elementen selbst,
   damit sich einzelne davon abweichend einstellen lassen. */
.os-about__highlight {
    display: flex;
    flex-direction: column;
}

/* 18px unter jedem Element der Spalte. Das letzte bekommt keinen — sonst
   entstünde unter dem Block ein Abstand, den niemand gesetzt hat. */
.os-about__highlight > * {
    margin-bottom: 18px;
}

.os-about__highlight > *:last-child {
    margin-bottom: 0;
}

.os-about__eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--main-color, #00d4aa);
}

.os-about__highlight-title {
    /* war margin:0 !important — der Abstand kommt jetzt von unten */
    margin: 0 0 18px !important;
    line-height: 1.15;
}

.os-about__highlight-title:last-child {
    margin-bottom: 0 !important;
}

.os-about__highlight-body {
    opacity: 0.8;
    line-height: 1.7;
}

/* ── Step by Step ────────────────────────────────────────────────────────── */
.os-about__steps-headline {
    margin-bottom: 32px;
}

.os-about__steps-headline > * {
    margin: 0;
}

.os-about__steps {
    display: flex;
    flex-direction: column;
}

.os-about__step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    /* initial hidden state – JS adds --visible */
    opacity: 0;
    transform: translateY(44px);
    transition:
        opacity   0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.os-about__step:first-child {
    padding-top: 0;
}

.os-about__step--visible {
    opacity: 1   !important;
    transform: none !important;
}

.os-about__step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:var(--main-color);
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: -0.02em;
}

.os-about__step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.os-about__step-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--main-color, #00d4aa);
}

.os-about__step-title {
    margin: 0 !important;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.os-about__step-desc {
    margin: 0;
    opacity: 0.72;
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ── Zitat / Quote ───────────────────────────────────────────────────────── */
.os-about__zitat {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.os-about__zitat-text span {
    font-size: 4rem !important;
    line-height: 6rem!important;
    font-weight: 600;
        margin: 0px 8px;
    width: 100%;
}

.os-about__zitat-text {
    width: 100%;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

.os-about__zitat-text > * {
    margin: 0;
}

.os-about__zitat-text > * + * {
    margin-top: 0.5em;
}

.os-about__zitat-author {
    margin: 22px 0;
    opacity: 0.88;
    color: var(--zitat-author-color, inherit);
}

/* shared word span – all scroll animations */
.os-about__zitat-word {
    display: inline;
    color: var(--zitat-color, inherit);
    transition: opacity 0.3s ease, filter 0.3s ease, color 0.4s ease;
}

/* split-rise: outer clip container */
.os-about__zitat-word-clip {
    display: inline-flex;
    overflow: hidden;
    vertical-align: bottom;
    line-height: inherit;
}

.os-about__zitat--anim-split-rise .os-about__zitat-word {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.os-about__zitat--anim-split-rise .os-about__zitat-word--risen {
    transform: translateY(0);
}

/* ── Accordions ──────────────────────────────────────────────────────────── */
.os-about__accordion-headline {
    margin: 0 0 28px !important;
}

.os-about__accordion-list {
    width: 100%;
}


.os-about__accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.os-about__accordion-btn:hover {
    color: var(--main-color, #00d4aa);
}

.os-about__accordion-icon {
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.os-about__accordion-item.active .os-about__accordion-icon {
    transform: rotate(45deg);
}

.os-about__accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
}

.os-about__accordion-content {
    padding-bottom: 18px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {

    .os-about__inner {
        flex-direction: column;
    }

    /* Gestapelt sollen die Spalten wieder die volle Breite nehmen; das
       Vertical Alignment gilt nur nebeneinander. */
    .os-about--cols-2[class*="os-about--valign-"] .os-about__inner {
        align-items: stretch;
    }

    .os-about--mobile-reverse .os-about__inner {
        flex-direction: column-reverse;
    }

    .os-about--pad-large  { padding: 60px 0; }
    .os-about--pad-medium { padding: 40px 0; }
    .os-about--pad-small  { padding: 24px 0; }

    .os-about__col--type-parallax {
        min-height: 300px;
    }

    .os-about__gallery-img {
        height: 260px;
    }

    .os-about__masonry-img {
        height: 160px;
    }

    .os-about__step-number {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    .os-about__step {
        gap: 16px;
        padding: 22px 0;
    }

    .os-about__zitat-text span {
        font-size: 3rem !important;
        line-height: 3.66rem!important;
        font-weight: 600;
        width: 100%;
    }
}
