/* =========================================================
   Ferienhaus am Kaunerberg – modernes, responsives Stylesheet
   ========================================================= */

:root {
  --green:        #2f5d50;
  --green-dark:   #244a40;
  --green-light:  #3f7666;
  --wood:         #b9763f;
  --wood-dark:    #9c5f2e;
  --cream:        #faf8f3;
  --paper:        #ffffff;
  --ink:          #2b2b2b;
  --muted:        #6b6b6b;
  --line:         #e6e1d8;
  --shadow:       0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg:    0 20px 50px rgba(0, 0, 0, .18);
  --radius:       14px;
  --radius-sm:    8px;
  --maxw:         1140px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--wood); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-dark); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding: 84px 0; }
.section--tint { background: var(--paper); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wood);
  font-weight: 600;
  margin-bottom: 14px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 16px; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: all .2s; text-align: center;
}
.btn--primary { background: var(--wood); color: #fff; border-color: var(--wood); }
.btn--primary:hover { background: var(--wood-dark); border-color: var(--wood-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(255,255,255,.98); box-shadow: 0 2px 18px rgba(0,0,0,.08); padding: 10px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; transition: color .3s; }
.brand__sub  { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85); transition: color .3s; }
.scrolled .brand__name { color: var(--green-dark); }
.scrolled .brand__sub  { color: var(--wood); }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: #fff; font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 8px; transition: all .2s;
}
.scrolled .nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--wood); background: rgba(255,255,255,.12); }
.scrolled .nav__links a:hover { background: var(--cream); }
.nav__links .btn { color: #fff; padding: 10px 20px; }
.nav__links .btn:hover { color: #fff; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110;
}
.nav__toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: all .3s; border-radius: 2px; }
.scrolled .nav__toggle span, .nav-open .nav__toggle span { background: var(--green-dark); }
.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay hinter dem mobilen Menü */
.nav-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(18, 30, 26, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.nav-open .nav-overlay { opacity: 1; visibility: visible; }
@media (min-width: 761px) { .nav-overlay { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: #fff; text-align: center; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20,40,34,.55) 0%, rgba(20,40,34,.35) 45%, rgba(20,40,34,.75) 100%),
    url("../images/Haus8.jpg") center center / cover no-repeat;
}
.hero__inner { max-width: 820px; margin-inline: auto; padding-top: 80px; }
.hero__tag {
  display: inline-block; font-size: .82rem; letter-spacing: .25em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 22px; padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px; backdrop-filter: blur(4px);
}
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); margin: 0 0 18px; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero__text { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 600px; margin: 0 auto 34px; color: rgba(255,255,255,.92); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 1.6rem; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Facts strip ---------- */
.facts { background: var(--green); color: #fff; }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 30px 0; text-align: center;
}
.fact__num { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; display: block; color: #fff; }
.fact__label { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about__text p { margin: 0 0 18px; color: #444; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__badge {
  position: absolute; bottom: -22px; right: -10px; background: var(--wood); color: #fff;
  padding: 18px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow); text-align: center; line-height: 1.2;
}
.about__badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.about__badge span { font-size: .8rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { font-size: 1.9rem; margin-bottom: 12px; line-height: 1; }
.feature h3 { font-size: 1.2rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Gallery ---------- */
.gallery__filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  font-family: var(--sans); font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); transition: all .2s;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  aspect-ratio: 1; background: #ddd;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: "\002B"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; background: rgba(36,74,64,.35); opacity: 0; transition: opacity .25s;
}
.gallery__item:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,25,21,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .9rem; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; max-width: 760px; margin: 0 auto;
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--green); color: #fff; font-weight: 600; font-family: var(--sans); }
.price-table thead th:not(:first-child) { text-align: right; }
.price-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: #faf9f6; }
.price-table .price-table__main { font-weight: 600; }

/* Preis-Tabs 2026 / 2027 */
.price-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; }
.price-tab {
  font-family: var(--sans); font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: 11px 34px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); transition: all .2s;
}
.price-tab:hover { border-color: var(--green); color: var(--green); }
.price-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.price-panel[hidden] { display: none; }

.price-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 22px auto 0; }
.price-note {
  background: #fdf6ee; border: 1px solid #f0e2cf; border-left: 4px solid var(--wood);
  border-radius: var(--radius-sm); padding: 16px 20px; color: #6b5a45; font-size: .95rem;
}
.price-note ul { margin: 8px 0 0; padding-left: 20px; }
.price-note strong { color: var(--wood-dark); }

/* ---------- Availability ---------- */
.availability__widget { max-width: 900px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.availability__cta { text-align: center; margin: 28px 0 0; }

/* ---------- Testimonials / Briefe ---------- */
.letters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.letter { text-align: center; }
.letter img { border-radius: var(--radius-sm); box-shadow: var(--shadow); margin: 0 auto 14px; max-height: 460px; width: auto; cursor: pointer; transition: transform .2s; }
.letter img:hover { transform: scale(1.02); }
.letter figcaption { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contact__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact__card h3 { font-size: 1.5rem; margin: 0 0 22px; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact__row .ic { font-size: 1.3rem; line-height: 1.5; flex: none; }
.contact__row .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: block; }
.contact__row a, .contact__row span { color: var(--ink); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.75); padding: 46px 0 26px; text-align: center; }
.site-footer .brand__name { color: #fff; }
.site-footer__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0; }
.site-footer__links a { color: rgba(255,255,255,.8); font-size: .95rem; }
.site-footer__links a:hover { color: #fff; }
.site-footer__partners { margin-top: 6px; }
.site-footer__partners-label { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.site-footer__partners .site-footer__links { margin: 0 0 8px; }
.site-footer__bottom { font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; margin-top: 10px; color: rgba(255,255,255,.55); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 520px; margin-inline: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { min-height: 320px; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background: #fff; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 80px 28px;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { color: var(--ink); font-size: 1.3rem; padding: 12px 18px; }
  .nav__links .btn { color: #fff; margin-top: 10px; justify-content: center; }
  .nav__links .btn:hover { color: #fff; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
  .features { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .price-cols { grid-template-columns: 1fr; }
  .letters { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 12px 14px; font-size: .92rem; }
}

@media (max-width: 420px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
