/* ===================================================
   MODERN RESPONSIVE REAL ESTATE WEBSITE
   Mobile-first CSS Architecture
   ================================================== */

/* ===================================================
   1. RESET & ROOT VARIABLES
   ================================================== */

:root {
    /* Colors */
    --color-primary: #2c5aa0;
    --color-accent: #d4a373;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-hero-bg: #f4f5f7;

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                        'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Breakpoints */
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-large: 1280px;

    /* Other */
    --transition-smooth: all 0.3s ease;
    --border-radius: 4px;
    --shadow-sm: 0 1px 3px var(--color-shadow);
    --shadow-md: 0 4px 6px var(--color-shadow);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    line-height: var(--line-height-base);
    background-color: var(--color-bg);
}

/* ===================================================
   2. TYPOGRAPHY
   ================================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

/* ===================================================
   3. HEADER & NAVIGATION
   ================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.header.header--solid {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.header__container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-lg) 0;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Logo */
.header__logo {
    position: absolute;
    left: 0;
    top: 0;
    flex-shrink: 0;
    z-index: 102;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition-smooth);
}

.logo:hover {
    opacity: 0.8;
}

.logo__image {
    height: 68px;
    width: auto;
    max-width: 270px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .logo__image {
        height: 42px;
        max-width: 150px;
    }
}

/* Desktop Navigation */
.nav--desktop {
    display: none;
    flex: 1;
    justify-content: flex-end;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    transition: var(--transition-smooth);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav__link:hover::after {
    width: 100%;
}

/* Hamburger Menu Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger__line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.hamburger.hamburger--open .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.hamburger--open .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.hamburger--open .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Navigation Menu */
.nav-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 99;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 0;
}

.nav-mobile.nav-mobile--open {
    left: 0;
}

.nav-mobile__header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: var(--spacing-md);
    position: relative;
    border-bottom: 1px solid var(--color-border);
    min-height: 60px;
}

.nav-mobile__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.nav-mobile__close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-mobile__list {
    list-style: none;
    padding: var(--spacing-lg) var(--spacing-md);
}

.nav-mobile__item {
    margin-bottom: 0;
}

.nav-mobile__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    min-height: 48px;
}

.nav-mobile__link:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

/* Desktop Navigation Show */
@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }

    .nav--desktop {
        display: flex;
    }

    .nav-mobile {
        display: none;
    }

    .header {
        background-color: transparent;
    }

    .header.header--solid {
        background-color: var(--color-bg);
        box-shadow: var(--shadow-sm);
    }
}

/* ===================================================
   4. HERO SECTION
   ================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/hero-hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: var(--spacing-lg);
    text-align: center;
}

.hero__content {
    color: var(--color-bg);
    animation: fadeInUp 0.8s ease;
}

.hero__badge {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* Project gallery and footer improvements for clarity */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.project-gallery__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

@media (min-width: 768px) {
    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .project-gallery__item img {
        height: 180px;
    }
}

.footer__contact {
    margin-bottom: 8px;
}
.footer__address {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* Projects list (cards) - responsive grid and image sizing */
.projects__container .contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 768px) {
    .projects__container .contact__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects__container .contact__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* Reduce vertical padding inside trust-card for denser layout */
.trust-card {
    padding: 20px;
}

.hero__headline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero__subheadline {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero__description {
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero__scroll-icon {
    width: 24px;
    height: 24px;
    stroke: var(--color-bg);
    stroke-width: 2;
    fill: none;
}

/* Hero Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@media (min-width: 768px) {
    .hero__headline {
        font-size: 3.5rem;
    }

    .hero__subheadline {
        font-size: 1.5rem;
    }

    .hero__description {
        font-size: 1.2rem;
    }
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* First slide - full height of slider container */
.slider-container .slide:first-child {
    height: 100%;
    min-height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    isolation: isolate;
    pointer-events: none;
    z-index: 0;
}

/* Homepage desktop hero: full image slider with text directly on the image */
@media (min-width: 1024px) {
    #project-slider.hero {
        display: block;
        min-height: 100vh;
        padding: 0;
        background: #111111;
        overflow: hidden;
    }

    #project-slider .slider-container {
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    #project-slider .slide,
    #project-slider .slider-container .slide:first-child {
        height: 100%;
        min-height: 100%;
    }

    #project-slider .slide__background,
    #project-slider .slider-container .slide:first-child .slide__background {
        background-size: cover;
        background-position: center;
    }

    #project-slider .slider-container .slide:first-child .slide__background {
        background-position: center top;
    }

    #project-slider .slide__overlay {
        display: block;
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.32) 42%,
            rgba(0, 0, 0, 0.18) 100%
        );
    }

    #project-slider .slide__content,
    #project-slider .slider-container .slide:first-child .slide__content {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
        padding: 6rem clamp(6rem, 8vw, 10rem) 5rem;
        align-items: flex-start;
        justify-content: center;
        color: #ffffff;
        text-align: left;
        text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
    }

    #project-slider .hero__badge {
        max-width: 760px;
        margin-bottom: 1.25rem;
        color: rgba(255, 255, 255, 0.94);
        font-size: 0.95rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    #project-slider .hero__headline {
        max-width: 880px;
        margin-bottom: 1.45rem;
        color: #ffffff;
        font-size: clamp(3.2rem, 5vw, 5.1rem);
        line-height: 1.05;
        text-align: left;
    }

    #project-slider .hero__subheadline,
    #project-slider .hero__description {
        max-width: 690px;
        margin-right: 0;
        margin-left: 0;
        color: rgba(255, 255, 255, 0.96);
        font-size: clamp(1.12rem, 1.35vw, 1.35rem);
        line-height: 1.55;
        text-align: left;
    }

    #project-slider .hero__description {
        margin-bottom: 1.8rem;
        font-weight: 700;
    }

    #project-slider .slide__content .button {
        width: auto;
        min-width: 255px;
        justify-content: center;
        padding: 1.25rem 2.6rem;
        text-shadow: none;
    }

    #project-slider .hero__scroll-indicator {
        display: block;
    }
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.slide__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* First slide background - positioned at top for maximum building visibility */
.slider-container .slide:first-child .slide__background {
    background-position: center top;
}

.slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.slide__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--color-bg);
    animation: fadeInUp 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
}

/* First slide content - centered without extra spacing */
.slider-container .slide:first-child .slide__content {
    padding: var(--spacing-lg);
    margin: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-arrow--left {
    left: 20px;
}

.slider-arrow--right {
    right: 20px;
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-arrow--left {
        left: 10px;
    }

    .slider-arrow--right {
        right: 10px;
    }
}

/* ===================================================
   5. BUTTONS
   ================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.button--primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.button--primary:hover {
    background-color: #c4943c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.button--large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: 1rem;
}

/* ===================================================
   6. SECTIONS - GLOBAL
   ================================================== */

section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

section > div[class$="__container"] {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================================
   7. WELCOME SECTION
   ================================================== */

.welcome {
    background-color: var(--color-bg-light);
    text-align: center;
}

.welcome__headline {
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.welcome__text {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-md);
}

.welcome__motto {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--color-border);
}

/* ===================================================
   9. TRUST SECTION
   ================================================== */

.trust {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef7 100%);
}

.trust__headline {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--color-primary);
}

.trust__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .trust__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.trust-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 163, 115, 0.1);
    border-radius: 50%;
}

.trust-card__icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-accent);
}

.trust-card__title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.trust-card__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ===================================================
   10. TESTIMONIALS SECTION
   ================================================== */

.testimonials {
    background-color: var(--color-bg);
}

.testimonials__headline {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--color-primary);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
}

.testimonial__quote {
    color: var(--color-text);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.testimonial__author {
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
}

/* ===================================================
   11. PLACEHOLDER SECTIONS
   ================================================== */

.project-detail {
    padding: 0;
    background: var(--color-bg);
}

.project-page .header:not(.header--solid) .nav__link {
    color: var(--color-bg);
}

.project-page .header:not(.header--solid) .hamburger__line {
    background-color: var(--color-bg);
}

.project-page .header:not(.header--solid) .nav__link::after {
    background-color: var(--color-bg);
}

.project-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    padding: clamp(8rem, 18vh, 12rem) var(--spacing-lg) 6rem;
    color: var(--color-bg);
}

.project-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.68));
    z-index: 1;
}

.project-hero__content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto 0 clamp(1rem, 8vw, 8rem);
    width: 100%;
    transform: none;
}

.project-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.project-hero__title {
    font-size: 2.4rem;
    margin-bottom: var(--spacing-md);
}

.project-hero__text {
    max-width: 680px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.project-hero__scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.project-purchase-page .project-purchase-hero {
    position: relative;
    height: 75vh;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    background: var(--color-primary);
    color: #ffffff;
    overflow: visible;
}

.project-purchase-page .project-purchase-hero::after {
    display: block;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.08) 0%, rgba(26, 26, 26, 0.52) 100%);
}

.project-purchase-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 46%;
    border-radius: 0;
    box-shadow: none;
}

.project-purchase-hero__panel {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100% - 2 * var(--spacing-lg)));
    margin: 0 0 -32px max(var(--spacing-md), calc((100vw - 1260px) / 2));
    padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1.15rem, 2.3vw, 1.75rem);
    border-left: 0;
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    text-shadow: none;
}

.project-purchase-hero__panel::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: -14px;
    display: block;
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    transform: rotate(45deg);
}

