/* ================================================
   Ferienwohnung Zornheim – Stylesheet
   ================================================ */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:        #2c5f4f;
    --primary-dark:   #1e4337;
    --primary-light:  #3d8068;
    --secondary:      #8b6f47;
    --accent:         #d4a574;
    --accent-light:   #f0d4b0;
    --dark-bg:        #1a1a1a;
    --light-bg:       #f7f5f0;
    --white:          #ffffff;
    --text-dark:      #2a2a2a;
    --text-mid:       #555;
    --text-light:     #888;
    --border:         #e0dcd4;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:      0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg:      0 20px 60px rgba(0,0,0,0.15);
    --radius:         16px;
    --radius-sm:      8px;
    --transition:     all 0.3s ease;
    --font-heading:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(44,95,79,0.07);
}

.nav-link.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-link.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    background-image: url('img/back2.jpg');
    background-size: cover;
    background-position: center 60%;
    background-blend-mode: multiply;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212,165,116,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30,67,55,0.55) 0%, rgba(44,95,79,0.45) 50%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
    animation: heroFadeUp 1s ease both;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    line-height: 1.1;
}

.hero-title em {
    font-style: italic;
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    opacity: 0.92;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.btn-hero-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.6);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 0.5rem 1.5rem;
}

.hero-stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-light);
}

.hero-stat span {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.25);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 22px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    width: 4px; height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 7px; opacity: 1; }
    60% { top: 16px; opacity: 0.4; }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== USP Bar ===== */
.usp-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0.85rem 0;
}

.usp-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.95;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-full { width: 100%; }

.btn-apartment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 2px solid var(--primary);
    margin-top: 1.5rem;
    transition: var(--transition);
}

.btn-apartment:hover {
    gap: 0.8rem;
    color: var(--primary-dark);
}

.btn-submit {
    font-size: 1rem;
    padding: 1.1rem 2rem;
}

/* ===== Sections ===== */
.section { padding: 5rem 0; }

.section-light { background: var(--light-bg); }
.section-dark { background: var(--white); }
.section-region { background: var(--primary-dark); color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-region .section-label { color: var(--accent-light); }

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-region .section-title { color: var(--white); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.section-region .section-subtitle { color: rgba(255,255,255,0.75); }

/* ===== Apartments ===== */
.apartment-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.apartment-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 20px 0 0 20px;
}

.apartment-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.featured-apt {
    border-color: var(--primary);
    border-width: 2px;
}

.apt-featured-badge {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.apartment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.apartment-label {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.apartment-title {
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.apartment-sub {
    font-size: 0.9rem;
    color: var(--text-mid);
}

.apartment-price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-from {
    font-size: 0.8rem;
    color: var(--text-mid);
}

.price-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.price-unit {
    font-size: 0.8rem;
    color: var(--text-mid);
}

.apartment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.apartment-text .lead {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.apartment-features {
    list-style: none;
    margin: 0 0 1.5rem;
}

.apartment-features li {
    padding: 0.7rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.apartment-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.apartment-features li:last-child { border-bottom: none; }

.important-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fff8e6;
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.important-note svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.badge {
    background: rgba(44,95,79,0.1);
    color: var(--primary);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(44,95,79,0.2);
}

/* ===== Gallery ===== */
.gallery-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
    height: 380px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

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

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

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.2); }
.gallery-item:hover .gallery-overlay span { opacity: 1; }

/* Full gallery grid for subpages */
.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid-full .gallery-item {
    aspect-ratio: 4/3;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    color: var(--white);
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-counter {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 2.5rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== Region Cards ===== */
.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.region-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.8rem;
    transition: var(--transition);
}

.region-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.region-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.region-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.region-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
}

/* ===== E-Bikes ===== */
.ebikes-content { max-width: 900px; margin: 0 auto; }

.ebikes-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ebikes-feature {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    background: var(--light-bg);
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.ebikes-feature:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}

.ebikes-feature .feature-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.ebikes-feature h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.ebikes-feature p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Location / Lage ===== */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.location-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.address-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    background: rgba(44,95,79,0.06);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    margin-bottom: 2rem;
}

.address-highlight svg { color: var(--primary); flex-shrink: 0; }

.distance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.distance-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

.distance-icon { font-size: 1.4rem; }

.checkin-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.checkin-info h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.checkin-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.checkin-grid div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checkin-grid svg { color: var(--primary); flex-shrink: 0; }

.location-map { position: sticky; top: 90px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }

/* ===== Pricing ===== */
.pricing-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.pricing-featured {
    border: 2px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -14px; right: 24px;
    background: var(--primary);
    color: var(--white);
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
}

.pricing-header { margin-bottom: 1.5rem; text-align: center; }

.pricing-header h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.4rem; }

.pricing-subtitle { color: var(--text-mid); font-size: 0.9rem; }

.pricing-price {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.price-amount {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.price-period { color: var(--text-mid); font-size: 0.9rem; }

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    padding: 0.65rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.6rem;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.pricing-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 1rem;
}

.pricing-info h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 1.5rem; }

.pricing-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-detail-item {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary);
}

.pricing-detail-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-pdf { text-align: center; margin-top: 1rem; }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
}

