/* ============================================================
   Overrides fuer die Live-Seite:
   ersetzt das <image-slot>-Verhalten durch echte Bilder + Platzhalter.
   ============================================================ */

/* Echte Bilder in den Bild-Slots fuellen ihren Rahmen sauber aus */
img.hero-photo,
img.corps-photo,
.toll-card img.toll-photo,
.news-card img.thumb,
.member img.ph-av,
.gallery img,
img.map-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
img.hero-photo  { aspect-ratio: 4/5; height: auto; }
img.corps-photo { aspect-ratio: 5/6; height: auto; }
.news-card img.thumb { aspect-ratio: 16/8; height: auto; }
.member img.ph-av { aspect-ratio: 1; height: auto; object-position: center 25%; }
img.map-ph { aspect-ratio: 4/3; height: auto; min-height: 340px; }

/* Galerie-Bilder als direkte Grid-Kinder */
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; }

/* Partner-Kachel: Logo + Name + Link */
.partners .partner { height: auto; min-height: 110px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 16px 14px; text-align: center; }
.partner .p-logo { max-height: 56px; max-width: 90%; object-fit: contain; }
.partner .p-name { font-weight: 800; letter-spacing: .04em; color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.partner .p-link { font-weight: 700; font-size: .82rem; color: var(--red); letter-spacing: normal; }
.partner .p-link:hover { color: var(--red-deep); }

/* ---- Platzhalter, wenn noch kein Bild hochgeladen wurde ---- */
.img-ph {
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-soft);
  font-weight: 600; font-size: .82rem; padding: 14px;
  border-radius: var(--radius);
}
.hero-photo.img-ph, .corps-photo.img-ph { border-radius: var(--radius-lg); }
.corps .img-ph, .dark .img-ph {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  border: 1px dashed rgba(255,255,255,.25);
}
.gallery .img-ph { border-radius: var(--radius); }

/* Vorstand: 5 pro Reihe (10 Personen = zwei Fuenfer-Reihen) */
.team { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .team { grid-template-columns: repeat(2, 1fr); } }

/* Karten gegen zu lange Namen absichern (kein Ausbrechen aus dem Rahmen) */
.team .member { min-width: 0; }
.member .name, .member .role { overflow-wrap: anywhere; }
.toll-archive li > div { min-width: 0; }
.toll-archive .ta-names { overflow-wrap: anywhere; }

/* Vorstand: zweite Funktion dezenter als die rote Hauptfunktion */
.member .role2 { color: var(--ink-soft); font-weight: 600; font-size: .85rem; margin-top: 2px; }
/* Vorstand: Kontaktdaten (Telefon/E-Mail mit Symbol) */
.member .mcontact { font-size: .85rem; margin-top: 4px; word-break: break-word; }
.member .mcontact a { color: var(--ink-soft); }
.member .mcontact a:hover { color: var(--red); }

/* Highlight-Leiste (aktive, nicht abgelaufene Highlights) */
.hl-bar { background: var(--gold-bright); color: var(--red-dark); }
.hl-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: center; align-items: center; padding: 11px 26px; }
.hl-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; }
.hl-item .hl-ic { color: var(--red); }
.hl-item .hl-info { font-weight: 600; opacity: .82; }

/* Hero-Ueberschrift etwas schmaler/kleiner (statt clamp(3rem,6.6vw,6rem)) */
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); }

/* Termine: aufklappbarer Banner pro Termin */
.events .event { border-bottom: 0; }
.event-item { border-bottom: 1px solid rgba(255,255,255,.12); }
.event-item:last-child { border-bottom: 0; }
.event-item.has-banner .event { cursor: pointer; }
.ev-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  font-weight: 800; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); }
.ev-more-txt { display: none; }
.ev-more::before { content: "Infos einblenden"; }
.event-item.open .ev-more::before { content: "Infos ausblenden"; }
.ev-chevron { display: inline-block; transition: transform .25s ease; }
.event-item.open .ev-chevron { transform: rotate(180deg); }
.event-banner { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.event-item.open .event-banner { max-height: 2200px; }
.event-banner-inner { margin: 2px 4px 22px; }
.event-banner-img { display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14); }

