/* Ergänzungen zum Design für echte Bilder aus der Datenbank */
.person-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gp-photo img, .photo-card img { display: block; }
.hero-bg > img { display: block; }
a.btn { text-decoration: none; }

/* Logo im Footer nicht verzerren (width/height-Attribute geben nur das Seitenverhältnis vor) */
.footer-brand img { width: 56px; height: auto; flex: none; }

/* Galerie-Vollbild: Hintergrund leicht durchsichtig, Klick daneben schließt */
.gal-lb { background: rgba(251,248,242,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.gal-lb-top { background: linear-gradient(rgba(251,248,242,.85), transparent); }

/* Sponsoren mit Logo/Foto */
.sponsor-card.has-logo { justify-content: flex-start; gap: 14px; }
.sponsor-logo { height: 96px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; padding: 10px; }
.sponsor-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* Kontakt-Pop-up (Probetraining, Sponsoring-Anfrage …) */
.contact-back { z-index: 110; }
.contact-modal { max-width: 520px; }
.contact-list { margin: 20px 0 0; display: grid; gap: 12px; }
.contact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.contact-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--red); }
@media (max-width: 540px) { .contact-list div { grid-template-columns: 1fr; gap: 2px; } }

/* Sponsoren: das Logo steht im Mittelpunkt, Name und Branche klein darunter */
.sponsor-card, .sponsor-card.has-logo { padding: 0; min-height: 0; justify-content: flex-start; gap: 0; overflow: hidden; }
.sponsor-logo { height: auto; aspect-ratio: 3 / 2; padding: clamp(14px, 2.4vw, 26px); border-radius: 0; background: #fff; border-bottom: 1px solid var(--line); }
.sponsor-logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.sponsor-wordmark { font-family: var(--serif); font-size: clamp(19px, 2vw, 25px); line-height: 1.15; text-align: center; color: var(--ink); overflow-wrap: anywhere; }
.sponsor-info { padding: 12px 14px 14px; }
.sponsor-card .name { font-size: 15px; font-family: var(--sans, inherit); font-weight: 600; line-height: 1.25; }
.sponsor-card .branch { margin-top: 3px; }
.sponsor-card:not(.has-logo) .branch { margin-top: 0; }
@media (max-width: 640px) { .sponsor-card, .sponsor-card.has-logo { padding: 0; min-height: 0; } .sponsor-info { padding: 10px 12px 12px; } }

/* Laufband Sponsoren: Logos statt Namen, wo vorhanden */
.sponsors-track { align-items: center; }
.sponsor-strip-logo { display: inline-flex; align-items: center; height: 64px; flex: none; }
.sponsor-strip-logo img { height: 100%; width: auto; max-width: 200px; object-fit: contain; display: block; }
.sponsors-track span.sponsor-strip-logo { opacity: 1; }
@media (max-width: 760px) { .sponsor-strip-logo { height: 48px; } }

/* Galerie: Anzahl Veranstaltungen/Fotos auf den Jahres-Buttons */
.gal-year .c { line-height: 1.5; }

/* Termine mit Tickets */
.event-tickets { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 3px 8px; border-radius: 999px; }

/* Social Media in der Fußzeile */
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(247,241,230,.3); color: var(--paper, #f7f1e6); transition: background .2s, border-color .2s, color .2s; }
.footer .footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* News mit mehreren Fotos: Anzahl auf der Karte, im Fenster kleine Vorschaubilder */
.feed-media { position: relative; }
.feed-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(22,20,15,.72); color: var(--paper); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.modal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; padding: 12px 12px 0; }
.modal-thumbs button { padding: 0; border: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--cream-2); }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.modal-thumbs button:hover img { transform: scale(1.06); }
.zoomable { cursor: zoom-in; }

/* Grafenpaare: Einträge derselben Saison (z.B. Kindergrafenpaar) stehen untereinander */
.gp-group { display: flex; flex-direction: column; gap: 32px; }
.gp-row.sub { max-width: 820px; }
.gp-row.sub .gp-photo { aspect-ratio: 4/3; }
.gp-row.sub .gp-text dd { font-size: clamp(22px, 2.2vw, 32px); }
.gp-row.sub .eyebrow { color: var(--green); }
.gp-photo { overflow: hidden; }

/* Garde/Musikzug/Präsidium: weißer, halbdurchsichtiger Verlauf hinter dem Schriftzug auf dem Titelbild */
.photo-hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 18% 100%, rgba(251,248,242,0.78), rgba(251,248,242,0) 70%),
    linear-gradient(to top, rgba(251,248,242,0.82) 0%, rgba(251,248,242,0.55) 26%, rgba(251,248,242,0) 58%);
}
/* Präsidium: Untertitel unter dem Schriftzug auf dem Titelbild */
.photo-hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3;
  color: var(--ink-2); max-width: 540px; margin: 14px 0 0;
}

/* Laufband: Hinweise mit Termin/News sind antippbar, beim Darüberfahren hält das Band an */
.topbar-strip:hover .topbar-strip-track { animation-play-state: paused; }
.topbar-strip-track span.link { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(247,241,230,.35); text-underline-offset: 3px; }
.topbar-strip-track span.link:hover { color: var(--gold); }

/* Sponsoren mit Webseite: Karte und Logo im Laufband sind Links */
a.sponsor-card { color: inherit; text-decoration: none; }
.sponsor-url { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.sponsor-strip-link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; flex: none; }
.sponsor-strip-link:hover span { color: var(--red); }

/* Fußzeile: Links Impressum · Datenschutz */
.footer-legal a { color: inherit; text-decoration: none; }

/* Impressum und Datenschutz */
.legal { max-width: 780px; }
.legal h3 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal a { color: var(--red); }
.legal-facts { display: grid; gap: 0; margin: 0 0 12px; border-top: 1px solid rgba(22,20,15,.12); }
.legal-facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(22,20,15,.12); }
.legal-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(22,20,15,.6); padding-top: 4px; }
.legal-facts dd { margin: 0; font-size: 16px; }
@media (max-width: 640px) {
  .legal-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
