/*
Theme Name: Blocksy Child – Lisa Mona
Template: blocksy
Version: 1.2.2
*/

.lm-archive {
    padding: clamp(5rem, 2vw, 7rem) 0 clamp(7rem, 7vw, 10rem);
}

.lm-archive__head {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.lm-archive__intro {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 0;
}

h1.lm-archive__intro {
    text-align: center;
}

.lm-project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    max-width: 1360px;
    margin: 0 auto clamp(3rem, 5vw, 4.5rem);
    padding: 0 clamp(1.5rem, 3vw, 3rem);
}

.lm-project-filters button {
    appearance: none;
    border: 1px solid var(--theme-headings-color);
    border-radius: 99px;
    background: transparent;
    color: var(--theme-headings-color);
    padding: 0.65rem 1rem 0.5rem 1rem;
    font-size: 0.95rem;
    line-height: 1.1;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.lm-project-filters button:hover,
.lm-project-filters button.is-active {
    background-color: var(--wp--preset--color--palette-color-3) !important;
    color: var(--theme-button-text-initial-color);
}

.lm-projects {
    --lm-gap: clamp(1.4rem, 2.6vw, 2.6rem);
    --lm-row-gap: clamp(1.8rem, 3vw, 3rem);
    --lm-offset: clamp(3.2rem, 6vw, 6rem);

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--lm-gap);
    row-gap: var(--lm-row-gap);
    align-items: start;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--lm-gap) var(--lm-gap);
}

@media (min-width: 1600px) {
    .lm-projects {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lm-project {
    --lm-label-w: 3.3rem;
    position: relative;
    display: block;
    padding-left: var(--lm-label-w);
    text-decoration: none;
    color: #000;
    margin-top: 0;
}

.lm-project.is-offset {
    margin-top: var(--lm-offset);
}

.lm-project.is-hidden {
    display: none;
}

.lm-project__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f2f2f2;
}

.lm-project.is-tall .lm-project__media {
    aspect-ratio: 4 / 6;
}

.lm-project__media img,
.lm-project__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.lm-project__label {
    position: absolute;
    bottom: 0;
    left: var(--lm-label-w);
    transform: rotate(-90deg);
    transform-origin: bottom left;
    white-space: nowrap;
    color: var(--theme-headings-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-bottom: 0.75rem;
    line-height: 1;
}

.lm-project__title {
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1;
}

.lm-project__cat {
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.1;
    opacity: 0.75;
}

.lm-project:hover .lm-project__media img,
.lm-project:hover .lm-project__media video {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .lm-projects {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: clamp(3rem, 8vw, 4.8rem);
    }

    .lm-project,
    .lm-project.is-offset {
        margin-top: 0;
    }

    .lm-project__label {
        font-family: var(--theme-font-family);
        --theme-font-weight: 500;
        color: var(--theme-headings-color);
        position: static;
        transform: none;
        white-space: normal;
        padding-top: 1.15rem;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .lm-project__cat {
        font-family: var(--theme-font-family);
        --theme-font-weight: 300;
        color: var(--theme-headings-color);
        display: block;
        margin-top: 0;
    }
}

.page-id-149 .page-title,
.page-id-149 .entry-title,
.page-id-149 .ct-page-title .entry-title,
.page-id-149 h1.entry-title {
    text-align: left;
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
    padding-left: clamp(1.5rem, 3vw, 3rem);
}

.lm-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--theme-headings-color);
}

.lm-hero.is-standard {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}

.lm-hero.is-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
}

.lm-hero.is-split {
    min-height: min(100vh, 900px);
    display: flex;
    align-items: stretch;
}

.lm-hero__split {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    width: 100%;
    min-height: inherit;
}

.lm-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lm-hero.is-split .lm-hero__media {
    position: relative;
    inset: auto;
    min-height: 100%;
}

.lm-hero__media img,
.lm-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lm-hero__inner {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 6vw, 6rem);
    max-width: 1000px;
}

.lm-hero.is-standard .lm-hero__inner,
.lm-hero.is-fullscreen .lm-hero__inner {
    width: 100%;
}

.lm-hero.is-split .lm-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: none;
    background: transparent;
}

.lm-hero__title {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.03;
    margin: 0 0 0.75rem;
    font-weight: 200;
}

.lm-hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    line-height: 1.5;
    max-width: 42rem;
}

