/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Custom Properties ===== */
:root {
    --font-sans:  -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-tester-height: 48px;
    --color-text: #1a1a1a;
    --color-bg: #ffffff;
    --color-muted: #999;
    --color-border: #e5e5e5;
    --padding-x: 44px;
    --grid-gap: 80px;
    --limit-default: 1900px;
    --limit-narrow: 880px;
    --accent: #4c7c8f;
    --sidebar-width: 480px;
    --sidebar-ease: cubic-bezier(0.16, 0.84, 0.24, 1);
    --sidebar-duration: 520ms;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Anker-Ziele (z. B. Datenschutz #KI) nicht unter dem fixed Header landen lassen */
:target {
    scroll-margin-top: 110px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.has-font-tester .site-header {
    top: var(--font-tester-height);
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 3px;
}

a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

address {
    font-style: normal;
}

h2,
h3 {
    font-weight: 400;
}

h2, h3, p, .section ol, .section ul {
    margin-bottom: 24px;
}

h5,
blockquote strong {
    font-family: var(--font-sans);
    display: block;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1rem;
    font-weight: 200;
}

blockquote {
    border: none;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 6vw, 8rem);
}

.section blockquote p {
    text-align: center;
    font-family: var(--font-serif);
    color: var(--color-text);
}
.section p strong,
blockquote strong {
    font-weight: 600;
}

blockquote strong {
    margin-top: 2rem;
}

.section,
.project-intro {
    margin: 10rem auto;
    padding: 0 var(--padding-x);
}

.footer {
    padding: 0 var(--padding-x);
}

.project-intro {
    margin-top: 0;
}

.section h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section p {
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.section--mixed {
    display: grid;
    grid-template-columns: var(--mixed-columns, 1fr 1fr);
    align-items: var(--mixed-align-items, start);
}

.section--mixed .section-media,
.section--mixed .section-text {
    position: sticky;
    /* top is set dynamically via JS based on column height vs viewport */
}

.section--mixed .section-text {
    padding: 0 clamp(1rem, 6vw, 8rem);
}

.section.fullsize {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section > h2,
.section > h3,
.section > h4,
.section > h5,
.section > p,
.section > ul,
.section > ol {
    width: 50%;
}

.section ul.press-showcase {
    width: 100%;
}

section.press-list {
    margin-top: 0;
    padding-top: 0;
}

.c-2-3 .styled-section{
    grid-template-columns: 2fr 3fr;
}
.c-3-2 .styled-section{
    grid-template-columns: 3fr 2fr;
}
.c-1-2 .styled-section{
    grid-template-columns: 1fr 2fr;
}
.c-2-1 .styled-section{
    grid-template-columns: 2fr 1fr;
}


#project .section > h2,
#project .section > h3,
#project .section > h4,
#project .section > h5,
#project .section > p,
#project .section > ul,
#project .section > ol,
#ueberuns .section > h2,
#ueberuns .section > h3,
#ueberuns .section > h4,
#ueberuns .section > h5,
#ueberuns .section > p,
#ueberuns .section > ul,
#ueberuns .section > ol
{
    width: 50%;
    margin-left: 25%;
}




.section--news h3 {
    width: auto;
}

.section > ul {
    padding-left: 1.2em;
}

.section > ul.facts-list {
    padding-left: 0;
}

.section > ol ul {
    margin-top: 1em;
}

/* ===== Utilities ===== */
.w-10 .w-10 { width: 10%; }
.w-20 .w-20 { width: 20%; }
.w-25 .w-25 { width: 25%; }
.w-30 .w-30 { width: 30%; }
.w-33 .w-33 { width: 33%; }
.w-40 .w-40 { width: 40%; }
.w-50 .w-50 { width: 50%; }
.w-60 .w-60 { width: 60%; }
.w-66 .w-66 { width: 66%; }
.w-70 .w-70 { width: 70%; }
.w-75 .w-75 { width: 75%; }
.w-80 .w-80 { width: 80%; }
.w-90 .w-90 { width: 90%; }

.max-default { max-width: var(--limit-default); }
.max-narrow { max-width: var(--limit-narrow) !important; }
.max-10  { max-width: 10%; }
.max-20  { max-width: 20%; }
.max-25  { max-width: 25%; }
.max-30  { max-width: 30%; }
.max-33  { max-width: 33%; }
.max-40  { max-width: 40%; }
.max-50  { max-width: 50%; }
.max-60  { max-width: 60%; }
.max-66 { max-width: 66%; }
.max-70  { max-width: 70%; }
.max-75  { max-width: 75%; }
.max-80  { max-width: 80%; }
.max-90  { max-width: 90%; }


.right {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}
.left {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}
.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}
.top {
    margin-top: 0;
}
.bottom {
    margin-top: auto;
    margin-bottom: 0;
}
.text-middle .single-image {
    align-items: center;
}
.text-bottom .single-image {
    align-items: end;
}
.text-top .single-image {
    align-items: start;
}

/* ===== Font Tester ===== */
.font-tester {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #111;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0;
}

.font-tester__inner {
    min-height: var(--font-tester-height);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px var(--padding-x);
}

.font-tester__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.font-tester__field {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.font-tester__field span {
    color: rgba(255, 255, 255, 0.72);
}

.font-tester__select,
.font-tester__reset {
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
}

.font-tester__select {
    min-width: 132px;
    padding: 3px 30px 3px 8px;
}

.font-tester__select option {
    color: #111;
}

.font-tester__reset {
    margin-left: auto;
    padding: 3px 12px;
    cursor: pointer;
}

.font-tester__reset:hover,
.font-tester__select:hover {
    border-color: rgba(255, 255, 255, 0.55);
}


/* ===== Header ===== */
.site-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 300ms ease;
    will-change: transform;
    border-bottom: solid 1px rgba(0, 0, 0, 0.08);
}
.site-header.is-hidden {
    transform: translateY(-100%);
}

.site-header .header-inner,
.site-header .sub-nav,
.filter-nav {
    padding: 1rem var(--padding-x);

}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    width: 140px;
    height: auto;
    border-radius: 0;
}

.main-nav, .sub-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}
.sub-nav,
.filter-nav {
    justify-content: flex-end;
    border-top: solid 1px rgba(0, 0, 0, 0.08);
}
.main-nav a,
.sub-nav a {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
    transition: color 0.4s, opacity 0.3s;
}

.main-nav a:hover,
.sub-nav a:hover {
    opacity: 0.65;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #2a2a2a;
}

.hero-image,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 var(--padding-x);
    isolation: isolate;
}
.hero--alt {
    color: var(--color-text);
}

