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

:root {
    --lamella-collapsed-height: clamp(84px, 10vh, 108px);
    /* Anzahl Lamellen (index.php); Zeilenhöhe skaliert mit Viewport */
    --lamella-count: 7;
    --lamella-row-height: clamp(84px, 10vh, 108px);
    --lamella-font-size: clamp(56px, 6.8vh, 72px);
    --footer-height: 68px;
    --footer-font-size: clamp(32px, 4vh, 44px);
    --content-pad-top: 4.5rem;
    --close-btn-size: 2.5rem;
    --content-text-size: clamp(2.75rem, 3.6vw, 4rem);
    --content-text-lh: 1.15;
    --legal-text-size: 2rem;
    --legal-text-lh: 1.2;
    --content-h1-size: 4rem;
    --content-h1-lh: 1.6;
    --content-line-box: calc(var(--content-text-size) * var(--content-text-lh));
    --content-h1-line-box: calc(var(--content-h1-size) * var(--content-h1-lh));
    --reset-height: 25px;
    --logo-top-offset: calc(var(--reset-height) * 4);
    --yellow-overlay-solid: #09F809;
    --yellow-overlay-bg: rgba(9, 248, 9, 0.8);
    --overlay-page-tint: rgba(9, 248, 9, 0.82);
    /* Content: erste Menü-Lamelle bis vor die aktive Zeile */
    --text-viewport-top: calc(100vh - var(--footer-height) - (var(--lamella-count) * var(--lamella-row-height)));
    --viewport-edge-bottom: calc(var(--footer-height) + var(--lamella-row-height));
    --text-viewport-bottom: var(--viewport-edge-bottom);
    --lamella-active-bg: #02F705;
    /*
     * Stacking (niedrig → hoch):
     * Slider 10 → Gelb 20 → Navi 30 → Logo 40 → Navi+Detail 45 → Content 56 → Legal 58 → Close 60
     * Mit Content offen bleibt Navi bei 30, Content liegt darüber.
     */
    --z-slider: 10;
    --z-yellow: 20;
    --z-nav: 30;
    --z-logo: 65;
    --z-nav-raised: 45;
    --z-content: 56;
    --z-legal: 58;
    --z-close: 60;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #09F809;
    color: #111;
    overflow: hidden;
}

body.no-scroll {
    overflow: hidden;
}

body.can-scroll {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Lamellen-Container */
.lamella-items {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--footer-height));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    transition: height 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/*
 * Freiraum oben (Logo/Slider sichtbar), kein eigener Streifen.
 * Optional Hintergrund per index.php style auf .lamella-intro.
 */
.lamella-intro {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    pointer-events: none !important;
}

/* Leere Lamelle zwischen Intro und erstem Menüpunkt, gleiche Höhe wie die Zeilen */
.lamella-spacer {
    position: relative;
    flex: 0 0 var(--lamella-row-height);
    min-height: var(--lamella-row-height);
    width: 100%;
    pointer-events: none;
}

.lamella-spacer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50vh;
    width: 200vw;
    background: var(--lamella-bg, #1EFF24);
    z-index: 0;
    pointer-events: none;
}

.has-open-lamella .lamella-items.ready {
    /*height: var(--lamella-collapsed-height);*/
}

.has-open-lamella .lamella-items.ready:hover {
    /*height: 15vh;*/
}

body.has-open-lamella .lamella-item:not(.is-expanded)::after,
body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:not(:last-child)::after {
    background: transparent !important;
}

body.has-open-lamella .lamella-item,
body.has-page-overlay:not(.has-open-content) .lamella-item {
    background: transparent !important;
    pointer-events: auto;
}

body.has-open-lamella .lamella-intro,
body.has-page-overlay:not(.has-open-content) .lamella-intro {
    background: transparent !important;
    pointer-events: none !important;
}

body.has-open-lamella .lamella-spacer,
body.has-page-overlay:not(.has-open-content) .lamella-spacer {
    display: none;
}


body.has-open-lamella .lamella-items,
body.has-page-overlay:not(.has-open-content) .lamella-items {
    align-items: flex-start;
}

