/* Gemeinsame Gestaltung für deutsche und englische Objektseiten */

.page-objekt section[id] {
    scroll-margin-top: 90px;
}

.page-objekt .nav-links {
    gap: 18px;
}

.page-objekt .nav-links a {
    font-size: 13px;
}

/* ===== OBJEKT-HERO ===== */
.hero-objekt {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 70vh;
    overflow: hidden;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--forest), var(--forest-light));
}

.hero-objekt::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(244,162,97,0.15), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(233,196,106,0.1), transparent 50%);
    animation: bgShift 20s infinite alternate;
}

.hero-objekt-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.page-objekt .hero-badge {
    color: var(--gold-bright);
    background: rgba(244,162,97,0.2);
}

.hero-objekt h1 {
    margin-bottom: 15px;
    color: white;
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
}

.objekt-subtitle {
    max-width: 850px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.84);
    font-size: clamp(17px, 2.5vw, 20px);
}

.hero-price {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 35px;
    border-radius: 50px;
    background: var(--gold);
    color: white;
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 36px;
    font-weight: 700;
}

.hero-price span {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* ===== SICHERHEITSWARNUNG ===== */
.page-objekt .danger-notice-section {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 48px 20px 0;
    background: var(--cream, #fdf6ec);
}

.page-objekt .danger-notice {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 22px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 30px;
    box-sizing: border-box;
    border: 2px solid #b4232c;
    border-left-width: 8px;
    border-radius: 16px;
    background: #fff4f2;
    color: #4b1419;
    box-shadow: 0 12px 35px rgba(123, 24, 34, 0.12);
}

.page-objekt .danger-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #b4232c;
    color: white;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.page-objekt .danger-notice h2 {
    margin: 0 0 12px;
    color: #7a1720;
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
}

.page-objekt .danger-notice p {
    margin: 0;
    line-height: 1.7;
}

.page-objekt .danger-notice p + p {
    margin-top: 12px;
}

/* ===== GALERIE ===== */
.gallery-section {
    padding: 80px 20px;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: var(--cream-dark);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-item:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 4px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.06);
}

.gallery-main {
    grid-row: span 2;
    grid-column: span 2;
}

.gallery-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px 15px 15px;
    background: linear-gradient(to top, rgba(27,67,50,0.88), transparent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}

.gallery-ai {
    border: 2px solid var(--gold);
}

.gallery-ai::before {
    content: 'KI-Visualisierung';
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--gold);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(26,26,46,0.96);
    backdrop-filter: blur(10px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 78vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    border-color: var(--gold);
    background: var(--gold);
}

.lightbox-close:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 4px;
}

.lightbox-caption {
    margin-top: 18px;
    color: white;
    font-size: 16px;
    text-align: center;
}

/* ===== DETAILS ===== */
.details-content,
.location-box,
.description-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.details-list {
    margin: 0;
}

.detail-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.detail-item:last-child {
    border-bottom: 0;
}

.detail-icon {
    font-size: 28px;
    text-align: center;
}

.detail-item dt {
    margin-bottom: 2px;
    color: var(--forest);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-item dd {
    margin: 0;
    color: var(--forest-light);
    font-size: 15px;
}

.object-notice {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--cream-dark);
}

.object-notice p {
    margin: 0;
    color: var(--forest-light);
    font-size: 12px;
}

/* ===== LAGE ===== */
.location-box {
    text-align: center;
}

.location-marker {
    margin-bottom: 10px;
    font-size: 50px;
}

.location-box h3,
.description-box h3 {
    margin-bottom: 15px;
    color: var(--forest);
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 24px;
}

.location-box p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: var(--forest-light);
}

.map-link {
    animation: none;
}

/* ===== BESCHREIBUNG ===== */
.description-box p {
    margin-bottom: 15px;
    color: var(--forest-light);
    font-size: 16px;
    line-height: 1.8;
}

.highlight-box {
    margin: 25px 0;
    padding: 25px;
    border-left: 4px solid var(--gold);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cream), var(--cream-dark));
}

.highlight-box > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--forest);
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.renovation-list {
    margin: 15px 0 20px 25px;
    color: var(--forest-light);
    font-size: 16px;
    line-height: 1.8;
}

/* ===== WEITERE OBJEKTE ===== */
.other-objects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.other-card {
    display: block;
    padding: 30px;
    border-radius: 20px;
    background: white;
    color: var(--charcoal);
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other-card:hover,
.other-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.other-card:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 4px;
}

.other-card h3 {
    margin-bottom: 8px;
    color: var(--forest);
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 20px;
}

.other-card p {
    margin-bottom: 15px;
    color: var(--forest-light);
}

.other-card-price,
.other-card-link {
    color: var(--gold);
    font-weight: 700;
}

/* ===== ABSCHLUSS ===== */
.cta-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 50px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--forest), var(--forest-light));
    color: white;
    text-align: center;
}

.cta-box h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: clamp(28px, 4vw, 36px);
}

.cta-box p {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.84);
}

.btn-gold {
    position: relative;
    z-index: 2;
    display: inline-flex;
    padding: 16px 40px;
    border-radius: 50px;
    background: var(--gold);
    color: white;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(244,162,97,0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: var(--accent);
    transform: translateY(-3px);
}

.btn-gold:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .page-objekt .nav-links {
        display: none;
    }

    .page-objekt .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 210px);
    }

    .gallery-main {
        grid-row: 1;
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .hero-objekt {
        min-height: 60vh;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 220px);
    }

    .gallery-main {
        grid-column: 1;
    }

    .details-content,
    .location-box,
    .description-box {
        padding: 30px 24px;
    }

    .page-objekt .danger-notice {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .detail-item {
        grid-template-columns: 38px 1fr;
        gap: 12px;
    }

    .lightbox {
        padding: 18px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-objekt::before {
        animation: none;
    }

    .gallery-item,
    .gallery-item img,
    .other-card,
    .btn-gold {
        transition: none;
    }
}
