/* ========================================
   Ce-Sa Bau - Kirby CMS Page Styles
   Based on Figma Design 1:1
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Utilities */
.text-red {
    color: #932128;
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.85;
}

.btn--primary {
    background: #932128;
    color: #fff;
    padding: 20px 40px;
}

.btn--sm {
    padding: 12px 28px;
    font-size: 12px;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.btn--outline-white {
    border: 2px solid #fff;
    color: #fff;
    padding: 22px 42px;
}

.btn--white {
    background: #fff;
    color: #932128;
    padding: 22px 48px;
    font-weight: 900;
    letter-spacing: 2.8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn__arrow {
    font-size: 16px;
}

/* ----------------------------------------
   Top Navigation
   ---------------------------------------- */
.top-nav {
    position: relative;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid rgba(209, 209, 209, 0.3);
    transition: box-shadow 0.3s, padding 0.3s;
}

.top-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.top-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
}

.top-nav__logo {
    flex-shrink: 0;
}

.top-nav__logo img {
    width: 100px;
    height: auto;
}

.footer__logo {
    margin-bottom: 32px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.top-nav__links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.top-nav__link {
    font-size: 16px;
    font-weight: 600;
    color: #4a4a4a;
    padding: 3px 0;
    transition: color 0.2s;
}

.top-nav__link:hover {
    color: #932128;
}

.top-nav__link--active {
    font-weight: 700;
    color: #932128;
    border-bottom: 2px solid #932128;
    padding-bottom: 6px;
}

.top-nav__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-nav__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-nav__label {
    font-size: 10px;
    font-weight: 700;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-nav__phone {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 700px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.4));
}

.hero__texture {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-size: 512px 512px;
}

.hero__stats {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #932128;
    padding: 40px;
    min-width: 320px;
    z-index: 10;
}

.hero__stat {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero__stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.hero__stat-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.25;
}

.hero__stat-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 32px 0;
}

.hero__content {
    position: relative;
    z-index: 5;
    max-width: 896px;
    padding: 0 32px;
}

.hero__tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero__tagline-line {
    width: 48px;
    height: 1px;
    background: #932128;
}

.hero__tagline-text {
    font-size: 14px;
    font-weight: 700;
    color: #932128;
    text-transform: uppercase;
    letter-spacing: 4.2px;
}

.hero__title {
    font-size: 96px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -2.4px;
    line-height: 1;
    margin-bottom: 32px;
}

.hero__subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #d1d5db;
    line-height: 1.33;
    max-width: 593px;
    margin-bottom: 32px;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    padding-top: 16px;
}

/* ----------------------------------------
   Section Shared
   ---------------------------------------- */
.section-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #932128;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 400;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1;
}

/* ----------------------------------------
   Services Section
   ---------------------------------------- */
.services {
    padding: 96px 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.services__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.services__header-left {
    max-width: 672px;
}

.services__header-right {
    max-width: 448px;
}

.services__header-right p {
    font-size: 18px;
    font-weight: 400;
    color: #4a4a4a;
    line-height: 1.56;
}

.services__bar {
    width: 100%;
    height: 4px;
    background: rgba(209, 209, 209, 0.2);
    margin-bottom: 80px;
}

.services__bar-fill {
    width: 96px;
    height: 4px;
    background: #932128;
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 500px 500px;
    gap: 4px;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__bg--overlay {
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.service-card__bg--desat {
    opacity: 0.3;
    filter: saturate(0);
}

.service-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000, transparent 50%);
}

/* Service 1: Sanierung - large card */
.service-card--large {
    grid-column: 1 / span 8;
    grid-row: 1;
    background: #1a1a1a;
}

.service-card--large .service-card__bg {
    opacity: 0.6;
}

.service-card--large .service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px;
}

.service-card__icon {
    margin-bottom: 24px;
}

.service-card__title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1.1;
}

.service-card__title--sm {
    font-size: 30px;
}

.service-card__title--dark {
    color: #1a1a1a;
}

.service-card__text {
    font-size: 16px;
    font-weight: 300;
    color: #d1d5db;
    line-height: 1.5;
    max-width: 448px;
    margin-bottom: 16px;
}

.service-card__text--dark {
    color: #4a4a4a;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.625;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 16px;
}

.service-card__link span {
    font-size: 16px;
}

/* Service 2: Fassadenbau */
.service-card--medium:nth-child(2) {
    grid-column: 9 / span 4;
    grid-row: 1;
    background: #f4f4f4;
}

