/*
Theme Name: Dîner en Blanc
Theme URI: https://diner-en-blanc.lionsclub-eppstein.de
Description: Custom Theme für das Charity Dîner en Blanc des Lions Club Eppstein
Author: Lions Club Eppstein
Version: 1.0
Text Domain: diner-en-blanc
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #f5f5f5;
  --gray-mid: #888;
  --accent: #c8a96e;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
}

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

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

/* === Typography === */
h1, h2, h3 {
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* === Header === */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  z-index: 100;
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo img { height: 50px; width: auto; }

/* === Navigation === */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.main-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  border-bottom-color: var(--black);
}

/* Hamburger */
.lions-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex-shrink: 0;
}
.lions-badge img { height: 36px; width: 36px; object-fit: contain; }
.lions-badge span {
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: 0.3s;
}

/* === Hero === */
.hero {
  position: relative;
  text-align: center;
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  padding: 2rem;
}
.hero-logo { max-width: 420px; margin: 0 auto 1rem; filter: invert(1) brightness(2); }
.hero-presenter {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.8rem;
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.hero-date {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}
.hero .btn-hero {
  border: 2px solid #ffffff;
  color: #ffffff;
}
.hero .btn-hero:hover {
  background: var(--white);
  color: var(--black);
}

/* === Ticker Bar === */
.ticker-bar {
  background: var(--black);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0;
}
.ticker-content {
  display: inline-block;
  animation: ticker 20s linear infinite;
}
.ticker-content span {
  display: inline-block;
  padding: 0 3rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--white);
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* === CTA Button === */
.btn {
  display: inline-block;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
  border: 2px solid var(--black);
  transition: 0.2s;
}
.btn:hover {
  background: var(--black);
  color: var(--white);
}

/* === Teaser Cards === */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}
.teaser-card {
  padding: 2rem;
  border: 1px solid #eee;
  text-align: center;
  transition: box-shadow 0.2s;
}
.teaser-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.teaser-card h3 { margin-bottom: 0.8rem; }
.teaser-card p { color: var(--gray-mid); font-size: 0.95rem; }
.teaser-card .btn { margin-top: 1rem; font-size: 0.9rem; padding: 0.5rem 1.5rem; }

/* === Page Content === */
.page-content {
  padding: 3rem 0 4rem;
}
.page-content h1 { margin-bottom: 2rem; text-align: center; }
.page-content .wp-block-image { margin: 0 -1.5rem 2rem; }
.page-content .wp-block-buttons { text-align: center; margin-top: 2rem; }
.page-content .wp-block-button { display: inline-block; }
.page-content .wp-block-image { text-align: center; margin: 1.5rem 0; }
.page-content .wp-block-image figure { display: inline-block; }
.page-content .wp-block-image img { max-width: 100%; }
.page-content .wp-block-image figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-mid);
  padding: 0.5rem 0;
  white-space: nowrap;
  width: 100%;
}

/* Info Boxes (Für Gäste) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.info-box {
  padding: 1.5rem;
  background: var(--gray);
  text-align: center;
}
.info-box strong {
  display: block;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* === Sponsoren === */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  align-items: center;
}
.sponsor-item {
  text-align: center;
  padding: 1.5rem;
}
.sponsor-item img {
  max-height: 80px;
  margin: 0 auto 0.8rem;
  object-fit: contain;
}
.sponsor-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-mid);
}
.sponsors-bar {
  background: var(--gray);
  padding: 2rem 0;
  text-align: center;
}
.sponsors-bar h2 { font-size: 1.3rem; margin-bottom: 1rem; }

/* === Footer === */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  text-align: center;
}
.footer-lion { height: 60px; margin: 0 auto 1rem; }
.site-footer a { color: var(--white); opacity: 0.7; }
.site-footer a:hover { opacity: 1; color: var(--accent); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.footer-copy { font-size: 0.8rem; opacity: 0.5; margin-top: 1.5rem; }

/* === Gallery === */
.gallery-section { margin-bottom: 3rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray);
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.6rem;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.8rem;
}
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: var(--white);
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-content { max-width: 90vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img, .lightbox-video { max-width: 90vw; max-height: 80vh; object-fit: contain; }
.lightbox-title { color: var(--white); margin-top: 1rem; font-size: 1rem; text-align: center; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1001;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1rem; right: 1.5rem; font-size: 3rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid #eee; }
  .main-nav a { display: block; padding: 0.8rem 0; }
  .hero { height: 50vh; min-height: 350px; }
  .hero-logo { max-width: 250px; }
}
