/* ==========================================================================
   CASA OTRANTO — Design System v2 "Editorial / Boutique"
   Ruhig, edel, redaktionell. Viel Weissraum, feine Gold-Haarlinien,
   charaktervolle Serife (Fraunces) auf warmem Papier-Ton.
   ========================================================================== */

:root {
  --paper:      #faf6ee;  /* warmes Elfenbein-Papier */
  --paper-2:    #f3ecdf;  /* etwas tieferer Sand */
  --ink:        #211e18;  /* warmes Fast-Schwarz */
  --ink-soft:   #6c6558;  /* gedämpfter Text */
  --teal:       #0f5860;  /* Adria, tief */
  --teal-deep:  #093a40;
  --gold:       #a9863f;  /* Mosaik-Gold, dezent */
  --gold-soft:  #d9c39a;  /* helles Gold für dunkle Flächen */
  --line:       rgba(33,30,24,.14);
  --line-soft:  rgba(33,30,24,.08);

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --measure: 40rem;     /* Lesebreite für Fliesstext */
  --pad: clamp(4.5rem, 11vw, 9rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { margin: 0 0 1.1rem; }

/* Eyebrow: gesperrte Kapitälchen mit Gold-Strich */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .7rem;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.6rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold); opacity: .7; }
.eyebrow.center { justify-content: center; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px); }
section { padding: var(--pad) 0; }
body:not(.hero-page) { padding-top: 84px; }
.alt { background: var(--paper-2); }
.measure { max-width: var(--measure); }
.center { text-align: center; }
.center.measure { margin-inline: auto; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--ink-soft); font-weight: 300; line-height: 1.6; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------- Header / Nav */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(250,246,238,.9);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand {
  color: var(--ink); line-height: 1; display: inline-flex; align-items: center; gap: .7rem;
}
.brand-mark-img { flex-shrink: 0; display: block; height: 46px; width: auto; }
.brand-text {
  font-family: "Cinzel", var(--serif); font-weight: 500; color: inherit;
  display: flex; flex-direction: column; gap: .2rem; line-height: 1;
  font-size: 1.1rem; letter-spacing: .12em;
}
.brand-text small { font-size: .56rem; letter-spacing: .42em; color: var(--gold); font-weight: 400; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-soft); position: relative; padding-bottom: 3px;
}
.nav-links a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--gold); transition: width .3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
/* Header über Hero (hell) */
.hero-page .site-header:not(.solid) .brand,
.hero-page .site-header:not(.solid) .nav-links a { color: rgba(255,255,255,.92); }
.hero-page .site-header:not(.solid) .nav-toggle { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* --------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  cursor: pointer; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 0; transition: all .3s ease;
}
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-line { border: 0; padding: .4rem 0; color: var(--ink); position: relative; }
.btn-line::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:1px; background: currentColor; transform: scaleX(1); transform-origin: right; transition: transform .35s ease; }
.btn-line:hover::after { transform: scaleX(0); transform-origin: left; }
a.is-disabled { opacity: .4; pointer-events: none; }

/* --------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero::before {
  content:""; position:absolute; inset:0; z-index:-2;
  background:
    radial-gradient(120% 90% at 75% 15%, rgba(30,140,150,.55), transparent 55%),
    linear-gradient(160deg, #12707c 0%, #0d515b 45%, #072d33 100%);
  animation: heroZoom 24s ease-in-out infinite alternate;
  transform-origin: center;
}
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(7,45,51,.15) 0%, rgba(7,45,51,.55) 100%);
}
@keyframes heroZoom { from { transform: scale(1);} to { transform: scale(1.12);} }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero .wrap { width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: #f2e3c2; }
.hero .eyebrow { color: #e7d6ad; }
.hero .eyebrow::before { background: #e7d6ad; }
.hero p { max-width: 44ch; font-size: 1.2rem; font-weight: 300; color: rgba(255,255,255,.9); }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.hero-actions .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--teal-deep); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.7); font-size: .68rem; text-transform: uppercase; letter-spacing: .28em;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-cue::after { content:""; width:1px; height:38px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100%{opacity:.3; transform:scaleY(.7);} 50%{opacity:1; transform:scaleY(1);} }

/* Innerer Seiten-Header (statt Hero) */
.page-head { padding: calc(84px + var(--pad)) 0 calc(var(--pad) - 2rem); text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }

