/* ============================================
   Chalet Stanzertal — Stylesheet
   Farbwelt: Navy / Skyblue, angelehnt an das Logo
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #10233f;
  --navy-deep: #0a1830;
  --sky: #5f92c9;
  --sky-light: #bcd6ec;
  --sky-pale: #eaf2fa;
  --cream: #faf8f4;
  --wood: #a9825a;
  --wood-light: #e9dcc9;
  --ink: #1c2836;
  --ink-soft: #4d5b6b;
  --white: #ffffff;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; max-width: 65ch; }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--wood);
  margin-bottom: 0.4em;
  display: block;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16, 35, 63, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--sky);
  font-weight: 600;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav.main-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: color 0.15s ease;
  position: relative;
}

nav.main-nav a:hover { color: var(--sky); }

nav.main-nav a.active {
  color: var(--navy);
  font-weight: 600;
}

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--wood);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  position: relative;
}

.lang-toggle {
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.15s ease;
}

.lang-toggle svg { width: 22px; height: 22px; }

.lang-toggle:hover { background: rgba(16,35,63,0.07); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(16,35,63,0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(16,35,63,0.16);
  padding: 6px;
  min-width: 190px;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.lang-switch.open .lang-menu { display: flex; }

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: background 0.12s ease;
  box-sizing: border-box;
}

.lang-menu a svg { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }

.lang-menu a:hover { background: var(--sky-pale); }

.lang-menu a.active {
  background: var(--sky-pale);
  font-weight: 600;
  color: var(--navy);
}

.lang-menu a em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--wood);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch svg { width: 24px; height: 24px; border-radius: 50%; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  padding: 11px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--navy);
  transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover { background: var(--navy-deep); }

.btn-outline {
  background: transparent;
  color: var(--navy) !important;
}

.btn-outline:hover { background: var(--navy); color: var(--white) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,24,48,0.15) 0%, rgba(10,24,48,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-bottom: 64px;
  max-width: 780px;
}

.hero-content .eyebrow { color: var(--sky-light); }
.hero-content h1 { color: var(--white); }
.hero-content p { color: rgba(255,255,255,0.88); font-size: 1.15rem; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.6);
}
.hero .btn-outline:hover { background: var(--white); color: var(--navy) !important; }

/* Smaller page hero (non-home) */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero img.hero-bg { position: absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.page-hero::after {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,24,48,0.25) 0%, rgba(10,24,48,0.75) 100%);
}
.page-hero .hero-content { padding-bottom: 40px; max-width: 700px; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--sky-light); }
.section-navy p { color: rgba(255,255,255,0.82); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Story / two column ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img { border-radius: var(--radius); }

.split.reverse .split-media { order: 2; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 8px;
}

.feature {
  padding-top: 20px;
  border-top: 1px solid rgba(16,35,63,0.12);
}

.feature h3 { margin-bottom: 0.35em; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Apartment cards ---------- */

.apartments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.apartment-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(16,35,63,0.1);
}

.apartment-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.apartment-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.apartment-card:hover .thumb img { transform: scale(1.04); }

.apartment-card .body { padding: 28px 30px 32px; }

.apartment-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--wood);
  font-weight: 600;
  margin-bottom: 10px;
}

.apartment-card ul.specs {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.apartment-card ul.specs li { display: flex; align-items: center; gap: 6px; }

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

/* ---------- Gallery ---------- */

.gallery-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gallery-tabs button {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(16,35,63,0.18);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
}

.gallery-tabs button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 16px;
}

.gallery-grid figure {
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.03); }

.gallery-item { display: none; }
.gallery-item.show { display: block; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,20,38,0.94);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: white; font-size: 2rem; background: none; border: none; cursor: pointer;
  line-height: 1;
}

/* ---------- Booking / Price section ---------- */

.booking-box {
  background: var(--white);
  border: 1px solid rgba(16,35,63,0.12);
  border-radius: var(--radius);
  padding: 40px;
}

#easybooking-widget {
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
}

.widget-placeholder {
  border: 1.5px dashed rgba(16,35,63,0.3);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--sky-pale);
}