.hero-content--alt-contrast::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: min(78rem, calc(100vw - (var(--padding-x) * 1.5)));
    height: clamp(14rem, 30vw, 26rem);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 999px;
    filter: blur(24px);
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 248, 238, 0.26) 0%,
            rgba(255, 248, 238, 0.14) 34%,
            rgba(255, 248, 238, 0.06) 56%,
            rgba(255, 248, 238, 0) 100%
        );
}

.hero-content--default-contrast::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: min(100vw, 120rem);
    height: clamp(16rem, 34vw, 28rem);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 999px;
    filter: blur(28px);
    background:
        linear-gradient(
            180deg,
            rgba(20, 18, 17, 0) 0%,
            rgba(20, 18, 17, 0.04) 18%,
            rgba(20, 18, 17, 0.12) 40%,
            rgba(20, 18, 17, 0.16) 50%,
            rgba(20, 18, 17, 0.12) 60%,
            rgba(20, 18, 17, 0.04) 82%,
            rgba(20, 18, 17, 0) 100%
        );
}

.hero-content--default-contrast .hero-title,
.hero-content--default-contrast .hero-subtitle {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.32),
        0 0 14px rgba(0, 0, 0, 0.42);
}

.hero-content--alt-contrast .hero-title,
.hero-content--alt-contrast .hero-subtitle {
    text-shadow:
        0 1px 2px rgba(255, 248, 238, 0.55),
        0 0 14px rgba(255, 248, 238, 0.22);
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
    animation: gentle-bounce 2.5s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Project Info ===== */
.project-info {
    padding: 2em 0 0;
}

.project-info__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 var(--padding-x);
    max-width: var(--limit-default);
    margin: 0 auto;
    align-items: start;
}

/* Override the legacy absolute positioning inside the two-column layout */
.project-info__columns .project-meta {
    position: static;
}

.project-info__right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.project-icon {
    /* 100px bis 600px Viewport, 180px ab 1200px, dazwischen linear skaliert */
    max-height: clamp(100px, calc(20px + 13.333vw), 180px);
    width: auto;
    display: block;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 180px;
    flex-shrink: 0;
    position: absolute;
    left: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: row;
}

.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted);
    font-weight: 400;
}

.meta-value {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ===== Facts ===== */
.facts-list {
    margin-top: 8px;
}

.facts-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 24px;
}

.facts-list li:first-child {
    border-top: 1px solid var(--color-border);
}

