/* Event141 – öffentliche Seiten (Instanz-Websites wie nafn.at UND Turnierkalender event141.com)
   im MudBlazor-Design. Nur Ergänzungen, die MudBlazor nicht hergibt: Rahmen/Fuß, Kalender-
   Karten, Monatsblatt, Flaggen, Plakat-Hero, Countdown, Kampf-Zeilen, Sponsoren-Raster,
   Bildraster + Lightbox, Fließtext. Farben ausschließlich über Theme-Variablen
   (--mud-palette-*) und die Variablen der Design-Vorlage (--e141-*, data-hero/-headings/-shape am
   Wurzel-Element e141-root, Abschnitt „Design-Vorlagen“ am Ende), damit helle und dunkle Vorlagen
   samt Schriften und Formen je Event passen. */

/* ---------- Rahmen ---------- */
.e141-main { min-height: 100vh; display: flex; flex-direction: column; }
.e141-main > main { flex: 1 0 auto; }

.e141-skip {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    padding: 8px 12px; border-radius: 4px; background: var(--mud-palette-surface); color: var(--mud-palette-primary);
}
.e141-skip:focus { left: 8px; }

.e141-site-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit !important; }
.e141-site-brand__logo { height: 36px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.e141-site-brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.e141-site-brand__name { font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e141-site-brand__sub { font-size: .72rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e141-nav { display: flex; align-items: center; gap: 2px; }
.e141-nav .mud-button-root { text-transform: none; font-weight: 500; }
.e141-nav .mud-button-root[aria-current="page"] { background: rgba(255,255,255,.16); }
.e141-lang .mud-button-root { min-width: 40px; padding: 2px 10px; }
.e141-lang .e141-lang__on { background: rgba(255,255,255,.22); font-weight: 700; }
.e141-lang .e141-lang__on:hover { background: rgba(255,255,255,.22); cursor: default; }
.e141-env { border-radius: 0; justify-content: center; }

.e141-foot { padding: 20px 0 28px; }
.e141-foot__row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.e141-foot__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.e141-foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; }
.e141-foot__cols p { margin: 0 0 4px; }
.e141-foot__cols a { color: var(--mud-palette-text-primary); }
.e141-foot__powered { margin-top: 18px; font-size: .78rem; color: var(--mud-palette-text-secondary); }
.e141-foot__powered a { color: inherit; }

/* ---------- Kopf: Titel + Kennzahlen (Kalender) ---------- */
.e141-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.e141-head__text { max-width: 680px; }
.e141-title { font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.e141-stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.e141-stat { min-width: 100px; padding: 10px 16px; text-align: center; background: var(--mud-palette-surface); }
.e141-stat__n { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: var(--mud-palette-primary); }
.e141-stat__l { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mud-palette-text-secondary); }
@media (max-width: 599.98px) {
    .e141-stats { width: 100%; flex-wrap: nowrap; }
    .e141-stats > li { flex: 1 1 0; min-width: 0; }
    .e141-stat { min-width: 0; padding: 8px 4px; }
    .e141-stat__n { font-size: 1.35rem; }
    .e141-stat__l { font-size: .62rem; letter-spacing: .03em; }
}

/* Einleitung der Instanz-Startseite (home_title/home_text) */
.e141-intro { margin-bottom: 20px; max-width: 760px; }
.e141-intro__text { margin-top: 6px; color: var(--mud-palette-text-secondary); line-height: 1.6; }
.e141-intro__text p { margin: 0 0 8px; }

/* ---------- Filterleiste ---------- */
.e141-filter__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 0 16px; }
.e141-filter__search { grid-column: 1 / -1; }
@media (min-width: 900px) { .e141-filter__search { grid-column: span 2; } }
.e141-filter__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.e141-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.e141-info .flag { margin-right: 4px; }

/* ---------- Flaggen (SVG aus img/flags, PublicText.FlagHtml) ---------- */
.flag { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -2px; object-fit: cover; }
.flag--lg { width: 28px; height: 21px; }
.flag--xs { width: 14px; height: 10px; }
span.flag { box-shadow: none; font-size: 1.1em; line-height: 1; }
.flag--none { display: inline-block; background: var(--mud-palette-background-gray); }

/* ---------- Liste nach Monaten ---------- */
.e141-month-h {
    margin: 26px 0 10px; font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}
.e141-month-h:first-child { margin-top: 4px; }

.e141-card {
    display: grid; align-items: center; gap: 6px 16px;
    grid-template-columns: 72px 28px minmax(0, 1fr) minmax(0, 230px) auto;
    grid-template-areas: "date flag main place state";
    padding: 12px 16px; margin-bottom: 10px; border-radius: var(--e141-radius, 6px); background: var(--mud-palette-surface);
    color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.e141-card.has-img {
    grid-template-columns: 72px 28px minmax(0, 1fr) minmax(0, 230px) auto 56px;
    grid-template-areas: "date flag main place state img";
}
.e141-card:hover, .e141-card:focus-visible { box-shadow: var(--mud-elevation-6); transform: translateY(-1px); }
.e141-card:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.e141-card__date { grid-area: date; text-align: center; }
.e141-card__date time { display: block; }
.e141-card__day { display: block; font-size: 1.45rem; font-weight: 600; line-height: 1.1; color: var(--mud-palette-primary); white-space: nowrap; }
.e141-card__wd { display: block; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.e141-card__flag { grid-area: flag; display: flex; align-items: center; }
.e141-card__main { grid-area: main; min-width: 0; }
.e141-card__name { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.e141-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: .85rem; color: var(--mud-palette-text-secondary); }
.e141-card__meta .mud-chip { height: 22px; font-size: .75rem; }
.e141-card__place { grid-area: place; min-width: 0; font-size: .9rem; }
.e141-card__place small { display: block; color: var(--mud-palette-text-secondary); }
.e141-card__state { grid-area: state; justify-self: end; }
.e141-card__img { grid-area: img; width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }

@media (max-width: 899.98px) {
    .e141-card, .e141-card.has-img {
        grid-template-columns: minmax(52px, max-content) minmax(0, 1fr) auto;
        grid-template-areas: "date main img" "date place img" "date state img";
        gap: 4px 12px; align-items: start;
    }
    .e141-card__flag { display: none; }
    .e141-card__state { justify-self: start; }
    .e141-card__img { width: 48px; height: 48px; }
    .e141-card__day { font-size: 1.3rem; }
}

/* ---------- Statusmarken ---------- */
.e141-live { animation: e141-pulse 1.4s ease-in-out infinite; }
@keyframes e141-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .55); }
    50% { box-shadow: 0 0 0 6px rgba(229, 57, 53, 0); }
}
@media (prefers-reduced-motion: reduce) { .e141-live, .e141-livebar__dot { animation: none; } }

