/* ═══════════════════════════════════════════════════
   Naturerlebnishaus am Buchenholz — Stylesheet
   ═══════════════════════════════════════════════════ */

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

:root {
    --forest-deep:  #1B3A0F;
    --forest-mid:   #2D5A1A;
    --forest-light: #4A7E32;
    --forest-pale:  #A8C87A;
    --brown-warm:   #7B4E28;
    --cream:        #F7F2E8;
    --off-white:    #FAFAF7;
    --text-dark:    #1C1C1C;
    --text-mid:     #4A4A4A;
    --text-light:   #7A7A7A;
    --ff-display:   'Cormorant Garamond', Georgia, serif;
    --ff-body:      'Inter', system-ui, sans-serif;
    --nav-h:        72px;
    --pad:          clamp(4rem, 8vw, 8rem);
    --wrap:         1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-body); color: var(--text-dark); background: var(--cream); overflow-x: hidden; }


/* ── NAV ─────────────────────────────────────────── */

nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    transition: background .4s, box-shadow .4s;
}
nav.scrolled {
    background: rgba(247,242,232,.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(0,0,0,.07);
}
.nav-logo {
    display: flex; align-items: center; gap: .65rem;
    font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600;
    color: white; text-decoration: none; line-height: 1.25;
    transition: color .4s;
}
nav.scrolled .nav-logo { color: var(--forest-deep); }
.nav-logo-img {
    height: 44px; width: auto; flex-shrink: 0;
    filter: brightness(0) invert(1);
    transition: filter .4s;
}
nav.scrolled .nav-logo-img { filter: none; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: .8rem; font-weight: 500; letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none;
    color: rgba(255,255,255,.85); transition: color .25s;
}
.nav-links a:hover { color: white; }
nav.scrolled .nav-links a { color: var(--text-mid); }
nav.scrolled .nav-links a:hover { color: var(--forest-mid); }
.nav-cta {
    background: var(--forest-mid) !important; color: white !important;
    padding: .45rem 1.2rem; border-radius: 100px;
}
nav.scrolled .nav-cta { background: var(--forest-mid) !important; }
.nav-cta:hover { background: var(--forest-deep) !important; }

/* hamburger */
.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-burger span {
    display: block; width: 24px; height: 2px;
    background: white; border-radius: 2px; transition: background .4s;
}
nav.scrolled .nav-burger span { background: var(--forest-deep); }

.mobile-menu {
    display: none; position: fixed; inset: 0; top: var(--nav-h);
    background: var(--cream); z-index: 99;
    flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: var(--ff-display); font-size: 2rem; font-weight: 600;
    color: var(--forest-deep); text-decoration: none;
}


/* ── HERO (index only) ───────────────────────────── */

#hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; overflow: hidden;
}
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(10,22,6,.72) 0%,
        rgba(27,58,15,.48) 55%,
        rgba(10,22,6,.6) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    padding: 0 clamp(1.5rem, 6vw, 8rem);
    max-width: 820px;
}
.hero-eyebrow {
    font-size: .78rem; font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; color: var(--forest-pale);
    margin-bottom: 1.2rem; opacity: 0;
}
.hero-title {
    font-family: var(--ff-display); font-size: clamp(2.8rem, 6.5vw, 5.8rem);
    font-weight: 400; line-height: 1.07; color: white;
    margin-bottom: 1.4rem; opacity: 0;
}
.hero-title em { font-style: italic; color: var(--forest-pale); }
.hero-sub {
    font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 300;
    color: rgba(255,255,255,.82); line-height: 1.65;
    max-width: 480px; margin-bottom: 2.5rem; opacity: 0;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; }

.hero-scroll {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%); z-index: 2; opacity: 0;
}
.scroll-line {
    width: 1px; height: 52px; background: rgba(255,255,255,.35);
    margin: 0 auto;
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,100% { opacity: .35; transform: scaleY(1); transform-origin: top; }
    50%      { opacity: .9;  transform: scaleY(1.25); transform-origin: top; }
}


/* ── PAGE HERO (subpages) ────────────────────────── */

