/* ============================================================
   DIETRICHSTEINERHOF — Shared Modern Stylesheet
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #FAF8F5;
  color: #2C2419;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Tokens ── */
:root {
  --cream:      #FAF8F5;
  --cream2:     #F2EDE4;
  --warm-white: #FFFCF7;
  --bark:       #2C2419;
  --earth:      #6B4F35;
  --sage:       #4A6741;
  --sage-light: #EDF2EB;
  --sand:       #C9A97A;
  --terracotta: #B5654A;
  --mist:       #E8E2D9;
  --shadow:     rgba(44, 36, 25, 0.10);
}

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
  transition: background 0.3s;
}
#site-header.scrolled {
  background: rgba(250, 248, 245, 0.98);
  box-shadow: 0 2px 20px var(--shadow);
}

.hdr-left { display: flex; align-items: center; }

.hamburger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column;
  gap: 5px; padding: 6px; border-radius: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--bark); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hdr-center { text-align: center; }
.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-wrap img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}

.hdr-right {
  display: flex; align-items: center;
  gap: 12px; justify-content: flex-end;
}
.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--earth); padding: 4px 6px; border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover, .lang-btn.active { color: var(--bark); background: var(--cream2); }
.lang-divider { width: 1px; height: 14px; background: var(--mist); }

.btn-book {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sage); color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 2px;
  border: none; cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-book:hover { background: #3a5232; }

/* ── Drawer ── */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(44, 36, 25, 0.45);
  z-index: 199;
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--warm-white);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  padding: 100px 36px 40px;
}
.drawer.open { transform: translateX(0); }
.drawer nav a {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--bark);
  padding: 10px 0;
  border-bottom: 1px solid var(--mist);
  transition: color 0.2s;
}
.drawer nav a:hover { color: var(--sage); }
.drawer-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--earth);
  letter-spacing: 0.08em;
}

/* ════════════════════════════════
   SUB-NAV
════════════════════════════════ */
.sub-nav {
  position: fixed; top: 72px; left: 0; right: 0;
  z-index: 190;
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  background: #fff;
  border-top: 1.5px solid var(--sage);
  border-bottom: 1.5px solid var(--sage);
}
.sub-nav a {
  color: var(--sage);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 24px; height: 44px;
  display: flex; align-items: center;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.sub-nav a:hover,
.sub-nav a.active { color: var(--sage); background: none; font-weight: 700; }

@media (max-width: 640px) {
  .sub-nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .sub-nav::-webkit-scrollbar { display: none; }
  .sub-nav a { padding: 0 16px; font-size: 0.78rem; }
}

/* ════════════════════════════════
   PAGE HERO (Unterseiten)
════════════════════════════════ */
.page-top {
  margin-top: 116px; /* header 72 + subnav 44 */
  position: relative;
  min-height: 280px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--sage);
}
.page-top-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.7);
}
.page-top-content {
  position: relative;
  padding: 4rem 40px 3.5rem;
  color: #fff;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}
.page-eyebrow {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 0.8rem;
  display: block;
}
.page-top-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}
.page-top-content p {
  font-size: 1rem; font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  margin-top: 0.6rem;
}

/* ════════════════════════════════
   COMMON SECTION ELEMENTS
════════════════════════════════ */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 28px;
}
.wrap-sm { padding: 3.5rem 28px; }

.label-tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 1.2rem;
}
.label-tag::before { content: '—'; margin-right: 8px; color: var(--sand); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--bark);
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn-primary-warm {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage); color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 28px; border-radius: 2px;
  border: none; cursor: pointer;
  transition: background 0.22s;
}
.btn-primary-warm:hover { background: #3a5232; }

.btn-outline-warm {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--bark); color: var(--bark);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 28px; border-radius: 2px;
  background: none; cursor: pointer;
  transition: background 0.22s, color 0.22s;
}
.btn-outline-warm:hover { background: var(--bark); color: var(--cream); }

/* ── Cards ── */
.card-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.card-modern {
  background: var(--warm-white);
  border: 1px solid var(--mist);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}
.card-modern-img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--mist);
  display: block;
}
.card-modern-body { padding: 1.5rem 1.8rem 2rem; }
.card-tag {
  display: inline-block;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--earth); margin-bottom: 0.6rem;
}
.card-modern h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300;
  color: var(--bark); margin-bottom: 0.6rem;
}
.card-modern p { font-size: 0.9rem; font-weight: 300; line-height: 1.75; color: #4a3f33; }

/* ── Feature tag pills ── */
.tag-pill {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 2px;
  border: 1px solid rgba(74,103,65,0.2);
}

/* ── Dividers ── */
.warm-divider {
  height: 1px;
  background: var(--mist);
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Full-bg banner ── */
.warm-banner {
  background: var(--sage);
  color: #fff;
  text-align: center;
  padding: 5rem 28px;
  position: relative;
  overflow: hidden;
}
.warm-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 80%, rgba(201,169,122,0.15) 0%, transparent 70%);
}
.warm-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(2rem, 4vw, 3.5rem);
  position: relative; margin-bottom: 1rem;
}
.warm-banner p { position: relative; max-width: 600px; margin: 0 auto 2rem; font-weight: 300; opacity: 0.8; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--sage);
  color: rgba(250,248,245,0.75);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 4rem 28px 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 300;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(250,248,245,0.85);
  margin-bottom: 0.8rem;
}
.footer-tagline {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sand);
  margin-bottom: 1.5rem;
}
.footer-col h5 {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,248,245,0.35);
  margin-bottom: 1rem;
}
.footer-col a,
.footer-col p,
.footer-col address {
  display: block; font-style: normal;
  font-size: 0.85rem; font-weight: 300;
  color: rgba(250,248,245,0.55);
  line-height: 2; transition: color 0.2s;
}
.footer-col a:hover { color: rgba(250,248,245,0.9); }
.footer-ig-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sand) !important;
  margin-top: 0.8rem;
  border-bottom: 1px solid rgba(201,169,122,0.35);
  padding-bottom: 2px;
}
.footer-bottom {
  border-top: 1px solid rgba(250,248,245,0.08);
  max-width: 1160px; margin: 0 auto;
  padding: 1.5rem 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: rgba(250,248,245,0.25);
  flex-wrap: wrap; gap: 0.5rem;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-inner > div:first-child { grid-column: 1/-1; }
  .wrap { padding: 3.5rem 20px; }
  .page-top-content { padding: 3rem 20px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > div:first-child { grid-column: auto; }
  #site-header { padding: 0 16px; }
  .btn-book span { display: none; }
  .btn-book { padding: 9px 14px; }
}

/* ── Shared header/drawer JS trigger ── */