/* ---------- Leer / Laden ---------- */
.e141-empty { text-align: center; background: var(--mud-palette-surface); }
.e141-skel { display: grid; grid-template-columns: 72px minmax(0, 1fr) 140px; gap: 16px; align-items: center; }

/* ---------- Monatsblatt ---------- */
.e141-mhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.e141-mhead__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.e141-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.e141-month__wd { padding: 4px 6px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.e141-day { min-height: 96px; padding: 4px 6px; border-radius: min(var(--e141-radius, 4px), 6px); background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); min-width: 0; }
.e141-day.is-out { background: transparent; border-color: transparent; opacity: .55; }
.e141-day.is-today { border-color: var(--mud-palette-primary); box-shadow: inset 0 0 0 1px var(--mud-palette-primary); }
.e141-day__no { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 500; }
.e141-day.is-today .e141-day__no { color: var(--mud-palette-primary); font-weight: 700; }
.e141-day__no small { display: none; }
.e141-mchip {
    display: flex; align-items: center; gap: 5px; margin-bottom: 3px; padding: 3px 6px; border-radius: 4px;
    font-size: .75rem; line-height: 1.25; color: var(--mud-palette-primary-text); background: var(--mud-palette-primary); text-decoration: none;
    overflow: hidden; white-space: nowrap;
}
.e141-mchip > span { overflow: hidden; text-overflow: ellipsis; }
.e141-mchip:hover { filter: brightness(1.08); }
.e141-mchip--gala { background: #7b1fa2; color: #fff; }
.e141-mchip small { opacity: .85; font-weight: 400; }
.e141-mchip .flag { width: 14px; height: 10px; flex: none; box-shadow: none; }
.e141-mlegend { display: flex; gap: 14px; margin-top: 10px; font-size: .78rem; color: var(--mud-palette-text-secondary); }
.e141-mlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: var(--mud-palette-primary); }
.e141-mlegend i.is-gala { background: #7b1fa2; }

@media (max-width: 767.98px) {
    .e141-month { display: block; }
    .e141-month__wd, .e141-day.is-empty, .e141-day.is-out { display: none; }
    .e141-day { min-height: 0; margin-bottom: 8px; padding: 8px 10px; }
    .e141-day__no { display: flex; align-items: baseline; gap: 8px; font-size: .95rem; }
    .e141-day__no small { display: inline; font-weight: 400; color: var(--mud-palette-text-secondary); }
    .e141-mchip { white-space: normal; font-size: .9rem; padding: 7px 10px; }
}

/* ---------- Fließtext (Inhaltsseiten, Bericht, Beschreibung, Rechtstexte) ---------- */
.e141-prose { line-height: 1.65; }
.e141-prose h2 { margin: 22px 0 6px; font-size: 1.05rem; font-weight: 600; }
.e141-prose h2:first-child { margin-top: 0; }
.e141-prose h3 { margin: 18px 0 4px; font-size: .98rem; font-weight: 600; }
.e141-prose p { margin: 0 0 10px; }
.e141-prose ul, .e141-prose ol { margin: 0 0 10px; padding-left: 22px; }
.e141-prose img { max-width: 100%; height: auto; border-radius: var(--e141-radius, 4px); }
.e141-prose a { color: var(--mud-palette-primary); }
.e141-article { max-width: 820px; margin: 0 auto; }
.e141-article__lead { font-size: 1.08rem; }
.e141-cover { margin: 0 0 20px; }
.e141-cover img { display: block; width: 100%; height: auto; border-radius: var(--e141-radius, 6px); }
.e141-cover figcaption { margin-top: 6px; font-size: .82rem; color: var(--mud-palette-text-secondary); }

/* ---------- Event-Seite: Plakat-Hero ---------- */
.e141-hero {
    position: relative; overflow: hidden; border-radius: calc(var(--e141-radius, 8px) * 1.25); margin-bottom: 16px;
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-darken) 100%);
    color: var(--mud-palette-primary-text);
}
.e141-hero--image { color: #fff; background: #111; }
.e141-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(1px) brightness(.8); transform: scale(1.03); }
.e141-hero--image .e141-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.25) 100%); }
.e141-hero--image .e141-hero__inner { text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.e141-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center; padding: 32px 28px; }
.e141-hero__poster { width: 220px; max-width: 40vw; border-radius: var(--e141-radius, 8px); box-shadow: 0 12px 30px rgba(0,0,0,.45); display: block; }
.e141-hero__logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; display: block; margin-bottom: 10px; }
.e141-hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; opacity: .9; margin-bottom: 8px; }
.e141-hero__kicker .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.e141-hero h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.e141-hero__tagline { margin: 8px 0 0; font-size: 1.1rem; opacity: .92; }
.e141-hero__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: .98rem; }
.e141-hero__facts span { display: inline-flex; align-items: center; gap: 6px; }
.e141-hero__facts .mud-icon-root { font-size: 1.15rem; opacity: .9; }
.e141-hero__state { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.e141-hero__state .mud-chip { margin: 0; }
.e141-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.e141-hero .e141-actions .mud-button-outlined { border-color: currentColor; color: inherit; }
.e141-hero .e141-actions .mud-button-outlined:hover { background: rgba(255,255,255,.12); }
@media (max-width: 767.98px) {
    .e141-hero__inner { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
    .e141-hero__poster { width: 150px; max-width: 45vw; justify-self: start; order: -1; }
    .e141-hero h1 { font-size: 1.65rem; }
}

/* Countdown (Insel) */
.e141-countdown { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.e141-countdown__cell {
    min-width: 66px; padding: 8px 10px; border-radius: var(--e141-radius, 8px); text-align: center;
    background: rgba(255,255,255,.14); backdrop-filter: blur(2px);
}
.e141-countdown__n { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.e141-countdown__l { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.e141-hero:not(.e141-hero--image) .e141-countdown__cell { background: rgba(0,0,0,.18); }

/* „Jetzt im Ring“-Leiste */
.e141-livebar {
    display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 14px; border-radius: var(--e141-radius, 8px);
    background: rgba(229,57,53,.92); color: #fff; text-decoration: none; font-size: .98rem;
}
.e141-livebar:hover { background: rgba(211,47,47,.98); color: #fff; }
.e141-livebar__dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: e141-blink 1.2s ease-in-out infinite; }
@keyframes e141-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.e141-livebar strong { font-weight: 700; }

/* Event-Navigation (Übersicht, Fightcard, Zeitplan …) */
.e141-evnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-bottom: 20px; }
.e141-evnav::-webkit-scrollbar { display: none; }
.e141-evnav .mud-button-root { flex: none; text-transform: none; white-space: nowrap; }

/* Abschnitte */
.e141-section { margin: 0 0 24px; }
.e141-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.e141-section__head h2 { margin: 0; }
.e141-section__sub { margin: 0; color: var(--mud-palette-text-secondary); }
.e141-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
@media (max-width: 959.98px) { .e141-body { grid-template-columns: minmax(0, 1fr); } }
.e141-side { display: grid; gap: 16px; }
.e141-side .mud-paper { padding: 16px 18px; }
.e141-side h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.e141-side ul { margin: 0; padding-left: 18px; }
.e141-side p { margin: 0 0 6px; }
.e141-side .e141-muted, .e141-muted { color: var(--mud-palette-text-secondary); }

/* Kampf-Zeilen (Live / nächste Kämpfe / Fightcard-Teaser) */
.e141-bouts { display: grid; gap: 8px; }
.e141-bout {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
    padding: 10px 14px; border-radius: var(--e141-radius, 6px); background: var(--mud-palette-surface); color: inherit; text-decoration: none;
    border-left: 4px solid transparent; transition: box-shadow .15s ease;
}
.e141-bout:hover { box-shadow: var(--mud-elevation-4); }
.e141-bout.is-live { border-left-color: var(--mud-palette-error); }
.e141-bout.is-done { opacity: .85; }
.e141-bout__no { font-weight: 700; color: var(--mud-palette-text-secondary); font-variant-numeric: tabular-nums; }
.e141-bout__side { min-width: 0; }
.e141-bout__side--blue { text-align: right; }
.e141-bout__name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e141-bout__name.is-winner::after { content: " 🏆"; }
.e141-bout__gym { display: block; font-size: .8rem; color: var(--mud-palette-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e141-bout__vs { font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--mud-palette-text-secondary); }
.e141-bout__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .78rem; color: var(--mud-palette-text-secondary); text-align: right; }
.e141-bout__meta .mud-chip { margin: 0; }
.e141-bout__corner { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.e141-bout__corner--red { background: #e53935; }
.e141-bout__corner--blue { background: #1e88e5; margin-right: 0; margin-left: 6px; }
@media (max-width: 599.98px) {
    .e141-bout { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "no red meta" "no blue meta"; }
    .e141-bout__no { grid-area: no; }
    .e141-bout__side--red { grid-area: red; }
    .e141-bout__side--blue { grid-area: blue; text-align: left; }
    .e141-bout__vs { display: none; }
    .e141-bout__meta { grid-area: meta; }
}

/* Location */
.e141-location { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 767.98px) { .e141-location { grid-template-columns: minmax(0, 1fr); } }
.e141-map { position: relative; aspect-ratio: 16 / 9; min-height: 220px; border-radius: var(--e141-radius, 8px); overflow: hidden; background: var(--mud-palette-background-gray); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; }
.e141-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.e141-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.e141-facts li { display: flex; align-items: flex-start; gap: 10px; }
.e141-facts .mud-icon-root { color: var(--mud-palette-primary); flex: none; }

/* Tickets */
.e141-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.e141-ticket { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.e141-ticket--hi { outline: 2px solid var(--mud-palette-primary); }
.e141-ticket--out { opacity: .6; }
.e141-ticket h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.e141-ticket__price { font-size: 1.5rem; font-weight: 700; color: var(--mud-palette-primary); }
.e141-ticket p { margin: 0; font-size: .88rem; color: var(--mud-palette-text-secondary); }

/* Sponsoren */
.e141-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.e141-sponsors + .e141-sponsors { margin-top: 12px; }
.e141-sponsors--gross { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.e141-sponsors--mittel { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.e141-sponsors--klein { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.e141-sponsor { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 14px; border-radius: var(--e141-radius, 6px); background: var(--mud-palette-surface); color: inherit; text-decoration: none; text-align: center; font-weight: 600; }
.e141-sponsors--gross .e141-sponsor { min-height: 140px; padding: 18px; font-size: 1.15rem; }
.e141-sponsors--klein .e141-sponsor { min-height: 56px; padding: 8px; font-size: .8rem; }
.e141-sponsor img { max-width: 100%; max-height: 64px; object-fit: contain; }
.e141-sponsors--gross .e141-sponsor img { max-height: 110px; }
.e141-sponsors--klein .e141-sponsor img { max-height: 36px; }
@media (max-width: 600px) {
    .e141-sponsors--gross { grid-template-columns: 1fr; }
    .e141-sponsors--mittel { grid-template-columns: repeat(2, 1fr); }
    .e141-sponsors--klein { grid-template-columns: repeat(3, 1fr); }
}
a.e141-sponsor:hover { box-shadow: var(--mud-elevation-4); }

/* Social-Links, Teaser */
.e141-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.e141-teaser { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 0; overflow: hidden; color: inherit; text-decoration: none; }
.e141-teaser img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; display: block; }
.e141-teaser__body { padding: 16px 20px; }
.e141-teaser__body p { margin: 6px 0; color: var(--mud-palette-text-secondary); }
@media (max-width: 599.98px) { .e141-teaser { grid-template-columns: minmax(0, 1fr); } }

/* Galerien */
.e141-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.e141-gcard { display: block; color: inherit; text-decoration: none; overflow: hidden; }
.e141-gcard__img { aspect-ratio: 4 / 3; background: var(--mud-palette-background-gray); display: flex; align-items: center; justify-content: center; color: var(--mud-palette-text-secondary); }
.e141-gcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e141-gcard__body { padding: 10px 14px 12px; }
.e141-gcard__body strong { display: block; }
.e141-gcard__body span { font-size: .82rem; color: var(--mud-palette-text-secondary); }
.e141-gcard:hover { box-shadow: var(--mud-elevation-6); }

/* Bildraster + Lightbox (Insel) */
.e141-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 599.98px) { .e141-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.e141-grid figure { margin: 0; }
.e141-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--e141-radius, 6px); overflow: hidden; }
.e141-grid button:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.e141-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s ease; }
.e141-grid button:hover img { transform: scale(1.03); }
.e141-grid figcaption { font-size: .8rem; color: var(--mud-palette-text-secondary); padding: 4px 2px 0; }
.e141-lightbox { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.92); color: #fff; outline: none; }
.e141-lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.e141-lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.e141-lightbox figcaption { font-size: .9rem; opacity: .9; text-align: center; }
.e141-lightbox__close { position: absolute; top: 10px; right: 10px; color: #fff !important; }
.e141-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff !important; background: rgba(255,255,255,.12) !important; }
.e141-lightbox__nav--prev { left: 10px; }
.e141-lightbox__nav--next { right: 10px; }
.e141-lightbox__count { position: absolute; top: 16px; left: 16px; font-size: .85rem; opacity: .8; }

/* ======================================================================================
   Design-Vorlagen (EventTemplates / PublicTheme): Das Wurzel-Element .e141-root (PublicLayout,
   BoutsFrame) trägt die Variablen --e141-primary/-accent/-bg/-surface/-on-primary/-on-accent/
   -text/-font-head/-font-body/-radius sowie data-hero (poster|cover|gradient|split|minimal|stripe),
   data-headings (upper|normal|serif-elegant|condensed) und data-shape (rounded|square|pill).
   ====================================================================================== */

/* ---------- Schriften ---------- */
.e141-root { font-family: var(--e141-font-body, inherit); }
.e141-root :is(h1, h2, h3, h4, h5, h6, .mud-typography-h1, .mud-typography-h2, .mud-typography-h3, .mud-typography-h4, .mud-typography-h5, .mud-typography-h6,
               .e141-title, .e141-card__name, .e141-card__day, .e141-stat__n, .e141-site-brand__name, .e141-countdown__n, .e141-ticket__price) {
    font-family: var(--e141-font-head, inherit);
}

/* ---------- Überschriften-Stile ---------- */
.e141-root[data-headings="upper"] :is(h1, h2, .mud-typography-h4, .mud-typography-h5, .e141-title, .e141-site-brand__name, .e141-card__name) { text-transform: uppercase; letter-spacing: .06em; }
.e141-root[data-headings="upper"] .e141-hero h1 { letter-spacing: .03em; font-weight: 700; }
.e141-root[data-headings="upper"] .e141-month-h { letter-spacing: .14em; }

.e141-root[data-headings="condensed"] :is(h1, h2, h3, .mud-typography-h4, .mud-typography-h5, .mud-typography-h6, .e141-title) { letter-spacing: 0; font-weight: 600; line-height: 1.05; }
.e141-root[data-headings="condensed"] .e141-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); text-transform: uppercase; font-weight: 600; }
.e141-root[data-headings="condensed"] .e141-site-brand__name { text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; }

.e141-root[data-headings="serif-elegant"] :is(h1, h2, h3, .mud-typography-h4, .mud-typography-h5, .mud-typography-h6, .e141-title) { font-weight: 500; letter-spacing: 0; }
.e141-root[data-headings="serif-elegant"] .e141-hero h1 { font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.005em; }
.e141-root[data-headings="serif-elegant"] .e141-hero__tagline { font-style: italic; font-family: var(--e141-font-head); font-size: 1.2rem; }
.e141-root[data-headings="serif-elegant"] .e141-hero__kicker { letter-spacing: .18em; font-size: .78rem; }
.e141-root[data-headings="serif-elegant"] .e141-site-brand__name { font-weight: 600; }

/* ---------- Formen (Radius kommt als --e141-radius, Pille zusätzlich für Knöpfe/Chips) ---------- */
.e141-root[data-shape="pill"] .mud-button-root:not(.mud-button-group-root *) { border-radius: 999px; }
.e141-root[data-shape="pill"] :is(.mud-chip, .mud-alert, .e141-mchip) { border-radius: 999px; }
.e141-root[data-shape="pill"] .e141-hero { border-radius: 28px; }
.e141-root[data-shape="pill"] .e141-countdown__cell { border-radius: 18px; }
.e141-root[data-shape="square"] :is(.mud-chip, .e141-mchip, .e141-countdown__cell, .flag) { border-radius: 2px; }
.e141-root[data-shape="square"] .e141-hero { border-radius: 0; }

/* ---------- Hero-Aufbauten ---------- */
/* poster (Vorgabe): Verlauf aus Primär, Bild weich im Hintergrund, Plakat rechts – Grundregeln oben. */
.e141-hero--poster { background: linear-gradient(135deg, var(--e141-primary) 0%, color-mix(in srgb, var(--e141-primary) 78%, #000) 100%); color: var(--e141-on-primary); }
.e141-hero--poster.e141-hero--image { color: #fff; background: #111; }

/* cover: Bild vollflächig, Text unten links; ohne Bild Verlauf Primär nach Akzent */
.e141-hero.e141-hero--cover { min-height: 440px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--e141-primary) 0%, var(--e141-accent) 100%); color: var(--e141-on-primary); }
.e141-hero.e141-hero--cover.e141-hero--image { color: #fff; background: #111; }
.e141-hero--cover .e141-hero__bg { filter: none; transform: none; }
.e141-hero--cover.e141-hero--image .e141-hero__bg::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.86) 100%); }
.e141-hero--cover .e141-hero__inner { width: 100%; grid-template-columns: minmax(0, 1fr); padding: 140px 36px 34px; }
.e141-hero--cover h1 { font-size: clamp(2rem, 5.5vw, 4rem); }
.e141-hero.e141-hero--cover .e141-countdown__cell { background: rgba(255,255,255,.14); }
.e141-hero.e141-hero--cover:not(.e141-hero--image) .e141-countdown__cell { background: rgba(0,0,0,.2); }

/* gradient: diagonaler Verlauf Primär nach Akzent ohne Bild, Plakat rechts */
.e141-hero.e141-hero--gradient { background: linear-gradient(120deg, var(--e141-primary) 0%, color-mix(in srgb, var(--e141-primary) 55%, var(--e141-accent)) 55%, var(--e141-accent) 100%); color: var(--e141-on-primary); }
.e141-hero--gradient::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.22), transparent 42%), radial-gradient(circle at 10% 90%, rgba(0,0,0,.18), transparent 40%); pointer-events: none; }
.e141-hero.e141-hero--gradient .e141-countdown__cell { background: rgba(0,0,0,.2); }

/* split: Text links auf Fläche, Bild (Hero oder Plakat) rechts, sonst Farbblock */
.e141-hero.e141-hero--split { background: var(--e141-surface); color: var(--e141-text); border: 1px solid var(--mud-palette-lines-default); }
.e141-hero--split .e141-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; padding: 0; align-items: stretch; }
.e141-hero--split .e141-hero__text { padding: 36px 32px; align-self: center; }
.e141-hero--split .e141-hero__media { position: relative; min-height: 320px; background: linear-gradient(160deg, var(--e141-primary), var(--e141-accent)); }
.e141-hero--split .e141-hero__media::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px); pointer-events: none; }
.e141-hero--split .e141-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; z-index: 1; }
.e141-hero--split .e141-hero__kicker { color: var(--e141-primary); opacity: 1; font-weight: 600; }
.e141-hero.e141-hero--split .e141-countdown__cell { background: color-mix(in srgb, var(--e141-primary) 12%, transparent); }
.e141-hero.e141-hero--split .e141-actions .mud-button-outlined { border-color: var(--e141-primary); color: var(--e141-primary); }
.e141-hero.e141-hero--split .e141-actions .mud-button-outlined:hover { background: color-mix(in srgb, var(--e141-primary) 8%, transparent); }