.contact-info h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 2rem; }

.contact-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item a { color: var(--primary); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.contact-cta {
    background: rgba(44,95,79,0.07);
    border-radius: 12px;
    padding: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-top: 1rem;
}

/* ===== Contact Form ===== */
.contact-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group label {
    margin-bottom: 0.45rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,95,79,0.12);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23555' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
    margin-top: -0.5rem;
    line-height: 1.6;
}

/* ===== Date Range / Calendar ===== */
.date-range-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-range-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
    color: var(--text-mid);
    font-size: 0.9rem;
    user-select: none;
}

.date-range-field:hover,
.date-range-field.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,95,79,0.12);
}

.date-range-field.has-date {
    color: var(--text-dark);
    font-weight: 500;
}

.date-range-field svg { color: var(--primary); flex-shrink: 0; }

.date-range-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Calendar Popup */
.calendar-popup {
    position: relative;
    display: none;
    z-index: 100;
    margin-top: 0.5rem;
}

.calendar-popup.open { display: block; }

.calendar-popup-inner {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: var(--white);
}

.cal-months-header {
    display: flex;
    gap: 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.cal-nav {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cal-nav:hover { background: rgba(255,255,255,0.25); }

.calendar-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 1rem;
    gap: 1rem;
}

.cal-month { min-width: 0; }

.cal-month-title {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.4rem;
}

.cal-weekday {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.3rem 0;
    text-transform: uppercase;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    color: var(--text-dark);
    position: relative;
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: rgba(44,95,79,0.12);
    color: var(--primary);
}

.cal-day.disabled {
    color: var(--border);
    cursor: not-allowed;
}

.cal-day.empty { pointer-events: none; }

.cal-day.in-range {
    background: rgba(44,95,79,0.1);
    border-radius: 0;
    color: var(--primary);
}

.cal-day.selected-start,
.cal-day.selected-end {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 50%;
}

.cal-day.selected-start { border-radius: 50% 0 0 50%; }
.cal-day.selected-end { border-radius: 0 50% 50% 0; }
.cal-day.selected-start.selected-end { border-radius: 50%; }

.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--light-bg);
}

#calSelectedInfo {
    font-size: 0.9rem;
    color: var(--text-mid);
    font-weight: 500;
}

.btn-cal-clear {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-mid);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cal-clear:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand { }

.footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.92;
}

.footer-section h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 0.85rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-section p { color: rgba(255,255,255,0.72); line-height: 1.7; font-size: 0.9rem; }

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 0.6rem; }

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section ul li a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

/* ===== Modals (Impressum, Cookie) ===== */
.impressum-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.impressum-modal.active { display: flex; opacity: 1; }

.impressum-content {
    background: var(--white);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.impressum-close {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.8rem;
    color: var(--text-mid);
    background: var(--light-bg);
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.impressum-close:hover { color: var(--primary); transform: rotate(90deg); }

.impressum-text h2 { color: var(--primary); margin-bottom: 1.5rem; font-size: 1.8rem; }
.impressum-text h3 { color: var(--primary); margin: 1.5rem 0 0.6rem; font-size: 1.1rem; }
.impressum-text p { color: var(--text-mid); line-height: 1.7; margin-bottom: 0.5rem; }
.impressum-text a { color: var(--primary); text-decoration: underline; }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 3px solid var(--primary);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text h3 { color: var(--primary); margin-bottom: 0.3rem; font-size: 1.1rem; }
.cookie-banner-text p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.5; }

.cookie-banner-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }

.cookie-banner-buttons .btn { padding: 0.7rem 1.3rem; font-size: 0.9rem; }

.btn-secondary { background: var(--light-bg); color: var(--text-dark); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--border); }