.lm-hero__subtitle p {
    margin: 0 0 0.8rem;
}

.lm-hero.is-dark,
.lm-hero.is-dark .lm-hero__title,
.lm-hero.is-dark .lm-hero__subtitle {
    color: var(--theme-headings-color);
}

.lm-hero.is-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
}

.lm-hero.is-split.is-dark::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0) 72%);
}

.lm-project-background {
    position: relative;
    max-width: 1600px;
    margin: clamp(2rem, 5vw, 4rem) auto 0;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
}

.lm-project-background__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.lm-project-background__video,
.lm-project-background__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lm-project-background__title {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    opacity: 0.8;
}

.lm-single__content {
    max-width: 1100px;
    margin: clamp(3rem, 6vw, 6rem) auto 0;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
}

@media (max-width: 900px) {

    .lm-hero.is-standard,
    .lm-hero.is-fullscreen,
    .lm-hero.is-split {
        min-height: auto;
    }

    .lm-hero__split {
        grid-template-columns: 1fr;
    }

    .lm-hero.is-split .lm-hero__media {
        min-height: 55vw;
    }

    .lm-hero__title {
        font-size: clamp(2rem, 9vw, 3.3rem);
    }
}

.lm-reveal {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

.no-js .lm-reveal {
    opacity: 1;
    transform: none;
}


lm-hero,
.lm-hero__title,
.lm-hero__subtitle,
.lm-hero__subtitle p {
    color: var(--theme-headings-color);
}

.lm-hero.is-dark,
.lm-hero.is-dark .lm-hero__title,
.lm-hero.is-dark .lm-hero__subtitle,
.lm-hero.is-dark .lm-hero__subtitle p {
    color: var(--theme-palette-color-7);
}

.lm-hero.is-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
}

.lm-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100%, var(--lm-site-max));
    margin: 0 auto;
    padding:
        clamp(7.5rem, 11vw, 10rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem);
}

/* -----------------------------------------------------------
 *  Single Project – Facade-style Hero & Background
 *  nur auf Single-Projekt-Ansicht wirksam
 * -------------------------------------------------------- */

body.single-project .lm-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

/* Standard + Fullscreen: Hero mit Media hinten und Text unten links */

body.single-project .lm-hero.is-standard {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}

body.single-project .lm-hero.is-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
}

body.single-project .lm-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.single-project .lm-hero__media img,
body.single-project .lm-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.single-project .lm-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding:
        clamp(7.5rem, 11vw, 10rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem) 0;
}

/* Kleinerer Bildschirm: wieder gleicher Seitenabstand wie der restliche Inhalt */
@media (max-width: 1200px) {
    body.single-project .lm-hero__inner {
        padding-left: clamp(1.5rem, 3vw, 3rem);
        padding-right: clamp(1.5rem, 3vw, 3rem);
    }
}

body.single-project .lm-hero__title {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.03;
    margin: 0 0 0.75rem;
    font-weight: 200;
}

body.single-project .lm-hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    line-height: 1.5;
    max-width: 42rem;
}

body.single-project .lm-hero__subtitle p {
    margin: 0 0 0.8rem;
}

/* Split-Hero: Text links, Bild rechts – wie Facade */

body.single-project .lm-hero.is-split {
    min-height: min(100vh, 900px);
    display: flex;
    align-items: stretch;
    background: #ffffff;
    /* bleibt hell, solange Dark Skin aus ist */
}

body.single-project .lm-hero__split {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    width: 100%;
    min-height: inherit;
}

/* in Split sitzt das Media-Element rechts, also relativ */

body.single-project .lm-hero.is-split .lm-hero__media {
    position: relative;
    inset: auto;
    min-height: 100%;
}

body.single-project .lm-hero.is-split .lm-hero__inner {
    position: relative;
    z-index: 2;
    padding: clamp(4rem, 6vw, 6rem);
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--theme-palette-color-7);
}

/* Default-Farben: Text dunkel auf hellem Grund */

body.single-project .lm-hero,
body.single-project .lm-hero__title,
body.single-project .lm-hero__subtitle,
body.single-project .lm-hero__subtitle p {
    color: var(--theme-headings-color);
}

/* Dark Skin: nur wenn explizit gesetzt – Text hell + Overlay */

body.single-project.lm-project-dark-mode .lm-hero.is-dark {
    background: #000000;
}