.page-hero {
    background: var(--forest-deep);
    padding: calc(var(--nav-h) + 5rem) 0 5rem;
}
.page-hero .label  { color: var(--forest-pale); }
.page-hero .heading { color: white; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.page-hero .body-text { color: rgba(255,255,255,.7); max-width: 520px; }
.page-hero .breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .78rem; color: rgba(255,255,255,.5);
    margin-bottom: 2rem;
}
.page-hero .breadcrumb a { color: var(--forest-pale); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero .breadcrumb span { color: rgba(255,255,255,.3); }


/* ── BUTTONS ─────────────────────────────────────── */

.btn-primary {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--forest-mid); color: white; text-decoration: none;
    padding: .875rem 2rem; border-radius: 100px;
    font-size: .9rem; font-weight: 500;
    transition: background .3s, transform .2s;
}
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-2px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: .45rem;
    border: 1.5px solid rgba(255,255,255,.55); color: white;
    text-decoration: none; padding: .875rem 2rem; border-radius: 100px;
    font-size: .9rem; font-weight: 500;
    transition: border-color .3s, background .3s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.1); }

.btn-back {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--forest-mid); text-decoration: none;
    font-size: .88rem; font-weight: 500;
    transition: gap .2s;
}
.btn-back:hover { gap: .75rem; }


/* ── SHARED LAYOUT ───────────────────────────────── */

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem); }
section { padding: var(--pad) 0; }

.label {
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--forest-light);
    margin-bottom: .7rem; display: block;
}
.heading {
    font-family: var(--ff-display); font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600; line-height: 1.13; color: var(--forest-deep);
    margin-bottom: 1.1rem;
}
.body-text {
    font-size: 1.0625rem; line-height: 1.78;
    color: var(--text-mid); max-width: 580px;
}


/* ── DAS HAUS ────────────────────────────────────── */

#haus { background: var(--off-white); }
.haus-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.haus-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; margin-top: 2.5rem;
}
.feat {
    padding: 1.25rem 1.4rem; background: var(--cream);
    border-radius: 14px; border-left: 3px solid var(--forest-light);
}
.feat h4 { font-size: .88rem; font-weight: 600; color: var(--forest-deep); margin-bottom: .3rem; }
.feat p  { font-size: .82rem; color: var(--text-mid); line-height: 1.55; }

.haus-imgs { position: relative; padding-bottom: 2rem; padding-right: 2rem; }
.img-main {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
    border-radius: 18px; display: block;
}
.img-float {
    position: absolute; bottom: 0; right: 0;
    width: 52%; aspect-ratio: 1; object-fit: cover;
    border-radius: 14px; border: 4px solid var(--off-white);
    box-shadow: 0 10px 40px rgba(0,0,0,.16);
}


/* ── GALERIE ─────────────────────────────────────── */

#galerie { background: var(--cream); }
.gal-grid {
    display: grid; gap: .9rem;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 300px 240px;
    margin-top: 3rem;
}
.gal-cell { overflow: hidden; border-radius: 12px; cursor: pointer; }
.gal-cell img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .65s cubic-bezier(.25,.46,.45,.94);
}
.gal-cell:hover img { transform: scale(1.06); }
/* row 1 – asymmetric: wide / medium / narrow */
.gal-cell:nth-child(1) { grid-column: 1 / 6; }
.gal-cell:nth-child(2) { grid-column: 6 / 10; }
.gal-cell:nth-child(3) { grid-column: 10 / 13; }
/* row 2 – four equal columns */
.gal-cell:nth-child(4) { grid-column: 1 / 4; }
.gal-cell:nth-child(5) { grid-column: 4 / 7; }
.gal-cell:nth-child(6) { grid-column: 7 / 10; }
.gal-cell:nth-child(7) { grid-column: 10 / 13; }

/* ── LAGEPLAN ────────────────────────────────────── */

#lageplan { background: var(--off-white); }
.lageplan-layout {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 5rem; align-items: center;
}
.lageplan-img-wrap {
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,.13);
    border: 1px solid rgba(0,0,0,.06);
}
.lageplan-img-wrap img { width: 100%; display: block; }

/* lightbox */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.88); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 10px; }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem;
    font-size: 2rem; color: white; cursor: pointer;
    background: none; border: none; line-height: 1;
}


/* ── AKTIVITÄTEN ─────────────────────────────────── */

#aktivitaeten { background: var(--forest-deep); color: white; }
#aktivitaeten .label   { color: var(--forest-pale); }
#aktivitaeten .heading { color: white; }
#aktivitaeten .body-text { color: rgba(255,255,255,.68); }