.fact-label {
    min-width: 180px;
    font-weight: 500;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.fact-value {
    font-weight: 300;
}

.entry-badge {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    margin-left: auto;
    flex-shrink: 0;
    font-weight: 400;
}


.project-list-table {
    width: 100%;
    /* Feste Spaltenbreiten, damit mehrere Tabellen untereinander im Raster stehen */
    table-layout: fixed;
    margin-bottom: 5rem;
}
.project-list-table th:first-child {
    width: 8rem;
}
.project-list-table th:last-child {
    width: 50%;
}
.project-list-table th {
    text-align: left;
}
.project-list-table td,
.project-list-table th{
    padding: 1rem 1rem 1rem 0;
}
.project-list-table tr {
    box-shadow: inset 0 -1px 0 var(--color-border);
}

@media (max-width: 767px) {
    .project-list-table,
    .project-list-table tbody {
        display: block;
        width: 100%;
    }

    .project-list-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .project-list-table tbody tr {
        display: grid;
        grid-template-columns: 3.5rem minmax(0, 1fr);
        column-gap: 1rem;
        row-gap: 0.25rem;
        width: 100%;
        padding: 1rem 0;
    }

    .project-list-table td {
        min-width: 0;
        padding: 0;
    }

    .project-list-table .project-year {
        grid-column: 1;
        grid-row: 1 / span 2;
        color: var(--color-muted);
        font-size: 0.8rem;
        font-variant-numeric: tabular-nums;
    }

    .project-list-table .project-name,
    .project-list-table .project-owner {
        grid-column: 2;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .project-list-table .project-owner {
        color: var(--color-muted);
        font-size: 0.8rem;
        font-weight: 300;
    }

    .project-list-table .project-owner:empty {
        display: none;
    }
}

/* ===== Footer ===== */
footer {
    padding-top: 2em;
    padding-bottom: 10em;
}

.footer {
    border-top: solid 1px;
    padding-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: start;
}

.footer-links {
    justify-content: end;
    align-items: center;
    display: flex;
    gap: 32px;
}

.footer-links a {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.55;
}

/* ===== News ===== */
.news {
    display: flex;
    align-items: stretch;
    gap: 2rem;
}

.lp-slider.news-slider {
    --slider-gap: 2rem;
    --news-slide-width: calc(33.333333% - 1.333333rem);
}

.news-slider .lp-slider__track.news {
    gap: var(--slider-gap);
}

.news-slider .news__item {
    flex: 0 0 var(--news-slide-width);
    min-width: 0;
}

.news__item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
}

.news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news__content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.news__headline {
    margin-bottom: 1rem;
}

.news__text {
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.news__link {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: auto;
}

@media (max-width: 767px) {
    .lp-slider.news-slider {
        --news-slide-width: 100%;
    }
}

/* ===== Scroll Animations ===== */
.will-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--delay, 0ms);
}

.will-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.will-fade-in-children > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.will-fade-in-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.will-fade-in-children.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.will-fade-in-children.is-visible > *:nth-child(2) { transition-delay: 150ms; }
.will-fade-in-children.is-visible > *:nth-child(3) { transition-delay: 300ms; }
.will-fade-in-children.is-visible > *:nth-child(4) { transition-delay: 450ms; }
.will-fade-in-children.is-visible > *:nth-child(5) { transition-delay: 600ms; }
.will-fade-in-children.is-visible > *:nth-child(6) { transition-delay: 750ms; }

/* ===== Responsive ===== */
@media (max-width: 767px) {
    :root {
        --padding-x: 24px;
        --font-tester-height: 88px;
    }

    .font-tester__inner {
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: flex-start;
    }

    .font-tester__title {
        width: 100%;
    }

    .font-tester__field {
        flex: 1 1 150px;
    }

    .font-tester__select {
        width: 100%;
        min-width: 0;
    }

    .font-tester__reset {
        margin-left: 0;
    }

    .site-header .header-inner {
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }
    .site-header .header-inner, .site-header .sub-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-nav, .site-header .sub-nav {
        justify-content: flex-end;
        width: auto;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a,
    .nav-dropdown__trigger {
        letter-spacing: 0.05em;
    }

    .logo {
        overflow: hidden;
        width: 36px;
    }

    .hero {
        min-height: 500px;
    }

    .project-info {
        flex-direction: column;
        gap: 40px;
        padding-top: 60px;
    }

    .facts-list li {
        flex-direction: column;
        gap: 4px;
    }

    .fact-label {
        min-width: auto;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer > p {
        width: 100%;
        margin-bottom: 0;
        padding-bottom: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        border-top: 1px solid var(--color-border);
    }

    .footer-links a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
    }
}


/* ===== Gallery ===== */
div[class^="gallery"] {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 5rem;
}

div[class^="gallery"] img,
div[class^="gallery"] video {
    display: block;
    width: 100%;
}

.media-frame {
    display: block;
    overflow: hidden;
    border-radius: 3px;
}

.media-frame img {
    transition: transform 5000ms cubic-bezier(0.33, 0, 0.2, 1);
    will-change: transform;
}

.media-frame:hover img,
.media-frame:focus-visible img {
    transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
    .media-frame img {
        transition: none;
    }

    .media-frame:hover img,
    .media-frame:focus-visible img {
        transform: none;
    }
}

div[class^="gallery"].icon {
    justify-content: center;
}

div[class^="gallery"].icon img {
    display: inline-block;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
}

/* ===== Flipbook ===== */
.section--flipbook {
    align-items: start;
}

.section--flipbook .section-text,
.section--flipbook .section-media {
    align-self: start;
}

.flipbook {
    width: 100%;
}

.flipbook__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-background, #fff);
}