body.single-project.lm-project-dark-mode .lm-hero.is-dark,
body.single-project.lm-project-dark-mode .lm-hero.is-dark .lm-hero__title,
body.single-project.lm-project-dark-mode .lm-hero.is-dark .lm-hero__subtitle,
body.single-project.lm-project-dark-mode .lm-hero.is-dark .lm-hero__subtitle p {
    color: var(--theme-palette-color-7);
}

body.single-project.lm-project-dark-mode .lm-hero.is-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.58),
            rgba(0, 0, 0, 0.12) 48%,
            rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
}

/* Split + Dark Skin: seitlicher Verlauf von links */

body.single-project.lm-project-dark-mode .lm-hero.is-split.is-dark::after {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.52),
            rgba(0, 0, 0, 0.18) 45%,
            rgba(0, 0, 0, 0) 72%);
}

/* Hintergrund-Sektion unterhalb des Heroes */

body.single-project .lm-project-background {
    position: relative;
    max-width: 1600px;
    margin: clamp(2rem, 5vw, 4rem) auto 0;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
}

body.single-project .lm-project-background__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111111;
}

body.single-project .lm-project-background__video,
body.single-project .lm-project-background__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.single-project .lm-project-background__title {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    opacity: 0.8;
}

/* Inhalt der Single-Seite */

body.single-project .lm-single__content {
    max-width: 1100px;
    margin: clamp(3rem, 6vw, 6rem) auto 0;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
}

/* Responsiv: Split auf einspaltig umbauen */

@media (max-width: 900px) {

    body.single-project .lm-hero.is-standard,
    body.single-project .lm-hero.is-fullscreen,
    body.single-project .lm-hero.is-split {
        min-height: auto;
    }

    body.single-project .lm-hero__split {
        grid-template-columns: 1fr;
    }

    body.single-project .lm-hero.is-split .lm-hero__media {
        min-height: 55vw;
    }

    body.single-project .lm-hero__title {
        font-size: clamp(2rem, 9vw, 3.3rem);
    }
}

/* Reveal-Animation – wie bisher */

body.single-project .lm-reveal {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

body.single-project .no-js .lm-reveal {
    opacity: 1;
    transform: none;
}


/* =========================================================
   PROJECT DARK SKIN
   unten an style.css anhängen
   gilt nur für Projekte mit aktivem Dark Skin
   ========================================================= */

body.single-project.lm-project-dark-mode {
    --lm-dark-bg: var(--theme-palette-color-4);
    --lm-dark-text: var(--theme-palette-color-7);
    --lm-dark-text-soft: var(--theme-palette-color-6);
    --lm-dark-accent: var(--theme-palette-color-1);

    background: var(--lm-dark-bg);
    color: var(--lm-dark-text);
}

/* Grundfläche durchgehend dunkel halten */
body.single-project.lm-project-dark-mode,
body.single-project.lm-project-dark-mode #main,
body.single-project.lm-project-dark-mode .site-main,
body.single-project.lm-project-dark-mode #main-container {
    background: var(--lm-dark-bg);
    color: var(--lm-dark-text);
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

body.single-project.lm-project-dark-mode #header.ct-header,
body.single-project.lm-project-dark-mode #header.ct-header [data-row],
body.single-project.lm-project-dark-mode #header.ct-header [data-column],
body.single-project.lm-project-dark-mode #header.ct-header .ct-sticky-container,
body.single-project.lm-project-dark-mode #header.ct-header [data-sticky] {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Header-Elemente immer hell lesbar */
body.single-project.lm-project-dark-mode #header,
body.single-project.lm-project-dark-mode #header a,
body.single-project.lm-project-dark-mode #header .ct-menu-link,
body.single-project.lm-project-dark-mode #header .ct-header-text,
body.single-project.lm-project-dark-mode #header .ct-label,
body.single-project.lm-project-dark-mode #header .ct-icon,
body.single-project.lm-project-dark-mode #header svg,
body.single-project.lm-project-dark-mode #header button,
body.single-project.lm-project-dark-mode #header .ct-toggle,
body.single-project.lm-project-dark-mode #header .ct-header-trigger {
    color: var(--lm-dark-text) !important;
}

