
/* =========================================
   HOLZPEYER – DESIGN SYSTEM
========================================= */

:root {
    --hp-bg: #170D09;
    --hp-text: #F5F1ED;
    --hp-muted: #B9ADA5;
    --hp-accent: #F00079;
    --hp-font: "sofia-pro-variable", sans-serif;


    --hp-container: 1440px;
    --hp-gutter: 48px;

}

/* =========================================
   RESET & GLOBAL
========================================= */

* {
    box-sizing: border-box;
    font-style: normal !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--hp-bg);
    color: var(--hp-text);
    font-family: var(--hp-font);
    font-style: normal;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.hp-container {
    width: 100%;
    max-width: var(--hp-container);
    margin: 0 auto;
    padding-left: var(--hp-gutter);
    padding-right: var(--hp-gutter);
}

/* =========================================
   HEADER
========================================= */

.hp-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hp-header__inner {
    min-height: 80px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--hp-gutter);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

.hp-logo {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: 3px;
    font-size: 21px;
}

.hp-logo__top {
    color: var(--hp-text);
}

.hp-logo__top::first-letter {
    color: var(--hp-accent);
}

.hp-logo__bottom {
    font-size: 17px;
    letter-spacing: 4px;
}

/* Navigation */

.hp-navigation {
    display: flex;
    align-items: center;
    gap: 65px;
}

.hp-navigation__list {
    display: flex;
    align-items: center;
    gap: 45px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-navigation__list a {
    font-size: 13px;
    transition: color 0.3s ease;
}

.hp-navigation__list a:hover {
    color: var(--hp-accent);
}

/* Buttons */

.hp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: var(--hp-accent);
    color: white;

    padding: 15px 24px;
    border-radius: 6px;

    font-size: 13px;
    transition: background 0.3s ease,
                transform 0.3s ease;
}

.hp-button:hover {
    background: #C90065;
    transform: translateY(-2px);
}

/* Hamburger */

.hp-menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}

.hp-menu-toggle span {
    display: block;
    width: 25px;
    height: 1px;
    background: white;
    margin: 7px 0;
    transition: transform 0.3s ease;
}

/* =========================================
   HERO
========================================= */

.hp-hero {
    min-height: 750px;
    height: 85vh;
    max-height: 1050px;

    position: relative;
    display: flex;
    align-items: center;

    overflow: hidden;
}

.hp-hero__background {
    position: absolute;
    inset: 0;

    background-image: url('../images/hero-holz.png');
    background-size: cover;
    background-position: center center;

    transform: scale(1.02);
}

.hp-hero__overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(12, 7, 4, 0.55) 0%,
        rgba(12, 7, 4, 0.12) 65%,
        rgba(12, 7, 4, 0.05) 100%
    );
}

.hp-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hp-hero__title {
    font-size: clamp(48px, 5.2vw, 82px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.045em;
    margin: 0;
}

/* Decorative graphic */

.hp-hero__graphic {
    position: absolute;
    z-index: 2;

    width: 360px;
    right: 10%;
    bottom: -100px;

    color: rgba(255,255,255,0.65);
    pointer-events: none;
}

.hp-hero__graphic svg {
    width: 100%;
    height: auto;
}

/* =========================================
   RESPONSIVE – TABLET
========================================= */

@media (max-width: 1024px) {

    :root {
        --hp-gutter: 32px;
    }

    .hp-navigation {
        gap: 25px;
    }

    .hp-navigation__list {
        gap: 25px;
    }

    .hp-hero {
        min-height: 650px;
    }

    .hp-hero__graphic {
        width: 280px;
        right: 5%;
    }
}

/* =========================================
   RESPONSIVE – MOBILE
========================================= */

@media (max-width: 767px) {

    :root {
        --hp-gutter: 22px;
    }

    .hp-header__inner {
        min-height: 65px;
        padding: 0 22px;
    }

    .hp-logo {
        font-size: 16px;
    }

    .hp-logo__bottom {
        font-size: 13px;
    }

    /* Mobile navigation */

    .hp-menu-toggle {
        display: block;
        position: relative;
        z-index: 102;
    }

    .hp-navigation {
        position: fixed;
        inset: 0;

        background: var(--hp-bg);

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;

        padding: 90px 28px 40px;
        gap: 40px;

        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease,
                    visibility 0.3s ease;
    }

    .hp-navigation.is-open {
        opacity: 1;
        visibility: visible;
    }

    .hp-navigation__list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .hp-navigation__list a {
        font-size: 28px;
    }

    .hp-button--nav {
        width: 100%;
        justify-content: space-between;
    }

    /* Hamburger animation */

    .hp-menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .hp-menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    /* Hero */

    .hp-hero {
        min-height: 620px;
        height: 85svh;
        max-height: 850px;
        align-items: flex-end;
        padding-bottom: 100px;
    }

    .hp-hero__background {
        background-position: 58% center;
    }

    .hp-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(12,7,4,0.05) 0%,
            rgba(12,7,4,0.12) 45%,
            rgba(12,7,4,0.7) 100%
        );
    }

    .hp-hero__content {
        padding-top: 0;
    }

    .hp-hero__title {
        font-size: clamp(38px, 10vw, 52px);
        line-height: 1.05;
        letter-spacing: -0.04em;
    }

    .hp-hero__graphic {
        width: 190px;
        right: -45px;
        bottom: 100px;
        opacity: 0.45;
    }
}


