/* ═══════════════════════════════════════════════════════════════════
   FAMILIENFEST — /familienfest/  ([tp_familie])
   Kapitelrhythmus: Sand → Papier → Tinte. Keine zwei gleichen Materialien
   hintereinander, wie im Fundament (neuaufbau.css) beschrieben.
   Alles unter .tp-fam gescopet; der Loader zieht diese Datei automatisch.
   Nur Tokens, keine rohen Farb- oder Größenwerte.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Kapitel 1: Familientag-Zeile unter dem Lead ───────────────────
   Kapitelkopf und Lead stehen auf der Mittelachse — die Zeile muss mit,
   sonst hat der Block zwei Achsen (genau der Fehler, der beim Neuaufbau
   zu Recht bemängelt wurde). `width: fit-content` + `margin-inline: auto`
   statt text-align, weil das Element selbst ein Flex-Container ist. */
.tp-fam .tp-fam__tag{
  display: flex;
  width: fit-content;
  align-items: center;
  gap: var(--tp-s2);
  margin: var(--tp-s4) auto 0;
  padding: var(--tp-s2) var(--tp-s3);
  border: 1px solid var(--tp-hair-l);
  border-radius: var(--tp-r-ui);
  background: var(--tp-paper);
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-mono);
  letter-spacing: var(--tp-ls-mono);
  text-transform: uppercase;
  color: var(--tp-ink-2);
}
.tp-fam .tp-fam__tag-dot{
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--tp-red);
}

/* ── Kapitel 2: die Attraktionen ─────────────────────────────────
   Sechs Spuren, jede Karte über zwei = drei pro Reihe. Dieselbe Mechanik
   wie bei den Team-Karten, damit eine angebrochene letzte Reihe MITTIG
   sitzt statt links zu kleben (fünf Karten = 3 + 2). */
.tp-fam .tp-fam-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--nb-gap);
}
.tp-fam .tp-fam-grid > *{ grid-column: span 2; }
.tp-fam .tp-fam-grid > :last-child:nth-child(3n + 1){ grid-column: 3 / span 2; }
.tp-fam .tp-fam-grid > :nth-last-child(2):nth-child(3n + 1){ grid-column: 2 / span 2; }

.tp-fam .tp-fam-card{
  display: flex;
  flex-direction: column;
  gap: var(--tp-s2);
  padding: var(--tp-s4);
  background: var(--tp-surface);
  border: 1px solid var(--tp-hair-l);
  border-radius: var(--tp-r-fl);
}
/* Kopfzeile der Kachel: Symbol links, laufende Nummer rechts.
   Das Symbol ist der Blickfang, die Nummer bleibt die stille Ordnung. */
.tp-fam .tp-fam-card__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-s3);
  margin-bottom: var(--tp-s2);
}
.tp-fam .tp-fam-card__icon{
  display: block;
  color: var(--tp-red-ink);
  flex: none;
}
.tp-fam .tp-fam-card__no{
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-mono);
  letter-spacing: var(--tp-ls-mono);
  color: var(--tp-ink-3);
}
.tp-fam .tp-fam-card__h{
  font-family: var(--tp-font-display);
  font-weight: 400;
  font-size: var(--tp-fs-d3);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--tp-ink);
}
.tp-fam .tp-fam-card__t{
  margin: 0;
  font-size: var(--tp-fs-body);
  line-height: var(--tp-lh-body);
  color: var(--tp-ink-2);
}

/* Wann/Kosten erscheinen erst, wenn der Verein sie pflegt — bis dahin
   rendert das Markup sie gar nicht. Zwei Spalten: Etikett, Wert. */
.tp-fam .tp-fam-card__meta{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--tp-s2) var(--tp-s3);
  margin: var(--tp-s2) 0 0;
  padding-top: var(--tp-s3);
  border-top: 1px solid var(--tp-hair-l);
}
.tp-fam .tp-fam-card__meta dt{
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-mono);
  letter-spacing: var(--tp-ls-mono);
  text-transform: uppercase;
  color: var(--tp-ink-3);
}
.tp-fam .tp-fam-card__meta dd{
  margin: 0;
  font-size: var(--tp-fs-body);
  line-height: var(--tp-lh-body);
  color: var(--tp-ink);
}

