/* ==========================================================================
   Goldstück – Ferienwohnung an der Mosel
   Shared styles · modern minimalist · warm gold / slate / cream
   ========================================================================== */

:root {
  --gold:        #c19a4b;
  --gold-dark:   #a07f37;
  --gold-soft:   #e9dcc0;
  --ink:         #232521;
  --ink-soft:    #54584f;
  --cream:       #f7f4ee;
  --cream-2:     #efe9df;
  --white:       #ffffff;
  --green:       #2f4034;
  --line:        #e3ddd1;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(35, 37, 33, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p { color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  display: inline-block;
}

.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.lead { font-size: 1.2rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .95rem 1.8rem; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
  transition: all .35s var(--ease);
}
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--light:hover { background:#fff; color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(247,244,238,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); }
.brand-logo { height: 56px; width: auto; display: block; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .mark { font-size: 1.6rem; letter-spacing: .02em; color: var(--ink); }
.brand .sub {
  font-family: var(--sans); font-size: .6rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-dark); font-weight: 600;
}
.site-header:not(.is-scrolled):not(.is-solid) .brand .mark,
.site-header:not(.is-scrolled):not(.is-solid) .nav-links a { color: #fff; }
.site-header:not(.is-scrolled):not(.is-solid).on-light .brand .mark,
.site-header:not(.is-scrolled):not(.is-solid).on-light .nav-links a { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  position: relative; padding: .3rem 0; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-dark); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: rgba(255,255,255,.6);
}
.site-header:not(.is-scrolled):not(.is-solid):not(.on-light) .lang-toggle {
  border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  padding: .4rem .7rem; color: inherit; transition: all .25s;
}
.site-header:not(.is-scrolled):not(.is-solid):not(.on-light) .lang-toggle button { color:#fff; }
.lang-toggle button.active { background: var(--gold); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 28px; height: 22px; position: relative; }
.nav-toggle span { position:absolute; left:0; height:2px; width:100%; background: currentColor; transition: .3s var(--ease); }
.nav-toggle span:nth-child(1){ top:0; } .nav-toggle span:nth-child(2){ top:10px; } .nav-toggle span:nth-child(3){ top:20px; }
.site-header:not(.is-scrolled):not(.is-solid):not(.on-light) .nav-toggle { color:#fff; }
.nav-toggle.open span:nth-child(1){ top:10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ top:10px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg-img {
  position:absolute; inset:0; width:100%; height:100%; object-fit: cover;
}
.hero__bg-fallback {
  position:absolute; inset:0;
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(193,154,75,.55), transparent 55%),
    linear-gradient(160deg, #3a4a3c 0%, #2c3a30 45%, #1f2a22 100%);
}
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(20,26,21,.35) 0%, rgba(20,26,21,.15) 40%, rgba(20,26,21,.6) 100%);
}
.hero__inner { max-width: 760px; padding-top: 78px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color:#fff; margin-bottom: 1.4rem; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.18rem; max-width: 48ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-cue {
  position:absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.75);
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
}
.scroll-cue::after { content:""; width:1px; height:38px; background: rgba(255,255,255,.6); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleY(.2); transform-origin: top;} 50%{transform:scaleY(1);} 100%{transform:scaleY(.2); transform-origin: bottom;} }

/* ---------- Generic page header (interior pages) ---------- */
.page-head { padding: 10rem 0 4rem; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: .8rem; }
.page-head p { max-width: 58ch; margin-top: 1rem; }

/* ---------- Facts strip ---------- */
.facts-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { text-align: center; padding: 1.8rem 1rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold-dark); line-height: 1; }
.fact span { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 600px) { .facts-grid { grid-template-columns: repeat(2,1fr); } .fact:nth-child(3){ border-left:0; } .fact:nth-child(3),.fact:nth-child(4){ border-top:1px solid var(--line);} }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media .ph { aspect-ratio: 4/5; }
.split__media .badge {
  position:absolute; bottom: -22px; left: -22px; background: var(--white);
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow); border-radius: var(--radius);
  font-family: var(--serif);
}
.split__media .badge strong { display:block; font-size: 1.9rem; color: var(--gold-dark); }
.split__media .badge span { font-family: var(--sans); font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color: var(--ink-soft); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 42px; height: 42px; color: var(--gold-dark); margin-bottom: 1.1rem; }
.feature h3 { margin-bottom: .5rem; }
.feature p { font-size: .96rem; }

