/* =========================================================
   GCJZ Weiden – Stylesheet
   Design-Tokens: siehe Kommentare unten.
   ========================================================= */

:root {
  /* Farben – abgeleitet aus dem Vereinslogo */
  --paper:        #FAFAFC;   /* warmer, fast weißer Seitenhintergrund */
  --paper-dim:    #EFF0F8;   /* Karten / abgesetzte Flächen */
  --ink:          #262A3B;   /* Haupttext, dunkles Blau-Grau */
  --ink-soft:     #5B5D66;   /* gedämpfter Text, angelehnt an das Logo-Grau */
  --pomegranate:  #4351A5;   /* Hauptakzent – Indigo aus dem Logo */
  --pomegranate-dark: #333E85;
  --teal:         #8B93CC;   /* Zweitakzent – helles Periwinkle aus dem Logo */
  --brass:        #A9822F;   /* Messing – Gedenktafeln, Stolperstein-Anklang */
  --line:         #DEE0EE;   /* feine Trennlinien */
  --white:        #FFFFFF;

  /* Type-Scale */
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.8rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 3.8rem);
}

@font-face { /* Fallback-Deklaration nicht nötig, Google Fonts via <link> */ }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em 0;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1.1em 0; }

a { color: var(--pomegranate); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--pomegranate-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 0.9rem;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
}

.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  font-family: 'Karla', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

nav.main-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--pomegranate);
  color: var(--pomegranate-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  nav.main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.9rem;
    padding: 1rem 0 0.4rem;
  }
  nav.main-nav.open { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
}

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

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero p.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pomegranate);
  color: var(--white);
}
.btn-primary:hover { background: var(--pomegranate-dark); color: var(--white); }

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--pomegranate); color: var(--pomegranate-dark); }

/* ---------- Interlace divider (Signatur-Element) ---------- */

.interlace {
  height: 22px;
  width: 100%;
  background-image: url('assets/interlace.svg');
  background-repeat: repeat-x;
  background-size: 66px 22px;
  background-position: center;
  opacity: 0.85;
  margin: 0;
}

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

section.block {
  padding: 3.6rem 0;
}

section.block + section.block {
  border-top: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
}

@media (max-width: 750px) {
  .two-col { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem 1.7rem;
}

.card + .card { margin-top: 1.1rem; }

/* ---------- Event "plaque" cards ---------- */

.event-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem;
  align-items: start;
}

.event-card + .event-card { margin-top: 1rem; }

.event-plaque {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 0.6rem 0.3rem;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  border: 2px solid var(--brass);
}

.event-plaque .day {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.event-plaque .month {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
  color: var(--brass);
}

.event-title {
  margin: 0 0 0.3rem 0;
  font-size: 1.15rem;
}

.event-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.event-empty {
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.event-archive-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 2rem;
}

/* ---------- Feiertage ---------- */

.holiday-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem;
  align-items: start;
}

.holiday-card + .holiday-card { margin-top: 1rem; }

.holiday-plaque {
  border-radius: 4px;
  padding: 0.6rem 0.3rem;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  border: 2px solid var(--brass);
  background: var(--ink);
  color: var(--paper);
}

.holiday-plaque .day {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.holiday-plaque .month {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
  color: var(--brass);
}

.holiday-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.holiday-tag--christlich { background: rgba(67, 81, 165, 0.12); color: var(--pomegranate-dark); }
.holiday-tag--juedisch { background: rgba(139, 147, 204, 0.25); color: var(--ink); }

.holiday-title {
  margin: 0 0 0.3rem 0;
  font-size: 1.15rem;
}

.holiday-kurzinfo { margin: 0 0 0.6rem 0; }

.holiday-card details {
  margin-top: 0.4rem;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.holiday-card details summary {
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--pomegranate);
  list-style: none;
}

.holiday-card details summary::-webkit-details-marker { display: none; }
.holiday-card details summary::before { content: '+ '; }
.holiday-card details[open] summary::before { content: '– '; }

.holiday-card details .holiday-hintergrund { margin-top: 0.6rem; }

.holiday-widget-list .holiday-card { padding: 1rem; }

/* Startseiten-Vorschau: kompaktere Variante ohne aufklappbaren Hintergrund */
.holiday-preview-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* ---------- FAQ ---------- */

details.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.9rem;
}

details.faq-item summary {
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  font-family: 'Karla', sans-serif;
  font-size: 1.4rem;
  color: var(--pomegranate);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.faq-item .faq-body {
  padding-top: 0.9rem;
  color: var(--ink-soft);
}

details.faq-item .faq-body a { color: var(--teal); }

.faq-group-title {
  margin-top: 2.6rem;
  margin-bottom: 1rem;
}

.faq-group-title:first-of-type { margin-top: 0; }

.source-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--brass);
  padding-left: 0.9rem;
  margin-top: 2.5rem;
}

/* ---------- Impressum ---------- */

.legal dt {
  font-weight: 700;
  margin-top: 1.1rem;
}
.legal dd { margin: 0.15rem 0 0 0; color: var(--ink-soft); }

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

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--pomegranate); }

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Rundbriefe ---------- */

.rundbrief-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem 1.5rem;
}

.rundbrief-card + .rundbrief-card { margin-top: 1rem; }

.rundbrief-date {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--brass);
  border-radius: 4px;
  text-align: center;
  padding: 0.6rem 0.3rem;
  line-height: 1.15;
}

.rundbrief-date .rb-month {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}
.rundbrief-date .rb-year {
  display: block;
  font-size: 0.75rem;
  color: var(--brass);
  margin-top: 0.15rem;
}

.rundbrief-title { margin: 0 0 0.35rem 0; font-size: 1.1rem; }
.rundbrief-highlights {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.rundbrief-highlights li { margin-bottom: 0.2rem; }

@media (max-width: 650px) {
  .rundbrief-card { grid-template-columns: 1fr; text-align: left; }
  .rundbrief-date { justify-self: start; width: 96px; }
}

/* ---------- Platzhalter-Kachel (z. B. Medien im Aufbau) ---------- */

.placeholder-block {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 2.4rem 2rem;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper-dim);
}

.placeholder-block h3 {
  color: var(--ink);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.media-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
  text-align: left;
}

.media-type-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}

.media-type-card .eyebrow { margin-bottom: 0.4rem; }

/* ---------- Videos (Medien) ---------- */

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-thumb-card {
  display: block;
  width: 320px;
  max-width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.video-thumb-card:hover,
.video-thumb-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 30, 40, 0.1);
}

.video-thumb-img-wrap {
  position: relative;
  line-height: 0;
}

.video-thumb-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.video-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-badge span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20, 20, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}

.video-thumb-card:hover .video-play-badge span,
.video-thumb-card:focus-visible .video-play-badge span {
  background: var(--pomegranate);
}

.video-play-badge svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  margin-left: 3px;
}

.video-thumb-body {
  padding: 0.9rem 1rem;
}

.video-caption {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.4;
}

/* Lightbox */

.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.88);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-lightbox.open { display: flex; }

.video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
}

.video-lightbox-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-lightbox-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.video-lightbox-close:hover { background: var(--pomegranate); }

/* ---------- Weiterführende Links ---------- */

.link-group { margin-bottom: 2.4rem; }
.link-group:last-child { margin-bottom: 0; }

.link-group h3 {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.link-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}

.link-list a {
  font-weight: 700;
  text-decoration: none;
}
.link-list a:hover { text-decoration: underline; }

.link-list p {
  margin: 0.3rem 0 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