/* ── Foto-Zäsur zwischen Kacheln und Schluss ──────────────────────
   Randabfallend über die volle Breite, wie die Zäsur auf der Startseite.
   Das Motiv ist HOCHFORMAT (2268×4032) — deshalb ein fester Bandausschnitt
   per object-fit statt der natürlichen Höhe, sonst wäre das Band mannshoch.
   object-position hält die Hüpfburg in der Bildmitte. */
.tp-fam-foto{
  margin: 0;
  position: relative;
  background: var(--tp-d1, #171A20);
}
.tp-fam-foto__img{
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  object-fit: cover;
  /* 34% statt Mitte: schneidet die Werbeaufschrift des Verleihers („Mich kann
     man mieten") am unteren Bildrand weg, ohne die Hüpfburg anzuschneiden. */
  object-position: center 34%;
}
/* Unterschrift NICHT ins Bild legen: Das Motiv ist stellenweise fast weiß
   (Rutsche), dort verschwand die Zeile trotz Verlauf. Eigene Leiste darunter —
   dasselbe Muster wie beim Gruppenfoto auf /team/, also wiedererkennbar. */
.tp-fam-foto__cap{
  margin: 0;
  padding: var(--tp-s3) var(--tp-s4);
  background: var(--tp-d1, #171A20);
  border-top: 1px solid var(--tp-hair-d);
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-mono);
  letter-spacing: var(--tp-ls-mono);
  text-transform: uppercase;
  color: var(--tp-ondark-2);
  text-align: center;
}

/* ── Kapitel 3: Hinweise + Schluss-Handlung (dunkel) ─────────────── */
.tp-fam .tp-fam-hinweise{
  margin: 0 0 var(--tp-s5);
}
.tp-fam .tp-fam-hinweise__h{
  font-family: var(--tp-font-display);
  font-weight: 400;
  font-size: var(--tp-fs-d3);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--tp-ondark);
  margin: 0 0 var(--tp-s3);
}
.tp-fam .tp-fam-hinweise ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--tp-s2);
  max-width: var(--tp-measure);
}
.tp-fam .tp-fam-hinweise li{
  position: relative;
  padding-left: var(--tp-s4);
  font-size: var(--tp-fs-body);
  line-height: var(--tp-lh-body);
  color: var(--tp-ondark-2);
}
.tp-fam .tp-fam-hinweise li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 14px;
  height: 1px;
  background: var(--tp-red-lift);
}
.tp-fam .tp-fam-hinweise strong{ color: var(--tp-ondark); font-weight: 600; }

/* Schluss-Karte — gleiche Bauform wie der Starter-Block auf /tickets/ und
   der Besucher-Block auf /mitpullen/, damit man sie wiedererkennt. */