/* =========================================
   HOLZPEYER – SERVICES
========================================= */

.hp-services {
    background: var(--hp-bg);
    color: var(--hp-text);
    padding: clamp(80px, 8vw, 120px) var(--hp-gutter);
}

.hp-services__layout {
    width: 100%;
    max-width: var(--hp-container);
    margin-inline: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(60px, 10vw, 160px);
}

/* Linke Spalte */

.hp-services__intro h2 {
    font-size: clamp(44px, 4.5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 50px 0 0;
    max-width: 480px;
}

.hp-services__intro p {
    color: var(--hp-muted);
    font-size: clamp(18px, 1.5vw, 23px);
    line-height: 1.6;
    max-width: 420px;
    margin-top: 48px;
}

/* Rechte Spalte */

.hp-service-item {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 30px 45px 30px 0;
    transition: border-color 0.3s ease;
}

.hp-service-item:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hp-service-item:hover {
    border-color: var(--hp-accent);
}

.hp-service-item h3 {
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 12px;
}

.hp-service-item p {
    color: var(--hp-muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

/* Pfeil */

.hp-service-item::after {
    content: "↗";
    position: absolute;
    top: 28px;
    right: 8px;
    font-size: 23px;
    color: var(--hp-text);
    transition: transform 0.3s ease;
}

.hp-service-item:hover::after {
    transform: translate(4px, -4px);
}

/* Tablet */

@media (max-width: 900px) {
    .hp-services__layout {
        gap: 45px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .hp-services {
        padding: 65px var(--hp-gutter);
    }

    .hp-services__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-services__intro h2 {
        font-size: 38px;
        margin-top: 0;
    }

    .hp-services__intro p {
        margin-top: 24px;
        font-size: 18px;
    }

    .hp-service-item {
        padding: 24px 35px 24px 0;
    }
}


/* ======================================
   HOLZPEYER – PROJEKTE
====================================== */

.hp-projects {
    background: var(--hp-bg);
    color: var(--hp-text);
    padding: 80px 0 100px;
}

.hp-projects__heading {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 54px;
    color: var(--hp-text);
}

/* Grid mit drei Projekten */

.hp-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px;
}

/* Einzelne Projektkarte */

.hp-project-card {
    min-width: 0;
}

.hp-project-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hp-project-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 16px;
    transition: transform 0.5s ease;
}

.hp-project-card__link:hover .hp-project-card__image {
    transform: scale(1.02);
}

.hp-project-card__title {
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--hp-text);
    margin: 0 0 10px;
}

.hp-project-card__description {
    color: var(--hp-muted);
    font-size: 14px;
    line-height: 1.7;
}

.hp-project-card__description p {
    margin: 0;
}

/* Tablet */

@media (max-width: 900px) {
    .hp-projects__grid {
        gap: 24px;
    }

    .hp-project-card__title {
        font-size: 18px;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .hp-projects {
        padding: 60px 0;
    }

    .hp-projects__heading {
        margin-bottom: 32px;
    }

    .hp-projects__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hp-project-card__image {
        aspect-ratio: 4 / 3;
    }
}


/* ======================================
   HOLZPEYER – CTA
====================================== */

.hp-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 760px;
    padding: 72px 3.75% 24px;
    box-sizing: border-box;

    background: #170D09;
    color: #F5F1ED;

    display: flex;
    align-items: center;
}

/* Feine Linie am oberen Rand */
.hp-cta::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 3.75%;
    right: 4.5%;
    height: 1px;
    background: rgba(245, 241, 237, 0.15);
    z-index: 2;
}