/* Anfahrt: eingebettete Karte (iFrame) */
.map-ph iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Tollitäten: aktuelle Tollität mit Personen */
.toll-featured { max-width: 900px; margin: 0 auto 44px; background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border-top: 6px solid var(--gold-bright); padding: 34px; text-align: center; }
.toll-featured .crown { font-size: 2rem; color: var(--gold-bright); }
.toll-featured h3 { font-family: var(--font-display); text-transform: uppercase; color: var(--red-deep);
  font-size: 1.9rem; margin: 6px 0 26px; }
.toll-persons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.toll-person { margin: 0; min-width: 0; }
.toll-person .tp-photo { width: 100%; aspect-ratio: 1; height: auto; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.toll-person img.tp-photo { object-fit: cover; object-position: center 25%; }
.toll-person figcaption { display: flex; flex-direction: column; min-width: 0; }
.tp-name { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.tp-role { color: var(--red); font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }

/* Tollitäten: die drei vorherigen (kompakt) */
.toll-recent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.toll-recent-card { background: var(--paper); border: 1px solid var(--cream-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; text-align: left; min-width: 0; }
.toll-recent-card .tr-year { font-family: var(--font-display); color: var(--red); font-size: 1.4rem; line-height: 1; }
.toll-recent-card h4 { font-size: 1.1rem; margin: 4px 0 12px; overflow-wrap: anywhere; }
.tr-persons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-persons li { display: flex; flex-direction: column; min-width: 0; }
.tr-name { font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.tr-role { color: var(--red); font-weight: 700; font-size: .82rem; overflow-wrap: anywhere; }
@media (max-width: 720px) { .toll-recent { grid-template-columns: 1fr; } }

/* Tollitäten: Archiv-Liste */
.toll-archive { max-width: 900px; margin: 0 auto; text-align: left; }
.toll-archive-title { font-family: var(--font-display); text-transform: uppercase; color: var(--red-deep);
  font-size: 1.35rem; margin: 24px 0 14px; text-align: center; }
.toll-archive ul { list-style: none; padding: 0; margin: 0; }
.toll-archive li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 12px 6px;
  border-bottom: 1px solid var(--cream-2); align-items: baseline; }
.toll-archive .ta-year { font-family: var(--font-display); color: var(--red); font-size: 1.2rem; }
.toll-archive .ta-title { font-weight: 800; display: block; }
.toll-archive .ta-names { display: block; color: var(--ink-soft); font-size: .92rem; margin-top: 2px; }
@media (max-width: 560px) { .toll-persons { grid-template-columns: repeat(2, 1fr); } }

/* Formatierter Freitext (Geschichte etc.) */
.history { max-width: 760px; margin: 0 auto; }
.history p { color: var(--ink-soft); font-size: 1.06rem; }
.rt-h3 { font-family: var(--font-display); text-transform: uppercase; color: var(--red-deep);
  font-size: 1.4rem; letter-spacing: .01em; margin: 34px 0 10px; }
.rt-h4 { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin: 24px 0 6px; }
.rt-quote { font-family: var(--font-serif); font-style: italic; color: var(--red-deep);
  font-size: 1.5rem; line-height: 1.4; border-left: 4px solid var(--gold-bright);
  margin: 30px 0 6px; padding: 4px 0 4px 20px; }
.rt-cite { color: var(--gold); font-weight: 700; margin-top: 0; }
.rt-source { font-size: .85rem; font-style: italic; color: var(--ink-soft); margin-top: 26px; }

/* Rechtstexte-Seite (Impressum / Datenschutz / Satzung) */
.legal { max-width: 820px; margin: 0 auto; }
.legal .back { display: inline-block; margin-top: 30px; }
.legal .imp h3 { margin: 24px 0 6px; font-size: 1.1rem; color: var(--red-deep); }
.legal .imp p { color: var(--ink-soft); }