/* minimal: nur Typografie, Akzentstrich, Plakat klein */
.e141-hero.e141-hero--minimal { background: transparent; color: inherit; border-radius: 0; overflow: visible; margin-bottom: 8px; }
.e141-hero--minimal .e141-hero__inner { padding: 24px 0 22px; border-bottom: 1px solid var(--mud-palette-lines-default); gap: 24px 40px; }
.e141-hero--minimal .e141-hero__kicker { color: var(--e141-primary); opacity: 1; font-weight: 600; }
.e141-hero--minimal .e141-hero__kicker::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--e141-accent); margin-right: 6px; }
.e141-hero--minimal h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); letter-spacing: -.02em; }
.e141-hero--minimal .e141-hero__tagline { color: var(--mud-palette-text-secondary); opacity: 1; }
.e141-hero--minimal .e141-hero__poster { width: 160px; box-shadow: var(--mud-elevation-4); }
.e141-hero.e141-hero--minimal .e141-countdown__cell { background: var(--e141-surface); box-shadow: var(--mud-elevation-1); }
.e141-hero.e141-hero--minimal .e141-actions .mud-button-outlined { border-color: var(--e141-primary); color: var(--e141-primary); }
.e141-hero.e141-hero--minimal .e141-actions .mud-button-outlined:hover { background: color-mix(in srgb, var(--e141-primary) 8%, transparent); }