/* Holzbild rechts */
.hp-cta::after {
    content: "";
    position: absolute;
    z-index: -1;

    top: 7.5%;
    right: 0;
    bottom: 2.5%;
    width: 80%;

    background-image: url("https://new.holzpeyer.ch/wp-content/uploads/2026/12/holz-cta.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Inhalt */
.hp-cta__inner {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: none !important;
    margin: 0 !important;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Überschrift */
.hp-cta__title {
    max-width: 680px;
    margin: 0 0 48px !important;

    color: #F5F1ED;
    font-family: var(--hp-font);
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 700;
    line-height: 1.12;
}

/* Beschreibung */
.hp-cta__description {
    margin: 0 0 64px !important;

    color: #F5F1ED;
    font-family: var(--hp-font);
    font-size: clamp(18px, 1.8vw, 26px);
    line-height: 1.5;
}

/* Button */
.hp-cta__buttons {
    margin: 0 !important;
}

.hp-cta__button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-width: 292px;
    padding: 21px 24px;

    background: #F00079;
    color: #FFFFFF;

    border: none;
    border-radius: 11px;

    font-family: var(--hp-font);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;

    transition: background 0.3s ease, transform 0.3s ease;
}

.hp-cta__button .wp-block-button__link:hover {
    background: #D9006C;
    transform: translateY(-2px);
}

/* Tablet */
@media (max-width: 900px) {
    .hp-cta {
        min-height: 650px;
    }

    .hp-cta::after {
        width: 85%;
        opacity: 0.8;
    }

    .hp-cta__title {
        max-width: 560px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hp-cta {
        min-height: 620px;
        padding: 100px 24px 60px;
    }

    .hp-cta::before {
        left: 24px;
        right: 24px;
    }

    .hp-cta::after {
        top: 12%;
        bottom: 5%;
        width: 100%;
        opacity: 0.45;
    }

    .hp-cta__title {
        font-size: clamp(40px, 10vw, 54px);
        margin-bottom: 30px !important;
    }

    .hp-cta__description {
        font-size: 18px;
        margin-bottom: 42px !important;
    }

    .hp-cta__button .wp-block-button__link {
        min-width: 0;
        width: 100%;
    }
}


/* ======================================
   HOLZPEYER FOOTER – LAYOUT FIX
====================================== */

.hp-footer {
    display: block;
    width: 100%;
    padding: 65px 4.1%;
    background: #170D09;
    color: #F5F1ED;
    box-sizing: border-box;
}

.hp-footer__inner {
    display: grid !important;
    grid-template-columns: 250px 180px 210px 45px minmax(120px, 1fr);
    align-items: center;
    gap: 35px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.hp-footer__brand,
.hp-footer__address,
.hp-footer__contact,
.hp-footer__social,
.hp-footer__legal {
    min-width: 0;
}

.hp-footer__logo {
    display: block;
    width: 195px;
}

.hp-footer__logo-accent {
    color: #E6007E;
}

.hp-footer__address p,
.hp-footer__contact a {
    margin: 0;
    color: #F5F1ED;
    font-family: var(--hp-font);
    font-size: 17px;
    line-height: 1.7;
}

.hp-footer__contact {
    display: flex;
    flex-direction: column;
}

.hp-footer__contact a {
    text-decoration: none;
}

.hp-footer__social a {
    display: block;
    width: 32px !important;
    height: 32px !important;
    color: #F5F1ED;
}

.hp-footer__social svg {
    display: block;
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
}

.hp-footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hp-footer__legal a {
    color: #71645F;
    font-size: 17px;
    line-height: 1.7;
    text-decoration: none;
}

@media (max-width: 900px) {
    .hp-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hp-footer__legal {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hp-footer {
        padding: 45px 24px;
    }

    .hp-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .hp-footer__brand {
        grid-column: 1 / -1;
    }


    .hp-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
}

    .hp-footer__address p,
    .hp-footer__contact a,
    .hp-footer__legal a {
        font-size: 14px;
    }
}


/* SERVICES – LAYOUT KORREKTUR */

.hp-services {
    padding: clamp(80px, 8vw, 120px) var(--hp-gutter) !important;
}

.hp-services__layout {
    display: grid !important;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) !important;
    gap: clamp(60px, 10vw, 160px) !important;
    max-width: var(--hp-container) !important;
    width: 100% !important;
    margin-inline: auto !important;
}

.hp-services__intro h2 {
    font-size: clamp(44px, 4.5vw, 58px) !important;
    line-height: 1.1 !important;
}

.hp-service-item {
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    padding: 30px 45px 30px 0 !important;
    position: relative;
}

.hp-service-item:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}

.hp-service-item h3 {
    font-size: clamp(22px, 2vw, 28px) !important;
    margin: 0 0 12px !important;
}

.hp-service-item p {
    font-size: 17px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.hp-service-item::after {
    content: "↗";
    position: absolute;
    top: 28px;
    right: 8px;
    font-size: 23px;
}

/* Mobile */

@media (max-width: 767px) {
    .hp-services__layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}






/* =========================================
   HOLZPEYER – PROJEKT DETAILSEITE
========================================= */

.hp-project-single {
    background: var(--hp-bg);
    color: var(--hp-text);
}

/* Hero */

.hp-project-hero {
    position: relative;
}

.hp-project-hero__image {
    width: 100%;
    height: clamp(350px, 65vh, 850px);
    overflow: hidden;
}

.hp-project-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Inhalt */

.hp-project-hero__content {
    padding: 70px var(--hp-gutter) 90px;
    max-width: 1600px;
    margin: 0 auto;
}

.hp-project-hero__eyebrow {
    display: block;
    color: var(--hp-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.hp-project-hero__title {
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    max-width: 800px;
    margin: 0;
}

/* Gutenberg Inhalt */

.hp-project-content {
    width: 100%;
    max-width: var(--hp-container);
    margin: 0 auto;
    padding: 0 var(--hp-gutter);
}

/* Mobile */

@media (max-width: 767px) {
    .hp-project-hero__image {
        height: 55vh;
        min-height: 350px;
    }

    .hp-project-hero__content {
        padding: 45px var(--hp-gutter) 65px;
    }

    .hp-project-hero__title {
        font-size: clamp(42px, 11vw, 58px);
    }
}



/* =========================================
   HOLZPEYER – PROJEKTDATEN
========================================= */

.hp-project-meta {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px var(--hp-gutter) 90px;
}

.hp-project-meta__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 60px);
}

.hp-project-meta__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hp-project-meta__label {
    color: var(--hp-muted);
    font-size: 13px;
}

.hp-project-meta__value {
    color: var(--hp-text);
    font-size: 15px;
    line-height: 1.5;
}

/* Mobile */

@media (max-width: 767px) {
    .hp-project-meta {
        padding-bottom: 60px;
    }

    .hp-project-meta__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }
}


/* =========================================
   HOLZPEYER – PROJEKTBESCHREIBUNG
========================================= */

.hp-project-intro {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 120px);
    padding: 70px 0 80px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hp-project-intro__title h2 {
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin: 0;
    max-width: 420px;
}

.hp-project-intro__text p {
    color: var(--hp-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
}

/* Mobile */

@media (max-width: 767px) {
    .hp-project-intro {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 45px 0 55px;
    }
}



/* =========================================
   HOLZPEYER – PROJEKTGALERIE
========================================= */

.hp-project-gallery {
    display: grid !important;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 32px);
    margin: 50px 0 100px !important;
}

.hp-project-gallery__large,
.hp-project-gallery__small {
    min-width: 0;
}

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

.hp-project-gallery__large figure,
.hp-project-gallery__small figure {
    height: 100%;
    margin: 0;
}

.hp-project-gallery__large img,
.hp-project-gallery__small img {
    aspect-ratio: 4 / 3;
}

/* Mobile */

@media (max-width: 767px) {
    .hp-project-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 35px 0 60px !important;
    }
}

/* =========================================
   HOLZPEYER – PROJEKTGALERIE FIX
========================================= */

.hp-project-gallery {
    display: grid !important;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) !important;
    gap: clamp(24px, 5vw, 80px) !important;
    align-items: center;
    width: 100%;
    margin: 50px 0 100px !important;
}