.btn-decline { background: #dc3545; color: var(--white); }
.btn-decline:hover { background: #c82333; }

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.cookie-modal.active { display: flex; opacity: 1; }

.cookie-modal-content {
    background: var(--white);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.cookie-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.8rem;
    color: var(--text-mid);
    background: var(--light-bg);
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-modal-close:hover { background: var(--border); transform: rotate(90deg); }
.cookie-modal h2 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.6rem; }
.cookie-modal-subtitle { color: var(--text-mid); margin-bottom: 1.5rem; font-size: 0.9rem; line-height: 1.6; }

.cookie-categories { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.cookie-category {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-title { display: flex; align-items: center; gap: 0.75rem; }
.cookie-category-title h3 { font-size: 1rem; color: var(--primary); margin: 0; }
.cookie-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--light-bg);
    color: var(--text-mid);
}
.cookie-badge.required { background: var(--primary); color: var(--white); }
.cookie-category-description { color: var(--text-mid); font-size: 0.88rem; line-height: 1.6; }

.cookie-switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}
.cookie-slider::before {
    position: absolute;
    content: '';
    height: 20px; width: 20px;
    left: 4px; bottom: 4px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 50%;
}
input:checked + .cookie-slider { background: var(--primary); }
input:checked + .cookie-slider::before { transform: translateX(24px); }
input:disabled + .cookie-slider { opacity: 0.5; cursor: not-allowed; }

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.cookie-modal-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.cookie-modal-links a { color: var(--primary); text-decoration: underline; }

/* ===== Price Summary Box ===== */
.price-summary {
    background: linear-gradient(135deg, rgba(44,95,79,0.07), rgba(212,165,116,0.10));
    border: 1.5px solid var(--primary);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    margin-top: 0.5rem;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.price-summary.visible { display: block; }

.price-summary-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.price-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-mid);
}

.price-summary-row.total {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    margin-top: 0.3rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

/* ===== Subpage Hero Variants ===== */
.subpage-hero--heuboden {
    background-image: url('img/Wohnung_03/w3_01.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.subpage-hero--malwerkstatt {
    background-image: url('img/Wohung_04/wohnung42.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.subpage-hero--erdgeschoss {
    background-image: url('img/Wohnung_01/wohnung110.jpg');
    background-size: cover;
    background-position: center 40%;
    background-blend-mode: multiply;
}

.subpage-hero--dachgeschoss {
    background-image: url('img/Wohnung_02/w2_01.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

/* Region icon SVG color ===== */
.region-icon svg {
    stroke: rgba(255,255,255,0.85);
}

/* Distance icon SVG color */
.distance-icon svg {
    color: var(--primary);
}

/* ===== Gallery small count (4 images) ===== */
.gallery-grid-small-count {
    grid-template-columns: repeat(2, 1fr);
}

/* ===== Subpage Styles ===== */
.subpage-hero {
    position: relative;
    padding: 9rem 0 4rem;
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    color: var(--white);
    overflow: hidden;
}

.subpage-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: var(--light-bg);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.subpage-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb span { opacity: 0.6; }

.subpage-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.subpage-hero-sub {
    font-size: 1.15rem;
    opacity: 0.88;
    margin-bottom: 2rem;
    font-weight: 300;
}

.subpage-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.subpage-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
}

.subpage-content { background: var(--light-bg); padding: 4rem 0; }

.subpage-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

.subpage-main {}

.subpage-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.sidebar-price-big {
    text-align: center;
    padding: 1.2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1rem 0;
}

.sidebar-price-big .price-amount { font-size: 2.5rem; }

.content-block {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.content-block h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-light);
}

.content-block p {
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.amenity-item svg { color: var(--primary); flex-shrink: 0; }

/* ===== Animations ===== */
.fade-in-up {
    animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Apartment Card Hover Enhancement ===== */
.apartment-section:focus-within {
    box-shadow: var(--shadow-lg);
}

/* ===== Back-to-top button ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 500;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .region-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 62px; left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 0.25rem;
        border-top: 1px solid var(--border);
    }
    .nav-menu.active { left: 0; }
    .nav-toggle { display: flex; }
    .nav-link { display: block; width: 100%; padding: 0.7rem 1rem; }
    .nav-link.nav-cta { text-align: center; }

    .apartment-content { grid-template-columns: 1fr; }
    .apartment-header { flex-direction: column; align-items: flex-start; }
    .gallery-grid-small { height: 260px; }

    .location-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

    .subpage-grid { grid-template-columns: 1fr; }
    .subpage-sidebar { position: static; }

    .hero-stats { gap: 0; }
    .hero-stat-divider { display: none; }
    .hero-stat { padding: 0.4rem 0.8rem; }
    .hero-stat strong { font-size: 1.1rem; }
}

@media (max-width: 680px) {
    .hero { min-height: 95svh; }
    .hero-title { font-size: 2.2rem; }
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .apartment-section { padding: 1.8rem; }
    .gallery-grid-small { grid-template-columns: 1fr 1fr; height: 220px; }
    .gallery-main { grid-row: span 1; }
    .form-row { grid-template-columns: 1fr; }
    .region-grid { grid-template-columns: 1fr; }
    .distance-grid { grid-template-columns: 1fr; }
    .pricing-overview { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .usp-inner { gap: 0.75rem 1.5rem; }
    .calendar-months { grid-template-columns: 1fr; }
    .cal-months-header { flex-direction: column; gap: 0.25rem; font-size: 0.85rem; }
    .gallery-grid-full { grid-template-columns: 1fr 1fr; }
    .amenities-grid { grid-template-columns: 1fr; }
}