.akt-header { max-width: 580px; margin-bottom: 3.5rem; }
.akt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
    gap: 1.4rem;
}
.akt-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px; padding: 2rem;
    transition: background .3s, transform .3s;
}
.akt-card:hover { background: rgba(255,255,255,.11); transform: translateY(-4px); }
.akt-icon { font-size: 2.4rem; margin-bottom: 1.2rem; }
.akt-card h3 {
    font-family: var(--ff-display); font-size: 1.45rem;
    font-weight: 600; color: white; margin-bottom: .65rem;
}
.akt-card p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.62); }
.akt-link {
    display: inline-block; margin-top: 1.1rem;
    font-size: .78rem; color: var(--forest-pale); text-decoration: none;
}
.akt-link:hover { text-decoration: underline; }


/* ── AUSFLÜGE ────────────────────────────────────── */

#ausfluege { background: var(--off-white); }
.aus-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
.aus-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.aus-bus-note {
    margin-top: 2.5rem; padding: 1.25rem; background: var(--cream);
    border-radius: 14px; font-size: .875rem; color: var(--text-mid); line-height: 1.65;
}
.aus-bus-note strong { color: var(--forest-mid); }
.aus-bus-note a { color: var(--forest-mid); text-decoration: none; }

.aus-list { display: flex; flex-direction: column; }
.aus-item {
    display: flex; gap: 1.25rem; padding: 1.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,.07); align-items: flex-start;
}
.aus-item:last-child { border-bottom: none; }
.aus-dot {
    flex-shrink: 0; width: 44px; height: 44px;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.15rem;
}
.dot-walk { background: #E8F0DC; }
.dot-bus  { background: #DCE8F0; }
.aus-info h4 { font-size: .95rem; font-weight: 600; color: var(--text-dark); margin-bottom: .25rem; }
.aus-info p  { font-size: .84rem; color: var(--text-mid); line-height: 1.55; }
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .18rem .65rem; border-radius: 100px;
    font-size: .7rem; font-weight: 600; margin-top: .4rem;
}
.badge-walk { background: #E8F0DC; color: var(--forest-mid); }
.badge-bus  { background: #DCE8F0; color: #2855A0; }


/* ── FORMULARE ───────────────────────────────────── */

#formulare { background: var(--cream); }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem; margin-top: 3rem;
}
.doc-card {
    display: flex; flex-direction: column; padding: 1.6rem 1.75rem;
    background: var(--off-white); border-radius: 14px;
    border: 1px solid rgba(0,0,0,.07); text-decoration: none;
    color: inherit; transition: box-shadow .3s, transform .2s;
}
.doc-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.doc-ext {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; margin-bottom: .9rem;
}
.ext-pdf { background: #FDECEA; color: #C62828; }
.ext-doc { background: #E3F2FD; color: #1565C0; }
.doc-card h4 { font-size: .9rem; font-weight: 600; color: var(--text-dark); flex: 1; }
.doc-card span { font-size: .78rem; color: var(--text-light); margin-top: .6rem; }
.doc-arrow { margin-top: 1.2rem; font-size: .8rem; color: var(--forest-light); font-weight: 500; }


/* ── KONTAKT ─────────────────────────────────────── */

#kontakt { background: var(--off-white); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6rem; align-items: start; }
.kontakt-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.kontakt-items { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.k-item { display: flex; gap: 1rem; align-items: flex-start; }
.k-icon {
    width: 40px; height: 40px; background: var(--cream); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; flex-shrink: 0;
}
.k-text h4 {
    font-size: .74rem; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--text-light); margin-bottom: .25rem;
}
.k-text p, .k-text a {
    font-size: .9rem; color: var(--text-dark); text-decoration: none; line-height: 1.6;
}
.k-text a:hover { color: var(--forest-mid); }

/* booking form */
.booking-form {
    background: var(--cream); border-radius: 22px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
}
.booking-form h3 {
    font-family: var(--ff-display); font-size: 1.55rem;
    color: var(--forest-deep); margin-bottom: .4rem;
}
.booking-form .hint { font-size: .82rem; color: var(--text-light); margin-bottom: 1.75rem; }

.fsec {
    font-size: .7rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--forest-light);
    margin: 1.75rem 0 1rem; padding-bottom: .45rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fg { margin-bottom: 1.1rem; }
.fg label {
    display: block; font-size: .74rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase;
    color: var(--text-light); margin-bottom: .45rem;
}
.fg.req label::after { content: ' *'; color: var(--forest-mid); }
.fg input, .fg select, .fg textarea {
    width: 100%; padding: .72rem 1rem;
    border: 1.5px solid rgba(0,0,0,.11); border-radius: 10px;
    background: var(--off-white); font-family: var(--ff-body);
    font-size: .9rem; color: var(--text-dark);
    transition: border-color .2s; outline: none; appearance: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--forest-mid); }
.fg textarea { resize: vertical; min-height: 110px; }
.btn-send {
    width: 100%; padding: 1rem; background: var(--forest-mid); color: white;
    border: none; border-radius: 12px; font-family: var(--ff-body);
    font-size: 1rem; font-weight: 500; cursor: pointer; margin-top: 1.4rem;
    transition: background .3s;
}
.btn-send:hover { background: var(--forest-deep); }
.form-success {
    display: none; text-align: center; padding: 2.5rem 1rem;
    color: var(--forest-mid); font-size: 1rem;
}
.form-success .check { font-size: 3rem; margin-bottom: .75rem; }


/* ── LEGAL PAGES (impressum / datenschutz) ───────── */

.legal-content { padding: var(--pad) 0; background: var(--off-white); }
.legal-grid {
    display: grid; grid-template-columns: 1fr 2.5fr;
    gap: 5rem; align-items: start;
}
.legal-nav {
    position: sticky; top: calc(var(--nav-h) + 2rem);
    display: flex; flex-direction: column; gap: .35rem;
}
.legal-nav a {
    font-size: .82rem; font-weight: 500; color: var(--text-light);
    text-decoration: none; padding: .4rem 0;
    border-left: 2px solid transparent;
    padding-left: .75rem;
    transition: color .2s, border-color .2s;
}
.legal-nav a:hover,
.legal-nav a.active {
    color: var(--forest-mid);
    border-left-color: var(--forest-mid);
}
.legal-nav-label {
    font-size: .68rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-light);
    margin-bottom: .5rem; padding-left: .75rem;
}

.legal-body { display: flex; flex-direction: column; gap: 3.5rem; }
.legal-section { scroll-margin-top: calc(var(--nav-h) + 2rem); }
.legal-section h2 {
    font-family: var(--ff-display); font-size: 1.6rem; font-weight: 600;
    color: var(--forest-deep); margin-bottom: 1.25rem;
    padding-bottom: .75rem; border-bottom: 1px solid rgba(0,0,0,.08);
}
.legal-section h3 {
    font-size: .92rem; font-weight: 700; color: var(--text-dark);
    margin: 1.25rem 0 .5rem;
}
.legal-section p {
    font-size: .9375rem; line-height: 1.8; color: var(--text-mid);
    margin-bottom: .75rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section address {
    font-style: normal; font-size: .9375rem;
    line-height: 1.9; color: var(--text-mid);
}
.legal-section a { color: var(--forest-mid); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-section ul {
    padding-left: 1.25rem; display: flex; flex-direction: column;
    gap: .4rem; margin: .5rem 0;
}
.legal-section ul li {
    font-size: .9375rem; line-height: 1.7; color: var(--text-mid);
}


/* ── FOOTER ──────────────────────────────────────── */

footer { background: var(--forest-deep); color: rgba(255,255,255,.55); padding: 4rem 0 2rem; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.fbrand h3 {
    font-family: var(--ff-display); font-size: 1.35rem;
    color: white; font-weight: 600; margin-bottom: .65rem;
}
.fbrand p { font-size: .86rem; line-height: 1.75; max-width: 270px; }
.fcol h4 {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--forest-pale); margin-bottom: 1.2rem;
}
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.fcol a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .86rem; transition: color .2s; }
.fcol a:hover { color: white; }
.footer-bar {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.75rem;
    display: flex; justify-content: space-between; align-items: center; font-size: .78rem;
}
.footer-bar a {
    color: rgba(255,255,255,.35); text-decoration: none;
    margin-left: 1.5rem; transition: color .2s;
}
.footer-bar a:hover { color: white; }


/* ── SCROLL REVEAL ───────────────────────────────── */

.reveal { opacity: 0; transform: translateY(28px); }


/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .haus-grid,
    .kontakt-grid,
    .aus-layout,
    .lageplan-layout,
    .legal-grid { grid-template-columns: 1fr; }
    .aus-sticky,
    .kontakt-sticky,
    .legal-nav { position: static; }
    .img-float { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .haus-features { grid-template-columns: 1fr; }
    .frow { grid-template-columns: 1fr; }
    .gal-grid { display: flex; flex-direction: column; }
    .gal-cell { height: 220px; }
    .footer-grid { grid-template-columns: 1fr; }
    .legal-nav { display: none; }
}