body.has-open-lamella .lamella-item.is-collapsed,
body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:not(:last-child) {
    width: fit-content;
    max-width: 100%;
}

body.has-open-lamella .lamella-item:not(.is-expanded) h2,
body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:not(:last-child) h2 {
    color: #fff !important;
}

body.has-open-lamella .lamella-item.is-expanded h2 {
    color: #000 !important;
}

body.has-open-lamella .lamella-item.is-expanded h2 .project {
    color: #000 !important;
}

body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:last-child h2,
body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:last-child:hover h2,
body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:last-child.is-hovered h2 {
    color: #fff !important;
}

body.has-open-lamella .lamella-item:not(.is-expanded):hover h2,
body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:not(:last-child):hover h2 {
    color: #09F809 !important;
}

body.has-open-lamella .lamella-item.is-expanded {
    order: 10;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 20px;
    z-index: 2;
}

body.has-open-lamella .lamella-item {
    transition: none;
    align-items: center;
    flex: 0 0 var(--lamella-row-height);
    min-height: var(--lamella-row-height);
}

body.has-page-overlay:not(.has-open-content) .lamella-item {
    transition: none;
    align-items: center;
    flex: 0 0 var(--lamella-row-height);
    min-height: var(--lamella-row-height);
}

body.has-open-lamella .lamella-item.is-collapsed {
    flex: 0 0 var(--lamella-row-height);
    min-height: var(--lamella-row-height);
}

/* Aktive Lamelle unten (über dem Footer), feste Zeilenhöhe */
body.has-open-lamella .lamella-item.is-expanded {
    flex: 0 0 var(--lamella-row-height);
    min-height: var(--lamella-row-height);
    max-height: var(--lamella-row-height);
}

.lamella-item {
    position: relative;
    flex: 0 0 var(--lamella-row-height);
    min-height: var(--lamella-row-height);
    width: 100%;
    display: flex;
    align-items: center;
    background: transparent;
    opacity: 1;
    cursor: pointer;
    transition: flex 1s cubic-bezier(0.16, 1, 0.3, 1);
    padding-right: 60px;
    pointer-events: auto;
}

.lamella-item::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50vh;
    width: 200vw;
    background: var(--lamella-bg, transparent);
    z-index: 0;
    pointer-events: none;
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-open-lamella .lamella-item.is-expanded::after {
    background: var(--lamella-active-bg) !important;
}

.lamella-items.ready .lamella-item {
}