/* Service 3: Heizung & Sanitär */
.service-card--wide {
    grid-column: 1 / span 12;
    grid-row: 2;
    background: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__content--center {
    padding: 72px;
    text-align: center;
}

.service-card__tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.service-card__tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.service-card__check {
    color: #932128;
    font-size: 12px;
}

/* ----------------------------------------
   Partners Section
   ---------------------------------------- */
.partners {
    background: #f4f4f4;
    border-top: 1px solid rgba(209, 209, 209, 0.2);
    border-bottom: 1px solid rgba(209, 209, 209, 0.2);
    padding: 81px 32px;
}

.partners__inner {
    max-width: 1216px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

.partners__label {
    font-size: 10px;
    font-weight: 700;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.partners__logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    opacity: 0.4;
}

.partners__logo {
    font-size: 30px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -1.5px;
}

.partners__logo-img {
    height: 40px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partners__logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ----------------------------------------
   Process Section
   ---------------------------------------- */
.process {
    max-width: 1280px;
    margin: 0 auto;
    padding: 128px 32px 224px;
}

.process__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
}

.process__left {
    padding-top: 0;
}

.process__steps {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: 48px;
}

.process__step {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.process__number {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border: 2px solid #932128;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #932128;
}

.process__step-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.process__step-content p {
    font-size: 16px;
    font-weight: 400;
    color: #4a4a4a;
    line-height: 1.625;
}

.process__right {
    position: relative;
    padding-top: 80px;
}

.process__accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 160px;
    height: 160px;
    background: rgba(147, 33, 40, 0.1);
    z-index: 0;
}

.process__image {
    position: relative;
    z-index: 1;
    box-shadow: 30px 30px 0 0 #932128;
    overflow: hidden;
}

.process__image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: saturate(0);
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta {
    background: #932128;
    position: relative;
    padding: 96px 32px;
}

.cta__inner {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

.cta__title {
    font-size: 60px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 32px;
}

.cta__text {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.cta__buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding-top: 16px;
}

.cta .btn--outline-white {
    font-weight: 900;
    letter-spacing: 2.8px;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
    background: #1a1a1a;
    padding-top: 96px;
}

.footer__inner {
    max-width: 1216px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5fr 2fr 2fr 3fr;
    gap: 64px;
    padding: 0 32px;
}

.footer__desc {
    font-size: 14px;
    font-weight: 400;
    color: #b4bcc8;
    line-height: 1.625;
    max-width: 384px;
    margin-bottom: 32px;
}

.footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__heading {
    font-size: 12px;
    font-weight: 700;
    color: #e8474e;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 32px;
    line-height: 1.33;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__list a {
    font-size: 14px;
    font-weight: 400;
    color: #b4bcc8;
    line-height: 1.43;
    transition: color 0.2s;
}

.footer__list a:hover {
    color: #fff;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: #b4bcc8;
    line-height: 1.43;
}

.footer__contact a {
    color: #b4bcc8;
    transition: color 0.2s;
}

.footer__contact a:hover {
    color: #fff;
}

.footer__contact svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
    padding: 33px 32px 32px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.footer__bottom span {
    font-size: 10px;
    font-weight: 400;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Mobile Menu Toggle
   ======================================== */
.top-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.top-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: transform 0.3s, opacity 0.3s;
}

.top-nav__toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.top-nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.top-nav__toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   RESPONSIVE: Tablet (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {

    /* Nav */
    .top-nav__toggle {
        display: flex;
    }

    .top-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px 32px;
        gap: 20px;
        border-bottom: 1px solid rgba(209, 209, 209, 0.3);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }

    .top-nav__links.is-open {
        display: flex;
    }

    .top-nav__contact {
        display: flex;
    }

    .btn--sm {
        padding: 10px 20px;
        font-size: 11px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        max-height: none;
        height: auto;
        flex-direction: column;
        padding: 0;
    }

    .hero__content {
        padding: 60px 32px 40px;
    }

    .hero__title {
        font-size: 64px;
    }

    .hero__subtitle {
        font-size: 20px;
    }

    .hero__buttons {
        flex-wrap: wrap;
    }

    .hero__stats {
        position: relative;
        bottom: auto;
        right: auto;
        min-width: 0;
        width: 100%;
        padding: 32px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 24px;
        justify-content: center;
        overflow: hidden;
    }

    .hero__stat-divider {
        width: 1px;
        height: 48px;
        margin: 0;
    }

    .hero__stat-number {
        font-size: 32px;
    }

    .hero__stat-label {
        font-size: 11px;
    }

    /* Services */
    .services {
        padding: 64px 24px;
    }

    .services__header {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .services__header-right {
        max-width: 100%;
    }

    .services__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 4px;
    }

    .service-card--large {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 400px;
    }

    .service-card--medium:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
        min-height: 400px;
    }

    .service-card--wide {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 400px;
    }

    .services__bar {
        margin-bottom: 48px;
    }

    .service-card__title {
        font-size: 28px;
    }

    .service-card__title--sm {
        font-size: 22px;
    }

    .service-card__content--bottom {
        padding: 32px;
    }

    .service-card__text {
        font-size: 14px;
    }

    /* Partners */
    .partners__inner {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .partners__logos {
        width: 100%;
    }

    .partners__logo {
        font-size: 22px;
    }

    /* Process */
    .process {
        padding: 80px 24px 120px;
    }

    .process__inner {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .process__right {
        padding-top: 0;
    }

    .process__image {
        box-shadow: 20px 20px 0 0 #932128;
    }

    .section-title {
        font-size: 40px;
    }

    /* CTA */
    .cta {
        padding: 72px 24px;
    }

    .cta__title {
        font-size: 44px;
    }

    .cta__text {
        font-size: 18px;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

/* ========================================
   RESPONSIVE: Mobile (max-width: 640px)
   ======================================== */
@media (max-width: 640px) {

    /* Nav */
    .top-nav__inner {
        padding: 12px 16px;
    }

    .top-nav__links {
        padding: 20px;
    }

    .top-nav__right {
        gap: 12px;
    }

    .top-nav__label {
        display: none;
    }

    .top-nav__right .btn--primary.btn--sm {
        display: none;
    }

    .top-nav__logo img {
        width: 80px;
        height: 38px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        max-height: none;
        height: auto;
        padding: 0;
        flex-direction: column;
    }

    .hero__content {
        padding: 80px 20px 40px;
    }

    .hero__tagline-text {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hero__title {
        font-size: 40px;
        letter-spacing: -1px;
        margin-bottom: 24px;
    }

    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero__buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .btn--primary {
        padding: 16px 32px;
    }

    .btn--outline-white {
        padding: 16px 32px;
    }

    .hero__stats {
        position: relative;
        bottom: auto;
        right: auto;
        min-width: 0;
        width: 100%;
        padding: 16px 20px;
        margin-top: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .hero__stat-number {
        font-size: 24px;
    }

    .hero__stat-label {
        font-size: 9px;
        letter-spacing: 0.8px;
    }

    .hero__stat {
        gap: 10px;
    }

    .hero__stat-divider {
        width: 1px;
        height: 36px;
        margin: 0;
    }

    /* Services */
    .services {
        padding: 48px 20px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card--large,
    .service-card--medium:nth-child(2),
    .service-card--wide {
        min-height: 350px;
    }

    .service-card__content--center {
        padding: 40px 24px;
        text-align: left;
    }

    .service-card__content--bottom {
        padding: 32px 24px;
    }

    .service-card--large .service-card__content {
        padding: 32px 24px;
    }

    .service-card__title {
        font-size: 28px;
    }

    .service-card__title--sm {
        font-size: 24px;
    }

    .service-card__tags {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .services__bar {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-label {
        font-size: 12px;
    }

    /* Partners */
    .partners {
        padding: 48px 20px;
    }

    .partners__logos {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .partners__logo {
        font-size: 20px;
    }

    .partners__label {
        text-align: center;
        width: 100%;
    }

    /* Process */
    .process {
        padding: 64px 20px 80px;
    }

    .process__steps {
        gap: 40px;
        margin-top: 32px;
    }

    .process__step {
        gap: 20px;
    }

    .process__number {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 16px;
    }

    .process__step-title {
        font-size: 16px;
    }

    .process__step-content p {
        font-size: 14px;
    }

    .process__accent {
        width: 100px;
        height: 100px;
    }

    .process__image {
        box-shadow: 15px 15px 0 0 #932128;
    }

    /* CTA */
    .cta {
        padding: 56px 20px;
    }

    .cta__title {
        font-size: 32px;
    }

    .cta__text {
        font-size: 16px;
    }

    .cta__buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .cta__buttons .btn {
        width: auto;
        flex: 1;
        min-width: 140px;
    }

    .btn--white {
        padding: 18px 32px;
    }

    /* Footer */
    .footer {
        padding-top: 56px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .footer__brand {
        grid-column: auto;
    }

    .footer__bottom {
        margin-top: 48px;
        padding: 24px 20px;
    }
}

/* ========================================
   Page Content (Subpages)
   ======================================== */
.page-content {
    padding: 80px 32px 120px;
    max-width: 860px;
    margin: 0 auto;
}

.page-content__title {
    font-size: 40px;
    font-weight: 400;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 3px solid #932128;
}

.page-content__body {
    font-size: 16px;
    line-height: 1.75;
    color: #4a4a4a;
}

.page-content__body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-content__body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 32px 0 12px;
}

.page-content__body p {
    margin-bottom: 16px;
}

.page-content__body ul {
    margin: 16px 0;
    padding-left: 24px;
    list-style: disc;
}

.page-content__body li {
    margin-bottom: 8px;
}

.page-content__body a {
    color: #932128;
    text-decoration: underline;
}

.page-content__body strong {
    color: #1a1a1a;
}

/* ----------------------------------------
   Team Section (Über uns)
   ---------------------------------------- */
.team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.team__photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 24px;
}

.team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team__name {
    font-size: 22px;
    font-weight: 700;
    color: #932128;
    margin-bottom: 8px;
}

.team__role {
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 4px;
}

.team__detail {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* ----------------------------------------
   Leistungen Page
   ---------------------------------------- */
.page-content--wide .page-content__inner {
    max-width: 1100px;
}

.leistungen-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 48px;
}

.leistung-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.leistung-card:nth-child(even) {
    direction: rtl;
}

.leistung-card:nth-child(even) > * {
    direction: ltr;
}

.leistung-card__image {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.leistung-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.leistung-card:hover .leistung-card__image img {
    transform: scale(1.03);
}

.leistung-card__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.leistung-card__content p {
    font-size: 16px;
    line-height: 1.75;
    color: #4b5563;
}

/* ----------------------------------------
   Kontakt Form
   ---------------------------------------- */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    margin-top: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #932128;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #932128;
}

.form-hint {
    font-size: 12px;
    color: #932128;
}

.form-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 32px;
    border-radius: 4px;
}

.form-success h2 {
    font-size: 20px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 8px;
}

.form-success p {
    color: #166534;
    line-height: 1.5;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    padding: 16px;
    border-radius: 4px;
    color: #991b1b;
    font-size: 14px;
    margin-bottom: 16px;
}

.contact-form button[type="submit"] {
    border: none;
    outline: none;
    width: 100%;
}

@media (max-width: 768px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .leistung-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .leistung-card:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 640px) {
    .team {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .page-content {
        padding: 48px 20px 80px;
    }

    .page-content__title {
        font-size: 28px;
    }
}

.service-card__link--dark {
    color: #932128;
}

.service-card__link--bottom-left {
    position: absolute;
    bottom: 48px;
    left: 72px;
}

/* ========================================
   References / Projekte Page
   ======================================== */
.ref-hero {
    background: #1a1a1a;
    padding: 96px 32px 80px;
}

.ref-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ref-hero__title {
    font-size: 60px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 24px;
}

.ref-hero__intro {
    font-size: 20px;
    font-weight: 300;
    color: #9ca3af;
    max-width: 600px;
    line-height: 1.5;
}

.ref-hero__counter {
    font-size: 48px;
    font-weight: 700;
    color: #932128;
    margin-top: 16px;
    line-height: 1.1;
}

.ref-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 32px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.ref-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ref-card--reverse {
    direction: rtl;
}

.ref-card--reverse>* {
    direction: ltr;
}

.ref-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f4f4f4;
}

.ref-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ref-card:hover .ref-card__image img {
    transform: scale(1.04);
}

.ref-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
}

.ref-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #932128;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 16px;
    letter-spacing: 1px;
}

.ref-card__location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #932128;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.ref-card__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 24px;
}

.ref-card__works-label {
    font-size: 11px;
    font-weight: 700;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ref-card__works ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 32px;
}

.ref-card__works li {
    font-size: 14px;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-card__check {
    color: #932128;
    font-size: 12px;
    font-weight: 700;
}

.ref-card__gallery {
    display: flex;
    gap: 4px;
    margin-top: 24px;
}

.ref-card__gallery img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s;
}

.ref-card__gallery img:hover {
    opacity: 0.7;
}

.ref-card__more {
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* --- Filter Bar --- */
.ref-filter {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background: #fff;
}

.ref-filter__btn {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4a4a4a;
    background: transparent;
    border: 1.5px solid #d1d1d1;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.ref-filter__label {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: center;
    white-space: nowrap;
    margin-right: 4px;
}

.ref-filter__btn:hover {
    color: #932128;
    border-color: #932128;
}

.ref-filter__btn.is-active {
    color: #fff;
    background: #932128;
    border-color: #932128;
    font-weight: 700;
}

/* --- Filter Hidden State --- */
.ref-card.is-hidden {
    display: none;
}

/* --- Lightbox Trigger --- */
.js-lightbox-open {
    cursor: pointer;
}

/* --- Lightbox Overlay --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox.is-open {
    display: flex;
}

.lightbox__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1010;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    transition: opacity 0.3s;
}

.lightbox__close:hover {
    opacity: 0.7;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1010;
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 16px;
    line-height: 1;
    transition: opacity 0.3s;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    opacity: 0.7;
}

.lightbox__prev {
    left: 16px;
}

.lightbox__next {
    right: 16px;
}

@media (max-width: 1024px) {
    .ref-hero__title {
        font-size: 44px;
    }

    .ref-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ref-card--reverse {
        direction: ltr;
    }
}

@media (max-width: 640px) {
    .ref-hero {
        padding: 64px 20px 48px;
    }

    .ref-hero__title {
        font-size: 32px;
    }

    .ref-hero__intro {
        font-size: 16px;
    }

    .ref-hero__counter {
        font-size: 36px;
    }

    .ref-grid {
        padding: 48px 20px;
        gap: 48px;
    }

    .ref-card__title {
        font-size: 22px;
    }

    .ref-card__works ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    /* Filter bar: horizontal scroll on mobile */
    .ref-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 16px 20px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ref-filter::-webkit-scrollbar {
        display: none;
    }

    .ref-filter__btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 12px;
        padding: 8px 16px;
    }

    /* Lightbox: tighter padding on mobile */
    .lightbox__close {
        top: 12px;
        right: 12px;
        font-size: 32px;
    }

    .lightbox__prev {
        left: 4px;
        font-size: 36px;
        padding: 8px;
    }

    .lightbox__next {
        right: 4px;
        font-size: 36px;
        padding: 8px;
    }

    .lightbox__img {
        max-width: 96vw;
        max-height: 85vh;
    }
}

/* ========================================
   Animations & Hover Effects
   ======================================== */

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 {
    transition-delay: 0.15s;
}

.reveal--delay-2 {
    transition-delay: 0.3s;
}

.reveal--delay-3 {
    transition-delay: 0.45s;
}

.reveal--delay-4 {
    transition-delay: 0.6s;
}

/* --- Hero entrance --- */
.hero__tagline {
    opacity: 0;
    transform: translateX(-30px);
    animation: heroSlideIn 1.2s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1.4s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1.2s 1.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1.2s 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__stats {
    opacity: 0;
    animation: heroFadeUp 1.2s 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform: translateY(20px);
}

@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Button hover effects --- */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.45s ease,
        opacity 0.3s;
}

.btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.btn--primary:hover {
    box-shadow: 0 8px 24px rgba(147, 33, 40, 0.35);
}

.btn--white:hover {
    box-shadow: 0 24px 32px -8px rgba(0, 0, 0, 0.15);
}

.btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn__arrow {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* --- Service card hover effects --- */
.service-card {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    z-index: 2;
}

.service-card__bg {
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.9s ease;
}

.service-card:hover .service-card__bg {
    transform: scale(1.05);
}

.service-card--large:hover .service-card__bg {
    opacity: 0.75;
}

.service-card__link {
    transition: gap 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        color 0.3s;
}

.service-card__link span {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card__link span {
    transform: translateX(6px);
}

.service-card__link--dark:hover {
    color: #6b1a1f;
}

/* --- Nav link underline effect --- */
.top-nav__link {
    position: relative;
}

.top-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #932128;
    transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.top-nav__link:hover::after {
    width: 100%;
}

.top-nav__link--active::after {
    display: none;
}

/* --- Process step hover --- */
.process__step {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process__step:hover {
    transform: translateX(8px);
}

.process__number {
    transition: background 0.45s ease, color 0.45s ease;
}

.process__step:hover .process__number {
    background: #932128;
    color: #fff;
}

/* --- Process image hover --- */
.process__image {
    transition: box-shadow 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process__image:hover {
    box-shadow: 40px 40px 0 0 #932128;
}

.process__image img {
    transition: filter 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process__image:hover img {
    filter: saturate(0.3);
    transform: scale(1.03);
}

/* --- Partner logos hover --- */
.partners__logo {
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.partners__logos:hover .partners__logo {
    opacity: 0.5;
}

.partners__logos .partners__logo:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* --- Footer link hover --- */
.footer__list a {
    position: relative;
    display: inline-block;
}

.footer__list a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer__list a:hover::after {
    width: 100%;
}

/* --- Services bar fill animation --- */
.services__bar-fill {
    width: 0;
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.services__bar.is-visible .services__bar-fill {
    width: 96px;
}

/* --- Stat number counter pulse --- */
.hero__stat-number {
    display: inline-block;
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__tagline,
    .hero__title,
    .hero__subtitle,
    .hero__buttons,
    .hero__stats {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.service-card__content--bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px;
}