/* Grünau Chalets — site styles (mobile-first) */
:root {
  --sand: #f4ead9;
  --sand-light: #fbf7f0;
  --sand-dark: #e3d3b8;
  --ochre: #c2652a;
  --ochre-dark: #9e4f1e;
  --dusk: #2f4f6f;
  --dusk-dark: #223b54;
  --charcoal: #2b2620;
  --muted: #6b625a;
  --white: #fff;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 38, 32, .12);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--sand-light);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dusk); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section--sand { background: var(--sand); }
.section--dusk { background: var(--dusk-dark); color: var(--sand-light); }
.section--dusk h2 { color: var(--white); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section--dusk .lead { color: var(--sand); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--ochre); margin-bottom: .6rem; }
.section--dusk .eyebrow { color: var(--sand-dark); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ochre); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; font-size: 1rem; transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ochre); color: #fff; }
.btn--primary:hover { background: var(--ochre-dark); }
.btn--dusk { background: var(--dusk); color: #fff; }
.btn--dusk:hover { background: var(--dusk-dark); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: rgba(43, 38, 32, .06); }
.btn--light { background: rgba(255,255,255,.92); color: var(--charcoal); }
.btn--light:hover { background: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fb457; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.topbar { background: var(--charcoal); color: var(--sand); font-size: .85rem; text-align: center; padding: .45rem 1rem; }
.topbar a { color: var(--sand); text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-dark); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--charcoal); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.brand svg { width: 34px; height: 34px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle:hover { background: var(--sand); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sand-light); border-bottom: 1px solid var(--sand-dark); box-shadow: var(--shadow); }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.nav li a { display: block; padding: .8rem .5rem; font-weight: 700; text-decoration: none; color: var(--charcoal); border-bottom: 1px solid var(--sand-dark); }
.nav li a[aria-current="page"] { color: var(--ochre); }
.nav li.nav__cta { padding-top: .8rem; }
.nav li.nav__cta a { border: 0; }
.header__book { display: none; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .nav ul { display: flex; align-items: center; gap: .25rem; padding: 0; }
  .nav li a { border: 0; padding: .5rem .8rem; border-radius: 8px; }
  .nav li a:hover { background: var(--sand); }
  .nav li.nav__cta { padding: 0; margin-left: .5rem; }
}

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--charcoal); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,38,32,.25) 0%, rgba(43,38,32,.55) 60%, rgba(43,38,32,.85) 100%); }
.hero__inner { padding: 4.5rem 0 3rem; min-height: min(70vh, 620px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero--short .hero__inner { min-height: min(40vh, 380px); padding-top: 3rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); max-width: 16ch; }
.hero p { font-size: 1.15rem; max-width: 48ch; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .btn-row { margin-top: 1rem; }
.rating { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; backdrop-filter: blur(4px); }
.rating .star { color: #ffc107; }
.direct { font-size: .95rem; font-weight: 700; margin: .75rem 0 0; opacity: .95; }
.direct--dark { color: var(--ochre-dark); }
@media (min-width: 860px) { .hero__inner { min-height: min(78vh, 720px); } }

/* Feature grid */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card__body { padding: 1.25rem; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--icon { padding: 1.5rem; }
.card--icon .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; margin-bottom: .9rem; color: var(--ochre); }
.card--icon .ico svg { width: 26px; height: 26px; }

/* Split section */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split--rev > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--ochre); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rooms { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.rooms li { display: flex; justify-content: space-between; gap: 1rem; background: var(--white); border-radius: 10px; padding: .8rem 1rem; box-shadow: 0 2px 8px rgba(43,38,32,.06); }
.rooms li strong { color: var(--ochre-dark); white-space: nowrap; }
.rooms li.total { background: var(--charcoal); color: var(--sand-light); }
.rooms li.total strong { color: var(--sand); }

/* Booking CTA band */
.cta-band { background: var(--ochre); color: #fff; text-align: center; padding: 3rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 50ch; margin-inline: auto; }
.cta-band .btn--light { color: var(--ochre-dark); }
.cta-band .btn-row { justify-content: center; margin-top: 1.25rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--ochre); }
.map-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.map-box p { color: var(--muted); }

/* Form */
.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .9rem; min-height: 48px; border: 1.5px solid var(--sand-dark); border-radius: 10px; background: var(--sand-light); color: var(--charcoal); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(47,79,111,.35); border-color: var(--dusk); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { margin-top: 1rem; padding: 1rem; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: #e8f5e9; color: #1b5e20; }
.form-msg.err { display: block; background: #fdecea; color: #8b1a1a; }
.form-msg a { font-weight: 700; }

/* Gallery */
.gallery-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.gallery-nav a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 700; color: var(--charcoal); border: 1.5px solid var(--sand-dark); }
.gallery-nav a:hover { border-color: var(--ochre); color: var(--ochre-dark); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 3rem; }
@media (min-width: 620px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .8rem; } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; background: var(--sand-dark); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,16,12,.94); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: var(--sand); font-size: .9rem; }

/* Footer */
.footer { background: var(--charcoal); color: var(--sand); padding: 3rem 0 6rem; font-size: .95rem; }
.footer a { color: var(--sand-light); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: var(--sand-dark); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  min-height: 56px;
}
.wa-float:hover { background: #1fb457; }
.wa-float svg { width: 30px; height: 30px; }

/* Mobile sticky book bar */
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(251,247,240,.97); border-top: 1px solid var(--sand-dark); padding: .6rem 1rem; padding-bottom: max(.6rem, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; }
.book-bar .btn { flex: 1; }
@media (max-width: 859px) {
  /* phone: icon-only WhatsApp bubble sitting above the sticky Book-now bar */
  .wa-float { bottom: calc(4.6rem + env(safe-area-inset-bottom)); width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 860px) {
  .book-bar { display: none; }
  .footer { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery-grid img { transition: none; } }
