.hofg-slider {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hofg-track {
    position: relative;
}

.hofg-slide {
    display: none;
}

.hofg-slide.is-active {
    display: block;
}

.hofg-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    aspect-ratio: 8 / 6;
}

.hofg-person {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.hofg-person:hover,
.hofg-person:focus {
    transform: scale(1.015);
    filter: brightness(1.04);
    z-index: 3;
    outline: none;
}

.hofg-person:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,0,0,.35);
}

.hofg-person.hofg-reverse .hofg-info {
    order: 1;
}

.hofg-person.hofg-reverse .hofg-photo {
    order: 2;
}

.hofg-photo,
.hofg-info,
.hofg-dummy,
.hofg-center-image {
    min-width: 0;
    min-height: 0;
}

.hofg-photo img,
.hofg-dummy img,
.hofg-center-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.hofg-photo img,
.hofg-dummy img {
    object-fit: contain;
}

.hofg-center-image {
    grid-column: 3 / span 4;
    grid-row: 3 / span 2;
    overflow: hidden;
    z-index: 2;
    min-width: 0;
    min-height: 0;
}

.hofg-center-fit-contain img {
    object-fit: contain;
}

.hofg-center-fit-cover img {
    object-fit: contain;
}

.hofg-center-fit-fill img {
    object-fit: fill;
}

.hofg-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    line-height: 1.2;
    overflow: hidden;
    min-width: 0;
}

.hofg-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08);
    pointer-events: none;
}

.hofg-info > * {
    position: relative;
    z-index: 1;
}

.hofg-info h3,
.hofg-info p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.hofg-info h3 {
    margin: 0 0 .35em;
    font-size: 1.05em;
    line-height: 1.08;
    -webkit-line-clamp: 2;
}

.hofg-info p {
    margin: 0 0 .25em;
    -webkit-line-clamp: 2;
}

.hofg-date {
    font-size: .88em;
    -webkit-line-clamp: 1 !important;
}

.hofg-dummy {
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

.hofg-dummy-empty,
.hofg-placeholder {
    width: 100%;
    height: 100%;
    background: #eeeeee;
}

.hofg-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.hofg-prev,
.hofg-next {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    background: #222;
    color: #fff;
}

.hofg-status {
    font-weight: 700;
}

.hofg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.hofg-modal.is-open {
    display: block;
}

.hofg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.68);
}