/* Gutenberg-Spalten zurücksetzen */

.hp-project-gallery > .wp-block-column {
    flex-basis: auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Bilder */

.hp-project-gallery figure {
    margin: 0 !important;
    width: 100%;
}

.hp-project-gallery img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

/* Grosses Bild */

.hp-project-gallery__large img {
    aspect-ratio: 4 / 3;
}

/* Kleineres Bild */

.hp-project-gallery__small img {
    aspect-ratio: 4 / 3;
}

/* Mobile */

@media (max-width: 767px) {
    .hp-project-gallery {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin: 35px 0 60px !important;
    }
}


/* Galerie – rechtes Bild nach unten versetzen */

.hp-project-gallery > .wp-block-column:nth-child(2) {
    align-self: start !important;
    margin-top: clamp(40px, 6vw, 90px) !important;
}

/* Mobile */
@media (max-width: 767px) {
    .hp-project-gallery > .wp-block-column:nth-child(2) {
        margin-top: 0 !important;
    }
}

/* Mobile: wieder normal untereinander */
@media (max-width: 767px) {
    .hp-project-gallery__small {
        transform: none;
    }
}



/* =========================================
   HOLZPEYER – PROJEKT DETAILBEREICHE
========================================= */

.hp-project-detail {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 8vw, 120px);
    align-items: center;
    margin: 0 0 100px !important;
}

