/* ============================================================
   SIEK-MÜLLER GBRÄSHARED STYLES
   styles.css – Navigation, Footer, Buttons, Basis-Typografie
============================================================ */

/* ---------- RESET & VARIABLEN ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:        #0d0b09;
  --dark-2:      #171310;
  --dark-3:      #221e1a;
  --dark-4:      #2e2822;
  --amber:       #c97c2e;
  --amber-light: #e09448;
  --amber-pale:  #f2c07a;
  --cream:       #f0e8da;
  --cream-light: #f8f3ec;
  --text-light:  #c8bfb3;
  --text-muted:  #7a7068;
  --white:       #ffffff;
  --border:      rgba(200,170,120,0.15);
  --ff-serif:    'Playfair Display', Georgia, serif;
  --ff-sans:     'Inter', system-ui, sans-serif;
  --radius:      4px;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

html {
  overflow-x: hidden;
}

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 calc(max(5vw, (100vw - 1200px) / 2));
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* blur & bg driven by JS */
}

.nav-logo img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}
.nav-logo img:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--amber) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  letter-spacing: 0.1em !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--amber-light) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu – slide-down panel */
.nav-mobile {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  max-height: 100vh;
  overflow-y: auto;
  background: rgba(13,11,9,0.88);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border-bottom: 1px solid rgba(200,170,120,0.12);
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 100px 36px 44px;
  gap: 6px;
  /* hidden state */
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1),
              visibility 0s linear 0.5s;
}
.nav-mobile.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1),
              visibility 0s linear 0s;
}

/* Blur overlay for content below the panel */
body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(13,11,9,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 997;
  pointer-events: none;
}

.nav-mobile a {
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 0;
  opacity: 0;
  transform: translateX(-16px);
  transition: color var(--transition),
              opacity 0.35s ease,
              transform 0.35s ease;
}
.nav-mobile.open a { opacity: 1; transform: translateX(0); }
.nav-mobile.open a:nth-child(1) { transition-delay: 0.12s; }
.nav-mobile.open a:nth-child(2) { transition-delay: 0.18s; }
.nav-mobile.open a:nth-child(3) { transition-delay: 0.24s; }
.nav-mobile.open a:nth-child(4) { transition-delay: 0.30s; }
.nav-mobile.open a:nth-child(5) { transition-delay: 0.36s; }
.nav-mobile.open a:nth-child(6) { transition-delay: 0.42s; }
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--white); }
.nav-mobile a.nav-cta {
  color: var(--amber) !important;
  background: none !important;
  padding: 10px 0 !important;
  border-radius: 0 !important;
  margin-top: 8px;
  border-top: 1px solid rgba(200,170,120,0.15);
  width: 100%;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 64px 5% 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand img {
  height: 64px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-col ul li svg {
  flex-shrink: 0;
  color: var(--amber);
  opacity: 0.7;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-col ul li:hover svg { opacity: 1; }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--cream); }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--white);
  padding: 15px 36px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--ff-sans);
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cream);
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(240,232,218,0.35);
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
  font-family: var(--ff-sans);
}
.btn-outline:hover { border-color: var(--cream); color: var(--white); }

/* ---------- GEMEINSAME SEKTION-ELEMENTE ---------- */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--amber-pale); }
.section-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 620px;
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin: 28px 0;
}

/* ---------- PAGE-HERO (Unterseiten) ---------- */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 0 calc(max(5vw, (100vw - 1200px) / 2)) 80px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,11,9,0.3) 0%,
    rgba(13,11,9,0.6) 60%,
    rgba(13,11,9,1) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.page-hero-content .section-eyebrow { margin-bottom: 12px; }
.page-hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
}
.page-hero-title em { font-style: italic; color: var(--amber-pale); }
.page-hero-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 20px 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb-sep { opacity: 0.4; }

/* ---------- CTA-BAND ---------- */
.cta-band {
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 5%;
  text-align: center;
}
.cta-band-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.cta-band .section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-band .section-lead { margin: 0 auto 40px; }
.cta-band-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- ANIMATIONEN ---------- */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; height: 68px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .page-hero { height: 50vh; min-height: 400px; padding: 0 24px 60px; }
  .page-hero-title { font-size: clamp(2rem, 8vw, 3rem); }

  .footer { padding: 56px 24px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .cta-band { padding: 60px 24px; }
  .cta-band-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { justify-content: center; }
}

/* ---------- CLEAN FLOW: Alle Trennlinien entfernen ---------- */
section { border-top: none !important; border-bottom: none !important; }
.footer  { border-top: none; }

/* ---------- SHARED NAV JS (injected via script) ---------- */
/* .nav blur is driven dynamically via JavaScript in each page */

/* ---------- SPRACHUMSCHALTER / LANGUAGE SWITCHER ---------- */
.nav-lang { position: relative; margin-left: -18px; margin-right: -30px; }
.nav-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--border);
  color: var(--cream); font: inherit; font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 7px 12px; border-radius: 6px; cursor: pointer; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.nav-lang-btn:hover { border-color: var(--amber); color: var(--white); }
.nav-lang-btn svg { stroke: currentColor; fill: none; stroke-width: 1.7; }
.nav-lang-btn .globe { width: 15px; height: 15px; }
.nav-lang-btn .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-lang:hover .nav-lang-btn .chev, .nav-lang:focus-within .nav-lang-btn .chev { transform: rotate(180deg); }
.nav-lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 112px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--dark-2); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 1200;
}
.nav-lang:hover .nav-lang-menu, .nav-lang:focus-within .nav-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-lang-menu li { margin: 0; }
.nav-lang-menu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 5px;
  color: var(--text-light); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; transition: background .15s, color .15s;
}
.nav-lang-menu a:hover { background: var(--dark-3); color: var(--white); }
.nav-lang-menu a.active { color: var(--amber); font-weight: 600; }
.nav-lang-menu a .flag { font-size: 1.05rem; line-height: 1; }

.mobile-lang { display: none; }
/* Sprachauswahl direkt in der Leiste (mobil), links neben dem Burger-Menü */
.nav-lang-mobile { display: none; }
@media (max-width: 768px) {
  .nav-lang { display: none; }
  .nav-lang-mobile {
    display: flex; align-items: center; gap: 6px;
    margin-left: auto; margin-right: 14px;
  }
  .nav-lang-mobile a {
    font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--cream); text-decoration: none; padding: 6px 10px; line-height: 1;
    border: 1px solid var(--border); border-radius: 6px;
    transition: border-color .2s, color .2s, background .2s;
  }
  .nav-lang-mobile a.active { background: var(--amber); color: var(--white); border-color: var(--amber); }
  .mobile-lang {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border);
  }
  .mobile-lang a {
    text-align: center; padding: 12px 4px;
    border: 1px solid var(--border); border-radius: 6px; color: var(--cream);
    text-decoration: none; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  }
  .mobile-lang a.active { background: var(--amber); color: var(--white); border-color: var(--amber); }
}