.flipbook__frame {
    margin: 0;
    opacity: 0;
}

.flipbook__frame.is-active,
.flipbook__frame:first-child {
    opacity: 1;
}

.flipbook__frame:first-child {
    position: relative;
}

.flipbook__frame:not(:first-child) {
    position: absolute;
    inset: 0;
}

.flipbook__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flipbook__frame:first-child img {
    height: auto;
}

@media (max-width: 767px) {
    .section--flipbook {
        min-height: 0 !important;
    }

    .section--flipbook .section-text,
    .section--flipbook .section-media {
        position: static;
    }

    .flipbook__stage {
        display: grid;
        gap: 1.5rem;
        overflow: visible;
    }

    .flipbook__frame,
    .flipbook__frame:not(:first-child) {
        position: relative;
        inset: auto;
        opacity: 1;
    }

    .flipbook__frame img {
        height: auto;
        object-fit: contain;
    }
}


.sub-nav .mixitup-controls {
    flex-direction: row-reverse;
}
/* ─── Layout 1: 2 cols, 3rd spans full, 1st nudged down ─── */
.gallery-1 .gallery-1 {
    grid-template-columns: 1fr 1fr;
}

.gallery-1 .gallery-1 div:nth-child(3) {
    grid-column: 1 / -1;
    margin: 0 4rem;
}

.gallery-1 .gallery-1 div:nth-child(1) {
    margin-bottom: 3rem;
}

.gallery-1 .gallery-1 div:nth-child(2) {
    margin-top: 4rem;
}


/* ─── Layout 2 ───────────────────────────────────────────────
   2 cols | 3rd spans full | 2nd image nudged down           */
.gallery-2 .gallery-2 {
  grid-template-columns: 1fr 1fr;
}
.gallery-2 .gallery-2 div:nth-child(3) {
  grid-column: 1 / -1;
  margin: 0 4rem;
}
.gallery-2 .gallery-2 div:nth-child(1) {
  margin-top: 5rem;
}

/* ─── Layout 3 ───────────────────────────────────────────────
   1st image full width | 2 cols below                       */
.gallery-3 .gallery-3 {
  grid-template-columns: 1fr 1fr;
}
.gallery-3 .gallery-3 div:nth-child(1) {
  grid-column: 1 / -1;
}

/* ─── Layout 4 ───────────────────────────────────────────────
   Like layout 1, but 3rd image bleeds out to 800px          */
.gallery-4 .gallery-4 {
  grid-template-columns: 1fr 1fr;
  overflow: visible; /* allow bleed */
}
.gallery-4 .gallery-4 div:nth-child(1) {
  margin-top: 3rem;
}
.gallery-4 .gallery-4 div:nth-child(3) {
  grid-column: 1 / -1;
  /* expand 100px on each side: (800 - 600) / 2 */
  margin-inline: -200px;
}

.gallery-grid .gallery-grid {

    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: space-around;
}




.section-title {
    font-weight: 600;
    text-align: left;
    border-bottom: solid 1px;
    margin-bottom: 2em;
}

/* ===== Promo: In Zahlen (Startseite) ===== */
.promo-zahlen {
    max-width: 820px;
}

.section--promo-zahlen h3 {
    width: auto;
    max-width: 820px;
}

.section .promo-zahlen__row {
    display: flex;
    align-items: baseline;
    gap: 1.75rem;
    margin-bottom: 0;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--color-border);
}

.promo-zahlen__num {
    position: relative;
    flex: 0 0 auto;
    min-width: 2.6ch;
    text-align: right;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.promo-zahlen__plus {
    position: absolute;
    left: 100%;
    top: -0.05em;
    margin-left: 0.06em;
    font-size: 0.45em;
    color: var(--accent);
}

.promo-zahlen__label {
    font-weight: 300;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    letter-spacing: -0.01em;
}

.section .promo-zahlen__note {
    margin: 2rem 0 0;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .section .promo-zahlen__row {
        gap: 1.25rem;
        padding: 1rem 0;
    }
}

/* ─── Layout 5: all items in one row ─── */
.gallery-5 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery.fullsize {
    max-width: 100%;
    margin: 0;
}

/* ===== Styled Section (Image–Text–Image) ===== */
.styled-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: start;
}

