/* tabletop-game.de — dark theme, mobile-first.
 * Palette mirrors the Vietis wiki: near-black background, parchment text,
 * warm gold accent (matches the wiki's "Daggerheart Rules" shortcut button). */

:root {
  --bg:        #161618;
  --bg-alt:    #1d1d20;
  --bg-card:   #222226;
  --fg:        #e8e3d8;
  --fg-muted:  #a8a397;
  --border:    #38383d;
  --accent:    #d4a85a;       /* warm gold */
  --accent-hi: #e8be72;
  --link:      #c8b994;
  --link-hi:   #e6d7a8;
  --maxw:      62rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 185, 148, 0.25);
  transition: color 0.15s, border-color 0.15s;
}
a:hover { color: var(--link-hi); border-bottom-color: var(--link-hi); }

h1, h2, h3 {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0;
  color: #f0ead9;
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--accent-hi); text-align: center; }

/* ---------- Header ---------- */

.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.site-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  border: none;
}
.site-title:hover { color: var(--accent-hi); }

.site-nav {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.site-nav a {
  border: none;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--fg); }
.site-nav a.wiki-link { color: var(--accent); }
.site-nav a.wiki-link:hover { color: var(--accent-hi); }

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0 4.5rem;
  background:
    linear-gradient(rgba(22, 22, 24, 0.7), rgba(22, 22, 24, 0.85)),
    url("../img/hero-bg.jpeg") center / cover no-repeat,
    var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }
.hero-sub { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

.hero { text-align: center; }

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: #1a1a1a;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover {
  background: rgba(212, 168, 90, 0.1);
  color: var(--accent-hi);
  border-color: var(--accent-hi);
}

/* ---------- Sections ---------- */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section { text-align: center; }

.section p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Tile grid ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 1.4rem 1.4rem;
}

.tile p {
  color: var(--fg-muted);
  margin: 0;
}

.tile-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.7rem;
  /* Source PNGs are dark gray on transparent. The filter chain below
   * recolors the visible pixels to roughly match --accent (#d4a85a gold). */
  filter: brightness(0) saturate(100%) invert(74%) sepia(45%) saturate(580%)
          hue-rotate(358deg) brightness(94%) contrast(88%);
}

/* ---------- Kontakt ---------- */

.contact-fallback {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-top: 1.2rem;
}

/* ---------- Gallery ---------- */

.page-title {
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.gallery-date {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--fg-muted);
  letter-spacing: 0;
  margin-left: 0.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.gallery-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-card);
  line-height: 0;
  aspect-ratio: 4 / 3;
  transition: border-color 0.15s, transform 0.15s;
  cursor: zoom-in;
}
.gallery-item:hover {
  border-color: var(--accent);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2em 0.5em;
  border-radius: 3px;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Legal pages ---------- */

.legal { text-align: left; }

.legal h1 {
  font-size: 2rem;
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.legal p {
  max-width: 42rem;
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer a {
  color: var(--fg-muted);
  border: none;
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--fg); }
