/* ==========================================================
   GLANZWERK — Header & Footer Stile
========================================================== */

/* ===== Header ===== */
.gw-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.5s var(--gw-ease), backdrop-filter 0.5s var(--gw-ease), box-shadow 0.5s var(--gw-ease);
}
.gw-header.scrolled,
body.has-light-hero .gw-header {
  background: rgba(24, 20, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.4);
}
.gw-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gw-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.gw-logo img {
  width: 42px; height: 42px;
  border-radius: 10px;
  object-fit: cover;
}
.gw-logo-text {
  font-family: 'Fraunces', Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--gw-cream);
  transition: color 0.3s var(--gw-ease);
}
.gw-logo:hover .gw-logo-text { color: var(--gw-gold); }

.gw-nav {
  display: none;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.9rem;
  font-weight: 500;
}
@media (min-width: 1024px) {
  .gw-nav { display: flex; }
}
.gw-nav > a {
  color: rgba(245, 240, 230, 0.85);
  text-decoration: none;
  transition: color 0.3s var(--gw-ease);
  position: relative;
}
.gw-nav > a:hover { color: var(--gw-gold); }
.gw-nav > a.active {
  color: var(--gw-gold);
}
.gw-nav > a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gw-gold);
  border-radius: 2px;
}

.gw-nav-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(245,240,230,0.2);
}
.gw-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: rgba(245,240,230,0.8);
  background: rgba(245,240,230,0.06);
  transition: all 0.3s var(--gw-ease);
}
.gw-social-icon:hover {
  background: var(--gw-gold);
  color: var(--gw-taupe-deep);
  transform: translateY(-1px);
}

.gw-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  background: var(--gw-cream);
  color: var(--gw-taupe-deep);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.35s var(--gw-ease);
}
.gw-cta-btn:hover {
  background: var(--gw-gold);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(201,168,118,0.55);
}

.gw-menu-btn {
  display: flex;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--gw-cream);
}
@media (min-width: 1024px) {
  .gw-menu-btn { display: none; }
}

/* ===== Mobile Menu ===== */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(360px, 90vw);
  background: linear-gradient(180deg, var(--gw-taupe-deep) 0%, var(--gw-taupe-950) 100%);
  color: var(--gw-cream);
  padding: 4.5rem 1.75rem 2rem;
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.5s var(--gw-ease);
  overflow-y: auto;
  box-shadow: -25px 0 60px -25px rgba(0,0,0,0.5);
}
body.mnav-open .mobile-nav {
  transform: translateX(0);
}

/* Backdrop hinter dem Menü — Tap außerhalb schließt das Menü */
.mnav-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* dynamic viewport — robust bei iOS Safari */
  background: rgba(24, 20, 15, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--gw-ease);
}
body.mnav-open .mnav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Body-Scroll-Lock während Menü offen — Inhalt unter dem Menü scrollt nicht weiter */
html.mnav-locked,
html.mnav-locked body {
  overflow: hidden;
}
/* Verhindert Scroll-Bounce auf iOS Safari ohne Click-Events zu blockieren */
html.mnav-locked body {
  overscroll-behavior: none;
}
.mobile-nav .mnav-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(245,240,230,0.06);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--gw-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--gw-ease);
}
.mobile-nav .mnav-close:hover { background: rgba(245,240,230,0.15); }
.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--gw-cream);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(245,240,230,0.1);
  transition: color 0.3s var(--gw-ease), padding-left 0.3s var(--gw-ease);
}
.mobile-nav a:hover {
  color: var(--gw-gold);
  padding-left: 0.4rem;
}
.mobile-nav .mnav-cta {
  margin-top: 1.5rem;
  background: var(--gw-cream);
  color: var(--gw-taupe-deep) !important;
  padding: 0.95rem 1.5rem !important;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  border: none !important;
}
.mobile-nav .mnav-cta:hover {
  background: var(--gw-gold);
  padding-left: 1.5rem !important;
}
.mnav-social {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,240,230,0.1);
}
.mnav-social-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.55);
  margin-bottom: 0.85rem;
}
.mnav-social-icons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.mnav-social-icons a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem !important;
  background: rgba(245,240,230,0.07);
  border: 1px solid rgba(245,240,230,0.15) !important;
  border-radius: 999px;
  font-size: 0.85rem !important;
  text-decoration: none;
  transition: all 0.3s var(--gw-ease);
}
.mnav-social-icons a:hover {
  background: var(--gw-gold) !important;
  color: var(--gw-taupe-deep) !important;
  padding-left: 0.95rem !important;
}