.styled-section > .subsection-odd,
.styled-section > .subsection-even {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    min-width: 0;
}

.subsection-even {
    margin-top: 4em;
}


.section div.subsection-caption {
    margin-top: .5em !important;
}

.single-image .subsection-even {
    margin-top: 0;
}

/* Image ordering inside columns */
.styled-section :is(.subsection-odd,.subsection-even) > :nth-child(1 of .subsection-image) { order: 10; }
.styled-section :is(.subsection-odd,.subsection-even) > :nth-child(2 of .subsection-image) { order: 20; }
.styled-section :is(.subsection-odd,.subsection-even) > :nth-child(3 of .subsection-image) { order: 30; }
.styled-section :is(.subsection-odd,.subsection-even) > :nth-child(4 of .subsection-image) { order: 40; }
.styled-section :is(.subsection-odd,.subsection-even) > :nth-child(5 of .subsection-image) { order: 50; }
.styled-section :is(.subsection-odd,.subsection-even) > :nth-child(6 of .subsection-image) { order: 60; }

/* Text position modifiers */
.styled-section .subsection-text           { order: 5;  }
.order-1 .styled-section .subsection-text  { order: 5;  }
.order-2 .styled-section .subsection-text  { order: 15; }
.order-3 .styled-section .subsection-text  { order: 25; }
.order-4 .styled-section .subsection-text  { order: 35; }
.order-6 .styled-section .subsection-text  { order: 45; }

.subsection-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.subsection-caption {
    margin-top: 12px;
}

.subsection-caption h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-bottom: 2px;
}

.subsection-caption h3.xl {
    font-size: clamp(1.5rem, 1.6vw, 1.6rem);
}

.subsection-caption h3.m {
    font-size: clamp(.95rem, 1.2vw, 1.2rem);
}

.subsection-caption h3.s {
    font-size: clamp(.65rem, .8vw, .8rem);
}

.subsection-caption .arrow-prefix.xl {
    font-size: clamp(1.15rem, 1.3vw, 1.3rem);
}

.subsection-caption .arrow-prefix.m {
    font-size: clamp(.8rem, .95vw, .9rem);
}

.subsection-caption .arrow-prefix.s {
    font-size: clamp(.65rem, .8vw, .8rem);
}

.subsection-caption p {
    font-weight: 300;
    color: #666;
}
#project .subsection-text {
    text-align: right;
}
.subsection-text p {
    font-weight: 300;
    letter-spacing: -0.01em;
}

.arrow-prefix::before,
.subsection-text p:first-child::before {
    content: '→  ';
}

/* ── KI-Kennzeichnung ─────────────────────────────────────────────────────── */
.ki-note {
    margin: 4px 0;
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--color-muted);
}

.ki-note a {
    color: inherit;
    text-decoration: none;
}

.ki-note a:hover {
    color: var(--color-text);
}

.ki-note svg {
    width: 11px;
    height: 11px;
    vertical-align: -1px;
    margin-right: 2px;
}

.ki-note--hero {
    position: absolute;
    right: 16px;
    bottom: 12px;
    z-index: 2;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    background-color: rgba(0, 0, 0, 0.45);
    padding: 3px 5px;
    border-radius: 3px;
}

.ki-note--hero a:hover {
    color: #fff;
}

/* ── Projects Page ────────────────────────────────────────────────────────── */
.projects-list {
    padding: 8rem 0;
    margin: 0 auto;
}

/* ── Filter Nav ──────────────────────────────────────────────────────────── */
.filter-nav {
    text-align: center;
}

.filter-nav ul {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-nav li {
    padding: 0 1.25rem;
    cursor: pointer;
}

.filter-nav li:last-child {
    padding-right: 0;
}

.filter-nav li a {
    transition: opacity 0.3s;
}

.filter-nav li.is-active,
.filter-nav li.is-active a,
a.is-active {
    font-weight: 700;
}

.site-header .sub-nav.scroll-nav {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) 1.75rem;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    overflow: hidden;
}

