/* ==========================================================================
   Waldapartment — Wörthersee turquoise theme
   ========================================================================== */

:root {
  /* Wörthersee turquoise palette */
  --teal-900: #0a4a52;
  --teal-700: #0e7c8a;
  --teal-500: #14a5b0;
  --teal-400: #1cc2c9;
  --teal-100: #d6f3f3;
  --teal-50:  #eefafa;

  --sand:     #e9dcc6;   /* warm wood / beach accent */
  --wood:     #b08a5a;
  --ink:      #16303a;
  --muted:    #557078;
  --bg:       #fbfdfd;
  --card:     #ffffff;
  --line:     #dce9ea;

  --radius:   14px;
  --radius-sm: 9px;
  --shadow:   0 6px 22px rgba(13, 74, 82, 0.10);
  --shadow-lg: 0 18px 50px rgba(13, 74, 82, 0.20);
  --maxw:     1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Theme: Green (forest) — overrides the turquoise variables ---------- */
html.theme-green {
  --teal-900: #143d2a;
  --teal-700: #2f6b43;
  --teal-500: #43924f;
  --teal-400: #6bbf86;
  --teal-100: #dcefe1;
  --teal-50:  #eef7f0;
  --wood:     #9c7b4a;
  --ink:      #16301f;
  --muted:    #5a7261;
  --line:     #d9e8dd;
}

/* ---- Theme: Minimal (neutral, flat) ------------------------------------- */
html.theme-minimal {
  --teal-900: #1f2530;
  --teal-700: #2b313b;
  --teal-500: #2b313b;   /* near-black accent for buttons */
  --teal-400: #6b7280;
  --teal-100: #eceef1;
  --teal-50:  #f6f7f8;
  --sand:     #e7e5e1;
  --wood:     #8a8a8a;
  --ink:      #1f2530;
  --muted:    #6b7280;
  --bg:       #ffffff;
  --card:     #ffffff;
  --line:     #e5e7eb;
  --radius:   6px;
  --radius-sm: 4px;
  --shadow:   none;
  --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.18);
}
/* flatten interactions + borders in minimal */
html.theme-minimal .feature,
html.theme-minimal .am-card,
html.theme-minimal .sleep-card,
html.theme-minimal .booking-card { border-color: var(--line); }
html.theme-minimal .btn:hover { transform: none; }
html.theme-minimal .gallery__item:hover img { transform: scale(1.02); }
html.theme-minimal .btn-primary { background: var(--teal-900); }
html.theme-minimal .btn-primary:hover { background: #000; }
html.theme-minimal .chip { background: rgba(255, 255, 255, 0.16); }

/* ---- Floating theme switcher (for previewing the variants) -------------- */
.theme-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; gap: 8px; align-items: center;
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px); font-size: .78rem; font-weight: 700; color: var(--muted);
}
.theme-switch__label { letter-spacing: .4px; text-transform: uppercase; }
.theme-switch button {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.theme-switch button.is-active { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.12); }
.theme-switch button[data-theme="turquoise"] { background: #14a5b0; }
.theme-switch button[data-theme="green"] { background: #43924f; }
.theme-switch button[data-theme="minimal"] { background: #2b313b; }
@media (max-width: 680px) { .theme-switch { bottom: 12px; right: 12px; padding: 6px 10px; } }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

img { max-width: 100%; display: block; }
a { color: var(--teal-700); }

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

section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 8px; color: var(--teal-900); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.alt-bg { background: var(--teal-50); }

/* ------------------------------- Header ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--teal-900); text-decoration: none; font-size: 1.15rem; letter-spacing: .2px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav__menu a:hover { color: var(--teal-700); }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 6px 12px; font-weight: 700; font-size: .82rem;
  color: var(--muted); cursor: pointer; letter-spacing: .5px;
}
.lang-switch button.is-active { background: var(--teal-500); color: #fff; }

.nav__toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* --------------------------------- Hero ----------------------------------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* neutral (not colored) scrim — heaviest behind the text, fades to clear so the photo still shows */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.40) 42%, rgba(0,0,0,0) 78%),
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
}
.hero__inner { padding: 110px 0 96px; max-width: 720px; }
.hero h1, .hero .tagline, .hero .subtitle { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 6px; line-height: 1.05; }
.hero .tagline { font-size: clamp(1.05rem, 2.5vw, 1.45rem); font-weight: 600; opacity: .95; margin: 0 0 14px; }
.hero .subtitle { font-size: 1.08rem; opacity: .92; margin: 0 0 26px; max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; backdrop-filter: blur(4px);
}

