/* ════════════════════════════════════════════════════════════════════
   COMPONENTS — wiederverwendbare Bausteine
   ════════════════════════════════════════════════════════════════════ */

/* ── Layout Helpers ── */
.container       { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow{ max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

.section          { padding: 100px 24px; }
.section-tight    { padding: 64px 24px; }
@media (max-width: 768px) {
  .section       { padding: 64px 24px; }
  .section-tight { padding: 48px 24px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--gold-bright); }

.section-sub {
  font-size: 15.5px;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(22,21,19,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.site-nav.scrolled {
  background: rgba(22,21,19,0.92);
  border-bottom-color: var(--border-mid);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -.01em;
}
.nav-logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px 1px var(--gold-mid);
}

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: right var(--dur-base) var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-links a.active { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-soft);
  font-size: 24px;
  cursor: pointer;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 24px 28px 32px; gap: 20px; z-index: 999;
    box-shadow: var(--shadow-md);
    animation: navDrop var(--dur-base) var(--ease-out);
  }
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #1a1812;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 20px -4px rgba(201,168,104,0.45);
}
.btn-gold:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 10px 28px -4px rgba(201,168,104,0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(243,239,232,0.04);
  color: var(--text-soft);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  background: rgba(243,239,232,0.07);
  border-color: var(--border-bright);
  color: var(--text);
}

.btn-rust {
  background: linear-gradient(155deg, var(--rust-bright), var(--rust) 70%);
  color: #1f1410;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 20px -4px rgba(194,112,77,0.4);
}
.btn-rust:hover { transform: translateY(-1px); }

.btn-sm  { padding: 9px 18px; font-size: 13px; }
.btn-lg  { padding: 17px 32px; font-size: 15.5px; }
.btn-full{ width: 100%; }

/* ════════════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card-link { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 14px; }
a.card:hover, .card.hoverable:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-md);
}

.card-featured {
  background: linear-gradient(160deg, rgba(201,168,104,0.10), rgba(201,168,104,0.02));
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-gold-glow);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}

.card-title { font-size: 17px; font-weight: 600; color: var(--text); }
.card-text  { font-size: 14px; color: var(--text-soft); line-height: 1.7; flex: 1; }
.card-cta   { font-size: 13px; color: var(--gold-bright); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════════
   BADGES & PILLS
   ════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--r-pill);
}
.badge-gold { color: var(--gold-bright); background: var(--gold-dim); border: 1px solid var(--gold-line); }
.badge-rust { color: var(--rust-bright); background: var(--rust-dim); border: 1px solid var(--rust-line); }
.badge-sage { color: var(--sage-bright); background: var(--sage-dim); border: 1px solid var(--sage-line); }

/* ════════════════════════════════════════════════════════════════════
   STICKY CTA
   ════════════════════════════════════════════════════════════════════ */
.sticky-cta {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #1a1812;
  font-size: 13.5px; font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 32px -4px rgba(201,168,104,0.45), 0 1px 0 rgba(255,255,255,0.25) inset;
  z-index: 90;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  animation: stickyIn var(--dur-slow) var(--ease-out) 600ms backwards;
}
.sticky-cta:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 18px 40px -4px rgba(201,168,104,0.55), 0 1px 0 rgba(255,255,255,0.3) inset;
}
@keyframes stickyIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 480px) {
  .sticky-cta { font-size: 12.5px; padding: 13px 20px; bottom: 18px; width: calc(100% - 40px); justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 52px 24px 40px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-serif); font-size: 17px; color: var(--text-soft); text-decoration: none; }
.footer-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: var(--text-muted); text-decoration: none; transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--text-soft); }
.footer-copy { font-size: 11.5px; color: var(--text-faint); }

/* ════════════════════════════════════════════════════════════════════
   SCROLL REVEAL — Elemente erscheinen sanft beim Scrollen
   ════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ════════════════════════════════════════════════════════════════════
   DIVIDER
   ════════════════════════════════════════════════════════════════════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid) 20%, var(--border-mid) 80%, transparent);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE GRID HELPERS
   ════════════════════════════════════════════════════════════════════ */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
