/*
  Jubiläumsseite 375 Jahre
  Nur für /jubilaeum. Farben aus public/styles/root.css.
*/

.jubilaeum-logo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 72px auto 32px; /* auf dem Handy unter dem Menü-Symbol (.toggle) */
}

/* basic.css macht aus jedem <article> eine Flex-Zeile – hier normaler Textfluss */
article.jubilaeum {
  display: block;
  width: 100%;
  max-width: none;
}

.jubilaeum section {
  margin-top: 48px;
  scroll-margin-top: 196px; /* Handy: Kopf (106 px) plus mitlaufendes Menü-Symbol (75 px) */
}

/* Überschriften */
.jubilaeum h1 {
  color: var(--green-main);
  font-size: 2.6rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.jubilaeum h2 {
  position: relative;
  width: fit-content;
  color: var(--green-900);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  z-index: 1;
}

/* gleiche Unterstreichung wie .marker */
.jubilaeum h2::before {
  content: '';
  position: absolute;
  background-color: var(--green-main);
  height: 1rem;
  width: 99%;
  top: 70%;
  left: -5px;
  opacity: 0.2;
  z-index: -1;
  border-radius: 10px;
}

/* wie die .subheading-Zwischenüberschriften der übrigen Seiten */
.jubilaeum h3 {
  font-family: "Merriweather Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 3rem;
  text-transform: uppercase;
  text-align: left; /* basic.css zentriert article h3 */
  color: var(--green-600);
  border-bottom: 1px solid var(--green-600);
  margin: 32px 0 8px;
}

.jubilaeum p,
.jubilaeum li {
  font-size: 1.5rem;
  line-height: 2.4rem;
}

.jubilaeum p {
  margin: 0 0 12px;
}

.jubilaeum .jubilaeum-termin {
  font-size: 1.8rem;
  color: var(--green-main);
  margin-bottom: 20px;
}

.jubilaeum a {
  text-decoration: underline;
}

/* Inhaltsverzeichnis – header.css gestaltet jedes <nav> als Hauptmenü, hier alles zurücksetzen */
.jubilaeum nav,
.jubilaeum nav.active {
  position: static;
  display: block;
  left: auto;
  top: auto;
  width: auto;
  margin: 24px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--green-main);
  background-color: var(--gray-050);
  transition: none;
}

.jubilaeum nav ul {
  list-style: none;
}

.jubilaeum nav li {
  margin: 4px 0;
}

.jubilaeum nav a {
  display: inline;
  font-size: inherit;
  padding: 0;
}

.jubilaeum nav a::before {
  content: '→ ';
  display: inline-block;
  margin-right: 6px;
  text-decoration: none;
}

/* Karte zum Sternmarsch */
.jubilaeum figure {
  margin: 24px 0 8px;
}

.jubilaeum figure a {
  display: block;
}

.jubilaeum figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gray-200);
}

.jubilaeum figcaption {
  margin-top: 8px;
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--gray-main);
}

/* Listen (Instagram/Facebook) */
.jubilaeum section ul {
  margin: 8px 0 16px 20px;
}

/* Tabellen wie Termine und Königstabelle */
.jubilaeum table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  line-height: 2rem;
  margin: 0 0 24px;
}

/* Tageskopf wie der Tabellenkopf der Treffpunkte (thead) */
.jubilaeum caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--green-main);
  padding: 8px 12px;
}

.jubilaeum tr {
  border-bottom: 1px solid var(--gray-200);
}

.jubilaeum tbody tr:nth-child(even) {
  background-color: var(--gray-050);
}

.jubilaeum th,
.jubilaeum td,
.jubilaeum table td:first-child {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

/* Zeitspalte */
.jubilaeum tbody th {
  white-space: nowrap;
  font-weight: 700;
  color: var(--green-main);
  width: 6.5em; /* gleiche Zeitspalte in allen Tagen */
}

.jubilaeum small {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.9em;
  color: var(--gray-main);
}

/* Treffpunkte: Tabelle mit Kopfzeile */
.jubilaeum thead tr {
  background-color: var(--green-main);
  color: #ffffff;
  border: none;
}

.jubilaeum thead + tbody th {
  white-space: normal;
  width: auto;
}

@media screen and (max-width: 640px) {
  /* Treffpunkte auf dem Handy als Blöcke statt drei Spalten */
  .jubilaeum thead {
    display: none;
  }

  .jubilaeum thead + tbody tr,
  .jubilaeum thead + tbody th,
  .jubilaeum thead + tbody td {
    display: block;
  }

  .jubilaeum thead + tbody tr {
    padding: 4px 0 8px;
  }

  .jubilaeum thead + tbody th {
    padding-bottom: 0;
  }

  .jubilaeum thead + tbody td {
    padding-top: 4px;
    padding-bottom: 0;
  }

  .jubilaeum thead + tbody td:last-child::before {
    content: 'Musik: ';
    color: var(--gray-main);
  }
}

@media screen and (min-width: 992px) {
  .jubilaeum-logo {
    margin: 40px auto 48px; /* Desktop: Menü steht im Kopf, kein Toggle */
  }

  .jubilaeum section {
    margin-top: 64px;
    scroll-margin-top: 136px; /* Desktop: nur der Kopf (106 px) samt Schatten */
  }

  .jubilaeum h1 {
    font-size: 4rem;
  }

  .jubilaeum h2 {
    font-size: 3.2rem;
  }

  .jubilaeum h3 {
    font-size: 2rem;
    line-height: 4rem;
  }

  .jubilaeum p,
  .jubilaeum li {
    font-size: 1.8rem;
    line-height: 3rem;
  }

  .jubilaeum .jubilaeum-termin {
    font-size: 2.2rem;
  }

  .jubilaeum table {
    font-size: 1.7rem;
    line-height: 2.6rem;
  }

  .jubilaeum caption {
    padding: 10px 16px;
  }

  .jubilaeum th,
  .jubilaeum td,
  .jubilaeum table td:first-child {
    padding: 10px 16px;
  }
}