.hp-project-detail__text {
    min-width: 0;
}

.hp-project-detail__text h2 {
    font-size: clamp(28px, 2.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}

.hp-project-detail__text p {
    color: var(--hp-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.hp-project-detail__image {
    min-width: 0;
}

.hp-project-detail__image figure {
    margin: 0;
}

.hp-project-detail__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Mobile */

@media (max-width: 767px) {
    .hp-project-detail {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 65px !important;
    }
}


/* =========================================
   HOLZPEYER – PROJEKT TRENNLINIE
========================================= */

.wp-block-separator.hp-project-divider {
    border: 0 !important;
    border-top: 1px solid rgba(245, 241, 237, 0.2) !important;
    background: transparent !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 clamp(60px, 7vw, 100px) !important;
    opacity: 1 !important;
}

/* Abstand vor der Linie */
.hp-project-detail + .hp-project-divider {
    margin-top: 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
    .wp-block-separator.hp-project-divider {
        margin-bottom: 55px !important;
    }
}

/* Hero als Positionierungsbasis */
.hp-hero {
    position: relative;
    overflow: visible;
}

/* Dekoratives Holzpeyer-O */
.hp-hero__mark {
    position: absolute;
    z-index: 2;

    width: clamp(280px, 42vw, 600px);
    height: auto;

    right: 5%;
    top: 50%;

    transform: translateY(-20%);

    pointer-events: none;
}

/* Mobile */
@media (max-width: 767px) {
    .hp-hero__mark {
        width: 55vw;
        right: 3%;
        top: 70%;
    }
}

/* Hero als Positionierungsbasis */
.hp-hero {
    position: relative;
    overflow: visible;
}

/* O-Grafik */
.hp-hero__graphic {
    position: absolute;
    width: clamp(300px, 42vw, 600px);
    right: 5%;
    top: 100px;
    z-index: 5;
    pointer-events: none;
}

.hp-hero__mark {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
}

/* Mobile */
@media (max-width: 767px) {
    .hp-hero__graphic {
        width: 55vw;
        right: 3%;
        top: 65%;
    }
}


.hp-decorative-o {
    position: absolute;
    z-index: 5;
    width: clamp(280px, 40vw, 600px);
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.hp-decorative-o img {
    display: block;
    width: 100%;
    height: auto;
}

html,
body,
body * {
    font-style: normal !important;
}

@media (max-width: 767px) {
    .hp-split__number {
        margin-top: 35px;
    }
}

/* EXPERIENCE – Feinschliff */

.hp-split__grid {
    align-items: center !important;
}

.hp-split__grid > .wp-block-column:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-split h2 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.1;
    max-width: 650px;
    margin-bottom: 32px;
}

.hp-split__number {
    margin-top: 70px;
}

.hp-split__value {
    font-size: clamp(64px, 7vw, 100px);
    letter-spacing: -0.04em;
}

.hp-split__label {
    margin-top: 16px;
}

/* EXPERIENCE – Seitenabstände */

.hp-split-section {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(24px, 5vw, 90px);
    padding-right: clamp(24px, 5vw, 90px);
    box-sizing: border-box;
}

/* =========================================
   TESTIMONIAL
========================================= */

.hp-testimonial {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    background: var(--hp-bg);
    overflow: hidden;
    box-sizing: border-box;
}

.hp-testimonial__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
}

/* Dekoratives O */

.hp-testimonial__graphic {
    position: absolute;
    left: -3%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(350px, 42vw, 650px);
    z-index: 0;
    pointer-events: none;
}

.hp-testimonial__graphic img {
    display: block;
    width: 100%;
    height: auto;
}

/* Zitat */

.hp-testimonial__content {
    grid-column: 2;
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 80px 50px;
}

.hp-testimonial__quote {
    position: relative;
    font-size: clamp(22px, 2vw, 27px);
    line-height: 1.35;
    font-weight: 600;
    color: var(--hp-text);
}

.hp-testimonial__quote::before {
    content: "“";
    position: absolute;
    left: -26px;
    top: -35px;
    font-size: 55px;
    color: rgba(245, 241, 237, 0.35);
}

.hp-testimonial__quote::after {
    content: "”";
    position: absolute;
    right: -25px;
    bottom: -45px;
    font-size: 55px;
    color: rgba(245, 241, 237, 0.35);
}

.hp-testimonial__quote p {
    margin: 0;
}

.hp-testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    color: var(--hp-muted);
    font-size: 15px;
}

.hp-testimonial__author strong {
    font-size: 16px;
    font-weight: 400;
    color: var(--hp-text);
}

/* Mobile */

@media (max-width: 767px) {

    .hp-testimonial__inner {
        grid-template-columns: 1fr;
        min-height: 480px;
    }

    .hp-testimonial__graphic {
        width: 75%;
        left: -20%;
        opacity: 0.45;
    }

    .hp-testimonial__content {
        grid-column: 1;
        padding: 100px 40px;
    }

    .hp-testimonial__quote {
        font-size: 22px;
    }
}

/* =========================================
   TESTIMONIAL – AUTOMATIC FADE SLIDER
========================================= */

.hp-testimonial {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.hp-testimonial__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
}

/* Dekoratives O */

.hp-testimonial__graphic {
    position: absolute;
    left: -3%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(350px, 42vw, 650px);
    z-index: 0;
    pointer-events: none;
}

.hp-testimonial__graphic img {
    display: block;
    width: 100%;
    height: auto;
}

/* Slider */

.hp-testimonial__slider {
    position: relative;
    grid-column: 2;
    width: 100%;
    min-height: 360px;
    z-index: 1;
}

.hp-testimonial__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
    padding: 60px 50px;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.hp-testimonial__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Zitat */

.hp-testimonial__quote {
    position: relative;
    font-size: clamp(22px, 2vw, 27px);
    line-height: 1.4;
    font-weight: 600;
    color: var(--hp-text);
}

.hp-testimonial__quote::before {
    content: "“";
    position: absolute;
    left: -28px;
    top: -35px;
    font-size: 55px;
    color: rgba(245, 241, 237, 0.35);
}

.hp-testimonial__quote p {
    margin: 0;
}

/* Kundeninformationen */

.hp-testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 35px;
    color: var(--hp-muted);
    font-size: 14px;
}