/* -------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; padding: 13px 26px; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-500); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--teal-700); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.btn-outline { background: #fff; color: var(--teal-700); border: 2px solid var(--teal-500); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ------------------------------ Highlights -------------------------------- */
.grid { display: grid; gap: 20px; }
.highlights .grid { grid-template-columns: repeat(3, 1fr); }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-700); margin-bottom: 14px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--teal-900); }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* -------------------------------- Gallery --------------------------------- */
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  display: block; cursor: zoom-in; background: var(--teal-100);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item.span-2 { grid-column: span 2; grid-row: span 2; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8, 30, 34, 0.92); align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.15); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ------------------------------ Description ------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1.06rem; color: #28424b; margin: 0 0 18px; }

/* ------------------------------ Amenities --------------------------------- */
.amenities .grid { grid-template-columns: repeat(3, 1fr); }
.am-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.am-card h3 { margin: 0 0 12px; color: var(--teal-900); font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.am-card ul { list-style: none; margin: 0; padding: 0; }
.am-card li { position: relative; padding-left: 24px; margin: 7px 0; color: #355059; font-size: .96rem; }
.am-card li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 9px;
  border-left: 2.5px solid var(--teal-500); border-bottom: 2.5px solid var(--teal-500);
  transform: rotate(-45deg);
}

/* ------------------------------- Sleeping --------------------------------- */
.sleep__grid { grid-template-columns: repeat(3, 1fr); }
.sleep-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.sleep-card .ico { color: var(--teal-700); margin-bottom: 10px; }
.sleep-card .ico svg { width: 38px; height: 38px; }
.sleep-card h3 { margin: 0 0 4px; color: var(--teal-900); }
.sleep-card p { margin: 0; color: var(--muted); }
.sleep-note { text-align: center; color: var(--muted); margin-top: 22px; font-weight: 600; }

/* ------------------------------- Location --------------------------------- */
.loc__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.loc__list { list-style: none; margin: 14px 0 0; padding: 0; }
.loc__list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.loc__list .dist { color: var(--teal-700); font-weight: 700; white-space: nowrap; }
.loc__addr { color: var(--muted); margin: 6px 0 0; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* -------------------------------- Booking --------------------------------- */
.booking__wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.booking-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; color: var(--teal-900); }
.field input, .field select {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100); }
.nights-summary { font-weight: 700; color: var(--teal-700); margin: 4px 0 10px; min-height: 1.4em; }
.price-summary { background: var(--teal-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; color: #355059; font-size: .96rem; }
.price-row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.1rem; color: var(--teal-900); }
.price-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.booking-error { background: #fdecec; color: #b3261e; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 14px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.booking-actions .btn { flex: 1 1 200px; }

.rules-card { background: var(--teal-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.rules-card h3 { margin: 0 0 14px; color: var(--teal-900); }
.rules-card ul { list-style: none; margin: 0; padding: 0; }
.rules-card li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #355059; }
.rules-card li svg { width: 20px; height: 20px; color: var(--teal-700); flex: none; }

/* -------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--teal-900); color: #cfeaec; padding: 50px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1.05rem; }
.site-footer a { color: #9fe0e3; }
.site-footer p { margin: 4px 0; font-size: .94rem; }
.imprint-body { font-size: .82rem; color: #8fc3c6; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 30px; padding-top: 18px; text-align: center; font-size: .86rem; color: #86bcc0; }

/* ========================== Sub-page layouts ============================== */

/* Hero for sub-pages — full-width image with gradient overlay */
.subpage-hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: 380px; display: flex; align-items: flex-end;
}
.subpage-hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.subpage-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.subpage-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.55) 100%),
    linear-gradient(100deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%);
}
.subpage-hero__inner {
  padding: 60px 0 48px; width: 100%; text-align: center;
}
.subpage-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 8px; line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}
.subpage-hero .tagline {
  font-size: 1.1rem; opacity: .92; margin: 0 auto; max-width: 36em;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* Breadcrumb navigation */
.breadcrumb {
  padding: 14px 0; font-size: .9rem;
}
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before {
  content: "›"; color: var(--muted); font-weight: 600; margin-right: 2px;
}
.breadcrumb a { color: var(--teal-700); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--muted); font-weight: 600; }