.tp-fam .tp-fam-cta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--tp-s5);
  padding: var(--tp-s5);
  background: var(--tp-d2);
  border: 1px solid var(--tp-hair-d);
  border-radius: var(--tp-r-fl);
}
.tp-fam .tp-fam-cta__txt{ flex: 1 1 420px; }
.tp-fam .tp-fam-cta__h{
  font-family: var(--tp-font-display);
  font-weight: 400;
  font-size: var(--tp-fs-d3);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--tp-ondark);
  margin: 0 0 var(--tp-s2);
}
.tp-fam .tp-fam-cta__p{
  margin: 0;
  font-size: var(--tp-fs-body);
  line-height: var(--tp-lh-body);
  color: var(--tp-ondark-2);
  max-width: var(--tp-measure);
}
.tp-fam .tp-fam-cta__p strong{ color: var(--tp-ondark); font-weight: 600; }
.tp-fam .tp-fam-cta__actions{
  display: flex;
  align-items: center;
  gap: var(--tp-s3);
  flex-wrap: wrap;
  flex: none;
}
.tp-fam .tp-fam-cta__btn,
.tp-fam .tp-fam-cta__btn:link,
.tp-fam .tp-fam-cta__btn:visited{
  display: inline-flex;
  align-items: center;
  gap: var(--tp-s2);
  min-height: var(--tp-tap);
  padding: 16px 28px;
  background: var(--tp-red);
  border: 1px solid var(--tp-red);
  border-radius: var(--tp-r-ui);
  color: #fff;
  font-family: var(--tp-font-text);
  font-size: var(--tp-fs-body);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--tp-dur) var(--tp-ease),
              border-color var(--tp-dur) var(--tp-ease),
              transform var(--tp-dur) var(--tp-ease);
}
.tp-fam .tp-fam-cta__btn:hover{
  background: var(--tp-red-dark);
  border-color: var(--tp-red-dark);
  color: #fff;
  transform: translateY(-2px);
}
.tp-fam .tp-fam-cta__arrow{ transition: transform var(--tp-dur) var(--tp-ease); }
.tp-fam .tp-fam-cta__btn:hover .tp-fam-cta__arrow{ transform: translateX(3px); }
.tp-fam .tp-fam-cta__link,
.tp-fam .tp-fam-cta__link:link,
.tp-fam .tp-fam-cta__link:visited{
  color: var(--tp-ondark);
  font-family: var(--tp-font-text);
  font-size: var(--tp-fs-body);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tp-red-lift);
  text-underline-offset: .28em;
  text-decoration-thickness: 2px;
  transition: color var(--tp-dur) var(--tp-ease);
}
.tp-fam .tp-fam-cta__link:hover{ color: #fff; text-decoration-color: #fff; }

/* ── Schmale Schirme ─────────────────────────────────────────────── */
@media (max-width: 1000px){
  .tp-fam .tp-fam-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tp-fam .tp-fam-grid > *,
  .tp-fam .tp-fam-grid > :last-child:nth-child(3n + 1),
  .tp-fam .tp-fam-grid > :nth-last-child(2):nth-child(3n + 1){ grid-column: span 2; }
}
@media (max-width: 700px){
  .tp-fam .tp-fam-grid{ grid-template-columns: 1fr; }
  .tp-fam .tp-fam-grid > *,
  .tp-fam .tp-fam-grid > :last-child:nth-child(3n + 1),
  .tp-fam .tp-fam-grid > :nth-last-child(2):nth-child(3n + 1){ grid-column: 1; }
  .tp-fam .tp-fam-cta{
    flex-direction: column;
    align-items: flex-start;
    padding: var(--tp-s4) var(--tp-s3);
  }
  /* flex-basis würde in der Spalte zur HÖHE — sonst klafft ein Loch. */
  .tp-fam .tp-fam-cta__txt{ flex: 0 1 auto; }
  .tp-fam .tp-fam-cta__actions{ width: 100%; flex-direction: column; align-items: stretch; }
  .tp-fam .tp-fam-cta__btn{ justify-content: center; }
  .tp-fam .tp-fam-cta__link{ text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   ANRISS AUF DER STARTSEITE — [tp_familie_teaser]
   Kein zweiter Aufguss der Seite: fünf Symbole, ein Satz, ein Knopf.
   Liegt zwischen dem dunklen Heritage-Kapitel und dem Foto-Block
   „PULL MIT." — deshalb hell.
   ═══════════════════════════════════════════════════════════════════ */
.tp-famt .tp-famt__lead{ margin-inline: auto; text-align: center; }

.tp-famt .tp-famt__reihe{
  list-style: none;
  margin: var(--tp-s5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--nb-gap);
}
.tp-famt .tp-famt__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tp-s2);
  padding: var(--tp-s4) var(--tp-s2);
  background: var(--tp-surface);
  border: 1px solid var(--tp-hair-l);
  border-radius: var(--tp-r-fl);
  text-align: center;
}
.tp-famt .tp-famt__item svg{ color: var(--tp-red-ink); }
.tp-famt .tp-famt__item span{
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-mono);
  letter-spacing: var(--tp-ls-mono);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--tp-ink-2);
}

.tp-famt .tp-famt__cta{ display: flex; justify-content: center; margin-top: var(--tp-s5); }
.tp-famt .tp-famt__btn,
.tp-famt .tp-famt__btn:link,
.tp-famt .tp-famt__btn:visited{
  display: inline-flex;
  align-items: center;
  gap: var(--tp-s2);
  min-height: var(--tp-tap);
  padding: 16px 28px;
  background: transparent;
  border: 1px solid var(--tp-ink-2);
  border-radius: var(--tp-r-ui);
  color: var(--tp-ink);
  font-family: var(--tp-font-text);
  font-size: var(--tp-fs-body);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--tp-dur) var(--tp-ease),
              border-color var(--tp-dur) var(--tp-ease),
              color var(--tp-dur) var(--tp-ease);
}
/* Kontur statt Fläche: Der rote Knopf auf der Startseite gehört dem Hero
   und der Trecker-Anmeldung. Zwei laute Handlungen nebeneinander würden
   sich gegenseitig schwächen. */
