:root {
  --ocean: #14495e;
  --ocean-dark: #0d2f3d;
  --terracotta: #c96a44;
  --terracotta-light: #e2a184;
  --teal: #17a398;
  --teal-light: #1fc4b6;
  --yellow: #fedc71;
  --yellow-light: #fef1c5;
  --navy: #131928;
  --sand: #f6efe2;
  --sand-dark: #ece0c9;
  --ink: #22303a;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 25px 50px -22px rgba(20, 73, 94, 0.4);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  line-height: 1.12;
}
p { line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--ocean-dark); }
.section-head p { color: #55636c; font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 12px;
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
  z-index: 300;
  transition: width 0.1s linear;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(.16,.8,.3,1), transform 0.9s cubic-bezier(.16,.8,.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(20, 73, 94, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.35s, backdrop-filter 0.35s, padding 0.35s;
}
.nav.scrolled {
  background: rgba(13, 47, 61, 0.85);
  backdrop-filter: blur(10px);
  padding: 13px 28px;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.35);
}
.nav-brand {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 10px 12px;
  margin: -10px -12px;
  cursor: pointer;
}
.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.88;
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--terracotta-light);
  transition: width 0.25s ease;
}
.nav-menu a:hover { opacity: 1; }
.nav-menu a:hover::after { width: 100%; }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.hero-images { position: absolute; inset: 0; }
.hero-images img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease;
}
.hero-images img.active {
  opacity: 1;
  animation: kenburns 9s ease-in-out forwards;
}
@keyframes kenburns {
  0% { transform: scale(1.08) translate(0,0); }
  100% { transform: scale(1.18) translate(-1.5%, -1.5%); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,47,61,0.3) 0%, rgba(13,47,61,0.1) 40%, rgba(13,47,61,0.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 90px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}
.hero-content .eyebrow { color: #ffd7b0; }
.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  margin-bottom: 0.2em;
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 580px;
  color: #eef3f5;
}
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* CINEMATIC BREAK SECTIONS */
.cinematic {
  height: 72vh;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinematic-bg {
  position: absolute;
  inset: -8% -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.cinematic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,47,61,0.35), rgba(13,47,61,0.55));
}
.cinematic-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.cinematic-text h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cinematic-text .eyebrow { color: #ffd7b0; }

/* GALLERY — masonry */
.gallery-grid {
  columns: 4 260px;
  column-gap: 14px;
}
.gallery-item {
  border: none;
  padding: 0;
  width: 100%;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--sand-dark);
  break-inside: avoid;
  display: block;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.gallery-item.in-view { opacity: 1; transform: translateY(0); }
.gallery-item img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(13, 20, 25, 0.97);
  display: none;
  flex-direction: column;
  z-index: 200;
}
.lightbox.open { display: flex; }

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  flex-shrink: 0;
}
.lightbox-counter {
  color: var(--white);
  opacity: 0.75;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
  padding: 0 24px;
}
.lightbox img {
  max-height: 100%; max-width: 100%;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pinch-zoom;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.lightbox-spinner {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox-spinner.visible { opacity: 1; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-close, .lightbox-nav {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  flex-shrink: 0;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb {
  flex: 0 0 auto;
  width: 58px; height: 42px;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--yellow);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .lightbox-stage { padding: 0 8px; }
  .lightbox img { border-radius: 0; }
  .lightbox-nav { display: none; }
  .lightbox-close { background: rgba(0,0,0,0.4); }
  .lightbox-thumb { width: 50px; height: 38px; }
}

/* LAGE / MAP */
.map-wrap-full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 62vh;
  min-height: 440px;
  margin-top: 8px;
  margin-bottom: 52px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
#map { width: 100%; height: 100%; }
.maplibregl-ctrl-attrib { font-size: 10px !important; background: rgba(255,255,255,0.6) !important; }
.maplibregl-ctrl-top-right { top: 14px; right: 14px; }
.maplibregl-popup-content {
  font-family: 'Inter', sans-serif;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
}
.villa-marker {
  width: 44px; height: 44px;
  border-radius: 50% 50% 50% 0;
  background: var(--terracotta);
  transform: rotate(-45deg);
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--white);
  cursor: pointer;
}
.villa-marker span { transform: rotate(45deg); font-size: 1.2rem; }
.restaurant-marker {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal);
  border: 2.5px solid var(--white);
  box-shadow: 0 6px 14px -3px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
}

.lage-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 56px;
}
.address-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.address-card h3 { color: var(--ocean-dark); }
.address-note {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 4px;
}
.address-card .btn { margin-top: 18px; align-self: flex-start; }

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.restaurants-block { margin-top: 12px; }
.restaurants-block h3 { color: var(--ocean-dark); font-size: 1.5rem; }
.restaurants-intro { color: #55636c; max-width: 640px; margin-bottom: 26px; }
.transfer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.transfer-card:hover { transform: translateY(-4px); }
.transfer-note {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 700;
}
.transfer-tip { color: #55636c; font-size: 0.9rem; }

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: #b25a37; transform: translateY(-2px); }

/* CALENDAR */
#verfuegbarkeit { background: linear-gradient(180deg, var(--ocean) 0%, var(--ocean-dark) 100%); color: var(--white); }
#verfuegbarkeit .section-head h2 { color: var(--white); }
#verfuegbarkeit .section-head p { color: #c7dbe2; }
.legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 40px;
  font-size: 0.85rem;
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.free { background: #6fbf9a; }
.dot.booked { background: var(--terracotta); }
.dot.tentative {
  background: repeating-linear-gradient(135deg, var(--yellow), var(--yellow) 3px, transparent 3px, transparent 6px);
  border: 1.5px dashed var(--yellow);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.month-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.month-card.in-view { opacity: 1; transform: translateY(0) scale(1); }
.month-card h4 {
  font-size: 1.05rem; color: var(--white); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}
.weekdays span { font-size: 0.66rem; color: #7fa3ad; text-transform: uppercase; }
.day {
  font-size: 0.74rem;
  padding: 6px 0;
  border-radius: 7px;
  color: #dcecef;
  position: relative;
}
.day.booked {
  background: linear-gradient(135deg, var(--terracotta), #a8532f);
  color: var(--white);
  font-weight: 600;
}
.day.booked.tentative {
  background: repeating-linear-gradient(135deg, rgba(254,220,113,0.35), rgba(254,220,113,0.35) 4px, rgba(254,220,113,0.12) 4px, rgba(254,220,113,0.12) 8px);
  color: var(--yellow);
  border: 1.5px dashed var(--yellow);
  font-weight: 700;
}
.day.booked.range-start { border-radius: 7px 3px 3px 7px; }
.day.booked.range-end { border-radius: 3px 7px 7px 3px; }
.month-note em { font-style: normal; color: var(--yellow); font-weight: 500; }
.day.empty { visibility: hidden; }
.month-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #ffd7b0;
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.month-note.free { color: #a9e0c4; }

/* CHARTS */
.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px 16px;
  margin-bottom: 22px;
  height: 340px;
  position: relative;
}
.chart-card canvas { max-height: 100%; }
.climate-footnote { margin-top: 30px; text-align: center; color: #55636c; max-width: 720px; margin-left: auto; margin-right: auto; }

/* RESTAURANTS */
.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.restaurant-card {
  cursor: pointer;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.restaurant-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -20px rgba(20,73,94,0.5); }
.restaurant-tag {
  display: inline-block;
  background: var(--sand-dark);
  color: var(--ocean-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.restaurant-place { display: block; color: var(--terracotta); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.restaurant-link { display: inline-block; margin-top: 12px; padding: 6px 0; font-size: 0.85rem; font-weight: 600; color: var(--ocean); }

/* FOOTER */
footer {
  background: var(--ocean-dark);
  color: #a9c1c9;
  padding: 44px 24px;
  text-align: center;
  font-size: 0.85rem;
}
footer strong { color: var(--white); }

@media (max-width: 860px) {
  .lage-grid { grid-template-columns: 1fr; }
  .map-wrap-full { height: 46vh; min-height: 320px; margin-bottom: 40px; }
  .gallery-grid { columns: 2 180px; }
  .chart-card { height: 280px; padding: 20px 18px 12px; }
  .restaurants-block h3 { font-size: 1.3rem; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 74%;
    background: var(--ocean-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
  }
  .nav-menu.open { right: 0; }
  .nav-toggle { display: block; }
  section { padding: 72px 0; }
  .cinematic { height: 52vh; }
}


/* PLAYFUL: highlight marker */
.highlight {
  position: relative;
  white-space: nowrap;
  z-index: 1;
}
.highlight::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: 0.06em;
  height: 0.38em;
  background: var(--yellow);
  z-index: -1;
  border-radius: 3px;
  transform: rotate(-1deg);
}

/* PLAYFUL: sticker card (thick offset border, pop effect) */
.sticker {
  border: 2.5px solid var(--navy);
  border-bottom-width: 6px;
  border-right-width: 6px;
  box-shadow: none !important;
}

/* HERO STICKERS */
.hero-stickers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-sticker {
  position: absolute;
  background: var(--yellow);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 100px;
  border: 2.5px solid var(--navy);
  box-shadow: 4px 5px 0 var(--navy);
  animation: floaty 5s ease-in-out infinite;
  white-space: nowrap;
}
.hero-sticker.teal { background: var(--teal-light); color: var(--white); border-color: var(--navy); }
.hero-sticker.sand { background: var(--sand); color: var(--navy); }
.hero-sticker:nth-child(1) { top: 16%; left: 6%; --r: -7deg; animation-delay: 0s; }
.hero-sticker:nth-child(2) { top: 28%; right: 8%; --r: 5deg; animation-delay: 1.2s; }
.hero-sticker:nth-child(3) { top: 58%; left: 4%; --r: 4deg; animation-delay: 2.1s; }
.hero-sticker:nth-child(4) { bottom: 26%; right: 6%; --r: -4deg; animation-delay: 0.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}
@media (max-width: 860px) {
  .hero-sticker:nth-child(3), .hero-sticker:nth-child(4) { display: none; }
}
