/* ============================================================
   LAYOUT — Header, Page-Stage, Karussell, Footer
   Mobile-First: stapelt erst, größere Viewports nebeneinander.
   ============================================================ */

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 14, 26, .85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(201, 169, 97, .15);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo-wappen {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.logo-text span {
  font-size: 0.6rem;
  opacity: 0.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Nav: Mobile = horizontales Scroll-Menü */
.main-nav {
  display: flex;
  gap: 0.15rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  /* Scrollbar verstecken */
  -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav button {
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--t-base), opacity var(--t-base);
  position: relative;
  opacity: 0.7;
  white-space: nowrap;
  min-height: 36px;
}

.main-nav button:hover {
  opacity: 1;
  color: var(--brass);
}

.main-nav button.active {
  opacity: 1;
  color: var(--brass);
  font-weight: 600;
}

.main-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 1px;
  background: var(--brass);
}

.main-nav button.locked::before {
  content: '🔒';
  margin-right: 0.3rem;
  font-size: 0.65rem;
  opacity: 0.6;
}

.user-status {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(201, 169, 97, .2);
}

.user-status strong {
  color: var(--brass);
  font-weight: 500;
}

@media (min-width: 640px) {
  .site-header {
    padding: 0.75rem 1.5rem;
  }
  .logo-wappen {
    width: 48px;
    height: 48px;
  }
  .logo-text strong { font-size: 0.95rem; }
  .logo-text span   { font-size: 0.65rem; }
  .main-nav button  { padding: 0.5rem 1rem; font-size: 0.78rem; letter-spacing: 0.12em; }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 1rem 2rem;
    flex-wrap: nowrap;
  }
  .main-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* ===== PAGE-STAGE (Karussell-Bühne) ===== */
.page-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  padding-top: var(--header-height);
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% calc(100% + 2000px);
  will-change: transform;
}

@media (max-width: 768px) {
  /* Auf Mobile: keine 3D-Rotation. Stattdessen einfacher Stack mit Snap.
     Page-Stage wird Scroll-Container, Pages stapeln sich vertikal. */
  .page-stage {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    overflow: visible;
  }
  .carousel {
    transform: none !important;
    display: flex;
    flex-direction: column;
    height: auto;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #06080F;
  border-top: 1px solid rgba(201, 169, 97, .2);
  padding: 2.5rem var(--gutter) 1.5rem;
  color: rgba(232, 229, 221, .7);
  font-size: 0.9rem;
  margin-top: 0;
}

.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h5 {
  color: var(--brass);
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity var(--t-base);
}

.site-footer a:hover {
  opacity: 1;
}

.kontakt-mini {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.7;
}

.kontakt-mini strong {
  color: var(--brass);
  font-weight: 500;
  opacity: 1;
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 169, 97, .12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  opacity: 0.5;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer { padding: 3rem var(--gutter) 2rem; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}