body.single-project.lm-project-dark-mode #header svg,
body.single-project.lm-project-dark-mode #header .ct-icon svg,
body.single-project.lm-project-dark-mode #header .ct-header-trigger svg,
body.single-project.lm-project-dark-mode #header .ct-color-switch svg {
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* Hover im Header */
body.single-project.lm-project-dark-mode #header a:hover,
body.single-project.lm-project-dark-mode #header button:hover,
body.single-project.lm-project-dark-mode #header .ct-menu-link:hover {
    color: var(--lm-dark-accent) !important;
}

/* Immer das helle Logo anzeigen */
body.single-project.lm-project-dark-mode #header .site-logo-container {
    position: relative;
}

body.single-project.lm-project-dark-mode #header .site-logo-container .default-logo,
body.single-project.lm-project-dark-mode #header .site-logo-container .sticky-logo {
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
}

body.single-project.lm-project-dark-mode #header .site-logo-container .dark-mode-logo {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

/* Optional: Color switch auf dunklem Hintergrund etwas ruhiger */
body.single-project.lm-project-dark-mode #header .ct-color-switch {
    opacity: 0.9;
}

/* Offcanvas / mobiles Menü ebenfalls dunkel */
body.single-project.lm-project-dark-mode .ct-drawer-canvas .ct-panel,
body.single-project.lm-project-dark-mode .ct-drawer-canvas .ct-panel-inner,
body.single-project.lm-project-dark-mode .ct-drawer-canvas .ct-panel-content-inner {
    background: var(--lm-dark-bg) !important;
    color: var(--lm-dark-text) !important;
}

body.single-project.lm-project-dark-mode .ct-drawer-canvas a,
body.single-project.lm-project-dark-mode .ct-drawer-canvas button,
body.single-project.lm-project-dark-mode .ct-drawer-canvas .ct-menu-link,
body.single-project.lm-project-dark-mode .ct-drawer-canvas .ct-icon,
body.single-project.lm-project-dark-mode .ct-drawer-canvas svg {
    color: var(--lm-dark-text) !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

body.single-project.lm-project-dark-mode .lm-hero {
    background: var(--lm-dark-bg);
    color: var(--lm-dark-text);
}

body.single-project.lm-project-dark-mode .lm-hero,
body.single-project.lm-project-dark-mode .lm-hero .lm-herotitle,
body.single-project.lm-project-dark-mode .lm-hero .lm-herosubtitle,
body.single-project.lm-project-dark-mode .lm-hero .lm-herosubtitle p,
body.single-project.lm-project-dark-mode .lm-hero .text-on-black,
body.single-project.lm-project-dark-mode .lm-hero .text-on-black * {
    color: var(--lm-dark-text) !important;
    -webkit-text-fill-color: var(--lm-dark-text) !important;
}

/* Overlay etwas homogener */
body.single-project.lm-project-dark-mode .lm-hero.is-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.52) 0%,
            rgba(0, 0, 0, 0.22) 42%,
            rgba(0, 0, 0, 0.06) 68%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

body.single-project.lm-project-dark-mode .lm-hero.is-split.is-dark::after {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.42) 0%,
            rgba(0, 0, 0, 0.18) 42%,
            rgba(0, 0, 0, 0) 76%);
}