/* Prose content sections for sub-pages */
.subpage-content { padding: 0 0 64px; }
.subpage-content section { padding: 48px 0; }
.subpage-content section:first-child { padding-top: 32px; }
.subpage-content .prose { max-width: 800px; margin: 0 auto; }
.subpage-content .prose h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); color: var(--teal-900);
  margin: 48px 0 16px; line-height: 1.2;
}
.subpage-content .prose h2:first-child { margin-top: 0; }
.subpage-content .prose h3 {
  font-size: 1.15rem; color: var(--teal-900); margin: 32px 0 10px;
}
.subpage-content .prose p {
  font-size: 1.05rem; color: #28424b; margin: 0 0 16px; line-height: 1.7;
}
.subpage-content .prose ul {
  margin: 0 0 16px; padding-left: 24px; color: #28424b;
}
.subpage-content .prose li { margin: 6px 0; font-size: 1.02rem; line-height: 1.6; }

/* CTA block on sub-pages */
.cta-section {
  background: var(--teal-50); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px; text-align: center;
  margin: 48px auto 0; max-width: 700px;
}
.cta-section h2 {
  font-size: 1.5rem; color: var(--teal-900); margin: 0 0 10px;
}
.cta-section p {
  color: var(--muted); margin: 0 0 20px; font-size: 1.05rem;
}

/* Related pages / cross-links grid */
.related-pages { padding: 64px 0; }
.related-pages .section-head { margin-bottom: 32px; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.related-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-card img { width: 100%; height: 180px; object-fit: cover; }
.related-card__body { padding: 20px; }
.related-card__body h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--teal-900); }
.related-card__body p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* Explore cards on main page */
.explore-section { padding: 64px 0; }
.explore-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.explore-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.explore-card img { width: 100%; height: 200px; object-fit: cover; }
.explore-card__body { padding: 22px; }
.explore-card__body h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--teal-900); }
.explore-card__body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Sub-page footer links */
.footer-subpages { margin-top: 10px; }
.footer-subpages a {
  display: block; margin: 4px 0; font-size: .92rem;
}

/* ----------------------------- Responsive --------------------------------- */
@media (max-width: 900px) {
  .highlights .grid, .amenities .grid, .sleep__grid { grid-template-columns: 1fr 1fr; }
  .loc__wrap, .booking__wrap { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 48px 0; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    box-shadow: var(--shadow); display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__menu .lang-switch { align-self: flex-start; margin-top: 8px; }
  .highlights .grid, .amenities .grid, .sleep__grid, .gallery__grid, .footer__grid, .explore-grid { grid-template-columns: 1fr; }
  .subpage-hero { min-height: 280px; }
  .subpage-hero h1 { font-size: 1.6rem; }
  .cta-section { padding: 28px 20px; }
  .gallery__grid { grid-auto-rows: 220px; }
  .gallery__item.span-2 { grid-column: span 1; grid-row: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .hero__inner { padding: 80px 0 64px; }
}
