/* ========================================
   Chalet Bergfreund — Alpine Refined
   ======================================== */

:root {
    --color-wood: #A67C2E;
    --color-wood-dark: #8B6914;
    --color-bg: #FAF8F5;
    --color-bg-alt: #F0EDE8;
    --color-text: #2C2C2C;
    --color-text-light: #6B6560;
    --color-green: #4A6741;
    --color-green-light: #5A7D50;
    --color-border: #E0DCD7;
    --color-white: #FFFFFF;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

    --max-width: 1100px;
    --spacing: clamp(3rem, 8vw, 6rem);
    --radius: 6px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-wood-dark);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--color-green); }

address { font-style: normal; }

/* ---- Container ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(250, 248, 245, 0.97);
    box-shadow: 0 1px 0 var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Default: white text on dark hero */
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    color: var(--color-white);
    transition: color 0.3s;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-wood);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover { color: var(--color-white); }

/* Scrolled: dark text on light background */
.scrolled .nav-logo { color: var(--color-wood-dark); }
.scrolled .nav-links a { color: var(--color-text); }
.scrolled .nav-links a:hover { color: var(--color-wood-dark); }
.scrolled .nav-toggle span { background: var(--color-text); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--color-bg);
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }

    .nav-links.open { right: 0; }

    .nav-links a {
        color: var(--color-text);
        font-size: 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
        display: block;
    }

    .nav-links a::after { display: none; }
}

/* ========================================
   Hero — Fullscreen Slideshow
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 550px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 15%),
        linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.15) 70%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0 1.5rem 4rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-content-inner {
    position: relative;
    padding: 3rem;
    max-width: 540px;
}



.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-divider {
    width: 50px;
    height: 3px;
    background: var(--color-wood);
    margin-bottom: 1.25rem;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
    max-width: 400px;
}

.hero-badge {
    display: inline-block;
    background: var(--color-green);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
}

.hero-cta {
    display: inline-block;
    margin-left: 1.25rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.hero-cta:hover { color: var(--color-white); }

@media (max-width: 480px) {
    .hero {
        align-items: center;
    }
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    .hero-content-inner {
        padding: 2rem 1.5rem;
        max-width: none;
    }
    .hero-divider { margin-left: auto; margin-right: auto; }
    .hero-subtitle { max-width: none; }
    .hero-cta { display: block; margin-left: 0; margin-top: 1rem; }
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--spacing) 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-text);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-wood);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 1.25rem auto 2.5rem;
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========================================
   Features Grid (Das Chalet)
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.feature-icon {
    color: var(--color-green);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* ========================================
   Vermietung
   ======================================== */
.rental-card {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.rental-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rental-facts {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.rental-fact {
    text-align: center;
}

.rental-fact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.rental-fact-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
}

.rental-fact-highlight {
    color: var(--color-green);
}

.rental-description {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.rental-description.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.rental-description p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.rental-description p:last-child { margin-bottom: 0; }

/* ========================================
   Gallery
   ======================================== */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.gallery-filter-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-filter-btn:hover {
    border-color: var(--color-wood);
    color: var(--color-wood-dark);
}

.gallery-filter-btn.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.gallery-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    aspect-ratio: 4/3;
}

.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

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

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    z-index: 210;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--color-white); }

.lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    padding: 0.5rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 768px) {
    .lightbox-content img {
        max-width: 100vw;
        max-height: 70vh;
        border-radius: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 1.5rem;
        transform: none;
        font-size: 2rem;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .lightbox-prev { left: calc(50% - 56px); }
    .lightbox-next { right: calc(50% - 56px); }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 2rem;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-caption {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

/* ========================================
   Map
   ======================================== */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 16/9;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   Plans
   ======================================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .plans-grid { grid-template-columns: 1fr; }
}

.plan-item {
    display: block;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s;
    opacity: 0;
    transform: translateY(15px);
}

.plan-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}

.plan-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.plan-item img {
    width: 100%;
}

.plan-label {
    display: block;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--color-text-light);
    text-transform: uppercase;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.75);
    padding: var(--spacing) 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-bottom: 3rem;
    text-align: center;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}

.footer a:hover { color: var(--color-white); }

/* ========================================
   Anfrage
   ======================================== */
.section-anfrage {
    background: var(--color-text);
    color: var(--color-white);
}

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

.section-anfrage .section-title::after {
    background: var(--color-wood);
}

.section-anfrage .section-intro {
    color: rgba(255,255,255,0.7);
}

.anfrage-card {
    text-align: center;
}

.anfrage-btn {
    display: inline-block;
    background: var(--color-green);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.anfrage-btn:hover {
    background: var(--color-green-light);
    color: var(--color-white);
    transform: translateY(-1px);
}

.anfrage-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.anfrage-meta a {
    color: rgba(255,255,255,0.7);
}

.anfrage-meta a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
