/* ==========================================================================
   Taldrenn Produktseite
   Palette 1:1 aus dem Spiel-Client übernommen (client/src/style.css):
   Tiefes Nachtbraun, Pergament, Gold, ein wärmerer Siegel-Rotton.
   ========================================================================== */

:root {
  --ink-deep:      #0e0905;
  --ink:           #1c1108;
  --ink-soft:      #241708;
  --ink-panel:     #2b1c07;
  --wood:          #332916;
  --wood-soft:     #4a3c22;

  --parchment:     #f7ead0;
  --parchment-dim: #d8c9a3;

  --gold-bright:   #f4d98d;
  --gold:          #c8952e;
  --gold-deep:     #9c6f1c;

  --seal:          #9d4a34;
  --seal-bright:   #d95b41;

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;

  --max: 1180px;
  --edge: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* film-grain / texture overlay, purely decorative */
.grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem var(--edge);
  background: linear-gradient(to bottom, rgba(14,9,5,0.92), rgba(14,9,5,0));
  backdrop-filter: blur(2px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}

.brand-crest {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(244, 217, 141, 0.35), 0 2px 10px rgba(0,0,0,0.5);
}

.topnav {
  display: flex;
  gap: 2.1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topnav a {
  text-decoration: none;
  color: var(--parchment-dim);
  transition: color 0.2s ease;
  position: relative;
}
.topnav a:hover { color: var(--gold-bright); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(200, 149, 46, 0.45);
  background: rgba(43, 28, 7, 0.55);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--seal-bright);
  box-shadow: 0 0 8px 1px var(--seal-bright);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

@media (max-width: 720px) {
  .topnav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--edge) 4rem;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 12%, rgba(200, 149, 46, 0.16), transparent 60%),
    radial-gradient(ellipse 120% 70% at 50% 100%, rgba(157, 74, 52, 0.14), transparent 65%),
    linear-gradient(180deg, #150d06 0%, #0e0905 55%, #0a0603 100%);
  z-index: -2;
}

.hero-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 20%, rgba(247,234,208,0.5), transparent),
    radial-gradient(1px 1px at 75% 15%, rgba(247,234,208,0.4), transparent),
    radial-gradient(1.5px 1.5px at 60% 30%, rgba(247,234,208,0.35), transparent),
    radial-gradient(1px 1px at 85% 40%, rgba(247,234,208,0.3), transparent),
    radial-gradient(1px 1px at 10% 45%, rgba(247,234,208,0.3), transparent),
    radial-gradient(1.5px 1.5px at 40% 8%, rgba(247,234,208,0.4), transparent);
  opacity: 0.6;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, transparent 40%, rgba(9,5,2,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  color: var(--parchment);
  text-shadow: 0 2px 30px rgba(244, 217, 141, 0.18);
  margin-bottom: 1.4rem;
}

.hero h1 .line {
  display: inline-block;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--gold-bright) 10%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-promise {
  margin: 1.6rem 0 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--parchment-dim);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-town {
  position: relative;
  z-index: 1;
  margin-top: clamp(1rem, 4vw, 2.5rem);
  width: min(560px, 78vw);
}

.town-hall-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55));
  animation: float 7s ease-in-out infinite;
}

.hero-town-shadow {
  position: absolute;
  bottom: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2rem;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55), transparent 70%);
  animation: shadow-pulse 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes shadow-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.55; }
  50% { transform: translateX(-50%) scale(0.88); opacity: 0.4; }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  z-index: 2;
}
.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-bright);
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}
.scroll-cue em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  opacity: 0.7;
}

@media (max-width: 720px) {
  .scroll-cue { display: none; }
}

/* reveal-on-load */
.reveal {
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--d, 0) * 0.14s + 0.1s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Pitch band
   ========================================================================== */

.pitch-band {
  position: relative;
  padding: 5rem var(--edge);
  text-align: center;
  border-top: 1px solid rgba(200,149,46,0.16);
  border-bottom: 1px solid rgba(200,149,46,0.16);
  background: var(--ink);
}

.pitch-inner {
  max-width: 40rem;
  margin: 0 auto;
}
.pitch-band h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  color: var(--parchment);
  margin-bottom: 1.3rem;
  text-wrap: balance;
}
.pitch-band p:not(.eyebrow) {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--parchment-dim);
  line-height: 1.6;
}
.pitch-band p:last-child { margin-bottom: 0; }
.pitch-band strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* ==========================================================================
   Pillars / Features
   ========================================================================== */

.pillars {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem var(--edge) 5rem;
}

.section-head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 3.5rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--parchment);
}
.section-head .eyebrow { margin-bottom: 0.8rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(200,149,46,0.16);
  border: 1px solid rgba(200,149,46,0.16);
}

.pillar-card {
  position: relative;
  background: var(--ink);
  padding: 2.4rem 1.8rem 2.2rem;
  transition: background 0.3s ease;
}
.pillar-card:hover { background: var(--ink-soft); }

.pillar-art {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.pillar-art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}
.pillar-card:hover .pillar-art img { transform: translateY(-6px) scale(1.03); }

.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.pillar-card h3 {
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin-bottom: 0.65rem;
}

.pillar-card p {
  color: var(--parchment-dim);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 980px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gallery strip, endless marquee of building sprites
   ========================================================================== */

.gallery-strip {
  position: relative;
  padding: 3.5rem 0;
  background: var(--ink-panel);
  border-top: 1px solid rgba(200,149,46,0.16);
  border-bottom: 1px solid rgba(200,149,46,0.16);
  overflow: hidden;
}
.gallery-strip::before,
.gallery-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: min(12vw, 140px);
  z-index: 2;
  pointer-events: none;
}
.gallery-strip::before { left: 0; background: linear-gradient(90deg, var(--ink-panel), transparent); }
.gallery-strip::after { right: 0; background: linear-gradient(270deg, var(--ink-panel), transparent); }

.gallery-track {
  display: flex;
  align-items: flex-end;
  gap: 3.5rem;
  width: max-content;
  animation: drift 38s linear infinite;
}
.gallery-track img {
  height: 130px;
  width: auto;
  max-width: none;
  flex: none;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.5));
  opacity: 0.92;
}

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
  .town-hall-img, .hero-town-shadow { animation: none; }
}

/* ==========================================================================
   Chronik
   ========================================================================== */

.chronik {
  padding: 6.5rem var(--edge) 7rem;
  display: flex;
  justify-content: center;
}

.chronik-scroll {
  position: relative;
  max-width: 34rem;
  text-align: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(180deg, rgba(43,28,7,0.5), rgba(43,28,7,0.15));
  border: 1px solid rgba(200,149,46,0.22);
}
.chronik-scroll::before,
.chronik-scroll::after {
  content: "";
  position: absolute;
  left: 1.1rem; right: 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,149,46,0.5), transparent);
}
.chronik-scroll::before { top: 0.9rem; }
.chronik-scroll::after { bottom: 0.9rem; }

.seal {
  display: inline-block;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  filter: grayscale(0.2) drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.chronik h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  color: var(--parchment);
  margin-bottom: 1.1rem;
}

.chronik p {
  color: var(--parchment-dim);
  font-size: 1.15rem;
  line-height: 1.6;
}

.chronik-sign {
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 2.4rem var(--edge) 2.8rem;
  border-top: 1px solid rgba(200,149,46,0.14);
}
.footer-crest { border-radius: 50%; opacity: 0.85; }
.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--parchment-dim);
  opacity: 0.7;
}