.hp-testimonial__author strong {
    color: var(--hp-text);
    font-size: 16px;
    font-weight: 600;
}

/* Mobile */

@media (max-width: 767px) {

    .hp-testimonial__inner {
        grid-template-columns: 1fr;
        min-height: 480px;
    }

    .hp-testimonial__graphic {
        width: 75%;
        left: -20%;
        opacity: 0.45;
    }

    .hp-testimonial__slider {
        grid-column: 1;
        min-height: 400px;
    }

    .hp-testimonial__slide {
        padding: 70px 40px;
    }

    .hp-testimonial__quote {
        font-size: 22px;
    }
}

/* Bewegungsreduktion */

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


/* ======================================
   LEISTUNGEN – HERO
====================================== */

.hp-services-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: clamp(40px, 8vw, 120px) 5%;
    background-position: center;
}

.hp-services-hero .wp-block-cover__background {
    opacity: 0.35;
}

.hp-services-hero__content {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
}

.hp-services-hero h1 {
    max-width: 850px;
    font-family: var(--hp-font);
    font-size: clamp(48px, 7vw, 100px);
    line-height: 0.98;
    font-weight: 700;
    color: var(--hp-text);
    margin-bottom: 28px;
}

.hp-services-hero p {
    max-width: 550px;
    color: var(--hp-text);
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .hp-services-hero {
        min-height: 480px;
        padding: 60px 24px;
    }
}
.hp-page__hero {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hp-page__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 767px) {
    .hp-page__hero {
        height: 450px;
    }
}