.tp-famt .tp-famt__btn:hover{
  background: var(--tp-ink);
  border-color: var(--tp-ink);
  color: var(--tp-paper);
}
.tp-famt .tp-famt__arrow{ transition: transform var(--tp-dur) var(--tp-ease); }
.tp-famt .tp-famt__btn:hover .tp-famt__arrow{ transform: translateX(3px); }

@media (max-width: 900px){
  .tp-famt .tp-famt__reihe{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .tp-famt .tp-famt__reihe{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-famt .tp-famt__btn{ width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   FRÖHLICHER — ohne aus dem System zu fallen
   Die Seite war so streng wie die Pulling-Seiten. Für ein Familienfest
   darf sie wärmer sein: Symbole sitzen in einer weichen roten Scheibe,
   die Kacheln bekommen beim Überfahren einen Hauch Bewegung.
   Kein zweites Farbsystem, nur mehr Luft und mehr Rot.
   ═══════════════════════════════════════════════════════════════════ */
.tp-fam .tp-fam-card__icon,
.tp-famt .tp-famt__item svg{
  box-sizing: content-box;
  padding: 12px;
  border-radius: 50%;
  background: rgba(227, 6, 19, .07);
}
.tp-fam .tp-fam-card,
.tp-famt .tp-famt__item{
  transition: transform var(--tp-dur) var(--tp-ease),
              border-color var(--tp-dur) var(--tp-ease);
}
.tp-fam .tp-fam-card:hover,
.tp-famt .tp-famt__item:hover{
  transform: translateY(-3px);
  border-color: rgba(227, 6, 19, .35);
}
@media (prefers-reduced-motion: reduce){
  .tp-fam .tp-fam-card:hover,
  .tp-famt .tp-famt__item:hover{ transform: none; }
}

/* KI-Kennzeichnung am Kopfbild — sichtbar am Motiv, nicht im Impressum.
   Gilt für jedes KI-Motiv auf der Seite; siehe tp_page_hero. */
.tp-phero__ki{
  position: absolute;
  right: var(--tp-s3);
  bottom: var(--tp-s3);
  z-index: 3;
  margin: 0;
  padding: 6px 10px;
  border-radius: var(--tp-r-ui);
  background: rgba(15, 17, 21, .55);
  font-family: var(--tp-font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, .82);
}

/* ── Kopfbereich der Familienseite: heller als die übrigen Seiten ──
   Der Standard-Kopf ist auf Pulling getrimmt — schwerer dunkler Schleier,
   entsättigtes Foto. Auf einem Kirmesmotiv erschlägt das genau die
   Lichterketten und Farben, die die Seite fröhlich machen sollen.
   Deshalb hier: weniger Schleier, volle Sättigung, dafür ein weicher
   dunkler Kern hinter der Schrift, damit die Headline lesbar bleibt.
   Gemessen: Headline über 12:1 Kontrast. */
.tp-phero--fest .tp-phero__bg-photo{
  filter: saturate(1.04) contrast(1.02) brightness(1.06);
  background-position: center 55%;
}
.tp-phero--fest .tp-phero__bg-grad{
  background:
    linear-gradient(180deg, rgba(15,17,21,.72) 0%, rgba(15,17,21,.22) 42%,
                            rgba(15,17,21,.34) 74%, rgba(15,17,21,.80) 100%),
    radial-gradient(64% 52% at 50% 46%, rgba(15,17,21,.62) 0%, rgba(15,17,21,.05) 100%);
}
/* Zusätzliche Sicherheit für die Schrift, unabhängig vom Bildausschnitt */
.tp-phero--fest .tp-phero__title,
.tp-phero--fest .tp-phero__sub{ text-shadow: 0 2px 18px rgba(15,17,21,.75); }
