/* Spassherz Poppenhausen — single-page site */
:root {
  --navy: #1D2A62;
  --sky: #87AECE;
  --cream: #F5F3D8;
  --cream-deep: #EBE7D2;
  --cream-muted: #E3DFC8;
  --green-light: #AFD06E;
  --green-dark: #437118;
  --ink: #2F3D22;
  --text: #2F3D22;
  --text-muted: #5A6348;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1180px;
  --nav-h: 72px;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(47, 61, 34, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.glass-card {
  background: var(--cream-deep);
  border: 1px solid rgba(67, 113, 24, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

/* ── Top navigation ── */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.topnav:not(.topnav--solid) {
  background: rgba(35, 48, 28, 0.72);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.15);
}

.topnav--solid {
  background: rgba(245, 243, 216, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(67, 113, 24, 0.12);
  box-shadow: 0 2px 16px rgba(47, 61, 34, 0.06);
}

.topnav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.brand-link span { color: var(--green-light); }

.topnav--solid .brand-link {
  color: var(--green-dark);
  text-shadow: none;
}

.topnav--solid .brand-link span {
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.topnav--solid .nav-links a {
  color: var(--text-muted);
  text-shadow: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(175, 208, 110, 0.22);
  color: var(--green-light);
  text-decoration: none;
}

.topnav--solid .nav-links a:hover,
.topnav--solid .nav-links a.active {
  background: rgba(175, 208, 110, 0.35);
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s;
}

.topnav--solid .nav-toggle {
  color: var(--green-dark);
}

/* ── Section typography ── */
.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--cream-deep);
}

.section--quote {
  padding: 48px 0 64px;
  background: var(--cream);
}

.section-kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
}

/* ── Full-screen hero ── */
.hero-fullscreen {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 960px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vh, 96px);
  background: linear-gradient(
    to top,
    rgba(20, 28, 14, 0.92) 0%,
    rgba(20, 28, 14, 0.55) 40%,
    rgba(20, 28, 14, 0.2) 100%
  );
  pointer-events: none;
}

.hero-content {
  pointer-events: auto;
  max-width: 680px;
}

.hero-kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.06;
  margin-bottom: 16px;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-content h1 em {
  font-style: normal;
  color: var(--green-light);
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #FFFFFF;
  margin-bottom: 28px;
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--green-light);
  color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(67, 113, 24, 0.25);
}

.btn-primary:hover { background: #c0e88a; }

.btn-outline {
  background: rgba(245, 243, 216, 0.12);
  color: var(--cream);
  border: 1.5px solid rgba(245, 243, 216, 0.5);
}

.btn-outline:hover {
  background: rgba(245, 243, 216, 0.22);
  color: var(--cream);
}

/* ── Carousel ── */
.carousel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.carousel--fullscreen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  right: 24px;
  bottom: 72px;
  max-width: 280px;
  padding: 10px 14px;
  background: rgba(47, 61, 34, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(47, 61, 34, 0.55);
  backdrop-filter: blur(4px);
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3;
}

.carousel-btn:hover { background: rgba(67, 113, 24, 0.75); }
.carousel-btn--prev { left: 20px; }
.carousel-btn--next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 243, 216, 0.4);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--green-light);
  width: 22px;
  border-radius: 4px;
}

/* ── Quote block ── */
.quote-block {
  padding: 28px 32px;
  border-left: 4px solid var(--green-light);
  background: var(--cream-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-block p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

.quote-block cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Hub section ── */
.hub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hub-photo img,
.hub-map img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid rgba(135, 174, 206, 0.5);
  width: 100%;
}

.hub-photo figcaption,
.hub-map figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.floor-map-btn {
  margin-bottom: 16px;
}

.btn-secondary {
  background: var(--cream);
  color: var(--green-dark);
  border: 1.5px solid rgba(67, 113, 24, 0.3);
}

.btn-secondary:hover {
  background: var(--cream-muted);
}

.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.floor-tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 10px 16px;
  border: 1.5px solid rgba(67, 113, 24, 0.25);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.floor-tab:hover,
.floor-tab.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--cream);
}

.floor-panel {
  display: none;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 113, 24, 0.1);
}

.floor-panel.active { display: block; }

.floor-panel img,
.floor-panel object {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.floor-desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(67, 113, 24, 0.12);
}

.floor-desc h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.floor-desc p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid rgba(67, 113, 24, 0.1);
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green-light);
}

/* ── Warehouses / Events ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.event-card {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(67, 113, 24, 0.1);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.event-card:hover { transform: translateY(-3px); }

.event-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.event-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.event-card .event-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(175, 208, 110, 0.35);
  color: var(--green-dark);
}

.craft-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.craft-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
}

.craft-list li {
  font-size: 0.92rem;
  padding: 10px 14px;
  background: rgba(175, 208, 110, 0.2);
  border-radius: 6px;
  color: var(--ink);
}

.warehouse-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.warehouse-gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.warehouse-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s;
}

.warehouse-gallery figure:hover img { transform: scale(1.04); }

.warehouse-gallery figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  background: var(--cream-deep);
  color: var(--text-muted);
}

/* ── Prototype section wrapper ── */
#prototype {
  background: var(--cream);
  padding-bottom: 100px;
}

#prototype .proto-wrap {
  max-width: 1400px;
}

/* ── Share / QR ── */
#share {
  background: var(--cream-deep);
}

.qr-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.qr-card {
  padding: 36px 28px;
  background: var(--cream);
  border: 1px solid rgba(67, 113, 24, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.qr-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 20px;
}

.qr-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  width: 240px;
  height: 240px;
  background: var(--cream);
  border: 1px solid rgba(67, 113, 24, 0.12);
  border-radius: var(--radius);
  padding: 12px;
}

.qr-stage .qr-image {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 4px;
}

.qr-url {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  padding: 10px 14px;
  background: var(--cream-muted);
  border: 1px solid rgba(67, 113, 24, 0.1);
  border-radius: 6px;
  margin: 0 auto;
  max-width: 420px;
}

.qr-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.qr-btn {
  background: var(--green-dark);
  color: var(--cream);
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.qr-btn:hover {
  background: #356012;
}

.qr-btn--ghost {
  background: transparent;
  color: var(--green-dark);
}

.qr-btn--ghost:hover {
  background: rgba(175, 208, 110, 0.25);
}

.qr-foot {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-dark);
  min-height: 16px;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-dark);
  color: rgba(245, 243, 216, 0.8);
  padding: 40px 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer a {
  color: var(--green-light);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hub-layout,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .warehouse-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .carousel-caption {
    display: none;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero-fullscreen { min-height: 100svh; max-height: none; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(245, 243, 216, 0.98);
    padding: 16px;
    border-bottom: 1px solid rgba(67, 113, 24, 0.12);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    color: var(--text-muted);
    width: 100%;
    text-align: center;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--green-dark);
  }

  .craft-list { grid-template-columns: 1fr; }

  .warehouse-gallery { grid-template-columns: 1fr; }

  .carousel-btn--prev { left: 10px; }
  .carousel-btn--next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
}
