/* =========================================================
   Ferienwohnung Am Sonnenhang
   Ruhig, hochwertig, naturnah
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --cream: #f7f0e6;
  --cream-deep: #ede2d2;
  --paper: #fffaf2;
  --paper-soft: #fbf5ec;
  --brown: #735034;
  --brown-deep: #503722;
  --gold: #a98238;
  --gold-soft: #d8bf84;
  --forest: #40533c;
  --sage: #7d8a6f;
  --ink: #2b241b;
  --ink-soft: #675d50;
  --line: #ded1bf;
  --line-strong: #cbb89f;

  --maxw: 1160px;
  --radius: 6px;
  --shadow-sm: 0 10px 28px rgba(43, 36, 27, .08);
  --shadow-md: 0 24px 70px rgba(43, 36, 27, .14);

  --font-head: 'Marcellus', Georgia, serif;
  --font-body: 'Mulish', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, .68), rgba(247, 240, 230, .86) 34rem),
    var(--cream);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

::selection {
  background: rgba(169, 130, 56, .28);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(169, 130, 56, .5);
  outline-offset: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 .42em;
  letter-spacing: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.08em; text-wrap: pretty; }
a { color: var(--brown); text-decoration: none; text-underline-offset: .18em; }
a:hover { color: var(--brown-deep); }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }

.eyebrow { display: none; }

.lead {
  max-width: 66ch;
  font-size: 1.14rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 10px 24px rgba(64, 83, 60, .18);
}
.btn-primary:hover {
  background: #33442f;
  color: #fff;
  box-shadow: 0 14px 30px rgba(64, 83, 60, .22);
}
.btn-ghost {
  background: rgba(255, 250, 242, .62);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--brown);
  color: var(--brown-deep);
  background: var(--paper);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 230, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 209, 191, .78);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #8f6f2d);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px rgba(80,55,34,.16);
}
.brand-text { line-height: 1.05; }
.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
}
.brand-text span {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding: 10px 13px;
  border-radius: var(--radius);
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--brown-deep); background: rgba(255,250,242,.55); }
.nav a.active { color: var(--forest); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
}
.nav .btn { padding: 10px 19px; margin-left: 10px; color: #fff; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { margin: 5px 0; }
body.nav-open .nav-toggle::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span { opacity: 0; }
body.nav-open .nav-toggle::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 68px 0; }
.center { text-align: center; }
.section h2 { font-size: clamp(2rem, 3.5vw, 3.15rem); }
.section-intro {
  max-width: 720px;
  margin: 0 auto 46px;
}
.section-intro p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: 88px 0 68px;
  background:
    linear-gradient(120deg, rgba(255, 250, 242, .88), rgba(237, 226, 210, .72)),
    var(--cream-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(42vw, 520px);
  height: 1px;
  background: var(--gold);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
}
.page-hero p { max-width: 680px; margin-bottom: 0; }

/* ---------- Shared panels ---------- */
.quiet-panel {
  background: rgba(255, 250, 242, .74);
  border: 1px solid rgba(203, 184, 159, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #352619;
  color: #efe5d6;
  padding: 70px 0 32px;
  font-size: 15px;
}
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .85fr 1fr;
  gap: 44px;
  padding-bottom: 42px;
}
.site-footer h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: .9em;
}
.site-footer p { color: #d8cbb8; margin-bottom: .55em; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #bcae99;
  font-size: 13.5px;
}

.footer-meta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.fade-up {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
}
.in-view .fade-up,
.fade-up.shown {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1), filter .75s cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .fade-up { opacity: 1; filter: none; transform: none; }
}

@media (max-width: 920px) {
  body { font-size: 17px; }
  .wrap { padding: 0 24px; }
  .section { padding: 70px 0; }
  .section-tight { padding: 54px 0; }
  .site-header .wrap { min-height: 68px; }
  .brand-text span { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 68px;
    z-index: 49;
    background: rgba(247, 240, 230, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
  }
  body.nav-open .nav { display: grid; gap: 4px; }
  .nav a { padding: 13px 0; }
  .nav a.active::after { left: 0; right: auto; width: 42px; bottom: 6px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .page-hero { padding: 64px 0 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: grid; }
}

.sunset-figure { margin: 48px auto; max-width: 760px; }
.sunset-figure img { width: 100%; height: auto; border-radius: var(--radius); }

.sunset-figure figcaption { margin-top: 12px; color: var(--ink-soft); text-align: center; font-size: 15px; }