/* Hero-Inhalt weniger tief */
body.single-project.lm-project-dark-mode .lm-hero.is-fullscreen .lm-heroinner {
    padding-top: clamp(5rem, 7vw, 7rem) !important;
    padding-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

/* Standard / Split auch etwas konsistenter */
body.single-project.lm-project-dark-mode .lm-hero.is-standard .lm-heroinner,
body.single-project.lm-project-dark-mode .lm-hero.is-split .lm-heroinner {
    padding-top: clamp(4rem, 6vw, 5.5rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

body.single-project.lm-project-dark-mode .lm-herotitle {
    text-wrap: balance;
}

body.single-project.lm-project-dark-mode .lm-herosubtitle {
    max-width: 46rem;
    color: var(--lm-dark-text-soft) !important;
}

body.single-project.lm-project-dark-mode .lm-herosubtitle p {
    color: var(--lm-dark-text-soft) !important;
}

/* ---------------------------------------------------------
   CONTENT / GUTENBERG
   --------------------------------------------------------- */

body.single-project.lm-project-dark-mode .lm-single,
body.single-project.lm-project-dark-mode .lm-singlecontent,
body.single-project.lm-project-dark-mode article.lm-single,
body.single-project.lm-project-dark-mode article.lm-single>* {
    background: transparent;
    color: var(--lm-dark-text);
}

body.single-project.lm-project-dark-mode .lm-singlecontent h1,
body.single-project.lm-project-dark-mode .lm-singlecontent h2,
body.single-project.lm-project-dark-mode .lm-singlecontent h3,
body.single-project.lm-project-dark-mode .lm-singlecontent h4,
body.single-project.lm-project-dark-mode .lm-singlecontent h5,
body.single-project.lm-project-dark-mode .lm-singlecontent h6 {
    color: var(--lm-dark-text) !important;
}

body.single-project.lm-project-dark-mode .lm-singlecontent p,
body.single-project.lm-project-dark-mode .lm-singlecontent li,
body.single-project.lm-project-dark-mode .lm-singlecontent strong,
body.single-project.lm-project-dark-mode .lm-singlecontent em {
    color: var(--lm-dark-text-soft) !important;
}

body.single-project.lm-project-dark-mode .lm-singlecontent a:not(.wp-element-button) {
    color: var(--lm-dark-text) !important;
    text-decoration-color: rgba(255, 255, 255, 0.35);
}

body.single-project.lm-project-dark-mode .lm-singlecontent a:not(.wp-element-button):hover {
    color: var(--lm-dark-accent) !important;
    text-decoration-color: currentColor;
}

/* Hintergrundblock ebenfalls dunkel integrieren */
body.single-project.lm-project-dark-mode .lm-project-background {
    background: transparent;
}

body.single-project.lm-project-dark-mode .lm-project-backgroundtitle,
body.single-project.lm-project-dark-mode .lm-project-backgroundtitle p {
    color: var(--lm-dark-text-soft) !important;
}

/* Buttons aus dem Block-Content */
body.single-project.lm-project-dark-mode .wp-block-button__link,
body.single-project.lm-project-dark-mode .wp-element-button {
    border-color: transparent !important;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

body.single-project.lm-project-dark-mode #footer.ct-footer,
body.single-project.lm-project-dark-mode #footer.ct-footer [data-row],
body.single-project.lm-project-dark-mode #footer.ct-footer [data-column],
body.single-project.lm-project-dark-mode #footer.ct-footer .ct-container {
    background: var(--lm-dark-bg) !important;
    color: var(--lm-dark-text) !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.single-project.lm-project-dark-mode #footer,
body.single-project.lm-project-dark-mode #footer a,
body.single-project.lm-project-dark-mode #footer p,
body.single-project.lm-project-dark-mode #footer li,
body.single-project.lm-project-dark-mode #footer .ct-menu-link,
body.single-project.lm-project-dark-mode #footer .ct-icon,
body.single-project.lm-project-dark-mode #footer svg {
    color: var(--lm-dark-text-soft) !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

body.single-project.lm-project-dark-mode #footer a:hover,
body.single-project.lm-project-dark-mode #footer .ct-menu-link:hover {
    color: var(--lm-dark-text) !important;
}

/* sanfter Übergang vor dem Footer */
body.single-project.lm-project-dark-mode #footer.ct-footer {
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(2rem, 4vw, 3rem);
}

/* ---------------------------------------------------------
   KLEINE KORREKTUREN
   --------------------------------------------------------- */

/* kein heller Rand / Blinkeffekt auf Sticky-Zuständen */
body.single-project.lm-project-dark-mode .ct-sticky-container>div {
    box-shadow: none !important;
    background: transparent !important;
}

/* back-to-top auf dunkel */
body.single-project.lm-project-dark-mode .ct-back-to-top {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--lm-dark-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.single-project.lm-project-dark-mode .ct-back-to-top:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

/* =========================================================
   FIX: korrektes Logo + Hero-Content höher
   ========================================================= */

/* 1) Auf Dark-Skin-Projektseiten IMMER das weiße / transparente Logo zeigen */
body.single-project.lm-project-dark-mode #header .site-logo-container .dark-mode-logo {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 3 !important;
}

body.single-project.lm-project-dark-mode #header .site-logo-container .default-logo,
body.single-project.lm-project-dark-mode #header .site-logo-container .sticky-logo {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* falls Blocksy das Logo mit Grid/Inline-Flex übereinander legt */
body.single-project.lm-project-dark-mode #header .site-logo-container {
    display: inline-flex !important;
    align-items: center;
}

/* 2) Hero-Textblock deutlich höher setzen */
body.single-project.lm-project-dark-mode .lm-hero.is-fullscreen {
    align-items: flex-end;
    min-height: 100vh;
}

body.single-project.lm-project-dark-mode .lm-hero.is-fullscreen .lm-heroinner {
    width: min(100%, var(--theme-block-wide-max-width, 1400px)) !important;
    margin: 0 auto !important;
    padding-top: clamp(1.25rem, 2vw, 2rem) !important;
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
    padding-left: clamp(1.5rem, 4vw, 4rem) !important;
    padding-right: clamp(1.5rem, 4vw, 4rem) !important;
}

/* optional noch etwas kompakter für Titel/Subtitel */
body.single-project.lm-project-dark-mode .lm-hero.is-fullscreen .lm-herotitle {
    margin-bottom: 0.45rem !important;
}

body.single-project.lm-project-dark-mode .lm-hero.is-fullscreen .lm-herosubtitle {
    max-width: 34rem !important;
}


/* =========================================================
   Facade-like Hero Styling Options
   ========================================================= */

.lm-hero {
	--lm-hero-text: inherit;
	--lm-hero-bg: var(--theme-headings-color);
	--lm-hero-media-opacity: 1;
	--lm-hero-scroll-opacity: 0.45;
	background: var(--lm-hero-bg);
}

.lm-hero,
.lm-hero .lm-hero__title,
.lm-hero .lm-hero__subtitle,
.lm-hero .lm-hero__subtitle p {
	color: var(--lm-hero-text);
}

.lm-hero__media img,
.lm-hero__media video {
	opacity: var(--lm-hero-media-opacity);
}

/* Overlay reagiert auf Scroll-Opacity-Wert */
.lm-hero.is-dark::after {
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, var(--lm-hero-scroll-opacity)),
		rgba(0, 0, 0, calc(var(--lm-hero-scroll-opacity) * 0.35)) 48%,
		rgba(0, 0, 0, 0) 75%
	);
}

