/* Seitenspezifische Gestaltung für Nordhalben (Deutsch und Englisch) */

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

.nordhalben-hero .hero-content {
    max-width: 960px;
}

.nordhalben-hero .hero h1,
.page-nordhalben .hero h1 {
    font-size: clamp(40px, 7vw, 75px);
}

.page-nordhalben .hero-stats {
    align-items: flex-start;
}

.page-nordhalben .stat-number {
    font-size: clamp(30px, 4.5vw, 48px);
}

.page-nordhalben .stat-label {
    max-width: 180px;
}

/* ===== ZEITLEISTE ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--forest));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 60px;
    padding-right: 50%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    position: relative;
    width: calc(100% - 40px);
    max-width: 380px;
    padding: 30px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-year {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
}

.timeline-text {
    color: var(--forest-light);
    font-size: 15px;
}

.timeline-dot {
    position: absolute;
    top: 40px;
    left: 50%;
    z-index: 2;
    width: 20px;
    height: 20px;
    border: 4px solid var(--cream);
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
}

/* ===== OBJEKTKARTEN ===== */
.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.house-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    color: var(--charcoal);
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.house-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.house-card:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 4px;
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.house-card::before {
    content: '1 €';
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(244,162,97,0.4);
}

.house-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
}

.house-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.house-image-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(27,67,50,0.8), transparent);
}

.house-location {
    position: absolute;
    bottom: 20px;
    left: 25px;
    z-index: 2;
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.house-location::before {
    content: '📍 ';
}

.house-info {
    padding: 30px;
}

.house-title {
    margin-bottom: 10px;
    color: var(--forest);
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 26px;
    font-weight: 700;
}

.house-desc {
    margin-bottom: 20px;
    color: var(--forest-light);
    font-size: 15px;
    line-height: 1.6;
}

.house-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-tag {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--cream);
    color: var(--forest);
    font-size: 13px;
    font-weight: 500;
}

.house-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--cream-dark);
}

.house-price {
    color: var(--gold);
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 36px;
    font-weight: 700;
}

.house-btn {
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--forest);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.house-card:hover .house-btn,
.house-card:focus-visible .house-btn {
    background: var(--gold);
}

/* ===== WARUM NORDHALBEN ===== */
.why-section {
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--forest), var(--forest-light));
    color: white;
}

.why-section .section-title {
    color: white;
}

.why-section .section-subtitle {
    color: rgba(255,255,255,0.82);
}

.section-tag-light {
    background: var(--gold-bright);
    color: var(--forest);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.why-card {
    padding: 35px 25px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.why-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-8px);
}

.why-icon {
    display: block;
    margin-bottom: 15px;
    font-size: 44px;
}

.why-card h3 {
    margin-bottom: 10px;
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 22px;
}

.why-card p {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}

/* ===== GEMEINSCHAFT ===== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.community-card {
    padding: 35px 25px;
    border-radius: 24px;
    background: white;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.community-card .emoji {
    display: block;
    margin-bottom: 15px;
    font-size: 48px;
}

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

.community-card p {
    color: var(--forest-light);
    font-size: 14px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 60px;
    }

    .timeline-content {
        width: 100%;
        max-width: none;
    }

    .timeline-dot {
        left: 20px;
    }

    .houses-grid {
        grid-template-columns: 1fr;
    }

    .house-image {
        height: 220px;
    }

    .house-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 420px) {
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 45px;
    }

    .timeline::before,
    .timeline-dot {
        left: 12px;
    }

    .timeline-content,
    .house-info,
    .why-card,
    .community-card {
        padding: 25px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-content,
    .house-card,
    .house-btn,
    .why-card,
    .community-card {
        transition: none;
    }
}