/* --------------------------------------------------------- Editorial Story */
.story-intro { max-width: 54rem; }
.story-intro .drop { font-family: var(--serif); font-size: clamp(1.5rem,2.6vw,2.1rem); line-height:1.45; font-weight:300; color: var(--ink); }
.divider-gold { width: 64px; height: 1px; background: var(--gold); margin: 2.5rem 0; opacity:.8; }
.center .divider-gold { margin-inline: auto; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); margin-top: 4rem; }
.col-item { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.col-item .idx { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold); display:block; margin-bottom: .8rem; }
.col-item h3 { margin-bottom: .5rem; }
.col-item p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* --------------------------------------------------------- Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { aspect-ratio: 4/5; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); position: relative; overflow: hidden; }
.split-media .frame::after { content:""; position:absolute; inset:14px; border:1px solid rgba(255,255,255,.35); pointer-events:none; }
.split-media figcaption { position:absolute; left:1.4rem; bottom:1.2rem; color:#fff; font-family:var(--serif); font-style:italic; font-size:1.05rem; opacity:.9; }

/* --------------------------------------------------------- Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gal-item { margin: 0; overflow: hidden; grid-column: span 2; position: relative; background: var(--paper-2); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item.gal-lead { grid-column: span 6; }
.gal-item.gal-lead img { aspect-ratio: 21/9; }
.gal-ph { aspect-ratio: 3/4; }
.gal-lead .gal-ph { aspect-ratio: 21/9; }
.video-wrap { overflow: hidden; margin-top: 14px; position: relative; }
.video-wrap::after { content:""; position:absolute; inset:14px; border:1px solid rgba(255,255,255,.3); pointer-events:none; }
.video-wrap video { width: 100%; display: block; }

.amenity-list { columns: 2; column-gap: 3rem; padding: 0; list-style: none; }
.amenity-list li { margin-bottom: .7rem; padding-left: 1.4rem; position: relative; color: var(--ink-soft); break-inside: avoid; }
.amenity-list li::before { content:""; position:absolute; left:0; top:.7em; width:7px; height:1px; background: var(--gold); }

.factbox { border: 1px solid var(--line); padding: 2rem; background: var(--paper); }
.factbox h3 { font-style: italic; }
.factbox .row { display:flex; justify-content:space-between; gap:1rem; padding:.7rem 0; border-bottom:1px solid var(--line-soft); font-size:.95rem; }
.factbox .row:last-of-type { border-bottom:0; }
.factbox .row span:first-child { color: var(--ink-soft); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; }

/* --------------------------------------------------------- Sights (editorial index) */
.sights { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sight {
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.6rem; align-items: baseline;
  padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding .35s ease;
}
.sight:hover { padding-left: 1rem; }
.sight .num { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--gold); line-height: 1; }
.sight h3 { margin: 0 0 .3rem; }
.sight p { margin: 0 0 .7rem; color: var(--ink-soft); font-size: .98rem; }
.sight-link {
  font-family: var(--sans); font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; color: var(--gold); display: inline-flex; align-items: center; gap: .45rem;
}
.sight-link::after { content: "→"; transition: transform .3s ease; }
.sight-link:hover { color: var(--teal-deep); }
.sight-link:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------- Calendar */
.cal-wrap { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.6rem); background: var(--paper); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.cal-head strong { font-family: var(--serif) !important; font-weight: 300; font-size: 1.6rem !important; letter-spacing: .01em; }
.cal-nav { background: none; border: 1px solid var(--line); width: 42px; height: 42px; cursor: pointer; font-size: 1.1rem; color: var(--teal-deep); transition: all .25s ease; }
.cal-nav:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); padding: .5rem 0; }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .92rem; background: transparent; border: 1px solid var(--line-soft); color: var(--ink); }
.cal-cell.empty { border: 0; }
.cal-cell.free { background: rgba(15,88,96,.06); color: var(--teal-deep); border-color: rgba(15,88,96,.18); }
.cal-cell.booked { background: transparent; color: #b08a6e; border-color: var(--line-soft); text-decoration: line-through; opacity: .6; }
.cal-cell.past { opacity: .25; }
.cal-legend { display: flex; gap: 1.6rem; justify-content: center; margin-top: 1.4rem; font-size: .78rem; color: var(--ink-soft); flex-wrap: wrap; text-transform: uppercase; letter-spacing: .1em; }
.cal-legend span { display: inline-flex; align-items: center; gap: .55rem; }
.dot { width: 12px; height: 12px; display: inline-block; }
.dot.free { background: rgba(15,88,96,.12); border: 1px solid rgba(15,88,96,.3); }
.dot.booked { border: 1px solid var(--line); }
.cal-note { text-align: center; color: var(--ink-soft); font-size: .82rem; margin: 1.2rem 0 0; font-style: italic; }

/* --------------------------------------------------------- Handbook */
.hb { border-top: 1px solid var(--line); max-width: 46rem; margin: 0 auto; }
.hb-item { border-bottom: 1px solid var(--line); }
.hb-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.5rem 0; font-size: 1.3rem; font-family: var(--serif); font-weight: 300; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--ink); gap: 1rem; }
.hb-q span { color: var(--gold); font-family: var(--sans); font-size: 1.4rem; transition: transform .3s ease; }
.hb-item.open .hb-q span { transform: rotate(45deg); }
.hb-a { padding: 0 0 1.5rem; color: var(--ink-soft); display: none; max-width: 40rem; }
.hb-item.open .hb-a { display: block; animation: fade .4s ease; }
@keyframes fade { from{opacity:0; transform:translateY(-4px);} to{opacity:1;} }

/* --------------------------------------------------------- Footer */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.78); padding: clamp(3.5rem,7vw,5.5rem) 0 2.5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-soft); }
.foot-grid { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.foot-grid h4 { font-family: var(--serif); font-style: italic; color: #fff; font-weight: 300; margin: 0 0 .9rem; font-size: 1.3rem; }
.foot-grid p { font-size: .92rem; line-height: 1.9; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand-text small { color: var(--gold-soft); }
.copyright { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.5); }

/* --------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 84px 0 auto 0; background: var(--paper);
    flex-direction: column; padding: 1.8rem clamp(22px,5vw,48px); gap: 1.4rem;
    border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .hero-page .site-header:not(.solid) .nav-links a { color: var(--ink-soft); }
  .nav-toggle { display: block; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cols3 { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gal-item, .gal-item.gal-lead { grid-column: span 2; }
  .gal-item img, .gal-lead .gal-ph, .gal-item.gal-lead img { aspect-ratio: 4/3; }
  .amenity-list { columns: 1; }
}
