/* ============================================================
   Chlausenzunft Biberist – gemeinsames Stylesheet
   Warmes Rot/Gold-Samichlaus-Design, responsiv
   ============================================================ */

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

:root {
  --red:       #8B1515;
  --red-dark:  #6b0f0f;
  --red-deep:  #5c0a0a;
  --gold:      #c8950a;
  --gold-soft: #e0b84a;
  --bg:        #f2e6de;
  --surface:   #ffffff;
  --surface-2: #fdf8f5;
  --border:    #ddc8b8;
  --text:      #2c1810;
  --muted:     #8a6a58;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: linear-gradient(160deg, var(--red-deep) 0%, var(--red) 55%, var(--red-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.25rem 1.3rem;
}
.site-header::after {
  content: '❄  ❄  ❄  ❄  ❄  ❄  ❄  ❄  ❄  ❄  ❄  ❄';
  position: absolute; bottom: 0.35rem; left: 0; right: 0;
  text-align: center; font-size: 0.9rem; opacity: 0.16; letter-spacing: 0.45rem;
  pointer-events: none;
}
.header-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem;
}
.logo-badge {
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  padding: 9px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.3);
  line-height: 0;
}
.logo-badge img { width: 68px; height: auto; }
.header-text h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  line-height: 1.15;
}
.header-text .tagline {
  margin-top: 0.3rem;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(44,24,16,0.06);
}
.nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding: 0.55rem 1.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--bg); text-decoration: none; }
.site-nav a.active { color: var(--red); background: var(--bg); }
.site-nav a.active::after {
  content: ''; display: block; height: 2px; margin-top: 3px;
  background: var(--gold); border-radius: 2px;
}
.nav-spacer { margin-left: auto; }
.site-nav a.nav-cta {
  background: linear-gradient(135deg, var(--red) 0%, #b01c1c 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(139,21,21,0.3);
}
.site-nav a.nav-cta:hover {
  background: linear-gradient(135deg, #a01818, #c82020);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================================
   LAYOUT
   ============================================================ */
main { flex: 1 0 auto; }
.container { max-width: 960px; margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }

.page-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--red-dark);
  margin-bottom: 1.3rem;
}
.page-title small {
  display: block; font-size: 0.95rem; font-weight: 600;
  color: var(--muted); margin-top: 0.2rem; letter-spacing: 0.02em;
}

/* ============================================================
   WILLKOMMEN / SPLIT SECTION
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(44,24,16,0.09);
  overflow: hidden;
}
.split .split-img { height: 100%; }
.split .split-img img { width: 100%; height: 100%; object-fit: cover; }
.split .split-body { padding: 2rem 2rem 2.2rem; }
.split .split-body h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  color: var(--red-dark);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.split .split-body p { color: var(--text); text-align: justify; }
.split.reverse .split-img { order: 2; }

/* ============================================================
   INFO CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 2px 12px rgba(44,24,16,0.07);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(44,24,16,0.13); }
.card-icon {
  width: 2.6rem; height: 2.6rem;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 0.9rem;
  box-shadow: 0 2px 8px rgba(139,21,21,0.25);
}
.card h3 { color: var(--red-dark); font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--text); font-size: 0.93rem; text-align: justify; }
.card .card-more {
  margin-top: auto; padding-top: 0.8rem;
  color: var(--red); font-weight: 700; font-size: 0.88rem;
}

/* ============================================================
   INFO / HIGHLIGHT BOXES
   ============================================================ */
.info-box {
  background: var(--surface-2);
  border: 1px solid #e0ccb4;
  border-left: 4px solid var(--gold);
  border-radius: 0.75rem;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.4rem;
}
.info-box p { margin-bottom: 0.5rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--red-dark); }

.highlight { color: var(--red); font-weight: 700; }

.deadline-strip {
  background: linear-gradient(135deg, #fff8dc, #fff3c0);
  border: 1.5px solid #e8c840;
  border-radius: 0.75rem;
  padding: 0.95rem 1.25rem;
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.95rem;
}
.deadline-strip strong { color: #5a3c00; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, var(--red) 0%, #b01c1c 100%);
  color: #fff; font-size: 1.02rem; font-weight: 700; letter-spacing: 0.02em;
  border: none; border-radius: 0.75rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(139,21,21,0.3);
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.15s;
}
.btn:hover {
  background: linear-gradient(135deg, #a01818, #c82020);
  box-shadow: 0 6px 22px rgba(139,21,21,0.42);
  transform: translateY(-2px); text-decoration: none; color: #fff;
}
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 1.1rem; padding: 1rem 2.2rem; }

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem; margin-top: 1rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 12px rgba(44,24,16,0.07);
}
.contact-card h3 {
  color: var(--red-dark); font-size: 1.15rem; margin-bottom: 1rem;
  padding-bottom: 0.7rem; border-bottom: 2px solid var(--bg);
}
.contact-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .ico {
  width: 2.1rem; height: 2.1rem; flex-shrink: 0;
  background: var(--bg); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1.05rem;
}
.contact-row .ico img { width: 1.15rem; height: 1.15rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.gallery-grid a {
  display: block; overflow: hidden; border-radius: 0.5rem;
  aspect-ratio: 3 / 4; background: #ddd;
  box-shadow: 0 1px 6px rgba(44,24,16,0.1);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid a:hover img { transform: scale(1.07); }

/* Lightbox */
.lb-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,12,8,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  border-radius: 0.4rem; box-shadow: 0 6px 40px rgba(0,0,0,0.6);
}
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff;
  border: none; cursor: pointer; font-size: 2rem; line-height: 1;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lb-btn:hover { background: rgba(255,255,255,0.28); }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-close { top: 1rem; right: 1rem; font-size: 1.5rem; }
.lb-counter {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.9rem; letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--red-dark) 0%, var(--red-deep) 100%);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 1.8rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.8;
}
.site-footer strong { color: #fff; }
.site-footer a { color: var(--gold-soft); }
.site-footer .iban {
  display: inline-block; margin-top: 0.4rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .split .split-img { max-height: 280px; }
  .split.reverse .split-img { order: 0; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header-inner { gap: 0.9rem; }
  .logo-badge img { width: 54px; }
  .nav-inner { gap: 0.15rem 0.2rem; padding: 0.5rem 0.75rem; }
  .site-nav a { padding: 0.45rem 0.65rem; font-size: 0.88rem; }
  .nav-spacer { margin-left: 0; flex-basis: 100%; height: 0; }
}