/* Reset-Lamelle (Home) */
.lamella-reset-row {
    position: relative;
    width: 100%;
    height: var(--reset-height);
    z-index: 10000;
    background: #09F809;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lamella-item.lamella-reset {
    height: 100%;
    background: #09F809;
    box-shadow: 0 0 0 2px #09F809;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lamella-item h2 {
    font-size: var(--lamella-font-size);
    font-weight: 100;
    position: relative;
    z-index: 1;
    left: 0%;
    top: 0%;
    line-height: 120%;
    transition: color 0.5s cubic-bezier(0.075, 0.82, 0.165, 1),
        opacity 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    color: var(--lamella-text, #fff);
    text-transform: lowercase;
}

.lamella-item h2:before {
    content: "> ";
}

.lamella-item h2 .project {
    display: none;
    pointer-events: auto;
    cursor: pointer;
}

body.has-open-lamella .lamella-item.is-expanded h2:before {
    content: "> ";
}

body.has-open-lamella .lamella-item.is-expanded h2 .project {
    display: inline;
}

.lamella-item .lamella-toggle {
    display: none;
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
    border: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: var(--lamella-font-size);
    font-weight: 100;
    line-height: 1;
    text-transform: lowercase;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
}

body.has-open-lamella .lamella-item.is-expanded .lamella-toggle {
    display: block;
    color: #000;
}

/* Overlay: unterste Zeile bleibt Active-Leiste mit less, Label aber weiß */
body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:last-child {
    order: 10;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 20px;
    z-index: 2;
    flex: 0 0 var(--lamella-row-height);
    min-height: var(--lamella-row-height);
    max-height: var(--lamella-row-height);
}

body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:last-child::after {
    background: var(--lamella-active-bg) !important;
}

body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:last-child .lamella-toggle {
    display: block;
    color: #000;
}

body.has-open-lamella .lamella-item.is-expanded h2 {
    pointer-events: none;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.has-open-lamella .lamella-item.is-expanded h2 .project {
    pointer-events: auto;
}

.lamella-item.lamella-hoverable:hover h2,
.lamella-item.lamella-hoverable.is-hovered h2 {
    color: #000 !important;
}

.lamella-header p {
    font-size: 0.9rem;
}

.grid-title {
    position: absolute;
    bottom: 20vh;
    right: 20vh;
    font-size: 8rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: #09F809;
    display: none;
}

/* Permanent Banner - Laufender Text */
.permanent-banner {
    position: absolute;
    top: 80%;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    background: #363636;
    z-index: 15;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s, opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s;
}

.permanent-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.permanent-banner-inner {
    display: inline-block;
    white-space: nowrap;
    font-size: 1.2rem;
    color: #09F809;
    padding: 1rem 0;
    will-change: transform;
}

@keyframes permanent-banner-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* Teaser immer sichtbar, Full-Content erst wenn Lamelle geöffnet */
.lamella-full {
    display: none;
    margin-top: 2rem;
}

.lamella.is-expanded .lamella-full {
    display: block;
}

.lamella-teaser p {
    max-width: 32rem;
}

/* Site-Stage: alle Ebenen übereinander (Reihenfolge im HTML) */
.site-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.site-stage > .slider-layer,
.site-stage > .yellow-overlay,
.site-stage > .nav-layer,
.site-stage > .logo-layer {
    position: absolute;
    inset: 0;
}

/* Logo über den Streifen, 100vw, Klicks gehen durch */
.logo-container {
    top: 0 !important;
    left: 0 !important;
    z-index: var(--z-logo);
    width: 100vw;
    height: auto;
    overflow: visible;
    pointer-events: none;
    opacity: 1;
}

.logo-container img.logo {
    display: block;
    width: 100vw;
    max-width: none;
    height: auto;
    position: relative;
    top: 0;
    opacity: 1;
}

/* Slider-Bereich */
.slider-wrapper {
    z-index: var(--z-slider);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.slider-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-lamella-headlines {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: none !important;
}

h2.slider-lamella-title {
    display: none;
    font-size: 60px;
    font-weight: 100;
    white-space: nowrap;
    line-height: 100%;
    width: 100%;
    padding: 10px 10px 10px 0;
    position: absolute;
    bottom: 0;
    margin: 0;
    pointer-events: auto;
    cursor: pointer;
    justify-content: space-between;
    opacity: .75;
}

h2.slider-lamella-title.active {
    display: flex;
}

h2.slider-lamella-title:after {
    content: "X";
}

.slider-logo {
    position: fixed; 
    inset: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
    z-index: 1;
    min-width: 150vw;
}

.slider-logo img {
    width: 100%;
    max-width: none;
}

/* Main Slider Wrapper */
.main-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-slider-items {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    overflow: visible; /* Scroll nur im Track, nicht für Overlay/Titel */
}

.main-slider-items.active {
    display: block;
}

.main-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    /* bewusst ohne smooth-scrolling, um Drag/Scroll präzise zu halten */
    -webkit-overflow-scrolling: auto;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none;    /* Firefox */
}

/* Visuelles Feedback: Slider ist ziehbar */
.main-slider-track {
    cursor: grab;
}

.main-slider-track.is-dragging {
    cursor: grabbing;
}

.main-slider-track.is-auto-scrolling {
    cursor: default;
}

.main-slider-track.is-nudge-hint {
    cursor: grab;
}

.main-slider-track.is-nudge-css {
    animation: pp-slider-track-nudge 1.35s cubic-bezier(0.45, 0, 0.25, 1);
}

@keyframes pp-slider-track-nudge {
    0%,
    100% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(-3.5vw);
    }

    60% {
        transform: translateX(0.75vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-slider-track.is-nudge-css {
        animation: none;
    }
}

.main-slider-track::-webkit-scrollbar {
    display: none; /* WebKit */
}

.main-slider-track .item {
    height: 100%;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.main-slider-track .item img {
    height: 100%;
    width: auto;
    display: block;
}

/* Gelber Overlay – eigenes Element, nicht im Content-Panel */
.yellow-overlay {
    z-index: var(--z-yellow);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Voller Streifen oben (linke Hälfte, Höhe = Lamellenzeile) */
.yellow-overlay-top {
    flex: 0 0 var(--text-viewport-top);
    height: var(--text-viewport-top);
    background: transparent;
}

.yellow-overlay-bg {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--yellow-overlay-bg);
}

/* Footer-Overlays (Services, Impressum): Bild auf #yellow-overlay (z 20), Lamellen-Nav darüber (z 30) */
body.has-page-overlay.has-overlay-page-bg .yellow-overlay {
    background-color: var(--yellow-overlay-solid);
    background-image:
        linear-gradient(var(--overlay-page-tint), var(--overlay-page-tint)),
        var(--overlay-page-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.has-page-overlay.has-overlay-page-bg .yellow-overlay-bg {
    background: transparent;
}

/* Home-Lamellen nicht über dem Overlay-Foto – unterste Zeile behält Aktiv-Farbe */
body.has-page-overlay.has-overlay-page-bg .lamella-intro,
body.has-page-overlay.has-overlay-page-bg .lamella-item:not(.lamella-hoverable:last-child)::after {
    background: transparent !important;
}

body.has-open-content .yellow-overlay,
body.has-page-overlay .yellow-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Content + Legal: rechte 50 %; top/bottom = sichtbarer Streifen neben der Lamellen-Nav */
.content-panel,
.legal-panel {
    position: absolute;
    top: var(--text-viewport-top);
    right: 0;
    bottom: var(--text-viewport-bottom); /* 2× Lamelle: Footer + aktive Zeile */
    left: auto;
    width: 50%;
    max-width: 50%;
    z-index: var(--z-content);
    overflow-x: hidden;
    overflow-y: auto;
    color: #000;
    font-weight: 300;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.45s;
    -webkit-overflow-scrolling: touch;
}

body.has-open-content #content-panel,
body.has-page-overlay #legal-panel {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s;
}

body.has-page-overlay .legal-panel {
    z-index: var(--z-legal);
}

body.has-open-content #content-panel {
    z-index: var(--z-content);
}

/* Detail ohne Text: Lamellen über Logo, noch unter Content/Legal */
body.has-open-lamella:not(.has-open-content) .hero-container,
body.has-page-overlay:not(.has-open-content) .hero-container {
    z-index: var(--z-nav-raised);
}

body.has-open-content .hero-container {
    z-index: var(--z-nav);
}

.content-wrapper {
    min-height: 100%;
    padding: 0 20px 1.25rem;
    box-sizing: border-box;
}

.legal-panel-inner {
    min-height: 100%;
    padding: 0 20px 1.25rem;
    box-sizing: border-box;
}

.content-items {
    display: none;
    height: 100%;
    padding: 0;
    position: relative;
    flex-direction: column;
    cursor: pointer;
}

.content-items.active {
    display: flex;
}

.content-wrapper.expanded {
    opacity: 1;
}

.content-items-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    position: relative;
}

.content-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.content-section-nav-btn {
    font: inherit;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.content-section-nav-btn:hover,
.content-section-nav-btn.is-active {
    background: #000;
    color: #09F809;
    border-color: #000;
}

.content-section-body {
    display: none;
    flex: 1;
    min-height: 0;
}

.content-section-body.is-active {
    display: flex;
    flex-direction: column;
}

.content-section-body .pp-content-prose {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.content-items-logo {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
    z-index: 1;
    top: 0;
    min-width: 150vw;
}

.content-items-logo img {
    width: 100%; /* wie im Hero */
    max-width: none;
}

.content-image-link {
    color: #000;
    position: relative;
    text-decoration: none;
    margin-top: auto;
    margin-bottom: 0;
    display: inline-block;
    font-weight: 100;
    font-size: 80px;
    line-height: 1;
    text-align: right;
}

.content-image-link span {
    display: inline-block;
}

.hero-container {
    z-index: var(--z-nav);
    overflow: hidden;
    pointer-events: none;
}

.hero-container .lamella-item,
.hero-container .lamella-reset-row {
    pointer-events: auto;
}

/* Overlay-Layer zwischen Lamellen und Content/Slidern */
.overlay-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.overlay-visible .overlay-layer {
    transform: translateY(0);
}

body.overlay-hide .overlay-layer {
    transform: translateY(-100%);
}

body.has-page-overlay {
    overflow: hidden;
}

.page-overlay-inner {
    max-width: none;
    margin: 0;
}

/* Einheitliche Content-Typografie: Lamellen (.pp-content-prose) + Overlay-Seiten */
.pp-content-prose,
.page-overlay-content {
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: var(--content-text-size);
    line-height: var(--content-text-lh);
    font-weight: 300;
}

.pp-content-prose :is(h1, h2, h3, p, li),
.page-overlay-content :is(h1, h2, h3, p, li) {
    font-size: var(--content-text-size);
    line-height: var(--content-text-lh);
    font-weight: 300;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pp-content-prose :is(h1, h2, h3, p),
.page-overlay-content :is(h1, h2, h3, p) {
    margin: 0 0 0.75em;
    padding: 0;
}

.pp-content-prose :is(strong, b),
.page-overlay-content :is(strong, b) {
    font-weight: 700;
}

.pp-content-prose a,
.page-overlay-content a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
}

.pp-content-prose a:hover,
.page-overlay-content a:hover {
    opacity: 0.65;
}

.pp-content-prose ul,
.page-overlay-content ul {
    list-style: none;
    margin: 0 0 0.75em 0;
    padding: 0;
}

.pp-content-prose ul li,
.page-overlay-content ul li {
    position: relative;
    padding-left: 1.25em;
    margin: 0 0 0.35em;
    font-size: var(--content-text-size);
    line-height: var(--content-text-lh);
    font-weight: 300;
}

.pp-content-prose ul li::before,
.page-overlay-content ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 0;
    font-size: var(--content-text-size);
    line-height: var(--content-text-lh);
    font-weight: 300;
}

.pp-content-prose ol,
.page-overlay-content ol {
    list-style: decimal;
    margin: 0 0 0.75em 1.25em;
    padding: 0;
}

.pp-content-prose ol li,
.page-overlay-content ol li {
    margin: 0 0 0.35em;
    font-size: var(--content-text-size);
    line-height: var(--content-text-lh);
    font-weight: 300;
}

.pp-content-prose ul ul,
.pp-content-prose ol ol,
.page-overlay-content ul ul,
.page-overlay-content ol ol {
    margin-top: 0.35em;
    margin-bottom: 0;
}

.page-overlay-content,
.page-overlay-content :is(h1, h2, h3, p, li),
.page-overlay-content ul li,
.page-overlay-content ul li::before,
.page-overlay-content ol li {
    font-size: var(--legal-text-size);
    line-height: var(--legal-text-lh);
}

.page-overlay-content section + section,
.legal-standalone-main section + section {
    margin-top: 1.85em;
}

.page-overlay-content :is(h1, h2, h3),
.legal-standalone-main :is(h1, h2, h3) {
    font-weight: 700;
    margin: 1.6em 0 0.4em;
}

.page-overlay-content :is(h1, h2, h3):first-child,
.legal-standalone-main :is(h1, h2, h3):first-child {
    margin-top: 0;
}

.page-overlay-content :is(h1, h2, h3)::before,
.legal-standalone-main :is(h1, h2, h3)::before {
    content: "> ";
}

.page-overlay-lead {
    margin-bottom: 2em;
}

.page-overlay-content .page-overlay-claim {
    font-size: var(--content-text-size);
    line-height: var(--content-text-lh);
    font-weight: 700;
    margin: 0 0 0.45em;
}

.page-overlay-content .page-overlay-subtitle {
    font-size: clamp(2.35rem, 3vw, 3.15rem);
    line-height: 1.2;
    font-weight: 300;
    margin: 0;
}


/* Footer – fix unten, über der 100vh-Stage */
.main-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 10000;
    height: var(--footer-height);
    background: #09F809;
    overflow: hidden;
}

body.has-open-lamella footer.main-footer,
body.has-page-overlay:not(.has-open-content) footer.main-footer {
    background: transparent;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    height: 100%;
    min-width: 0;
}

.footer-nav--left {
    flex: 1 1 auto;
    justify-content: flex-start;
}

.footer-nav--right {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
}

.footer-text,
.footer-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-size: var(--footer-font-size);
    line-height: 1;
    opacity: 1;
    font-weight: 100;
    white-space: nowrap;
    transition: opacity 0.25s ease, color 0.25s ease;
}

body.has-open-lamella footer.main-footer .footer-text,
body.has-open-lamella footer.main-footer .footer-link,
body.has-page-overlay:not(.has-open-content) footer.main-footer .footer-text,
body.has-page-overlay:not(.has-open-content) footer.main-footer .footer-link {
    color: #fff;
    opacity: 1;
}

footer.main-footer:hover .footer-text,
footer.main-footer:hover .footer-link {
    opacity: 0.25;
}

/* Footer-Links: Pfeil nach dem Label (z. B. contact >) */
.footer-text::after,
.footer-link::after {
    content: " >";
}

footer.main-footer:hover .footer-link:hover,
footer.main-footer:hover .footer-text:hover,
footer.main-footer .footer-link.is-active,
footer.main-footer .footer-text.is-active {
    opacity: 1;
    color: #000;
}

body.has-open-lamella footer.main-footer:hover .footer-link:hover,
body.has-open-lamella footer.main-footer:hover .footer-text:hover,
body.has-open-lamella footer.main-footer .footer-link.is-active,
body.has-open-lamella footer.main-footer .footer-text.is-active,
body.has-page-overlay:not(.has-open-content) footer.main-footer:hover .footer-link:hover,
body.has-page-overlay:not(.has-open-content) footer.main-footer:hover .footer-text:hover,
body.has-page-overlay:not(.has-open-content) footer.main-footer .footer-link.is-active,
body.has-page-overlay:not(.has-open-content) footer.main-footer .footer-text.is-active {
    opacity: 1;
    color: var(--yellow-overlay-solid);
}

/* Utility-Klassen für Sichtbarkeit */
.only-desktop {
    display: block;
}

.only-mobile {
    display: none;
}

/* Mobile-Anpassungen */
@media (max-width: 768px) {
    .only-desktop {
        display: none !important;
    }

    .only-mobile {
        display: block !important;
    }


    :root {
        --lamella-row-height: 52px;
        --lamella-collapsed-height: 52px;
        --lamella-font-size: 36px;
        --footer-height: 48px;
        --footer-font-size: 22px;
        --content-text-size: 2rem;
        --legal-text-size: 1.5rem;
    }

    .lamella-item h2 {
        font-size: var(--lamella-font-size);
        top: auto;
        line-height: 120%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content-wrapper,
    .legal-panel-inner,
    .content-items {
        padding: 0;
    }

    .lamella-item .lamella-toggle {
        font-size: clamp(1.1rem, 5vw, 1.75rem);
    }

    body.has-open-lamella .lamella-item:not(.is-expanded),
    body.has-page-overlay:not(.has-open-content) .lamella-item.lamella-hoverable:not(:last-child) {
        display: none !important;
    }

    body.has-open-content #content-panel {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }

    .content-panel,
    .legal-panel {
        width: 100%;
        max-width: 100%;
    }
}

/* SEO: sichtbar für Crawler/Reader, visuell ausgeblendet */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Rechtstexte als eigenständige Seite (Impressum / Datenschutz) */
body.legal-standalone {
    background: var(--color-yellow, #09F809);
    color: #000;
    min-height: 100vh;
    position: relative;
}

body.legal-standalone.has-overlay-page-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: var(--overlay-page-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.legal-standalone.has-overlay-page-bg::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--overlay-page-tint);
    pointer-events: none;
}

.legal-standalone-main {
    max-width: 42rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

.legal-standalone-footer {
    position: static;
}