/* =====================================
   SERVICE FEATURE – MÖBEL NACH MASS
===================================== */

.hp-service-feature {
    background: var(--hp-bg);
    color: var(--hp-text);
    padding: clamp(60px, 7vw, 100px) var(--hp-gutter);
}

.hp-service-feature__layout {
    display: grid !important;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(50px, 10vw, 150px);
    align-items: center;
    max-width: var(--hp-container);
    margin-inline: auto !important;
}

.hp-service-feature__layout > .wp-block-column {
    width: auto !important;
    flex-basis: auto !important;
    margin: 0 !important;
}

/* Textbereich */

.hp-service-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-service-feature__content h2 {
    font-family: var(--hp-font);
    font-size: clamp(42px, 4vw, 60px);
    line-height: 1.12;
    font-weight: 700;
    color: var(--hp-text);
    margin: 0 0 48px;
}

.hp-service-feature__content > p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--hp-text);
    margin-bottom: 48px;
}

/* Leistungsübersicht */

.hp-service-feature__content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 55px;
}

.hp-service-feature__content li {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 16px 0;
    font-size: 17px;
}

.hp-service-feature__content li:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* CTA */

.hp-service-feature__content a {
    color: var(--hp-text);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.hp-service-feature__content a:hover {
    color: var(--hp-accent);
}

/* Bild */

.hp-service-feature__image {
    width: 100%;
    height: 100%;
}

.hp-service-feature__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 750px;
    object-fit: cover;
}

/* Mobile */

@media (max-width: 767px) {
    .hp-service-feature {
        padding: 60px 24px;
    }

    .hp-service-feature__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-service-feature__content h2 {
        font-size: 42px;
        margin-bottom: 28px;
    }

    .hp-service-feature__content > p {
        margin-bottom: 32px;
    }

    .hp-service-feature__content ul {
        margin-bottom: 35px;
    }

    .hp-service-feature__image img {
        min-height: 350px;
        max-height: 500px;
    }
}


/* Secondary Button – Textlink-Optik */
.hp-secondary-btn .wp-block-button__link {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;

    padding: 0 !important;
    margin: 0;

    background: transparent !important;
    color: var(--hp-text) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    font-family: var(--hp-font);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;

    transition: color 0.25s ease;
}

.hp-secondary-btn .wp-block-button__link:hover {
    background: transparent !important;
    color: var(--hp-accent) !important;
    box-shadow: none !important;
}


/* =====================================
   HERO – NORMALE WORDPRESS-SEITEN
===================================== */

.hp-page-hero .hp-hero__background {
    background-size: cover;
    background-position: center center;
}

.hp-page-hero .hp-hero__content {
    width: 100%;
}

.hp-page-hero .hp-container {
    width: 100%;
    max-width: var(--hp-container);
    margin-inline: auto;
    padding-inline: var(--hp-gutter);
}

