/* Vereinsaktion: Eck-Band oben links + Dialog */
:root {
    --promotion-red: #c8102e;
    --promotion-red-dark: #9e0c24;
}

/* Eck-Band: Box schneidet das gedrehte Band ab, nur das Band selbst ist klickbar */
.promotion-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    width: 104px;
    height: 104px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1001;
}

.promotion-ribbon__band {
    position: absolute;
    /* nah an der Ecke, damit das Band das Logo im Header nicht berührt */
    top: 12px;
    left: -52px;
    width: 160px;
    padding: 4px 0;
    transform: rotate(-45deg);
    background: var(--promotion-red);
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-family: var(--font--secondary, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    overflow: hidden;
}

/* Glanz, der in Abständen über das Band läuft */
.promotion-ribbon__band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: promotion-shine 4s ease-in-out 1s infinite;
}

.promotion-ribbon__band:hover,
.promotion-ribbon__band:focus-visible {
    background: var(--promotion-red-dark);
}

.promotion-ribbon__band:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* Unter 1150px sitzt das kleine Logo direkt in der Ecke, Platz fürs Band schaffen */
@media (max-width: 1150px) {
    body:has(.promotion-ribbon) .navigation__image-logo {
        margin-left: 26px;
    }
}

@keyframes promotion-shine {
    0% { transform: translateX(-100%); }
    35%, 100% { transform: translateX(100%); }
}

/* Dialog */
.promotion-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    font-family: var(--font--secondary, sans-serif);
    color: var(--dark, #333);
}

.promotion-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.promotion-dialog[open] {
    animation: promotion-in 0.25s ease-out;
}

@keyframes promotion-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.promotion-dialog__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.promotion-dialog__image {
    display: block;
    width: 100%;
    height: auto;
}

.promotion-dialog__body {
    padding: 20px 24px 24px;
}

.promotion-dialog__title {
    margin: 0 0 8px;
    font-family: var(--font--primary, serif);
    font-size: 1.6rem;
}

.promotion-dialog__text {
    margin: 0 0 16px;
    line-height: 1.5;
}

.promotion-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.promotion-dialog__button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--light-brown, #2e5033);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.promotion-dialog__button:hover {
    background: var(--orange, #1c7521);
    color: #fff;
}

.promotion-dialog__button--secondary {
    background: transparent;
    color: var(--light-brown, #2e5033);
    box-shadow: inset 0 0 0 2px var(--light-brown, #2e5033);
}

.promotion-dialog__button--secondary:hover {
    background: var(--light-brown, #2e5033);
}

@media (prefers-reduced-motion: reduce) {
    .promotion-ribbon__band::after,
    .promotion-dialog[open] {
        animation: none;
    }
}