.scroll-nav__viewport {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.scroll-nav__viewport::-webkit-scrollbar {
    display: none;
}

.scroll-nav__viewport > a,
.scroll-nav__viewport > ul > li {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.filter-nav .scroll-nav__viewport > ul {
    flex: 0 0 max-content;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
}

.scroll-nav__control {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.scroll-nav__control svg {
    width: 1.125rem;
    height: 1.125rem;
}

.scroll-nav__control--prev svg {
    transform: scaleX(-1);
}

.scroll-nav__control--prev {
    justify-content: start;
}

.scroll-nav__control--next {
    justify-content: end;
}

.scroll-nav__control:disabled {
    opacity: 0.2;
    cursor: default;
}

.site-header .sub-nav.scroll-nav:not(.is-scrollable) {
    grid-template-columns: minmax(0, 1fr);
}

.scroll-nav:not(.is-scrollable) .scroll-nav__viewport,
.filter-nav.scroll-nav:not(.is-scrollable) .scroll-nav__viewport > ul {
    justify-content: flex-end;
    text-align: right;
}

.scroll-nav:not(.is-scrollable) .scroll-nav__control {
    display: none;
}

.scroll-nav__control:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-nav__viewport {
        scroll-behavior: auto;
    }
}

/* ── Showcase Grid (Isotope masonry) ─────────────────────────────────────── */
.showcase,
.press-showcase {
    list-style: none;
    margin: 0;
    padding: 0;
}


.grid-item {
    margin-bottom: 50px;
    width: 50%;
    line-height: 0;
    padding: 0 50px;
}


.showcase-title {
    margin: 1.3rem 0;
    line-height: 1.4rem;
}

@media (min-width: 1600px) {
    .grid-item {
        margin-bottom: 100px;
        width: 33.33333%;
    }
}

.press-showcase__item {
    width: 50%;
    margin-bottom: 50px;
    line-height: 1.4;
    padding: 0 50px;
}

.press-showcase__figure {
    margin: 0 0 1rem;
}

.press-showcase__figure img {
    width: 100%;
    height: auto;
    object-fit: initial;
}

.press-showcase__title {
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0 0 0.25rem;
}

.press-showcase__publication {
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    font-size: 0.68rem;
}

@media (min-width: 1600px) {
    .press-showcase__item {
        width: 33.33333%;
    }
}

@media (max-width: 767px) {
    .press-showcase__item,
    .grid-item {
        width: 100%;
    }
}

a[role=button] {
    border: solid 1px;
    padding: 5px 10px;
    margin-right: 20px;
    background-color: #ABC0C9;
}
a[role=link] {
    border-bottom: solid 1px;
    padding: 5px 10px;
}

.special h2 em {
    color: #ABC0C9;
}

/* ── Nav Dropdown ─────────────────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-sans);
    font-weight: 400;
    padding: 0;
    transition: color 0.4s, opacity 0.3s;
}

.nav-dropdown__trigger:hover {
    opacity: 0.65;
}


.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 200;
}

.nav-dropdown.is-open .nav-dropdown__menu {
    display: block;
}

.nav-dropdown__menu a {
    display: block;
    padding: 9px 20px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #1a1816;
    white-space: nowrap;
    transition: background 0.15s;
}

.nav-dropdown__menu a:hover {
    background: #f5f2ef;
    opacity: 1;
}

/* ===== Facts Band ===== */
.facts-band {
    display: flex;
    width: 100%;
    margin-top: 1rem;
}

.facts-band__item {
    padding: 1rem 1.25rem;
}

.facts-band__item:first-child {
    padding-left: var(--padding-x);
}

.facts-band__item:last-child {
    border-right: none;
    padding-right: var(--padding-x);
}

.facts-band__key {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.4rem;
}

.facts-band__value {
    display: block;
    font-size: 0.85rem;
}

.alt .facts-band {
    display: block;
}

.alt .facts-band__item {
    display: grid;
    grid-template-columns: minmax(8rem, auto) 1fr;
    text-align: left;
    gap: 1rem;
    align-items: start;
    padding: .25rem 3rem;
}

.alt .facts-band__key {
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .facts-band {
        flex-direction: column;
        padding-inline: var(--padding-x);
    }

    .facts-band__item,
    .alt .facts-band__item {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: baseline;
        gap: 1rem;
        width: 100%;
        padding: .5rem 0;
    }

    .facts-band__item:first-child,
    .facts-band__item:last-child,
    .alt .facts-band__item:first-child,
    .alt .facts-band__item:last-child {
        padding-inline: 0;
    }

    .facts-band__key,
    .alt .facts-band__key {
        margin-bottom: 0;
        text-align: left;
    }
}

/* ── Sidebar Overlay ─────────────────────────────────────────────────────── */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
}

.sidebar-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
}

.sidebar-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity var(--sidebar-duration) var(--sidebar-ease);
}

.sidebar-overlay.is-open .sidebar-overlay__backdrop {
    opacity: 1;
}

.sidebar-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--sidebar-width);
    max-width: 100vw;
    background: #fdfcfa;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--sidebar-duration) var(--sidebar-ease);
    box-shadow: -1px 0 0 rgba(0, 0, 0, 0.06), -40px 0 80px -20px rgba(0, 0, 0, 0.18);
    outline: none;
}

.sidebar-overlay.is-open .sidebar-panel {
    transform: translateX(0);
}