/* stripe: Fläche mit Farbbalken links (Primär) und oben (Akzent) */
.e141-hero.e141-hero--stripe { background: var(--e141-surface); color: var(--e141-text); border-left: 10px solid var(--e141-primary); box-shadow: var(--mud-elevation-1); }
.e141-hero--stripe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--e141-accent); }
.e141-hero--stripe .e141-hero__inner { padding: 36px 28px 30px; }
.e141-hero--stripe .e141-hero__kicker { color: var(--e141-primary); opacity: 1; font-weight: 600; }
.e141-hero.e141-hero--stripe .e141-countdown__cell { background: color-mix(in srgb, var(--e141-primary) 10%, transparent); }
.e141-hero.e141-hero--stripe .e141-actions .mud-button-outlined { border-color: var(--e141-primary); color: var(--e141-primary); }
.e141-hero.e141-hero--stripe .e141-actions .mud-button-outlined:hover { background: color-mix(in srgb, var(--e141-primary) 8%, transparent); }

@media (max-width: 767.98px) {
    .e141-hero.e141-hero--cover { min-height: 340px; }
    .e141-hero--cover .e141-hero__inner { padding: 90px 18px 22px; }
    .e141-hero--split .e141-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .e141-hero--split .e141-hero__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
    .e141-hero--split .e141-hero__text { padding: 20px 18px 22px; }
    .e141-hero--minimal .e141-hero__inner { padding: 12px 0 18px; }
    .e141-hero--minimal .e141-hero__poster { width: 110px; }
    .e141-hero--stripe .e141-hero__inner { padding: 24px 16px 22px; }
}
