/* Final Safari and responsive layout corrections, July 2026 */

/* Refined desktop navigation: calm spacing and a restrained gold underline. */
@media (width > 900px) {
  .site-header nav > a:not(.header-book) {
    position: relative;
    padding-block: 8px;
  }

  .site-header nav > a:not(.header-book)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .28s ease;
  }

  .site-header nav > a:not(.header-book):hover::after,
  .site-header nav > a:not(.header-book):focus-visible::after,
  .site-header nav > a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .site-header nav > a[href*="kontakt"] {
    display: none;
  }
}

/* Large branded calendar for all booking date fields */
.ml-date-input { cursor: pointer; }
.ml-date-input::-webkit-calendar-picker-indicator { opacity: 0; width: 0; padding: 0; margin: 0; }
.ml-datepicker {
  --cal-gold: #b99559;
  z-index: 10000;
  position: fixed;
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
  color: #171715;
  background: #fff;
  border: 1px solid #d8cebf;
  box-shadow: 0 28px 80px #16120c40;
  font-family: var(--sans);
}
.ml-datepicker[hidden] { display: none; }
.ml-datepicker-head { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 10px; margin-bottom: 18px; }
.ml-datepicker-head strong { text-align: center; text-transform: capitalize; font: 500 26px/1.2 var(--serif); }
.ml-datepicker-head button { width: 46px; height: 46px; border: 1px solid #ded5c8; background: #f7f3ec; color: #171715; cursor: pointer; font-size: 19px; }
.ml-datepicker-head button:hover, .ml-datepicker-head button:focus-visible { color: #fff; background: #171715; border-color: #171715; }
.ml-datepicker-week, .ml-datepicker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ml-datepicker-week { margin-bottom: 6px; }
.ml-datepicker-week span { color: #847a6d; text-align: center; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.ml-datepicker-days button { aspect-ratio: 1; min-width: 0; border: 0; background: transparent; color: #25221d; cursor: pointer; font-size: 15px; font-weight: 650; }
.ml-datepicker-days button:hover:not(:disabled), .ml-datepicker-days button:focus-visible { outline: 1px solid var(--cal-gold); background: #f3ece0; }
.ml-datepicker-days .is-selected { color: #fff; background: var(--cal-gold); }
.ml-datepicker-days .is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px var(--cal-gold); }
.ml-datepicker-days .is-outside { color: #aaa298; }
.ml-datepicker-days .is-disabled { color: #d5cfc6; cursor: not-allowed; text-decoration: line-through; }
.ml-datepicker-foot { border-top: 1px solid #e4ddd2; display: flex; justify-content: space-between; margin-top: 17px; padding-top: 16px; }
.ml-datepicker-foot button { border: 0; border-bottom: 1px solid transparent; padding: 4px 0; color: #5f5548; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 800; }
.ml-datepicker-foot button:hover { color: #171715; border-bottom-color: var(--cal-gold); }
@media (width <= 650px) {
  .ml-datepicker { width: calc(100vw - 24px); left: 12px !important; padding: 20px 16px; }
  .ml-datepicker-head strong { font-size: 22px; }
  .ml-datepicker-days button { font-size: 16px; }
}

/* Boutique quality layer — central typography, rhythm and interaction system */
@font-face { font-family: "ME Cormorant"; src: url("/fonts/cormorant-garamond-500.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "ME Cormorant"; src: url("/fonts/cormorant-garamond-500-italic.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }
@font-face { font-family: "ME Manrope"; src: url("/fonts/manrope-400.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "ME Manrope"; src: url("/fonts/manrope-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "ME Manrope"; src: url("/fonts/manrope-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
:root {
  --serif: "ME Cormorant", "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: "ME Manrope", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --paper: #f4f0e8;
  --paper-soft: #faf8f3;
  --ink: #151513;
  --gold: #b69457;
  --gold-dark: #8e6a35;
  --line: rgba(21, 21, 19, .14);
}

body { font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.032em; }
p { text-wrap: pretty; }
.eyebrow { font-weight: 700; letter-spacing: .2em; }
.button, .header-book, .home-hero-copy > a { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.button:hover, .header-book:hover, .home-hero-copy > a:hover { transform: translateY(-2px); }
.site-header nav > a:not(.header-book) { position: relative; padding-block: 8px; }
.site-header nav > a:not(.header-book)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .32s cubic-bezier(.22,.61,.36,1); }
.site-header nav > a:not(.header-book):hover::after, .site-header nav > a:not(.header-book):focus-visible::after, .site-header nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-header nav > a[href*="kontakt"] { display: none; }
.home-hero-meta { display: none !important; }
.home-hero-copy { max-width: 1440px; }
.home-hero-copy h1 { letter-spacing: -.045em; }
.home-search-section .finder-search { border: 1px solid rgba(113, 84, 41, .2); box-shadow: 0 24px 70px rgba(32, 25, 16, .18); }
.home-property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-property-grid .home-property-card, .home-property-grid .home-property-card:first-child, .home-property-grid .home-property-card:last-child { grid-column: auto; display: block; }
.home-property-grid .home-property-card .home-property-image, .home-property-grid .home-property-card:first-child .home-property-image, .home-property-grid .home-property-card:last-child .home-property-image { height: 330px; min-height: 0; }
.home-property-copy { min-height: 272px; display: flex; flex-direction: column; }
.home-property-copy > a { margin-top: auto; }
.home-testimonial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); margin-top: 1px; }
.home-testimonial-grid article { background: #fff; padding: 42px 36px 34px; display: flex; flex-direction: column; min-height: 310px; }
.home-testimonial-mark { font: 500 58px/1 var(--serif); color: var(--gold); height: 42px; }
.home-testimonial-grid blockquote { font: 500 clamp(20px,1.65vw,27px)/1.42 var(--serif); margin: 18px 0 38px; color: #28251f; }
.home-testimonial-grid a { border-top: 1px solid var(--line); margin-top: auto; padding-top: 20px; font-size: 11px; font-weight: 700; line-height: 1.45; }
.home-testimonial-grid small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; margin-top: 7px; }
.home-final-cta { border-top: 1px solid rgba(21,21,19,.28); margin-top: 64px; padding-top: 42px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.home-final-cta .eyebrow { color: #171715; margin-bottom: 8px; }
.home-final-cta h3 { margin: 0; font-size: clamp(34px, 4vw, 58px); }
.home-final-cta .button { min-width: 230px; }
.fact-card, .service-card, .contact-card, .home-property-card, .booking-card { box-shadow: 0 18px 60px rgba(25, 20, 14, .055); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 900px) {
  .home-property-grid { grid-template-columns: 1fr; }
  .home-property-grid .home-property-card .home-property-image { height: 360px; }
  .home-property-copy { min-height: 0; }
  .home-testimonial-grid { grid-template-columns: 1fr; }
  .home-testimonial-grid article { min-height: 0; padding: 34px 30px; }
  .home-testimonial-grid blockquote { margin-bottom: 30px; }
}

@media (max-width: 650px) {
  .home-property-grid { display: grid; overflow: visible; margin-left: auto; margin-right: auto; padding: 0; }
  .home-property-grid .home-property-card, .home-property-grid .home-property-card:first-child, .home-property-grid .home-property-card:last-child { width: auto; display: block; }
  .home-property-grid .home-property-card .home-property-image { height: 245px; }
  .home-testimonial-grid article { padding: 30px 24px; }
  .home-testimonial-grid blockquote { font-size: 21px; }
  .home-final-cta { align-items: stretch; flex-direction: column; margin-top: 44px; padding-top: 32px; }
  .home-final-cta .button { width: 100%; }
}

/* Startseiten-Hero: finale Premium-Abstimmung */
@media (min-width: 1001px) {
  .home-v2 .home-hero {
    min-height: clamp(760px, 92svh, 940px);
  }

  .home-v2 .home-hero-main {
    object-position: 58% 48%;
    transform: scale(1.015);
  }

  .home-v2 .home-hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 10, 9, .76) 0%, rgba(10, 10, 9, .52) 38%, rgba(10, 10, 9, .13) 70%, rgba(10, 10, 9, .04) 100%),
      linear-gradient(0deg, rgba(10, 10, 9, .50) 0%, rgba(10, 10, 9, 0) 43%);
  }

  .home-v2 .home-hero-copy {
    padding-top: 190px;
    padding-bottom: 158px;
  }

  .home-v2 .home-hero-copy h1 {
    max-width: 920px;
    margin-bottom: 30px;
    font-size: clamp(62px, 7vw, 110px);
    line-height: .92;
  }

  .home-v2 .home-hero-copy > p:last-of-type {
    max-width: 560px;
  }

  .home-v2 .home-hero-meta {
    display: none;
  }

  .home-v2 .home-search-section {
    margin-top: -78px;
  }

  .site-header nav > a[href*="kontakt"] {
    display: none;
  }
}

@media (max-width: 1000px) {
  .home-v2 .home-hero-meta {
    display: none;
  }

  .home-v2 .home-search-section {
    margin-top: 0;
  }
}

@media (max-width: 650px) {
  .home-v2 .home-hero {
    min-height: 690px;
  }

  .home-v2 .home-hero-main {
    object-position: 61% center;
    transform: scale(1.025);
  }

  .home-v2 .home-hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 10, 9, .15) 0%, rgba(10, 10, 9, .45) 40%, rgba(10, 10, 9, .88) 100%);
  }

  .home-v2 .home-hero-copy {
    padding-top: 140px;
    padding-bottom: 72px;
  }

  .home-v2 .home-hero-copy h1 {
    max-width: 21rem;
    margin-bottom: 22px;
    line-height: .96;
  }

  .home-v2 .home-hero-copy > p:last-of-type {
    max-width: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header nav > a::after {
    transition: none !important;
  }
}

/* Editorial 1+2 curation for the homepage. */
.home-property-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  grid-template-rows: repeat(2, minmax(270px, auto));
  gap: 24px;
}

.home-property-grid .home-property-card {
  min-width: 0;
}

.home-property-grid .home-property-card:first-child {
  grid-row: 1 / span 2;
}

.home-property-grid .home-property-card:first-child .home-property-image {
  height: 620px;
}

.home-property-grid .home-property-card:not(:first-child) {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
}

.home-property-grid .home-property-card:not(:first-child) .home-property-image {
  height: 100%;
  min-height: 285px;
}

.home-property-grid .home-property-card:not(:first-child) .home-property-copy {
  padding: 25px;
}

.home-property-grid .home-property-card:not(:first-child) h3 {
  font-size: clamp(25px, 2.2vw, 32px);
}

.home-property-grid .home-property-card:not(:first-child) p {
  min-height: 0;
  font-size: 13px;
}

@media (width <= 1050px) and (width > 650px) {
  .home-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .home-property-grid .home-property-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
  }

  .home-property-grid .home-property-card:first-child .home-property-image {
    height: 430px;
  }

  .home-property-grid .home-property-card:not(:first-child) {
    display: block;
  }

  .home-property-grid .home-property-card:not(:first-child) .home-property-image {
    height: 300px;
    min-height: 0;
  }
}

.villa-hero-v2 {
  background-color: #151513;
  background-image: url("/images/new-deluxe-apartment-01.webp");
  background-position: center 54%;
  background-size: cover;
}

.villa-hero-v2 > img {
  z-index: 0;
}

.villa-hero-overlay {
  z-index: 1;
}

.villa-hero-content.shell {
  z-index: 2;
  width: min(100% - 96px, 1440px);
  max-width: 1440px;
  margin-inline: auto;
}

.villa-hero-content h1 {
  max-width: min(820px, 100%);
  color: #fff;
  font-size: clamp(48px, 6.5vw, 94px);
  line-height: .94;
  overflow-wrap: normal;
  text-wrap: balance;
}

.villa-hero-content h1 em {
  color: #c9a96d;
}

.villa-section-heading h2 em,
.villa-intro h2 em,
.villa-location h2 em,
.villa-faq h2 em {
  color: #96703a;
}

/* These italic lines previously used the same gold as their background. */
.home-direct h2 em,
.location-choice h2 em {
  color: #171715;
}

.home-direct {
  padding-block: clamp(76px, 7vw, 96px);
}

.home-direct-grid {
  gap: clamp(48px, 6vw, 82px);
}

.home-final-search {
  margin-top: 52px;
  padding-top: 40px;
}

.villa-apartments {
  padding-top: clamp(76px, 8vw, 112px);
}

.villa-section-heading {
  margin-bottom: 44px;
}

.villa-availability {
  padding-block: clamp(64px, 7vw, 88px);
  overflow: visible;
}

.villa-availability-grid {
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.villa-search {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(110px, .7fr);
  align-self: start;
}

.villa-search label,
.finder-search label,
.villa-search input,
.villa-search select,
.finder-search input,
.finder-search select {
  min-width: 0;
  max-width: 100%;
}

.villa-search input[type="date"],
.finder-search input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  color: #222;
  color-scheme: light;
  font-size: 16px;
  line-height: 1.4;
}

.finder-search input[type="date"] {
  min-height: 28px;
  padding: 0;
}

.villa-search input[type="date"]::-webkit-date-and-time-value,
.finder-search input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.4em;
  margin: 0;
  text-align: left;
}

.villa-search input[type="date"]::-webkit-calendar-picker-indicator,
.finder-search input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .72;
}

.floating-book {
  width: 116px;
  height: 116px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateZ(0);
}

@media (width <= 1100px) {
  .villa-availability-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .villa-availability-grid > div:first-child {
    max-width: 700px;
  }
}

@media (width <= 1000px) {
  .villa-hero-content.shell {
    width: calc(100% - 44px);
  }

  .floating-book {
    width: 104px;
    height: 104px;
  }
}

@media (width <= 720px) {
  .villa-hero-content.shell {
    width: calc(100% - 32px);
    padding-top: 150px;
    padding-bottom: 44px;
  }

  .villa-hero-content h1 {
    max-width: 100%;
    font-size: clamp(40px, 11.2vw, 58px);
    line-height: .98;
  }

  .villa-search {
    grid-template-columns: 1fr;
  }

  .villa-apartments {
    padding-top: 72px;
  }

  .villa-section-heading {
    margin-bottom: 34px;
  }

  .home-direct {
    padding-block: 64px;
  }

  .home-final-search {
    margin-top: 40px;
    padding-top: 32px;
  }

  .floating-book {
    display: none !important;
  }
}

@media (width <= 650px) {
  .home-property-grid {
    display: flex !important;
    grid-template-rows: none;
    gap: 16px;
    width: calc(100% - 16px);
    margin-left: 16px;
    margin-right: 0;
    padding: 0 16px 14px 0;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }

  .home-property-grid::-webkit-scrollbar {
    display: none;
  }

  .home-property-grid .home-property-card:first-child,
  .home-property-grid .home-property-card:not(:first-child) {
    grid-column: auto;
    grid-row: auto;
    display: block;
    flex: 0 0 min(84vw, 340px);
    width: min(84vw, 340px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-property-grid .home-property-card:first-child .home-property-image,
  .home-property-grid .home-property-card:not(:first-child) .home-property-image {
    height: 230px;
    min-height: 0;
  }
}
