/* Projektseite und Projektübersicht
 *
 * Gemessen an der Event-Detailseite des Webflow-Stands (1280 px):
 *   Titel 44/61,6 px bei y=140 · Hero 940×496 · Textblock 1120 px ab y=758
 *   Text 20/30 px · h3 30 px · Galerie-Block +70 px · Knopf 56 px hoch
 * Neu gegenüber dem Original: Zeitraum/Ort, Veranstaltungsliste, Katalog-Hinweis.
 */

/* Titel: semantisch h1 (das Original hat keine), visuell auf der h2-Skala,
   damit die gemessene Größe erhalten bleibt. */
.projekt-titel {
  font-size: 32px; line-height: 1.4; margin: 0;
}
@media screen and (max-width: 991px) { .projekt-titel { font-size: 32px; } }
@media screen and (max-width: 767px) { .projekt-titel { font-size: 30px; } }
@media screen and (max-width: 479px) { .projekt-titel { font-size: 28px; } }
@media screen and (min-width: 1280px) { .projekt-titel { font-size: 44px; } }
@media screen and (min-width: 1440px) { .projekt-titel { font-size: 52px; } }

.projekt-unter {
  margin: 10px 0 0; font-size: 20px; line-height: 1.5;
  color: var(--dunkel-text-leise); max-width: 62ch;
}
.projekt-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.projekt-meta li { display: flex; gap: 8px; align-items: baseline; }
.projekt-meta li::before { content: ""; width: 6px; height: 6px; background: var(--akzent); flex: none; transform: translateY(-3px); }

/* Aufmacherbild — nie über die eigene Auflösung hinaus */
.projekt-hero { margin: 20px 0 0; max-width: 940px; }
@media screen and (min-width: 1440px) { .projekt-hero { margin-top: 32px; } }
.projekt-hero img {
  width: 100%; height: auto; aspect-ratio: 940 / 496; object-fit: cover;
  max-width: min(100%, var(--eigen, 100%));
  background: var(--dunkel-sektion);
}
.projekt-hero figcaption { padding-top: 10px; }

/* Lesetext */
.projekt-text { margin-top: 30px; font-size: 20px; line-height: 30px; color: var(--dunkel-text); }
@media screen and (min-width: 1280px) { .projekt-text { margin-top: 40px; } }
@media screen and (min-width: 1440px) { .projekt-text { margin-top: 48px; } }
@media screen and (max-width: 767px) { .projekt-text { font-size: 18px; line-height: 28px; } }
.projekt-text h2, .projekt-text h3 { font-size: 30px; line-height: 1.3; margin: 40px 0 14px; }
.projekt-text h2:first-child, .projekt-text h3:first-child { margin-top: 0; }
.projekt-text p { margin: 0 0 20px; }
.projekt-text ul, .projekt-text ol { margin: 0 0 20px; padding-left: 1.2em; }
.projekt-text li { margin-bottom: 6px; }
.projekt-text a { color: var(--akzent); text-underline-offset: 3px; }
.projekt-text a:hover { color: var(--dunkel-text); }
.projekt-text figure { margin: 30px 0; }
.projekt-text figure img { width: auto; max-width: 100%; height: auto; }
.projekt-text figcaption { padding-top: 8px; font-size: 16px; line-height: 1.5; color: var(--dunkel-text-leise); }
.projekt-text blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--akzent); color: var(--dunkel-text-leise); }

/* Abschnitte innerhalb der Projektseite */
.projekt-block { margin-top: 70px; }
.projekt-block > h2 { font-size: 30px; line-height: 1.3; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--dunkel-rand); }

/* Veranstaltungen: Datum links, Inhalt rechts */
.veranstaltungen { margin: 0; padding: 0; list-style: none; }
.veranstaltungen li {
  display: grid; grid-template-columns: 150px 1fr; gap: 6px 28px;
  padding: 18px 0; border-bottom: 1px solid var(--dunkel-rand);
}
.veranstaltungen li:last-child { border-bottom: 0; }
.veranstaltungen time, .veranstaltungen .ohne-datum { font-variant-numeric: tabular-nums; color: var(--dunkel-text-leise); padding-top: 3px; }
.veranstaltungen h3 { font-family: var(--schrift-text); font-style: normal; font-weight: 600; font-size: 20px; line-height: 1.4; margin: 0; color: var(--dunkel-text); }
.veranstaltungen p { margin: 4px 0 0; font-size: 17px; color: var(--dunkel-text-leise); }
.veranstaltungen a { display: block; padding-block: 8px; margin-block: -8px; color: inherit; text-decoration: none; }
.veranstaltungen a:hover h3 { color: var(--akzent); }
@media screen and (max-width: 600px) {
  .veranstaltungen li { grid-template-columns: 1fr; gap: 4px; }
}

/* Katalog-Hinweis: Cover links, Text rechts */
.katalog-hinweis {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: 24px; background: var(--dunkel-sektion);
}
.katalog-hinweis img { width: 120px; height: auto; display: block; }
.katalog-hinweis h3 { font-family: var(--schrift-text); font-style: normal; font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.katalog-hinweis p { margin: 0 0 12px; color: var(--dunkel-text-leise); }
@media screen and (max-width: 479px) { .katalog-hinweis { grid-template-columns: 1fr; } }

.projekt-fussleiste { margin-top: 70px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* ---------------------------------------------------- Übersicht
 * Angelehnt an die Events-Liste des Originals: laufende Nummer, Titel,
 * Bild, Kurztext. Sechs Projekte, chronologisch.
 */
.projektliste { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.projektkarte {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--dunkel-rand);
  text-decoration: none; color: inherit;
}
.projektliste li:last-child .projektkarte { border-bottom: 1px solid var(--dunkel-rand); }
.projektkarte:hover .projektkarte-titel { color: var(--akzent); }
.projektkarte:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; }
.projektkarte-nr { font-family: var(--schrift-text); font-size: 14px; letter-spacing: .12em; color: var(--dunkel-text-leise); }
.projektkarte-titel { font-size: 32px; line-height: 1.25; margin: 8px 0 10px; transition: color .2s ease; }
@media screen and (min-width: 1280px) { .projektkarte-titel { font-size: 36px; } }
.projektkarte-unter { margin: 0 0 14px; font-size: 18px; color: var(--dunkel-text-leise); max-width: 46ch; }
.projektkarte-bild { aspect-ratio: 3 / 2; overflow: hidden; background: var(--dunkel-sektion); }
.projektkarte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.projektkarte:hover .projektkarte-bild img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .projektkarte-bild img { transition: none; } .projektkarte:hover .projektkarte-bild img { transform: none; } }
@media screen and (max-width: 767px) {
  .projektkarte { grid-template-columns: 1fr; gap: 20px 0; padding: 28px 0; }
  .projektkarte-bild { order: -1; }
  .projektkarte-titel { font-size: 28px; }
}