.sidebar-panel__header {
    position: relative;
    padding: 2.25rem 2.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.sidebar-panel__eyebrow {
    display: block;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.65rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.sidebar-panel__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    padding-right: 3rem;
}

.sidebar-panel__close {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.35s ease, color 0.35s ease, transform 0.35s var(--sidebar-ease);
}

.sidebar-panel__close:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
}

.sidebar-panel__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 2rem 2.25rem 2.5rem;
    font-weight: 300;
    line-height: 1.65;
    -webkit-overflow-scrolling: touch;
}

.sidebar-panel__body::-webkit-scrollbar {
    width: 4px;
}
.sidebar-panel__body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

.sidebar__placeholder {
    color: var(--color-muted);
    font-style: italic;
}

/* Body scroll lock when sidebar is open */
body.is-sidebar-open {
    overflow: hidden;
}

/* ── Mobile: bottom sheet ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .sidebar-panel {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: 90vh;
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 -24px 60px -10px rgba(0, 0, 0, 0.22);
    }

    .sidebar-overlay.is-open .sidebar-panel {
        transform: translateY(0);
    }

    .sidebar-panel__header {
        padding: 1.75rem 1.75rem 1.25rem;
    }

    .sidebar-panel__header::before {
        content: '';
        position: absolute;
        top: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 4px;
        border-radius: 2px;
        background: rgba(0, 0, 0, 0.15);
    }

    .sidebar-panel__close {
        top: 1.5rem;
        right: 1.25rem;
    }

    .sidebar-panel__body {
        padding: 1.5rem 1.75rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-overlay__backdrop,
    .sidebar-panel,
    .sidebar-panel__close {
        transition-duration: 0.01ms;
    }
}

/* ── Team Grid ────────────────────────────────────────────────────────────── */
.team-intro {
    margin-bottom: 4rem;
}

.team-section + .team-section {
    margin-top: 4rem;
}

.team-section__headline {
    font-family: var(--font-serif);
    font-weight: 400;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem clamp(1rem, 6vw, 8rem);;
}

.team-item {
    display: flex;
    flex-direction: column;
}

.team-portrait {
    margin: 0 0 1rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.team-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0 0 0.25rem;
}

.team-position {
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    font-size: 0.68rem;
}

.team-more {
    display: inline-block;
    background: none;
    border: 1px solid var(--color-muted, #999);
    color: inherit;
    font-family: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4em 1.1em;
    cursor: pointer;
    transition: border-color 300ms, color 300ms;
}
.team-more:hover {
    border-color: currentColor;
    color: var(--color-accent, #4c7c8f);
}

.team-about {
    font-weight: 300;
    line-height: 1.55;
}

/* ── Sidebar: Partner detail ─────────────────────────────────────────────── */
.sidebar-partner__portrait {
    margin: 0 0 1.5rem;
}
.sidebar-partner__portrait img {
    width: 100%;
    height: auto;
    display: block;
}
.sidebar-partner__position {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--color-muted, #999);
    margin: 0 0 1.5rem;
}
.sidebar-partner__about {
    font-weight: 300;
    line-height: 1.65;
    margin: 0 0 2rem;
}
.sidebar-partner__contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}
.sidebar-partner__link {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-size: 0.85rem;
    color: inherit;
    text-decoration: none;
    transition: color 300ms;
}
.sidebar-partner__link:hover {
    color: var(--color-accent, #4c7c8f);
}


@media (max-width: 767px) {
    .section--mixed {
        grid-template-columns: var(--mixed-mobile-columns, 1fr);
        align-items: var(--mixed-mobile-align-items, stretch);
        gap: var(--mixed-mobile-gap, 2rem);
    }

    .section--mixed .section-media,
    .section--mixed .section-text {
        position: static;
    }

    /* mobile-order: text-first | media-first (KirbyTag-Parameter am Media-Snippet) */
    .section--mixed.mobile-text-first .section-text,
    .section--mixed.mobile-media-first .section-media {
        order: -1;
    }

    .section--mixed > .section-text:first-child,
    .section--mixed > .section-text:last-child,
    .section--mixed .section-text {
        padding-right: 0;
        padding-left: 0;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    blockquote{
        padding: 0;
    }
    .section, .project-intro {
        margin: 3rem auto;
    }

    body > .site-header ~ section:first-of-type {
        margin-top: 10rem;
    }

     body > .site-header ~ section.projects-list {
        margin-top: 3rem;
    }

    body > section#hero {
        margin-top: 0;
    }

    #project .section > h2, #project .section > h3, #project .section > h4, #project .section > h5, #project .section > p, #project .section > ul, #project .section > ol,
    .section > h2, .section > h3, .section > h4, .section > h5, .section > p, .section > ul, .section > ol,
    #ueberuns .section > h2,
#ueberuns .section > h3,
#ueberuns .section > h4,
#ueberuns .section > h5,
#ueberuns .section > p,
#ueberuns .section > ul,
#ueberuns .section > ol {
        width: 100%;
        margin-left: 0;
    }
    .w-10 .w-10,
    .w-20 .w-20,
    .w-30 .w-30,
    .w-40 .w-40,
    .w-50 .w-50,
    .w-60 .w-60,
    .w-70 .w-70,
    .w-80 .w-80,
    .w-90 .w-90,
    .w-25 .w-25, 
    .w-33 .w-33 ,
    .w-66 .w-66,
    .w-75 .w-75 {
        width: 100%;
    }

    div[class^="gallery"] {
        gap: 1.5rem;
    }

    /* Bilder samt Captions untereinander statt zu klein nebeneinander */
    .gallery-1 .gallery-1,
    .gallery-2 .gallery-2,
    .gallery-3 .gallery-3,
    .gallery-4 .gallery-4,
    .gallery-grid .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Versätze, Spans und Bleed der Layout-Varianten im 1-spaltigen
       Stack neutralisieren (:nth-child(n) matcht alle Kinder und zieht
       specificity-gleich an den nth-child-Regeln der Varianten vorbei) */
    .gallery-1 .gallery-1 div:nth-child(n),
    .gallery-2 .gallery-2 div:nth-child(n),
    .gallery-3 .gallery-3 div:nth-child(n),
    .gallery-4 .gallery-4 div:nth-child(n) {
        grid-column: auto;
        margin: 0;
    }

    .grid-item {
        padding: 0 16px;
    }


}


/* ===================================================================
   Slider Component
   Apple-style horizontal card carousel — flush-left, overflow-right,
   prev/next navigation, swipe support.
   =================================================================== */

.lp-slider {
    --slider-height: 480px;
    --slider-gap: 16px;
    --slider-radius: 10px;
    --slider-controls-width: 130px;
    --slider-control-icon-size: 104px;
    width: 100%;
    display: grid;
    grid-template-columns: var(--slider-controls-width) 1fr;
    overflow: hidden;
}

/* ── Controls column ────────────────────────────────────────────── */

.lp-slider__controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 62px;
}