/* Alter ::after-Backdrop entfernt — wird durch echtes .mnav-backdrop-Element
   mit Click-Handler ersetzt (siehe oben). Keyframe bleibt für andere Animationen. */
@keyframes gw-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Footer ===== */
.gw-footer {
  background: linear-gradient(180deg, var(--gw-taupe-deep) 0%, var(--gw-taupe-950) 100%);
  color: rgba(245,240,230,0.78);
  padding: 4rem 1.5rem 2rem;
  font-size: 0.92rem;
}
.gw-footer-inner { max-width: 80rem; margin: 0 auto; }
.gw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .gw-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 540px) { .gw-footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.gw-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.gw-footer-logo img {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.gw-footer-logo span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  color: var(--gw-cream);
}
.gw-footer-brand p {
  color: rgba(245,240,230,0.6);
  line-height: 1.65;
  max-width: 26rem;
  margin-bottom: 1.5rem;
}
.gw-footer-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.gw-footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(245,240,230,0.06);
  border: 1px solid rgba(245,240,230,0.12);
  color: rgba(245,240,230,0.85);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.35s var(--gw-ease);
}
.gw-footer-socials a:hover {
  background: var(--gw-gold);
  color: var(--gw-taupe-deep);
  border-color: var(--gw-gold);
  transform: translateY(-2px);
}

.gw-footer-col h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: var(--gw-cream);
  margin: 0 0 1rem;
}
.gw-footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.gw-footer-col li {
  margin-bottom: 0.55rem;
  line-height: 1.5;
}
.gw-footer-col a {
  color: rgba(245,240,230,0.7);
  text-decoration: none;
  transition: color 0.3s var(--gw-ease);
}
.gw-footer-col a:hover { color: var(--gw-gold); }

.gw-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,240,230,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .gw-footer-bottom { flex-direction: row; justify-content: space-between; }
}
.gw-footer-legal {
  font-size: 0.78rem;
  color: rgba(245,240,230,0.5);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}
@media (min-width: 800px) { .gw-footer-legal { text-align: left; } }
.gw-footer-legal a {
  color: rgba(245,240,230,0.7);
  text-decoration: none;
  transition: color 0.3s var(--gw-ease);
}
.gw-footer-legal a:hover { color: var(--gw-gold); }

.gw-made-by {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.1rem 0.6rem 0.55rem;
  background: rgba(245,240,230,0.025);
  border: 1px solid rgba(245,240,230,0.08);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.4s var(--gw-ease);
  color: inherit;
}
.gw-made-by:hover {
  background: rgba(245,240,230,0.06);
  border-color: rgba(220, 220, 0, 0.4);
  transform: translateY(-2px);
}
.gw-made-by-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  /* Kontinuierliche Rotation — Hommage an dreihundertsechzig.com */
  animation: gw-360-rotate 8s linear infinite;
  transition: animation-duration 0.4s var(--gw-ease);
}
.gw-made-by:hover .gw-made-by-logo {
  /* Beim Hover schneller drehen */
  animation-duration: 2s;
}
@keyframes gw-360-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  /* Animation respektiert Nutzer-Einstellungen */
  .gw-made-by-logo { animation: none; }
}
.gw-made-by-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-made-by-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.1rem;
}
.gw-made-by-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.45);
}
.gw-made-by-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.92rem;
  color: rgba(245,240,230,0.85);
  transition: color 0.3s var(--gw-ease);
}
.gw-made-by:hover .gw-made-by-name { color: #e6e600; }
.gw-made-by svg {
  color: rgba(245,240,230,0.4);
  transition: all 0.3s var(--gw-ease);
}
.gw-made-by:hover svg {
  color: #e6e600;
  transform: translate(2px, -2px);
}