.lm-hero.is-split.is-dark::after {
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, var(--lm-hero-scroll-opacity)),
		rgba(0, 0, 0, calc(var(--lm-hero-scroll-opacity) * 0.35)) 45%,
		rgba(0, 0, 0, 0) 72%
	);
}

/* Title size */
.lm-hero.title-l .lm-hero__title {
	font-size: clamp(2rem, 4.8vw, 3.6rem);
}

.lm-hero.title-xl .lm-hero__title {
	font-size: clamp(2.4rem, 6vw, 5rem);
}

.lm-hero.title-xxl .lm-hero__title {
	font-size: clamp(2.8rem, 7.5vw, 6.8rem);
}

/* Alignment */
.lm-hero.align-left .lm-hero__inner {
	text-align: left;
	align-items: flex-start;
}

.lm-hero.align-center .lm-hero__inner {
	text-align: center;
	align-items: center;
}

.lm-hero.align-right .lm-hero__inner {
	text-align: right;
	align-items: flex-end;
}

.lm-hero.align-center .lm-hero__subtitle,
.lm-hero.align-center .lm-hero__subtitle p,
.lm-hero.align-right .lm-hero__subtitle,
.lm-hero.align-right .lm-hero__subtitle p {
	margin-left: auto;
}

.lm-hero.align-center .lm-hero__subtitle {
	margin-right: auto;
}

/* Menu style helper classes */
body.single-project .lm-hero.menu-light {
	--lm-menu-color: #ffffff;
}

body.single-project .lm-hero.menu-dark {
	--lm-menu-color: #000000;
}

body.single-project .lm-hero.menu-light ~ *,
body.single-project .lm-hero.menu-dark ~ * {
	/* Platzhalter, falls wir später mit JS Header-States ansteuern */
}

/* Mobile */
@media (max-width: 900px) {
	.lm-hero.title-l .lm-hero__title,
	.lm-hero.title-xl .lm-hero__title,
	.lm-hero.title-xxl .lm-hero__title {
		font-size: clamp(2rem, 9vw, 3.3rem);
	}

	.lm-hero.align-left .lm-hero__inner,
	.lm-hero.align-center .lm-hero__inner,
	.lm-hero.align-right .lm-hero__inner {
		text-align: left;
		align-items: flex-start;
	}
}