.hofg-modal-dialog {
    position: relative;
    width: min(900px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    background: #fff;
    color: #111;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
    transform: scale(.96);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.hofg-modal.is-open .hofg-modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.hofg-modal-close {
    position: sticky;
    top: 10px;
    float: right;
    z-index: 2;
    margin: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.hofg-modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eee;
}

.hofg-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hofg-modal-content {
    padding: 26px;
}

.hofg-modal-content h2 {
    margin: 0 0 8px;
}

.hofg-modal-institution,
.hofg-modal-date {
    margin: 0 0 8px;
    font-weight: 700;
}

.hofg-modal-description {
    margin-top: 18px;
}

.hofg-modal-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 26px 26px;
}

.hofg-modal-prev,
.hofg-modal-next {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #222;
    color: #fff;
    cursor: pointer;
}

body.hofg-modal-lock {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hofg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        aspect-ratio: auto;
    }

    .hofg-center-image {
        display: none;
    }

    .hofg-person,
    .hofg-dummy {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 2 / 1;
    }

    .hofg-person {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hofg-grid {
        display: block;
    }

    .hofg-person,
    .hofg-dummy {
        aspect-ratio: 2 / 1;
        margin-bottom: 0;
    }

    .hofg-person {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hofg-info {
        padding: 12px !important;
    }

    .hofg-modal-dialog {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .hofg-modal-image {
        aspect-ratio: 4 / 3;
    }

    .hofg-modal-content {
        padding: 20px;
    }

    .hofg-modal-nav {
        padding: 0 20px 20px;
    }
}


/* Hall of Fame Grid 2.0.0: vereinfachte Infobox ohne Hintergrundbild */
.hofg-info {
    background-image: none !important;
}

.hofg-info::before {
    display: none;
}

.hofg-name,
.hofg-institution,
.hofg-date {
    width: 100%;
}

/* Optionaler Pfeil: zeigt immer von der Infobox zum Personenbild */
.hofg-arrow-enabled .hofg-info::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    z-index: 4;
    pointer-events: none;
}

.hofg-person:not(.hofg-reverse).hofg-arrow-enabled .hofg-info::after {
    left: calc(var(--hofg-arrow-size, 18px) * -1);
    border-top: var(--hofg-arrow-size, 18px) solid transparent;
    border-bottom: var(--hofg-arrow-size, 18px) solid transparent;
    border-right: var(--hofg-arrow-size, 18px) solid var(--hofg-box-bg, #d4a017);
}

.hofg-person.hofg-reverse.hofg-arrow-enabled .hofg-info::after {
    right: calc(var(--hofg-arrow-size, 18px) * -1);
    border-top: var(--hofg-arrow-size, 18px) solid transparent;
    border-bottom: var(--hofg-arrow-size, 18px) solid transparent;
    border-left: var(--hofg-arrow-size, 18px) solid var(--hofg-box-bg, #d4a017);
}

@media (max-width: 1024px) {
    .hofg-arrow-enabled .hofg-info::after {
        display: none;
    }
}


/* Hall of Fame Grid 3.0.0: Pfeil dauerhaft aktiv */
.hofg-person {
    overflow: visible;
}

.hofg-info {
    overflow: visible;
}

/* Der Pfeil zeigt immer von der Infobox zum zugehörigen Bild. */
.hofg-info::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    z-index: 10;
    pointer-events: none;
}

/* Standard: Bild links, Info rechts -> Pfeil zeigt nach links zum Bild */
.hofg-person:not(.hofg-reverse) .hofg-info::after {
    left: calc(var(--hofg-arrow-size, 18px) * -1);
    border-top: var(--hofg-arrow-size, 18px) solid transparent;
    border-bottom: var(--hofg-arrow-size, 18px) solid transparent;
    border-right: var(--hofg-arrow-size, 18px) solid var(--hofg-box-bg, #d4a017);
}

/* Reverse: Info links, Bild rechts -> Pfeil zeigt nach rechts zum Bild */
.hofg-person.hofg-reverse .hofg-info::after {
    right: calc(var(--hofg-arrow-size, 18px) * -1);
    border-top: var(--hofg-arrow-size, 18px) solid transparent;
    border-bottom: var(--hofg-arrow-size, 18px) solid transparent;
    border-left: var(--hofg-arrow-size, 18px) solid var(--hofg-box-bg, #d4a017);
}

/* Kein Pfeil auf Tablet und Smartphone */
@media (max-width: 1024px) {
    .hofg-info::after {
        display: none;
    }
}


/* Hall of Fame Grid 3.1.0: Startseiten-Banner */
.hofg-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 28%) 1fr;
    align-items: center;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    background: #ffffff;
    color: #1d1d1b;
    text-decoration: none;
}

.hofg-banner::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -42%;
    width: 42%;
    height: 68%;
    border-radius: 50% 0 0 0;
    background: #f5b400;
    z-index: 0;
}

.hofg-banner-link,
.hofg-banner-link:hover,
.hofg-banner-link:focus {
    color: inherit;
    text-decoration: none;
}

.hofg-banner-visual {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.hofg-banner-visual img {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.hofg-banner-content {
    position: relative;
    z-index: 1;
    padding: 32px 44px 40px 24px;
}

.hofg-banner-headline {
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

.hofg-banner-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(42px, 7vw, 120px);
    font-weight: 900;
    letter-spacing: .02em;
    line-height: .9;
    text-transform: uppercase;
}

.hofg-banner-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 2.2vw, 44px);
    font-weight: 400;
    color: #f5b400;
    white-space: nowrap;
}

.hofg-banner-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.hofg-banner-item {
    min-width: 0;
}

.hofg-banner-item strong,
.hofg-banner-item span {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    color: #1d1d1b;
    line-height: 1.25;
}

.hofg-banner-item strong {
    font-size: clamp(28px, 3vw, 54px);
    font-weight: 400;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hofg-banner-item span {
    font-size: clamp(24px, 2.5vw, 48px);
    font-weight: 400;
}

@media (max-width: 1024px) {
    .hofg-banner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hofg-banner-visual {
        min-height: 180px;
        padding: 24px 24px 0;
    }

    .hofg-banner-visual img {
        max-height: 170px;
    }

    .hofg-banner-content {
        padding: 24px;
    }

    .hofg-banner-headline {
        margin-bottom: 26px;
    }

    .hofg-banner-items {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hofg-banner-item strong {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .hofg-banner-title {
        font-size: 42px;
    }

    .hofg-banner-subtitle {
        font-size: 24px;
    }

    .hofg-banner-item strong {
        font-size: 30px;
    }

    .hofg-banner-item span {
        font-size: 24px;
    }
}


/* Hall of Fame Grid 3.2.2: Banner ohne großen Titel, Typografie einstellbar */
.hofg-banner-headline {
    margin-bottom: 22px;
}

.hofg-banner-title {
    display: none;
}

.hofg-banner-subtitle {
    font-family: var(--hofg-banner-subtitle-family, Arial, Helvetica, sans-serif);
    font-size: var(--hofg-banner-subtitle-size, 44px);
    font-weight: var(--hofg-banner-subtitle-weight, 700);
    color: var(--hofg-banner-subtitle-color, #f5b400);
}

.hofg-banner-items {
    align-items: start;
}

.hofg-banner-item strong {
    font-family: var(--hofg-banner-name-family, Arial, Helvetica, sans-serif);
    font-size: var(--hofg-banner-name-size, 48px);
    font-weight: var(--hofg-banner-name-weight, 400);
    color: var(--hofg-banner-name-color, #1d1d1b);
}

.hofg-banner-item span {
    font-family: var(--hofg-banner-date-family, Arial, Helvetica, sans-serif);
    font-size: var(--hofg-banner-date-size, 36px);
    font-weight: var(--hofg-banner-date-weight, 400);
    color: var(--hofg-banner-date-color, #1d1d1b);
}
