/* =========================================
   Ferienwohnung Sunset Borkum — Stylesheet
   Refined Coastal Minimalism
   ========================================= */

/* ---------- Lokale Fonts (DSGVO-konform) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-400italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #F4EDE2;
  --paper: #FBF8F2;
  --ink: #1F2A33;
  --ink-soft: #4A5965;
  --ocean: #2C4A5A;
  --ocean-deep: #1A3340;
  --amber: #C97B3F;
  --amber-deep: #A8632F;
  --mist: #D9D2C5;
  --mist-soft: #E8E2D5;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 10vw, 140px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--amber); color: var(--paper); }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.08; }
h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.18; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
}

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 60ch;
}

p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.divider {
  width: 48px;
  height: 1px;
  background: var(--amber);
  display: block;
  margin: 24px 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 248, 242, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--mist);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand .brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, var(--amber) 0%, var(--amber) 40%, transparent 41%),
              linear-gradient(180deg, #E9D7C0 0%, #F4EDE2 65%);
  border: 1px solid var(--mist);
  position: relative;
  top: 4px;
}
.brand small {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--amber);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--amber); transform: translateY(-1px); }
.nav-cta::after { content: "→"; transition: transform .25s; }
.nav-cta:hover::after { transform: translateX(3px); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    padding: 24px var(--gutter) 32px;
    gap: 18px;
    border-bottom: 1px solid var(--mist);
    z-index: 50;
  }
  .nav-open .nav-links a {
    font-size: 16px;
    padding: 8px 0;
    text-align: left;
  }
  .nav-open .nav-cta {
    display: none;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--amber); transform: translateY(-2px); }
.btn-amber {
  background: var(--amber);
  color: var(--paper);
}
.btn-amber:hover { background: var(--amber-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 3px;
  transition: gap .25s, color .25s;
}
.text-link:hover { gap: 14px; color: var(--amber); }

/* ---------- Photo / placeholder ---------- */
.photo {
  position: relative;
  background: var(--mist-soft);
  overflow: hidden;
  border-radius: 2px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.photo:hover img { transform: scale(1.03); }
.photo-label {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(31, 42, 51, 0.78);
  color: var(--paper);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ocean-deep);
  color: #C5D2DA;
  padding-block: 80px 32px;
  margin-top: var(--section-y);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 22px;
}
.site-footer .brand {
  color: var(--paper);
  margin-bottom: 18px;
}
.site-footer .brand small { color: #8FA0AC; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--paper);
  max-width: 36ch;
}
.footer-list { list-style: none; display: grid; gap: 12px; font-size: 15px; }
.footer-list a { color: #C5D2DA; transition: color .2s; }
.footer-list a:hover { color: var(--amber); }
.footer-list .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FA0AC;
  margin-bottom: 4px;
  font-weight: 500;
}
.footer-bar {
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(217, 210, 197, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8FA0AC;
}
.footer-legal-link {
  color: #8FA0AC;
  text-decoration: none;
  transition: color .2s;
}
.footer-legal-link:hover { color: var(--amber); }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-bar { flex-direction: column; gap: 8px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Misc utilities ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--mist);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--paper);
}

.muted { color: var(--ink-soft); }
.center { text-align: center; }
.bg-sand { background: var(--sand); }
.bg-paper { background: var(--paper); }

/* ========================================
   MOBILE RESPONSIVE FIXES
   ======================================== */

/* --- Global mobile text scaling --- */
@media (max-width: 540px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(32px, 9vw, 44px); }
  h2 { font-size: clamp(28px, 7vw, 38px); }
  h3 { font-size: clamp(20px, 5vw, 28px); }
  .lead { font-size: 17px; }
  .section { padding-block: clamp(48px, 8vw, 80px); }
}

/* --- Mobile nav: show CTA in mobile menu --- */
.nav-cta-mobile-li { list-style: none; }
.nav-cta-mobile { display: none; }
@media (max-width: 880px) {
  .nav { height: 64px; }
  .site-header .nav-cta { display: none; }
  .nav-open .nav-links {
    top: 64px;
  }
  .nav-open .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber);
    color: var(--paper);
    padding: 16px 56px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    margin-top: 12px;
    text-decoration: none;
    align-self: flex-start;
    white-space: nowrap;
  }
}
@media (min-width: 881px) {
  .nav-cta-mobile-li { display: none; }
}

/* --- Buttons touch-friendly --- */
@media (max-width: 540px) {
  .btn {
    padding: 16px 24px;
    font-size: 15px;
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }
  .text-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
}

/* --- Footer mobile --- */
@media (max-width: 540px) {
  .site-footer { padding-block: 56px 24px; }
  .site-footer .wrap { gap: 32px; }
  .footer-tagline { font-size: 19px; }
  .footer-bar { font-size: 12px; text-align: center; }
}

/* --- Photo labels smaller on mobile --- */
@media (max-width: 540px) {
  .photo-label {
    font-size: 9px;
    padding: 4px 8px;
    top: 8px !important;
    left: 8px !important;
  }
}