.hp-split-section {
    width: 100%;
    max-width: 1600px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(24px, 5vw, 90px) !important;
    padding-right: clamp(24px, 5vw, 90px) !important;
    box-sizing: border-box;
}


/* Split Section – Überschrift */
.hp-split-section h2 {
    font-family: var(--hp-font);
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--hp-text);
    max-width: 650px;
    margin: 0 0 32px;
}



/* =====================================
   PROJEKTE – ÜBERSICHT
===================================== */

.hp-project-archive {
    background: var(--hp-bg);
    color: var(--hp-text);
}

/* Hero */

.hp-project-archive__hero {
    min-height: 750px;
    height: 85vh;
    max-height: 1050px;
}

.hp-project-archive__hero .hp-hero__background {
    background-size: cover;
    background-position: center;
}

.hp-project-archive__hero .hp-container {
    width: 100%;
    max-width: var(--hp-container);
    margin-inline: auto;
    padding-inline: var(--hp-gutter);
}

.hp-project-archive__intro {
    max-width: 650px;
    margin-top: 28px;
    color: var(--hp-text);
    font-size: 17px;
    line-height: 1.7;
}

/* Projektübersicht */

.hp-projects--archive {
    padding: 120px var(--hp-gutter);
}

.hp-projects--archive .hp-container {
    max-width: var(--hp-container);
    margin-inline: auto;
}

.hp-projects--archive .hp-projects__intro {
    margin-bottom: 55px;
}

.hp-projects--archive .hp-projects__heading {
    max-width: 750px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.1;
    margin: 0 0 18px;
}

.hp-projects--archive .hp-projects__intro p {
    color: var(--hp-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Zweispaltiges Raster */

.hp-projects--archive .hp-projects__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 5vw, 80px);
    row-gap: 65px;
}

/* Versetzte Karten */

.hp-projects--archive .hp-project-card:nth-child(even) {
    margin-top: 75px;
}

.hp-projects--archive .hp-project-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 22px;
}

.hp-projects--archive .hp-project-card__link {
    position: relative;
}

.hp-projects--archive .hp-project-card__title {
    font-size: clamp(19px, 2vw, 25px);
    margin-bottom: 10px;
}

.hp-projects--archive .hp-project-card__arrow {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.hp-projects--archive .hp-project-card__link:hover
.hp-project-card__arrow {
    transform: translate(4px, -4px);
}

/* Pagination */

.hp-project-pagination {
    margin-top: 80px;
}

.hp-project-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.hp-project-pagination a,
.hp-project-pagination span {
    color: var(--hp-text);
    text-decoration: none;
}

/* Mobile */

@media (max-width: 767px) {

    .hp-project-archive__hero {
        min-height: 620px;
        height: 85svh;
        max-height: 850px;
    }

    .hp-projects--archive {
        padding: 70px 22px;
    }

    .hp-projects--archive .hp-projects__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-projects--archive .hp-project-card:nth-child(even) {
        margin-top: 0;
    }

    .hp-projects--archive .hp-projects__intro {
        margin-bottom: 35px;
    }
}

/* =========================================
   PROJEKTÜBERSICHT – HERO-TITEL AUSRICHTUNG
========================================= */

.hp-project-archive__hero .hp-hero__content {
    width: 100%;
}

.hp-project-archive__hero .hp-container {
    width: 100%;
    max-width: var(--hp-container);
    margin-inline: auto;
    padding-inline: var(--hp-gutter);
    padding-top: 100px;
    position: relative;
    z-index: 2;
}


/* =========================================
   HOLZPEYER – PROJEKTFILTER
========================================= */

.hp-project-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 55px;
    font-family: var(--hp-font);
    font-size: clamp(16px, 1.6vw, 24px);
    line-height: 1.5;
}

.hp-project-filters a {
    color: var(--hp-text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.hp-project-filters a:hover,
.hp-project-filters a.is-active {
    color: var(--hp-text);
    opacity: 1;
}

.hp-project-filters__separator {
    color: var(--hp-muted);
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 767px) {
    .hp-project-filters {
        gap: 8px;
        margin-top: 22px;
        margin-bottom: 38px;
        font-size: 16px;
    }
}