:root {
  --bg: #0f0f12;
  --bg-alt: #17171b;
  --bg-card: #1c1c21;
  --text: #f2f2f0;
  --text-muted: #a3a3a8;
  --border: #2a2a30;
  --accent: #d8b45c;
  --accent-soft: rgba(216,180,92,0.12);
  --max-width: 1140px;
}

html[data-theme="light"] {
  --bg: #f7f5f1;
  --bg-alt: #efece5;
  --bg-card: #ffffff;
  --text: #201f1c;
  --text-muted: #6b675f;
  --border: #ddd8ce;
  --accent: #a97c1f;
  --accent-soft: rgba(169,124,31,0.1);
  --bg-image: url('../assets/images/bg-day.svg');
  --bg-scrim: rgba(247,245,241,0.72);
}

html[data-theme="dark"] {
  --bg-image: url('../assets/images/bg-night.svg');
  --bg-scrim: rgba(15,15,18,0.72);
}

html { transition: background-color 0.3s ease; }
body { transition: background-color 0.3s ease, color 0.3s ease; position: relative; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-scrim);
  transition: background-color 0.4s ease;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(15,15,18,0.9);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}

.logo { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; flex-shrink: 0; }
.logo-img { height: 70px; width: auto; display: block; }

nav {
  flex: 1 1 auto;
  min-width: 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

nav a { color: var(--text-muted); font-size: 0.95rem; }
nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); color: #0f0f12; }