.widget-placeholder strong { color: var(--navy); display:block; margin-bottom: 6px; font-family: var(--font-display); font-size:1.15rem;}

/* ---------- Form ---------- */

form.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

form.request-form .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(16,35,63,0.22);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
}

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

form.request-form button { justify-self: start; margin-top: 6px; }

@media (max-width: 700px) {
  form.request-form { grid-template-columns: 1fr; }
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Contact info blocks ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: var(--sky-pale);
  border-radius: var(--radius);
  padding: 34px;
}

.contact-line {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-line svg { flex-shrink: 0; margin-top: 3px; color: var(--sky); }

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

/* ---------- Map ---------- */

.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  filter: grayscale(15%);
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-grid a:hover { color: var(--sky-light); }

.footer-brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Impressum ---------- */

.legal-block {
  max-width: 720px;
}
.legal-block h3 { margin-top: 2em; }

/* ---------- Responsive nav ---------- */

@media (max-width: 940px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }

  .site-header.nav-open nav.main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 12px 28px 24px;
    border-bottom: 1px solid rgba(16,35,63,0.1);
  }

  .nav-right .btn { display: none; }
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.88rem; color: var(--ink-soft); }

.badge-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.badge-row .badge {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.badge-row .badge strong { color: var(--navy); display:block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500;}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(16,35,63,0.12);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--navy);
}

.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: '';
  position: absolute;
  background: var(--navy);
  transition: transform 0.2s ease;
}
.faq-question .plus::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.faq-question .plus::after { left: 50%; top: 0; height: 100%; width: 2px; margin-left: -1px; }

.faq-item.open .faq-question .plus::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 4px 20px;
  color: var(--ink-soft);
  max-width: none;
}

/* ---------- Events Timeline ---------- */

.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.events-filters .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.events-filters .filter-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  width: 100%;
  margin: 14px 0 2px;
}
.events-filters .filter-label:first-child { margin-top: 0; }

.events-filters button {
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(16,35,63,0.18);
  background: var(--white);
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.events-filters button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.events-filters button .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 28px;
  border-left: 2px solid rgba(16,35,63,0.14);
}

.timeline-month {
  position: relative;
  margin-bottom: 6px;
}

.timeline-month-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin: 44px 0 18px;
  position: relative;
}

.timeline-month:first-child .timeline-month-label { margin-top: 0; }

.timeline-month-label::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--navy);
}

.event-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(16,35,63,0.1);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  display: none;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.event-card.show { display: flex; }

.event-card-body { flex: 1; min-width: 0; }

.event-qr {
  flex-shrink: 0;
  width: 84px;
  text-align: center;
}

.event-qr img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  border: 1px solid rgba(16,35,63,0.12);
  display: block;
  margin: 0 auto;
}

.event-qr span {
  display: block;
  font-size: 0.66rem;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .event-card.show { flex-direction: column; }
  .event-qr { align-self: flex-start; margin-top: 4px; }
}

.event-card::before {
  content: '';
  position: absolute;
  left: -34.5px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky);
}

.event-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--wood);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.event-card h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.event-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: none;
}

.event-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.event-tag.region {
  background: var(--sky-pale);
  color: var(--navy);
}

/* Category colors */
.event-tag.cat-opening { background: #e2f3ea; color: #1e6b45; }
.event-tag.cat-rabatt { background: #fdf0d8; color: #8a5a10; }
.event-tag.cat-konzert { background: #f1e4f7; color: #6a3494; }
.event-tag.cat-rennen { background: #fde3e3; color: #a12d2d; }
.event-tag.cat-weihnacht { background: #fde8ee; color: #a12362; }
.event-tag.cat-sonstiges { background: #e6eef7; color: #2c4f78; }

.timeline-empty {
  padding: 40px 0;
  color: var(--ink-soft);
  font-style: italic;
  display: none;
}
.timeline-empty.show { display: block; }

.events-disclaimer {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--sky-pale);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .timeline { padding-left: 22px; }
  .timeline-month-label::before { left: -28.5px; }
  .event-card::before { left: -27.5px; }
}