/* ---------- Amenities list ---------- */
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2.5rem; }
.amenities li { list-style: none; display:flex; gap:.8rem; align-items:flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.amenities li svg { flex: 0 0 auto; color: var(--gold-dark); margin-top: 3px; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; width: 100%; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(135deg, var(--cream-2), var(--gold-soft));
  display:flex; align-items:center; justify-content:center;
  color: var(--gold-dark);
}
.ph::before {
  content: attr(data-label);
  font-family: var(--sans); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  opacity:.65; text-align:center; padding: 1rem;
}
.ph img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ph.has-img::before { content: none; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; grid-auto-rows: 220px; }
.gallery-grid .ph { height:100%; }
.g-a { grid-column: span 7; grid-row: span 2; }
.g-b { grid-column: span 5; }
.g-c { grid-column: span 5; }
.g-d { grid-column: span 4; }
.g-e { grid-column: span 4; }
.g-f { grid-column: span 4; }
.g-g { grid-column: span 6; grid-row: span 2; }
.g-h { grid-column: span 6; }
.g-i { grid-column: span 6; }

/* ---------- Gallery filters ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- Masonry gallery ---------- */
.masonry { column-count: 3; column-gap: 14px; }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }
.g-item {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--cream-2);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; break-inside: avoid;
  line-height: 0; box-shadow: 0 1px 0 var(--line);
}
.g-item img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease), opacity .4s; }
.g-item:hover img { transform: scale(1.04); opacity: .92; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 22, 19, .94); padding: 3vh 2vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  border-radius: 999px; backdrop-filter: blur(4px); transition: background .25s;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 1.7rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .85rem; letter-spacing: .1em; }
@media (max-width: 560px) { .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.5rem; } }

/* ---------- Region cards ---------- */
.region-cards { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.rcard { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.rcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rcard .ph { aspect-ratio: 3/2; border-radius:0; }
.rcard__body { padding: 1.5rem 1.6rem; }
.rcard__body h3 { margin-bottom:.5rem; }
.rcard__body p { font-size:.95rem; }

/* ---------- Forms ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.3rem; }
.field label { display:block; font-size:.78rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color: var(--ink); margin-bottom:.5rem; }
.field input, .field select, .field textarea {
  width:100%; font-family: var(--sans); font-size:1rem; color: var(--ink);
  padding: .85rem 1rem; border:1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,154,75,.18); background:#fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-hint { font-size:.82rem; color: var(--ink-soft); margin-top:.4rem; }
.form-note { font-size:.86rem; color: var(--ink-soft); margin-top: 1rem; }
.form-feedback { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size:.95rem; display:none; }
.form-feedback.show { display:block; }
.form-feedback.ok { background: #eef4ec; color: var(--green); border:1px solid #cfe0cd; }
.summary-bar { background: var(--cream-2); border:1px dashed var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size:.95rem; color: var(--ink); }
.summary-bar strong { color: var(--gold-dark); }

/* ---------- House rules box ---------- */
.rules-box { margin-top: 2rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 2rem; }
.rules-list { list-style: none; }
.rules-list li { position: relative; padding: .55rem 0 .55rem 1.6rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .96rem; }
.rules-list li:last-child { border-bottom: 0; }
.rules-list li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Contact cards ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items:start; }
.contact-info { display:flex; flex-direction:column; gap: 1.6rem; }
.cinfo { display:flex; gap:1rem; align-items:flex-start; }
.cinfo svg { flex:0 0 auto; color: var(--gold-dark); margin-top:3px; }
.cinfo h4 { font-family: var(--sans); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color: var(--ink); margin-bottom:.25rem; }
.cinfo p, .cinfo a { color: var(--ink-soft); font-size:1rem; }
.cinfo a:hover { color: var(--gold-dark); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color:#fff; text-align:center; }
.cta-band h2 { color:#fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 52ch; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 4rem 0 2rem; font-size:.92rem; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer .brand .mark { color:#fff; }
.site-footer h5 { font-family: var(--sans); font-size:.76rem; letter-spacing:.14em; text-transform:uppercase; color:#fff; margin-bottom:1rem; }
.site-footer ul { list-style:none; display:flex; flex-direction:column; gap:.55rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding-top:1.5rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.82rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity:0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .features, .region-cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 180px; }
}
@media (max-width: 760px) {
  /* compact, tidy mobile header */
  .nav { height: 62px; }
  .brand { gap: .5rem; }
  .brand-logo { height: 38px; }
  .brand .mark { font-size: 1.3rem; }
  .brand .sub { font-size: .54rem; letter-spacing: .22em; }
  .nav-right { gap: .7rem; }
  .nav-right > .btn { display: none; }            /* hide duplicate Enquire CTA; Booking is in the menu */
  .lang-toggle button { padding: .35rem .6rem; font-size: .68rem; }
  /* keep the header solid on mobile so the logo + text always read well */
  .site-header { background: rgba(247,244,238,.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
  .site-header .brand .mark, .site-header .nav-links a { color: var(--ink) !important; }
  .brand-logo { display: block !important; }

  .nav-links {
    position: fixed; inset: 62px 0 auto 0; flex-direction: column; gap:0;
    background: var(--cream); padding: .5rem 0 1rem; box-shadow: 0 12px 30px -18px rgba(0,0,0,.4);
    transform: translateY(-130%); transition: transform .4s var(--ease); align-items: stretch;
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 1rem 28px; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
  .nav-toggle { display:block; color: var(--ink); }
  .features, .region-cards, .amenities { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split__media .badge { left: 0; }
}