.lp-slider__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-slider__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: currentColor;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.lp-slider__btn:disabled {
    opacity: 0.22;
    cursor: default;
}

.lp-slider__btn svg {
    display: block;
    width: var(--slider-control-icon-size);
    height: var(--slider-control-icon-size);
}

/* Back button: hidden by default, visible on controls hover */
.lp-slider__controls .lp-slider__prev {
    opacity: 0;
    pointer-events: none;
}

.lp-slider__prev svg {
    transform: scaleX(-1);
}

.lp-slider__controls:hover .lp-slider__prev {
    opacity: 1;
    pointer-events: auto;
}

.lp-slider__controls:focus-within .lp-slider__prev,
.lp-slider__prev:focus,
.lp-slider__prev:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.lp-slider__controls:hover .lp-slider__prev:disabled {
    opacity: 0.22;
    pointer-events: none;
}

.lp-slider__counter {
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    color: var(--project-muted);
    user-select: none;
}

/* ── Viewport + Track ───────────────────────────────────────────── */

.lp-slider__viewport {
    overflow: hidden;
    container-type: inline-size;
}

.lp-slider__track {
    display: flex;
    gap: var(--slider-gap);
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 4px;
}

/* ── Individual slides ──────────────────────────────────────────── */

.lp-slider__slide {
    flex: 0 0 calc(var(--slider-height) * var(--slide-ratio, 1));
    max-width: calc(95vw - var(--slider-controls-width)); /* Fallback ohne CQ-Support */
    max-width: 100cqw;
    overflow: hidden;
}

.lp-slider__thumb {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--slide-ratio, 1);
    max-height: var(--slider-height);
    overflow: hidden;
    background: var(--color-border);
}

.lp-slider__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.lp-slider__slide:hover .lp-slider__thumb img {
    transform: scale(1.03);
}

.lp-slider__caption {
    padding: 12px 4px 0;
}

.lp-slider__caption-text {
    font-family: var(--font-serif);
    font-weight: 300;
    color: var(--color-text);
    margin: 0 0 4px;
}

.lp-slider__caption-link {
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    color: var(--project-muted);
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .lp-slider {
        --slider-height: 260px;
        --slider-gap: 12px;
        --slider-controls-width: 65px;
        --slider-control-icon-size: 52px;
    }
}

.section--slider.fullsize {
  padding-left: 5%;
}


.section ul {
    list-style: none;
    padding-left: 0;
}
.section ul li {
    position: relative;
    padding-left: 1.6em;
}
.section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;              /* vertikal auf erste Textzeile ausrichten */
    width: 1em;              /* Länge des Strichs */
    height: 1px;             /* Stärke des Strichs */
    background: currentColor;
}