.btn-solid {
  display: inline-block;
  background: var(--accent);
  color: #0f0f12;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(12deg); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  text-align: center;
  background-color: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image: var(--hero-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.4s ease;
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .hero {
  --hero-bg: url('../assets/images/tmdf-landscape-day.jpg');
}
html[data-theme="dark"] .hero {
  --hero-bg: url('../assets/images/fg-harbor-night.jpg');
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 20ch;
  margin: 0 auto 1.2rem;
  line-height: 1.25;
}
.hero p {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}
.hero-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.hero-card:nth-child(1) { transform: rotate(-2deg); }
.hero-card:nth-child(2) { transform: rotate(2deg); }
.hero-card:hover,
.hero-card.is-lifted {
  transform: translateY(-10px) rotate(0deg) scale(1.03);
  box-shadow: 0 22px 45px rgba(0,0,0,0.45);
  z-index: 2;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.hero-card-label .eyebrow { margin-bottom: 0.2rem; }
.hero-card-label strong { display: block; font-size: 1.2rem; color: #f2f2f0; }
.hero-card-label span.sub { color: #cfcfcf; font-size: 0.9rem; }

/* Sections */
section { padding: 5rem 0; border-top: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0.3rem 0 0; }
.section-head p { color: var(--text-muted); margin-top: 0.8rem; }

/* Verlag */
.verlag { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.verlag img { border-radius: 14px; border: 1px solid var(--border); }
.verlag-text p { color: var(--text-muted); margin-bottom: 1rem; }
.verlag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.verlag-grid div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.verlag-grid h3 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--accent); }
.verlag-grid p { margin: 0; font-size: 0.9rem; }

/* Spiele */
.spiele-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.spiel-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.spiel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.spiel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 10%, rgba(0,0,0,0.2) 60%, transparent);
  z-index: 1;
}
.spiel-content { position: relative; z-index: 2; padding: 1.8rem; }
.spiel-content h3 { font-size: 1.5rem; margin: 0.2rem 0 0.7rem; }
.spiel-content p { color: var(--text-muted); margin-bottom: 1rem; max-width: 45ch; }

/* Ankündigungen */
.timeline { max-width: 700px; margin: 0 auto; border-left: 2px solid var(--border); padding-left: 2rem; }
.timeline-item { position: relative; padding-bottom: 2.4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 0.3rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-date { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.timeline-item h3 { margin: 0.3rem 0 0.4rem; font-size: 1.15rem; }
.timeline-item p { color: var(--text-muted); margin: 0; }

/* Neuheiten */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.news-date { color: var(--accent); font-size: 0.85rem; }
.news-card h3 { margin: 0.5rem 0 0.5rem; font-size: 1.1rem; }
.news-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Newsletter */
.newsletter { text-align: center; }
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.newsletter p { color: var(--text-muted); max-width: 50ch; margin: 1rem auto 2rem; }
.newsletter-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.newsletter-form input[type="email"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  color: var(--text);
  min-width: 280px;
}
.fine-print { color: var(--text-muted); font-size: 0.85rem; }

.newsletter-form-cr {
  max-width: 440px;
  margin: 0 auto 0.6rem;
  text-align: left;
}

.nl-primary-row {
  display: flex;
  gap: 0.6rem;
}
.nl-primary-row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.nl-primary-row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.nl-primary-row .btn-solid {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
}

.nl-details { margin-top: 0.7rem; }
.nl-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}
.nl-details summary::-webkit-details-marker { display: none; }
.nl-details summary::before {
  content: "+";
  font-weight: 700;
  color: var(--accent);
  width: 1em;
  text-align: center;
}
.nl-details[open] summary::before { content: "–"; }
.nl-details summary:hover { color: var(--text); }

.nl-details-fields {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.nl-details-fields .form-field {
  flex: 1;
  min-width: 130px;
  margin-bottom: 0;
}
.nl-details-fields input[type="text"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}
.nl-details-fields label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.nl-anrede {
  width: 100%;
  margin-top: 0.6rem;
}
.nl-anrede-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.nl-anrede-options label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  margin-bottom: 0;
}

/* Galerie */
.filters {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 0.8rem;
}
.gallery-caption span.tag { color: var(--accent); display: block; margin-top: 0.2rem; }

/* Kontakt */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: inherit;
}
.form-field textarea { min-height: 120px; resize: vertical; }

.kontakt-info { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.kontakt-info h3 { margin-top: 0; }
.kontakt-info dt { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1.2rem; }
.kontakt-info dd { margin: 0.2rem 0 0; }
.kontakt-info dd a { color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 3.5rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand h3 { margin: 0 0 0.6rem; }
.footer-brand p { color: var(--text-muted); max-width: 34ch; }
.footer-social { margin-top: 0.9rem; display: flex; gap: 1rem; font-size: 0.85rem; }
.footer-social a { color: var(--text-muted); }
.footer-social a:hover { color: var(--accent); }
.footer-col h4 { margin: 0 0 0.8rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Newsletter-Archiv */
.newsletter-archive-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.newsletter-archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  flex-wrap: wrap;
}
.newsletter-archive-item .na-date {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.3rem;
}
.newsletter-archive-item h3 { margin: 0; font-size: 1.1rem; }
.newsletter-archive-item .btn { flex-shrink: 0; }

/* Einzelne Newsletter-Ausgabe */
.newsletter-issue {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.newsletter-issue .na-date {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.newsletter-issue h1 { font-size: 2rem; margin: 0.4rem 0 2rem; }
.newsletter-issue h2 { font-size: 1.3rem; margin-top: 2.4rem; margin-bottom: 0.8rem; color: var(--accent); }
.newsletter-issue p { color: var(--text-muted); margin: 0.5rem 0 1rem; }
.newsletter-issue img { border-radius: 12px; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.newsletter-issue .btn-solid { margin-top: 1rem; }
.newsletter-back { display: inline-block; margin-bottom: 2rem; color: var(--text-muted); font-size: 0.9rem; }
.newsletter-back:hover { color: var(--accent); }

/* Impressum / Datenschutz Seiten */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.legal-main h1 { font-size: 2.2rem; margin-bottom: 2rem; }
.legal-main h2 { font-size: 1.2rem; margin-top: 2.2rem; margin-bottom: 0.6rem; color: var(--accent); }
.legal-main p { margin: 0.3rem 0; color: var(--text-muted); }
.legal-main ul { margin: 0.5rem 0 1rem; padding-left: 1.3rem; color: var(--text-muted); }
.legal-main li { margin-bottom: 0.4rem; }
.legal-main h3 { font-size: 1.02rem; margin-top: 1.4rem; margin-bottom: 0.4rem; color: var(--text); }
.legal-main a { color: var(--accent); }
.legal-notice {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-alt);
}

@media (max-width: 860px) {
  .verlag, .spiele-grid, .news-grid, .kontakt-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: 1fr; max-width: 320px; }
  .hero-card:nth-child(1), .hero-card:nth-child(2) { transform: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .verlag-grid { grid-template-columns: 1fr; }
  .nl-primary-row { flex-direction: column; }
  .nl-primary-row .btn-solid { width: 100%; }
  nav ul { display: none; }
}

/* Lightbox */
.gallery-item { cursor: pointer; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.lightbox.is-open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: -10px; }
.lightbox-next { right: -10px; }

.lightbox-main { width: 100%; text-align: center; }
.lightbox-main img {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}
.lightbox-caption { color: #ddd; font-size: 0.9rem; margin-top: 0.8rem; }

.lightbox-filmstrip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  margin-top: 1.2rem;
  max-width: 100%;
  padding-bottom: 0.4rem;
}
.lightbox-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  background: none;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb.is-active,
.lightbox-thumb:hover { opacity: 1; border-color: var(--accent); }

@media (max-width: 640px) {
  .lightbox-nav { display: none; }
}