.project-purchase-hero__panel .project-eyebrow {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.project-purchase-hero__panel h1 {
    margin-bottom: 0.35rem;
    color: #ffffff;
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    line-height: 1.05;
    text-shadow: none;
}

.project-purchase-hero__panel p:not(.project-eyebrow) {
    max-width: 560px;
    margin-bottom: 0.65rem;
    color: #ffffff;
    font-size: clamp(0.98rem, 1.45vw, 1.24rem);
    line-height: 1.35;
    font-weight: 700;
    text-shadow: none;
}

.project-purchase-hero__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
    padding: 0.5rem 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(185, 116, 56, 0.42);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.project-purchase-hero__link:hover,
.project-purchase-hero__link:focus-visible {
    border-color: #ffffff;
    background: rgba(185, 116, 56, 0.62);
    color: #ffffff;
    transform: translateY(-2px);
}

.project-purchase-hero__panel .button {
    min-width: 205px;
    margin-top: var(--spacing-md);
}

.project-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.project-section--soft {
    background: var(--color-bg-light);
}

.project-section__container {
    max-width: 1160px;
    margin: 0 auto;
}

.project-intro {
    max-width: 820px;
}

.project-intro__lead {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.project-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.project-fact {
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-accent);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.project-fact__label {
    display: block;
    color: var(--color-text-light);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.project-fact__value {
    font-weight: 700;
    color: var(--color-primary);
}

.project-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.project-feature {
    background: #ffffff;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.project-feature h3,
.project-feature p {
    margin-bottom: var(--spacing-sm);
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.project-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--color-bg-light);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16 / 10;
}

.project-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-gallery__item:hover img {
    transform: scale(1.03);
}

.project-gallery__placeholder {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    background: rgba(20, 90, 160, 0.06);
    color: rgba(17, 24, 39, 0.85);
    text-align: center;
    font-weight: 600;
}

.project-gallery__placeholder .placeholder-content {
    max-width: 100%;
    line-height: 1.5;
}

.floorplan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.floorplan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.floorplan-card__title {
    margin: 0;
    color: var(--color-primary);
}

.floorplan-card__meta {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.media-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.88);
}

.media-viewer.media-viewer--open {
    display: flex;
}

.media-viewer__close {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 1001;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.media-viewer__close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.media-viewer__arrow {
    position: fixed;
    top: 50%;
    z-index: 1001;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.media-viewer__arrow:hover {
    background: rgba(255, 255, 255, 0.16);
}

.media-viewer__arrow--prev {
    left: var(--spacing-lg);
}

.media-viewer__arrow--next {
    right: var(--spacing-lg);
}

.media-viewer__content {
    width: min(1200px, 100%);
    height: min(82vh, 860px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer__content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
}

.media-viewer__content iframe {
    width: min(980px, 100%);
    height: 100%;
    border: 0;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
    .project-hero__title {
        font-size: 4rem;
    }

    .project-feature-grid,
    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .floorplan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .project-hero {
        min-height: 100vh;
        min-height: 100svh;
        align-items: flex-start;
        padding: 6.5rem var(--spacing-md) 5.5rem;
    }

    .project-hero__content {
        margin-left: 0;
        transform: translateY(0);
    }

    .project-hero__title {
        font-size: 2.1rem;
    }

    .project-hero__text,
    .project-intro__lead {
        font-size: 1rem;
    }

    .project-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .floorplan-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .floorplan-card .button {
        width: 100%;
    }

    .media-viewer {
        padding: var(--spacing-sm);
    }

    .media-viewer__content {
        height: 84vh;
    }

    .media-viewer__arrow {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .media-viewer__arrow--prev {
        left: var(--spacing-sm);
    }

    .media-viewer__arrow--next {
        right: var(--spacing-sm);
    }
}

@media (max-width: 420px) {
    .project-hero__title {
        font-size: 1.8rem;
    }

    .project-hero .button {
        width: 100%;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

/* ===================================================
   12. CONTACT SECTION
   ================================================== */

.contact {
    background-color: var(--color-bg);
}

.contact__headline {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.contact__intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .contact__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact__info-title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.contact__address {
    color: var(--color-text-light);
    font-style: normal;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.contact__address p {
    margin: 0;
}

.contact__phone,
.contact__email {
    margin-bottom: var(--spacing-md);
}

.contact__phone p,
.contact__email p {
    margin: 0.5rem 0;
    color: var(--color-text);
}

.contact__email a {
    color: var(--color-accent);
    font-weight: 600;
}

/* Form Styles */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__group[hidden] {
    display: none !important;
}

.form__label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.form__input,
.form__textarea {
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form__textarea {
    resize: vertical;
}

.form__group--other {
    display: none;
}

.contact__header {
    margin-bottom: var(--spacing-2xl);
}

.contact__grid {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .contact__grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.contact__form-block,
.contact__info-block {
    background: #ffffff;
    padding: var(--spacing-lg);
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: var(--shadow-sm);
}

.contact__info-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.contact__benefits p {
    margin: 0 0 var(--spacing-sm);
    color: var(--color-text-light);
}

.contact__note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: calc(var(--spacing-sm) / 2);
}

.contact__form .form__input,
.contact__form .form__textarea,
.contact__form select {
    width: 100%;
}

.purchase-profile-section {
    overflow: hidden;
}

.purchase-profile,
.purchase-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.purchase-profile__content {
    max-width: 680px;
}

.purchase-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.purchase-profile__tags span {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(44, 90, 160, 0.16);
    border-radius: 999px;
    background: rgba(44, 90, 160, 0.06);
    color: var(--color-primary);
    font-weight: 700;
}

.purchase-profile__media,
.purchase-contact__image {
    position: relative;
    min-height: 360px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.13);
}

.purchase-profile__media img,
.purchase-contact__image img,
.purchase-partner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 800ms ease;
}

.purchase-profile__media:hover img,
.purchase-contact__image:hover img,
.purchase-partner:hover img {
    transform: scale(1.04);
}

.purchase-card-grid,
.purchase-partner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.purchase-card {
    position: relative;
    min-height: 220px;
    padding: var(--spacing-xl);
    border-radius: calc(var(--border-radius) * 2);
    background: #ffffff;
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.purchase-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -45% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(217, 164, 107, 0.16);
}

.purchase-card:hover,
.purchase-benefit:hover,
.purchase-partner:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    border-color: rgba(217, 164, 107, 0.36);
}

.purchase-card__number {
    color: var(--color-accent);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.purchase-card h3 {
    margin-top: var(--spacing-lg);
    color: var(--color-primary);
}

.purchase-card p,
.purchase-contact__card p,
.purchase-partner p {
    color: var(--color-text-light);
}

.purchase-contact-strip {
    background: linear-gradient(90deg, rgba(44, 90, 160, 0.06), rgba(217, 164, 107, 0.1));
}

.purchase-contact__card {
    padding: clamp(var(--spacing-lg), 4vw, var(--spacing-2xl));
    border-radius: calc(var(--border-radius) * 2);
    background: #ffffff;
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.purchase-contact__steps {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.purchase-contact__steps span {
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    background: rgba(217, 164, 107, 0.12);
    color: var(--color-primary);
    font-weight: 700;
}

.purchase-benefit {
    border-top: 4px solid var(--color-accent);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.purchase-partner {
    display: grid;
    grid-template-rows: 230px 1fr;
    overflow: hidden;
    border-radius: calc(var(--border-radius) * 2);
    background: #ffffff;
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.purchase-partner img {
    position: static;
    inset: auto;
    height: 230px;
}

.purchase-partner div {
    padding: var(--spacing-lg);
}

.purchase-partner h3 {
    color: var(--color-primary);
}

.purchase-quote-section {
    padding-top: 0;
}

.purchase-quote {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: clamp(var(--spacing-lg), 5vw, var(--spacing-2xl));
    border-radius: calc(var(--border-radius) * 2);
    background:
        linear-gradient(rgba(26, 26, 26, 0.62), rgba(26, 26, 26, 0.62)),
        url("img/abgeschlossene-projekte/kronwieden/bilder/ansicht-dachterrasse.jpg") center/cover;
    color: #ffffff;
    min-height: 300px;
    justify-content: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.purchase-quote p {
    max-width: 840px;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.25;
    font-weight: 700;
}

.projectankauf-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.projectankauf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .purchase-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .purchase-partner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 960px) {
    .purchase-profile,
    .purchase-contact {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .project-purchase-page .project-purchase-hero {
        padding: 0;
        height: 72vh;
        min-height: 520px;
    }

    .project-purchase-hero__image {
        height: 100%;
        object-position: center;
    }

    .project-purchase-hero__panel {
        width: calc(100% - 2 * var(--spacing-md));
        margin: 0 var(--spacing-md) -28px;
        padding: var(--spacing-md);
    }

    .project-purchase-hero__panel h1 {
        font-size: clamp(1.9rem, 8.5vw, 2.75rem);
    }

    .project-purchase-hero__panel .button {
        width: 100%;
        min-width: 0;
    }
}

.project-offer-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-light) 100%);
}

.project-offer__header {
    max-width: 780px;
}

.project-offer__grid {
    align-items: stretch;
}

.project-offer__form-block,
.project-offer__info-block {
    border: 1px solid rgba(44, 90, 160, 0.12);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.08);
}

.project-offer__form-block {
    padding: clamp(var(--spacing-lg), 4vw, var(--spacing-2xl));
}

.project-offer-steps {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(44, 90, 160, 0.12);
    margin-bottom: var(--spacing-lg);
}

.project-offer-step {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(44, 44, 44, 0.35);
    font-size: 1.05rem;
}

.project-offer-step span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(44, 44, 44, 0.12);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    background: #ffffff;
}

.project-offer-step--active {
    color: var(--color-text);
}

.project-offer-step--active span {
    color: #ffffff;
    border-color: var(--color-text);
    background: var(--color-text);
}

.project-offer-form-step {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.project-offer-form-step[hidden] {
    display: none;
}

.project-offer__info-block {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(44, 90, 160, 0.08), rgba(217, 164, 107, 0.14)),
        #ffffff;
}

.project-offer__info-block::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--color-accent);
}

.project-description-field {
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border: 1px solid rgba(44, 90, 160, 0.22);
    border-radius: calc(var(--border-radius) * 2);
    background: rgba(44, 90, 160, 0.04);
}

.project-description-field__header {
    max-width: 720px;
}

.form__hint {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.form__error {
    margin: 0.35rem 0 0;
    color: #c62828;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.form__group--invalid .form__input,
.form__group--invalid .form__textarea,
.form__group--invalid select {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.phone-input-row {
    display: grid;
    grid-template-columns: minmax(112px, 0.32fr) 1fr;
    gap: var(--spacing-sm);
}

.phone-input-row__code,
.phone-input-row__number {
    min-width: 0;
}

@media (max-width: 520px) {
    .phone-input-row {
        grid-template-columns: 1fr;
    }
}

.project-description-field__textarea {
    min-height: 190px;
    background: #ffffff;
    border-color: rgba(44, 90, 160, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.project-files-field {
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border: 1px dashed rgba(44, 90, 160, 0.3);
    border-radius: calc(var(--border-radius) * 2);
    background: #ffffff;
}

.project-files-field input[type="file"] {
    width: 1px;
    height: 1px;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.project-files-field__dropzone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background: rgba(44, 90, 160, 0.06);
    color: var(--color-primary);
    cursor: pointer;
    font-weight: 700;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.project-files-field__dropzone:hover {
    background: rgba(44, 90, 160, 0.1);
    transform: translateY(-1px);
}

.project-files-field__dropzone small {
    color: var(--color-text-light);
    font-weight: 600;
}

.project-files-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.project-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: 0.75rem var(--spacing-md);
    border: 1px solid rgba(44, 90, 160, 0.12);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
}

.project-file-item__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-file-item__remove {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(198, 40, 40, 0.08);
    color: #c62828;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.project-offer-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.project-offer-actions--split {
    justify-content: space-between;
}

.button--secondary {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 1px solid rgba(44, 90, 160, 0.22);
}

.button--secondary:hover {
    background-color: rgba(44, 90, 160, 0.06);
}

.project-offer__summary {
    padding: var(--spacing-lg);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    background: rgba(217, 164, 107, 0.12);
}

.project-offer__summary h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.project-offer__summary p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.7;
}

.rental-page {
    background: #ffffff;
}

.purchase-page {
    background: #ffffff;
}

.rental-page .rental-hero {
    min-height: 75vh;
    height: 75vh;
}

.rental-page .rental-hero::after {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.22) 0%, rgba(26, 26, 26, 0.04) 42%, rgba(26, 26, 26, 0.08) 100%);
}

.rental-page .rental-hero .project-hero__image {
    object-position: center;
}

.rental-hero__panel {
    position: absolute;
    left: max(var(--spacing-lg), calc((100vw - 1160px) / 2));
    bottom: clamp(2.2rem, 7vh, 4rem);
    z-index: 2;
    width: min(430px, calc(100% - 2 * var(--spacing-lg)));
    padding: clamp(1.15rem, 2vw, 1.65rem);
    background: rgba(26, 26, 26, 0.64);
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(2px);
}

.rental-hero__panel h1 {
    color: #ffffff;
    font-size: clamp(1.75rem, 2.8vw, 2.55rem);
    line-height: 1.08;
    margin-bottom: 0.65rem;
}

.rental-hero__panel p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
    margin: 0;
    font-weight: 600;
}

.rental-hero__panel a {
    display: inline-flex;
    margin-top: 1rem;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 0.3rem;
}

.rental-hero__panel a:hover,
.rental-hero__panel a:focus-visible {
    color: var(--color-accent);
}

.purchase-hero__panel {
    background: rgba(26, 26, 26, 0.62);
    border-left: 5px solid var(--color-accent);
}

.purchase-contact__content {
    background:
        linear-gradient(rgba(26, 26, 26, 0.52), rgba(26, 26, 26, 0.52)),
        url("img/aktuelle-projekte/steinberg/bilder/steinberg-ansicht-1.jpg") center/cover;
}

.purchase-overview-section {
    background: #ffffff;
}

.rental-hero__content {
    max-width: 780px;
}

.rental-intro {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

.rental-intro__note {
    padding: var(--spacing-lg);
    border-left: 5px solid var(--color-accent);
    background: rgba(217, 164, 107, 0.12);
    box-shadow: var(--shadow-sm);
}

.rental-intro__note strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-sm);
}

.rental-intro__note p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.7;
}

.rental-project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.rental-project-card {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(44, 90, 160, 0.1);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.rental-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 164, 107, 0.38);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.rental-project-card__image-link {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.rental-project-card__image-link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms ease;
}

.rental-project-card:hover .rental-project-card__image-link img {
    transform: scale(1.04);
}

.rental-project-card__body {
    padding: clamp(var(--spacing-lg), 3vw, var(--spacing-xl));
}

.rental-project-card__body h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.rental-project-card__body p {
    color: var(--color-text-light);
    line-height: 1.75;
}

.rental-project-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.rental-process-section {
    background: #ffffff;
}

.rental-step-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.rental-step {
    padding: var(--spacing-lg);
    border-top: 4px solid var(--color-accent);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.rental-step span {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.rental-step h3 {
    color: var(--color-primary);
}

.rental-step p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.rental-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.rental-contact__content {
    padding: clamp(var(--spacing-lg), 4vw, var(--spacing-2xl));
    background:
        linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5)),
        url("img/abgeschlossene-projekte/kronwieden/bilder/innen-wohnbereich.jpg") center/cover;
    color: #ffffff;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.rental-contact__content .project-eyebrow,
.rental-contact__content h2,
.rental-contact__content p {
    color: #ffffff;
}

.rental-contact__content p {
    max-width: 560px;
    line-height: 1.75;
}

.rental-contact__projects {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.rental-contact__projects a {
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.rental-contact__projects a:hover,
.rental-contact__projects a:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.66);
    transform: translateY(-2px);
}

.rental-form {
    padding: clamp(var(--spacing-lg), 4vw, var(--spacing-2xl));
    background: #ffffff;
    border: 1px solid rgba(44, 90, 160, 0.12);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.08);
}

.rental-form h3 {
    color: var(--color-text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: var(--spacing-lg);
}

.rental-form__fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-md);
    margin: 0 0 var(--spacing-lg);
    padding: 0;
    border: 0;
}

.rental-form__fieldset legend {
    width: 100%;
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.rental-form__fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-text-light);
}

.rental-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md) var(--spacing-lg);
}

.rental-form .form__input,
.rental-form .form__textarea {
    border-radius: 0;
    min-height: 42px;
    background: #ffffff;
}

.rental-form .button {
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .rental-intro {
        grid-template-columns: 1.6fr 0.9fr;
    }

    .rental-project-card {
        grid-template-columns: minmax(300px, 0.9fr) 1.1fr;
    }

    .rental-step-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rental-form__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rental-form__street,
    .rental-form__full {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .rental-contact {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

@media (max-width: 767px) {
    .rental-hero__panel {
        left: var(--spacing-md);
        bottom: var(--spacing-lg);
        width: calc(100% - 2 * var(--spacing-md));
        padding: var(--spacing-md);
    }

    .rental-hero__panel h1 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .rental-project-card__image-link {
        min-height: 240px;
    }

    .rental-project-card__actions .button {
        width: 100%;
    }

    .rental-contact__content {
        min-height: 340px;
    }
}

.news-page {
    background: #ffffff;
}

.news-hero {
    display: grid;
    min-height: 78vh;
    background: linear-gradient(135deg, #c98f55 0%, var(--color-accent) 62%, #b9783e 100%);
    color: #ffffff;
}

.news-hero__image {
    position: relative;
    min-height: 46vh;
    overflow: hidden;
}

.news-hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.08), rgba(26, 26, 26, 0.34));
}

.news-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-hero__content {
    width: min(1160px, calc(100% - 2 * var(--spacing-lg)));
    margin: 0 auto;
    padding: clamp(var(--spacing-xl), 6vw, var(--spacing-2xl)) 0;
}

.news-hero__content .project-eyebrow,
.news-hero__content h1,
.news-hero__content p {
    color: #ffffff;
}

.news-hero__content h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.news-hero__content > p {
    max-width: 760px;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.65;
}

.news-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.news-hero__meta span {
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 700;
}

.news-feature {
    display: grid;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(44, 90, 160, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.news-feature__media {
    position: relative;
    min-height: 340px;
    overflow: hidden;
}

.news-feature__media img,
.news-card__image img,
.news-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms ease;
}

.news-feature:hover .news-feature__media img,
.news-card:hover .news-card__image img {
    transform: scale(1.04);
}

.news-feature__body {
    padding: clamp(var(--spacing-lg), 4vw, var(--spacing-2xl));
}

.news-feature__body h2,
.news-section-heading h2,
.news-card h3,
.news-list-item h3,
.news-contact h2 {
    color: var(--color-primary);
}

.news-feature__body p,
.news-card p,
.news-list-item p,
.news-contact p {
    color: var(--color-text-light);
    line-height: 1.75;
}

.news-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.news-section-heading {
    max-width: 760px;
    margin-bottom: var(--spacing-xl);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.news-card {
    display: grid;
    grid-template-rows: 230px 1fr;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 164, 107, 0.38);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.news-card__image {
    overflow: hidden;
}

.news-card__body {
    padding: var(--spacing-lg);
}

.news-card__kicker {
    color: var(--color-accent) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-card a:not(.news-card__image),
.news-list-item a {
    display: inline-flex;
    margin: var(--spacing-sm) var(--spacing-md) 0 0;
    color: var(--color-primary);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
}

.news-card a:not(.news-card__image):hover,
.news-list-item a:hover {
    color: var(--color-accent);
}

.news-list {
    display: grid;
    gap: var(--spacing-md);
}

.news-list-item {
    display: grid;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-lg);
    background: #ffffff;
    border: 1px solid rgba(44, 90, 160, 0.1);
    box-shadow: var(--shadow-sm);
}

.news-list-item img {
    min-height: 220px;
    max-height: 260px;
}

.news-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: flex-start;
    justify-content: space-between;
    padding: clamp(var(--spacing-lg), 4vw, var(--spacing-2xl));
    background: #ffffff;
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .news-hero {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: stretch;
    }

    .news-hero__image {
        min-height: 78vh;
        order: 2;
    }

    .news-hero__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: max(var(--spacing-lg), calc((100vw - 1160px) / 2));
        padding-right: var(--spacing-xl);
        width: auto;
    }

    .news-feature {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-list-item {
        grid-template-columns: 280px 1fr;
    }

    .news-contact {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .news-feature__actions .button {
        width: 100%;
    }

    .news-hero__content {
        width: calc(100% - 2 * var(--spacing-md));
    }
}

/* ===================================================
   13. FOOTER
   ================================================== */

.footer {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: var(--spacing-lg);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.footer__copy {
    font-size: 0.9rem;
    margin: 0;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.9rem;
}

.footer__link {
    color: var(--color-bg);
    transition: var(--transition-smooth);
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__separator {
    opacity: 0.5;
}

@media (min-width: 768px) {
    .footer__content {
        flex-direction: row;
    }
}

/* ===================================================
   14. UTILITIES & ANIMATIONS
   ================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================================
   15. PRIVACY CONSENT & LEGAL PAGES
   ================================================== */

.privacy-consent {
    position: fixed;
    inset: auto var(--spacing-md) var(--spacing-md);
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.privacy-consent__content {
    width: min(720px, 100%);
    padding: clamp(var(--spacing-lg), 4vw, var(--spacing-xl));
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(44, 90, 160, 0.14);
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
}

.privacy-consent__eyebrow {
    margin-bottom: var(--spacing-xs);
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.privacy-consent h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.privacy-consent p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.privacy-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.privacy-consent__link {
    color: var(--color-primary);
    font-weight: 800;
    border-bottom: 2px solid var(--color-accent);
}

.privacy-consent--hidden {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.legal-page .header {
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.legal-page .main-legal {
    padding-top: 110px;
}

.legal-hero {
    padding: clamp(var(--spacing-xl), 7vw, var(--spacing-2xl)) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.08), rgba(217, 164, 107, 0.14));
}

.legal-hero__container,
.legal-content__container {
    max-width: 980px;
    margin: 0 auto;
}

.legal-hero h1 {
    color: var(--color-primary);
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.legal-hero p {
    max-width: 760px;
    color: var(--color-text-light);
    font-size: 1.08rem;
    line-height: 1.75;
}

.legal-content {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.legal-block {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(44, 90, 160, 0.12);
}

.legal-block:first-child {
    padding-top: 0;
}

.legal-block h2 {
    color: var(--color-primary);
}

.legal-block h3 {
    margin-top: var(--spacing-lg);
    color: var(--color-text);
}

.legal-block p,
.legal-block li {
    color: var(--color-text-light);
    line-height: 1.75;
}

.legal-block ul {
    margin: 0 0 var(--spacing-md) 1.2rem;
}

.legal-note {
    padding: var(--spacing-lg);
    border-left: 5px solid var(--color-accent);
    background: rgba(217, 164, 107, 0.12);
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

@media (max-width: 640px) {
    .privacy-consent {
        inset: auto var(--spacing-sm) var(--spacing-sm);
    }

    .privacy-consent__actions .button,
    .privacy-consent__link {
        width: 100%;
    }
}

/* ===================================================
   16. RESPONSIVE HARDENING FOR TABLET & MOBILE
   Desktop styles above 1024px intentionally remain untouched.
   ================================================== */

@media (max-width: 1023px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }

    .header__container {
        min-height: 64px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .header__logo {
        left: 0;
        top: 0;
    }

    .logo__image {
        height: 56px;
        max-width: 210px;
    }

    .hamburger {
        width: 44px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 4px;
    }

    .hamburger__line {
        width: 34px;
        height: 3px;
        border-radius: 999px;
    }

    .hamburger.hamburger--open {
        opacity: 0;
        pointer-events: none;
    }

    .hamburger.hamburger--open .hamburger__line:nth-child(1) {
        transform: rotate(45deg) translateY(9px);
    }

    .hamburger.hamburger--open .hamburger__line:nth-child(3) {
        transform: rotate(-45deg) translateY(-9px);
    }

    .nav-mobile {
        width: min(86vw, 360px);
        padding-top: 76px;
        overflow-y: auto;
    }

    .nav-mobile__link {
        font-size: 1rem;
        line-height: 1.25;
        padding: 0.95rem var(--spacing-lg);
    }

    .hero,
    .project-hero,
    .rental-page .rental-hero,
    .project-purchase-page .project-purchase-hero,
    .news-hero {
        min-height: min(760px, 78svh);
    }

    .hero {
        padding-top: 92px;
    }

    .hero__background,
    .project-hero__image,
    .project-purchase-hero__image,
    .news-hero__image img,
    .rental-project-card__image-link img,
    .project-card__image,
    .project-gallery__item img,
    .news-card__image img,
    .news-list-item img {
        object-fit: cover;
    }

    .hero__background,
    .project-hero__image,
    .project-purchase-hero__image {
        object-position: center center;
    }

    .hero__container,
    .project-section__container,
    .projects__container,
    .contact__container,
    .legal-hero__container,
    .legal-content__container {
        width: 100%;
        max-width: 1160px;
    }

    .project-hero {
        padding: 7rem var(--spacing-md) 5rem;
    }

    .project-hero__content {
        max-width: 760px;
    }

    .project-hero__title {
        font-size: clamp(2rem, 6vw, 3.4rem);
    }

    .project-hero__text {
        max-width: 620px;
    }

    .project-purchase-page .project-purchase-hero {
        min-height: min(700px, 76svh);
        height: auto;
    }

    .project-purchase-hero__panel {
        width: min(500px, calc(100% - 2 * var(--spacing-md)));
        margin-left: var(--spacing-md);
        margin-bottom: -24px;
    }

    .project-section {
        padding: clamp(var(--spacing-xl), 7vw, var(--spacing-2xl)) var(--spacing-md);
    }

    .project-feature-grid,
    .project-gallery,
    .floorplan-grid,
    .rental-step-grid,
    .purchase-card-grid,
    .purchase-partner-grid,
    .news-grid {
        gap: var(--spacing-md);
    }

    .floorplan-grid {
        grid-template-columns: 1fr;
    }

    .floorplan-card {
        min-width: 0;
    }

    .trust-card,
    .project-feature,
    .rental-step,
    .news-card__body,
    .news-list-item,
    .legal-block {
        overflow-wrap: anywhere;
    }

    .project-card__image {
        height: clamp(190px, 32vw, 260px);
        object-position: center;
    }

    .rental-project-card {
        grid-template-columns: 1fr;
    }

    .rental-project-card__image-link {
        min-height: clamp(250px, 36vw, 340px);
    }

    .rental-contact {
        grid-template-columns: 1fr;
    }

    .rental-contact__content {
        min-height: 360px;
    }

    .rental-form,
    .project-offer__form-block,
    .project-offer__info-block,
    .purchase-contact__card {
        box-shadow: var(--shadow-md);
    }

    .purchase-profile,
    .purchase-contact,
    .purchase-profile__media,
    .purchase-contact__image,
    .rental-contact__content,
    .rental-form {
        min-width: 0;
        width: 100%;
    }

    .news-hero {
        min-height: 0;
    }

    .news-hero__image {
        min-height: 42vh;
    }

    .news-hero__content {
        padding: var(--spacing-xl) 0;
    }

    .news-feature,
    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-feature__media {
        min-height: clamp(240px, 40vw, 340px);
    }

    .footer__content,
    .footer__links {
        text-align: center;
    }
}

@media (max-width: 767px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2.25rem;
        --spacing-2xl: 3rem;
    }

    h1 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    h3 {
        font-size: clamp(1.1rem, 5vw, 1.35rem);
    }

    p,
    li {
        font-size: 0.98rem;
    }

    .button,
    button,
    input,
    select,
    textarea {
        max-width: 100%;
    }

    .form__group,
    .form__input,
    .form__textarea,
    .rental-form__grid,
    .project-offer-form-step,
    .project-description-field,
    .project-files-field {
        min-width: 0;
    }

    .rental-form__grid,
    .contact__form,
    .project-offer-form-step {
        width: 100%;
    }

    .rental-form__grid,
    .phone-input-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .button {
        min-height: 46px;
        white-space: normal;
        text-align: center;
    }

    .header__container {
        min-height: 58px;
    }

    .logo__image {
        height: 48px;
        max-width: 172px;
    }

    .hero,
    .project-hero,
    .rental-page .rental-hero,
    .project-purchase-page .project-purchase-hero {
        min-height: 72svh;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__headline {
        max-width: 100%;
        font-size: clamp(1.9rem, 10vw, 2.75rem);
        line-height: 1.05;
    }

    .hero__subheadline {
        font-size: clamp(1.05rem, 5vw, 1.3rem);
    }

    .hero__description {
        font-size: 1rem;
    }

    .slider-container {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
        min-height: min(520px, calc(100svh - 58px));
        max-height: min(620px, calc(100svh - 58px));
        margin-top: 58px;
        background: #111111;
    }

    .slide__overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.62) 100%);
    }

    .slide__content {
        justify-content: flex-end;
        padding: 5.25rem var(--spacing-md) 3.8rem;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    }

    .slider-container .slide:first-child .slide__content {
        justify-content: flex-end;
        padding: 5.25rem var(--spacing-md) 3.8rem;
    }

    .slide__background {
        background-size: cover;
        background-position: center top;
    }

    .slider-container .slide:first-child .slide__background {
        background-position: center top;
    }

    .slider-container .slide {
        height: 100%;
    }

    .slider-container .slide:first-child {
        height: 100%;
        min-height: 0;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(2px);
    }

    .slider-arrow--prev {
        left: 10px;
    }

    .slider-arrow--next {
        right: 10px;
    }

    #project-slider.hero {
        display: block;
        min-height: 0;
        padding: 76px 0 var(--spacing-xl);
        background: #f8f8f8;
    }

    #project-slider .slider-container {
        width: min(calc(100% - 32px), 560px);
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 0 auto;
        overflow: visible;
        aspect-ratio: auto;
        background: transparent;
    }

    #project-slider .slide {
        position: absolute;
        inset: 0 auto auto 0;
        display: grid;
        grid-template-rows: auto auto;
        width: 100%;
        height: auto;
        min-height: 0;
        pointer-events: none;
        transform: translateY(8px);
    }

    #project-slider .slide.active {
        position: relative;
        pointer-events: auto;
        transform: translateY(0);
    }

    #project-slider .slide__background {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 14px 14px 0 0;
        background-color: #f1f2f3;
        background-size: contain;
        background-position: center;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    }

    #project-slider .slide__overlay,
    #project-slider .hero__scroll-indicator {
        display: none;
    }

    #project-slider .slide__content,
    #project-slider .slide:first-child .slide__content {
        width: 100%;
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 1.35rem 1.25rem 1.45rem;
        border-left: 4px solid var(--color-accent);
        border-radius: 0 0 14px 14px;
        background: #ffffff;
        color: var(--color-text);
        text-align: left;
        text-shadow: none;
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
    }

    #project-slider .hero__badge {
        margin-bottom: 0.65rem;
        color: var(--color-accent);
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    #project-slider .hero__headline {
        max-width: none;
        margin-bottom: 0.75rem;
        color: var(--color-primary);
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.05;
        text-align: left;
    }

    #project-slider .hero__subheadline {
        max-width: none;
        margin-bottom: 1rem;
        color: var(--color-text);
        font-size: 1rem;
        line-height: 1.55;
        text-align: left;
    }

    #project-slider .hero__description {
        display: none;
    }

    #project-slider .button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    #project-slider .slider-arrow {
        top: calc(76px + min(calc(100vw - 32px), 560px) * 0.3125);
        z-index: 5;
        background: rgba(30, 30, 30, 0.52);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    }

    #project-slider .slider-arrow:hover {
        background: rgba(30, 30, 30, 0.7);
    }

    .project-hero {
        min-height: 74svh;
        padding: 6rem var(--spacing-md) 4.5rem;
        align-items: flex-end;
    }

    .project-hero::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
    }

    .project-hero__content {
        margin: 0;
    }

    .project-hero__title {
        font-size: clamp(1.85rem, 10vw, 2.7rem);
    }

    .project-hero__text {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .project-hero__scroll-indicator {
        bottom: var(--spacing-md);
    }

    .project-feature-grid,
    .project-gallery,
    .floorplan-grid,
    .project-facts,
    .contact__grid,
    .rental-intro,
    .rental-project-grid,
    .rental-form__grid,
    .purchase-profile,
    .purchase-contact,
    .project-offer__grid,
    .news-grid,
    .news-list,
    .news-feature {
        grid-template-columns: 1fr !important;
    }

    .purchase-profile__media,
    .purchase-contact__image {
        min-height: 0;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .project-gallery__item {
        aspect-ratio: 4 / 3;
    }

    .project-gallery__item img {
        object-position: center;
    }

    .project-card__image {
        height: 220px;
    }

    .trust-card {
        padding: var(--spacing-lg);
    }

    .trust-card__title {
        font-size: 1.25rem;
    }

    .floorplan-card,
    .rental-project-card__actions,
    .news-feature__actions,
    .project-offer-actions,
    .project-offer-actions--split,
    .footer__content,
    .footer__links {
        flex-direction: column;
        align-items: stretch;
    }

    .floorplan-card .button,
    .rental-project-card__actions .button,
    .news-feature__actions .button,
    .project-offer-actions .button,
    .contact__form .button,
    .rental-form .button {
        width: 100%;
    }

    .project-purchase-page .project-purchase-hero {
        min-height: 72svh;
        overflow: hidden;
    }

    .project-purchase-hero__panel {
        width: calc(100% - 2 * var(--spacing-md));
        margin: 0 var(--spacing-md) var(--spacing-lg);
        padding: var(--spacing-md);
    }

    .project-purchase-hero__panel h1 {
        font-size: clamp(1.75rem, 10vw, 2.45rem);
    }

    .project-purchase-hero__panel p:not(.project-eyebrow) {
        font-size: 0.98rem;
    }

    .project-purchase-hero__link {
        width: 100%;
        min-height: 42px;
    }

    .project-offer-steps {
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .project-offer-step {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.95rem;
    }

    .project-files-field__dropzone {
        align-items: flex-start;
    }

    .project-file-item {
        align-items: flex-start;
    }

    .rental-page .rental-hero {
        height: auto;
    }

    .rental-hero__panel {
        bottom: var(--spacing-md);
        max-height: calc(100% - 7rem);
        overflow: auto;
    }

    .rental-hero__panel h1 {
        font-size: clamp(1.45rem, 8vw, 2.05rem);
    }

    .rental-project-card__image-link {
        min-height: 230px;
    }

    .rental-contact__content {
        min-height: 340px;
    }

    .rental-contact__projects {
        flex-direction: column;
    }

    .rental-contact__projects a {
        text-align: center;
    }

    .rental-form {
        padding: var(--spacing-lg);
    }

    .news-hero__image {
        min-height: 34vh;
        order: 0;
    }

    .news-hero__content {
        width: calc(100% - 2 * var(--spacing-md));
        padding: var(--spacing-xl) 0;
    }

    .news-hero__content h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.05;
    }

    .news-hero__content > p {
        font-size: 1rem;
    }

    .news-card {
        grid-template-rows: 210px 1fr;
    }

    .news-feature__media,
    .news-list-item img {
        min-height: 220px;
        max-height: none;
    }

    .legal-page .main-legal {
        padding-top: 76px;
    }

    .legal-hero,
    .legal-content {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .legal-block {
        padding: var(--spacing-md) 0;
    }

    .privacy-consent__content {
        max-height: calc(100svh - 2 * var(--spacing-sm));
        overflow: auto;
    }

    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .footer__separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero,
    .project-hero,
    .rental-page .rental-hero,
    .project-purchase-page .project-purchase-hero {
        min-height: 68svh;
    }

    .hero__container,
    .project-section__container,
    .projects__container,
    .contact__container,
    .legal-hero__container,
    .legal-content__container {
        width: 100%;
    }

    .project-section,
    .legal-content {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

    .project-card__image,
    .rental-project-card__image-link,
    .news-card {
        min-width: 0;
    }

    .project-card__image {
        height: 190px;
    }

    .rental-project-card__image-link,
    .news-feature__media,
    .news-list-item img {
        min-height: 200px;
    }

    .news-card {
        grid-template-rows: 190px 1fr;
    }

    .contact__form-block,
    .contact__info-block,
    .project-offer__form-block,
    .project-offer__info-block,
    .rental-form,
    .purchase-contact__card {
        padding: var(--spacing-md);
    }

    .form__input,
    .form__textarea,
    select {
        font-size: 16px;
    }
}

.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-settings-button { background: transparent; border: 0; font: inherit; cursor: pointer; }
.privacy-consent__content { max-height: 75vh; overflow-y: auto; }
.privacy-consent__actions .button { background: var(--color-primary); color: white; }
button:disabled { opacity: .65; cursor: wait; }
.legal-block[id] { scroll-margin-top: 130px; }
.legal-pending { border-left: 4px solid #9b6000; padding: 1rem; background: #fff5df; }
