/* System-Fonts statt Google Fonts */
body, h1, h2, h3, h4, h5, h6, .navbar, .btn, .nav-link, .dropdown-item {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !important;
}

/* Icon-Logik: Umschalten zwischen Emoji und Google Icons
.icon-premium {
    display: none !important;
}
.icon-fallback {
    display: inline-block;
    font-style: normal;
    vertical-align: middle;
}
*/

/* Wenn Zustimmung (Consent) vorliegt, Klassen tauschen
body.consent-accepted .icon-premium {
    display: inline-block !important;
}
body.consent-accepted .icon-fallback {
    display: none !important;
}
*/
a:not(nav a):hover {
    text-decoration: underline;
}

/* Alle Bilder in Cards auf gleiche Höhe */
.blur-shadow-image img {
    width: 100%;
    height: 250px; /* Hier eine feste Höhe wählen, die für alle passt */
    object-fit: cover; /* Schneidet das Bild automatisch so zu, dass es den Raum füllt */
    object-position: center;
}

/* Header */
.team-header {
    background-image: url("/assets/img/team/team-header-dunkel.png");
    background-size: cover;
    background-position: center;
}

/* Spezifische Anpassung für Hochformat-Teamfotos */
.team-photo-container {
    width: 100%;
    /* Erzwingt ein 3:4 Hochformat-Verhältnis */
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Neutraler Hintergrund für abweichende Formate */
    border-radius: 0.75rem;
}

.team-photo-container img {
    width: 100%;
    height: 100%;
    /* "contain" zeigt das ganze Bild ohne Beschnitt,
       "cover" füllt den Raum (schneidet aber Ränder ab) */
    object-fit: cover;
    object-position: top center; /* Fokus auf den Kopfbereich */
}

/* Anpassung für die horizontalen Cards (Schulleitung/Sozialarbeit) */
.profile-photo-portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    border-radius: 0.75rem;
}

/* Einheitliche Bildhöhen für die Teaser-Karten am Ende */
.teaser-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

/* Galerie-Bilder (Annahme: Bilder sind bereits einheitlich hoch vorbereitet) */
.carousel-item img {
    width: 100%;
    display: block;
}

.carousel-inner {
    border-radius: 0.75rem;
}

/* Hintergrundbild nicht inline definieren (bessere Wartbarkeit) */
.pms-hero {
  background-image: url("../img/schule/rueckseite1.webp");
  background-size: cover;
  background-position: center;
}

/* Carousel-Bilder sauber blocken (verhindert Lücken unter Bildern) */
.carousel-inner img {
  display: block;
}

/* Hintergrundbild: besser per CSS-Klasse als per inline style */
.pms-termine-hero {
  background-image: url("../img/veranstaltungen/termine.jpg");
  background-size: cover;
  background-position: center;
}

/* Tabelle: bessere Lesbarkeit bei langen Texten */
.termine-table td,
.termine-table th {
  vertical-align: top;
}

/* Optional: Links in Fließtext dürfen umbrechen */
.break-long-links {
  overflow-wrap: anywhere;
  word-break: break-word;
}>

 .teaser-card-img {
     width: 100%;
     height: 220px;
     object-fit: cover;
     object-position: center;
 }

/* Einheitliche Galeriehoehe */
.ag-carousel-item img.ag-carousel-image {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center center;
    background-color: #f8f9fa;
}

/* Fokusklassen fuer unterschiedliche Bildmotive */
.ag-carousel-item img.focus-top {
    object-position: center top;
}

.ag-carousel-item img.focus-center {
    object-position: center center;
}

.ag-carousel-item img.focus-bottom {
    object-position: center bottom;
}

.ag-carousel-item img.focus-left {
    object-position: left center;
}

.ag-carousel-item img.focus-right {
    object-position: right center;
}

@media (max-width: 991.98px) {
    .ag-carousel-item img.ag-carousel-image {
        height: 420px;
    }
}

@media (max-width: 767.98px) {
    .ag-carousel-item img.ag-carousel-image {
        height: 280px;
    }
}

/* =========================================================
           TEASER / EVENT-KARTEN
        ========================================================= */

/* Einheitliche Bilddarstellung für die Teaser-Karten */
.teaser-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
}

.event-card {
    border: 0;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.event-card .card-header {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0;
}

.teaser-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0.75rem;
}

.event-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.event-card .card-description {
    min-height: 72px;
    margin-bottom: 0;
}

.event-card .author {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.event-card .author .avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.event-card .name span {
    display: block;
    font-weight: 600;
    line-height: 1.2;
}

.event-card .stats small {
    color: #6c757d;
}

.more-events-section .title {
    margin-bottom: 0.75rem;
}