/* Adventskalender – Aktionsliste im Stil des Flyers (ergänzt Bootstrap 5) */
.advl {
    --advl-navy: #06294A;
    --advl-green: #6AC52B;          /* Markengrün (Flächen, Kugeln) */
    --advl-green-text: #46901A;     /* dunkleres Grün für Schrift, ausreichender Kontrast auf Weiß */
    --advl-green-light: #C3EAA6;    /* hellgrüne Formen im Hintergrund */
    --advl-font-display: inherit;   /* z. B. 'Poppins', sans-serif – Schrift der Überschriften */

    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #fff;
    color: var(--advl-navy);
    padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
}
.advl.has-deco {
    padding-top: clamp(96px, 12vw, 150px);
    /* dezente Wellenlinien wie im Flyer */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120' viewBox='0 0 600 120'%3E%3Cg fill='none' stroke='%2306294A' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M0 20q75-30 150 0t150 0 150 0 150 0'/%3E%3Cpath d='M0 50q75-30 150 0t150 0 150 0 150 0'/%3E%3Cpath d='M0 80q75-30 150 0t150 0 150 0 150 0'/%3E%3Cpath d='M0 110q75-30 150 0t150 0 150 0 150 0'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: 0 40%;
}

/* Dekoration */
.advl-baubles { position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: clamp(90px, 12vw, 150px); pointer-events: none; }
.advl-shape { position: absolute; z-index: -1; background: var(--advl-green-light); opacity: .75; pointer-events: none; }
.advl-shape-1 { left: -80px; bottom: 6%; width: clamp(200px, 26vw, 360px); aspect-ratio: 5 / 6; clip-path: polygon(0 18%, 62% 0, 100% 78%, 28% 100%); }
.advl-shape-2 { right: -60px; top: clamp(110px, 14vw, 170px); width: clamp(140px, 16vw, 240px); aspect-ratio: 4 / 5; clip-path: polygon(45% 0, 100% 8%, 100% 100%, 0 62%); }
.advl-shape-3 { left: 42%; bottom: -60px; width: clamp(160px, 20vw, 280px); aspect-ratio: 1; clip-path: polygon(20% 10%, 100% 0, 75% 100%, 0 70%); }

/* Kopf */
.advl-head { text-align: center; margin: 0 auto clamp(24px, 4vw, 44px); max-width: 760px; }
.advl-title {
    margin: 0;
    font-family: var(--advl-font-display);
    font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1;
    font-size: clamp(34px, 6vw, 64px);
    color: var(--advl-green-text);
}
.advl-sub {
    margin: 6px 0 0;
    font-family: var(--advl-font-display);
    font-weight: 800; line-height: 1.25;
    font-size: clamp(17px, 2.1vw, 23px);
    color: var(--advl-navy);
}
.advl-empty { text-align: center; font-size: 18px; }

/* Liste */
.advl-list { list-style: none; margin: 0; padding: 0; }
.advl-item {
    display: flex; align-items: center; gap: 16px;
    margin: 0 0 clamp(14px, 1.6vw, 20px);
    text-align: left;
}
.advl-body { flex: 1 1 auto; min-width: 0; }
.advl-item-title {
    margin: 0 0 2px;
    font-family: var(--advl-font-display);
    font-weight: 800; line-height: 1.25;
    font-size: clamp(19px, 1.7vw, 22px);
    color: var(--advl-green-text);
    text-wrap: balance;
}
.advl-date { font-weight: 900; margin-right: .15em; }
.advl-name { color: inherit; text-decoration: none; }
a.advl-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(70, 144, 26, .45); }
a.advl-name:hover { color: var(--advl-navy); text-decoration-color: currentColor; }
a.advl-name:focus-visible { outline: 3px solid var(--advl-navy); outline-offset: 2px; border-radius: 2px; }
.advl-text { margin: 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.advl-addr { margin: 2px 0 0; font-size: 14px; color: rgba(6, 41, 74, .78); }
.advl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.advl-badge { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5; }
.advl-badge.is-today { background: var(--advl-green); color: var(--advl-navy); }
.advl-badge.is-contest { background: var(--advl-navy); color: #fff; }

.advl-item.is-today { background: rgba(255, 255, 255, .92); box-shadow: inset 4px 0 0 var(--advl-green); padding: 10px 12px; margin-left: -12px; margin-right: -12px; }
.advl-item.is-locked .advl-item-title { color: rgba(6, 41, 74, .72); }
.advl-item.is-locked .advl-text { font-style: italic; }

/* Logo */
.advl-logo { flex: none; display: block; width: clamp(72px, 9vw, 112px); }
.advl-logo img { display: block; width: 100%; height: auto; max-height: 64px; object-fit: contain; }
a.advl-logo { transition: opacity .15s ease, transform .15s ease; }
a.advl-logo:hover { opacity: .85; transform: translateY(-2px); }

/* Abwechselnde Ausrichtung wie im Flyer (ab Tablet) */
@media (min-width: 768px) {
    .advl.is-alternate .advl-item.is-end { flex-direction: row-reverse; text-align: right; }
    .advl.is-alternate .advl-item.is-end .advl-badges { justify-content: flex-end; }
    .advl.is-alternate .advl-item.is-end.is-today { box-shadow: inset -4px 0 0 var(--advl-green); }
}

/* Info-Kasten (z. B. mit QR-Code) */
.advl-info {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    max-width: 520px; margin: clamp(24px, 4vw, 40px) 0 0 auto;
    padding: 44px 22px 22px;
    background: var(--advl-navy); color: #fff; text-decoration: none;
    clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
}
.advl-info-text { display: block; transform: rotate(-4deg); font-size: 17px; line-height: 1.4; text-align: center; flex: 1 1 auto; }
.advl-info-img { flex: none; width: 104px; height: auto; background: #fff; padding: 4px; }
a.advl-info { transition: background-color .15s ease; }
a.advl-info:hover { color: #fff; background: #0E3A63; }
a.advl-info:focus-visible { outline: 3px solid var(--advl-green); outline-offset: 3px; }
a.advl-info .advl-info-text { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }

@media (max-width: 575.98px) {
    .advl-logo { width: 72px; }
    .advl-info { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { a.advl-logo:hover { transform: none; } }
@media print {
    .advl-baubles, .advl-shape { display: none; }
    .advl.has-deco { padding-top: 0; background-image: none; }
}
