/* ==========================================================================
   Blankit – Blockstile für das Template „Blankit - Seite“ und den Editor.
   Baut auf main.css auf (Farben, Schriften, .btn, .label, .sticker ...).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Grundgerüst: Abschnitte laufen über die volle Breite, Inhalte sind begrenzt
   -------------------------------------------------------------------------- */

.blocks > * { margin-block: 0; }
.blocks > :not(.alignfull) {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.blocks > :not(.alignfull):first-child { padding-top: 112px; }

:where(.blocks, .editor-styles-wrapper) .alignfull { width: 100%; max-width: none; }
.ticker.alignfull { width: auto; }

/* Palette-Klassen (für Texthervorhebungen im Editor) */
.has-coral-color { color: var(--coral) !important; }
.has-coral-dark-color { color: var(--coral-dark) !important; }
.has-yellow-color { color: var(--yellow) !important; }
.has-cream-color { color: var(--cream) !important; }
.has-teal-color { color: var(--teal) !important; }
.has-teal-dark-color { color: var(--teal-dark) !important; }
.has-paper-color { color: var(--paper) !important; }
.has-ink-color { color: var(--ink) !important; }
.has-white-color { color: #fff !important; }
.has-pink-color { color: var(--pink) !important; }
.has-coral-background-color { background-color: var(--coral) !important; }
.has-pink-background-color { background-color: var(--pink) !important; }
.has-yellow-background-color { background-color: var(--yellow) !important; }
.has-cream-background-color { background-color: var(--cream) !important; }
.has-teal-background-color { background-color: var(--teal) !important; }
.has-teal-dark-background-color { background-color: var(--teal-dark) !important; }
.has-paper-background-color { background-color: var(--paper) !important; }
.has-ink-background-color { background-color: var(--ink) !important; }
mark.has-inline-color { padding: 0; }

/* --------------------------------------------------------------------------
   Gruppen: Bänder (Abschnitte)
   -------------------------------------------------------------------------- */

.wp-block-group:is(.is-style-blankit-teal, .is-style-blankit-coral, .is-style-blankit-yellow, .is-style-blankit-paper, .is-style-blankit-ink) {
    position: relative;
    padding: 72px var(--gutter);
    margin-block: 0;
}
:is(.is-style-blankit-teal, .is-style-blankit-coral, .is-style-blankit-yellow, .is-style-blankit-paper, .is-style-blankit-ink) > :not(.wp-block-group__inner-container),
:is(.is-style-blankit-teal, .is-style-blankit-coral, .is-style-blankit-yellow, .is-style-blankit-paper, .is-style-blankit-ink) > .wp-block-group__inner-container > * {
    max-width: 1120px;
    margin-inline: auto;
}
:is(.is-style-blankit-teal, .is-style-blankit-coral, .is-style-blankit-yellow, .is-style-blankit-paper, .is-style-blankit-ink, .is-style-blankit-card, .is-style-blankit-card-yellow, .is-style-blankit-card-teal) > * + *,
:is(.is-style-blankit-teal, .is-style-blankit-coral, .is-style-blankit-yellow, .is-style-blankit-paper, .is-style-blankit-ink, .is-style-blankit-card, .is-style-blankit-card-yellow, .is-style-blankit-card-teal) > .wp-block-group__inner-container > * + * {
    margin-top: 24px;
}

.wp-block-group.is-style-blankit-teal {
    background: var(--teal);
}
.wp-block-group.is-style-blankit-coral {
    background: var(--coral);
    border-block: 3px solid var(--ink);
}
.wp-block-group.is-style-blankit-yellow { background: var(--yellow); }
.wp-block-group.is-style-blankit-paper { background: var(--paper); border-top: 3px solid var(--ink); }
.wp-block-group.is-style-blankit-ink { background: var(--ink); color: var(--paper); }

/* Schräger Balken (z. B. „Mehr als nur Musik:“) – läuft über die ganze Breite */
.wp-block-group.is-style-blankit-banner {
    background: var(--paper);
    border-block: 3px solid var(--ink);
    rotate: -3deg;
    padding: 14px var(--gutter) 10px;
    text-align: center;
    max-width: none !important;
    margin-inline: calc(50% - 50vw - 20px) !important;
}
.editor-styles-wrapper .wp-block-group.is-style-blankit-banner { margin-inline: -20px !important; }
.wp-block-group.is-style-blankit-teal > .is-style-blankit-banner:first-child,
.wp-block-group.is-style-blankit-teal > .wp-block-group__inner-container > .is-style-blankit-banner:first-child {
    margin-bottom: 44px;
}

/* Karten */
.wp-block-group.is-style-blankit-card {
    background: var(--paper);
    border: 4px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
    padding: clamp(24px, 5vw, 48px);
    rotate: -1.5deg;
    text-align: center;
    max-width: 560px;
}
.wp-block-group:is(.is-style-blankit-card-yellow, .is-style-blankit-card-teal) {
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
    height: 100%;
}
.wp-block-group.is-style-blankit-card-yellow { background: var(--yellow); rotate: -.8deg; }
.wp-block-group.is-style-blankit-card-teal { background: var(--teal); rotate: .8deg; }
.wp-block-group.is-style-blankit-box-ink {
    background: var(--ink);
    color: var(--paper);
    padding: 22px 26px;
    rotate: 2deg;
    box-shadow: 6px 6px 0 var(--coral);
}
.is-style-blankit-box-ink > * + *,
.is-style-blankit-box-ink > .wp-block-group__inner-container > * + * { margin-top: 8px; }
.is-style-blankit-box-ink .is-style-blankit-eyebrow,
.is-style-blankit-ink .is-style-blankit-eyebrow { color: var(--yellow); }
/* Zentrierte Absätze (z. B. Lineup, Awareness) auch mittig ausrichten, nicht nur den Text */
.has-text-align-center.is-style-blankit-lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Überschriften
   -------------------------------------------------------------------------- */

:is(h1, h2, h3, h4).wp-block-heading:is(.is-style-blankit-display, .is-style-blankit-display-ink, .is-style-blankit-kicker, .is-style-blankit-stack, .is-style-blankit-card-title, .is-style-blankit-labels) {
    font-family: var(--f-display);
    font-weight: 400;
    text-transform: uppercase;
}
.wp-block-heading.is-style-blankit-display,
.wp-block-heading.is-style-blankit-display-ink {
    line-height: 1.08;
    letter-spacing: .01em;
    font-size: clamp(2.4rem, 6.5vw, 4.6rem);
}
.wp-block-heading.is-style-blankit-display { color: var(--cream); text-shadow: 3px 3px 0 var(--ink); }
.wp-block-heading.is-style-blankit-display-ink { color: var(--ink); }
.wp-block-heading.is-style-blankit-kicker {
    color: var(--coral);
    font-size: clamp(2.4rem, 8vw, 5.4rem);
    line-height: 1;
    letter-spacing: .01em;
}
.wp-block-heading.is-style-blankit-stack {
    font-size: clamp(2.8rem, 10vw, 5rem);
    line-height: .95;
    color: var(--teal-dark);
}
.wp-block-heading.is-style-blankit-card-title { font-size: 1.9rem; line-height: 1; }

/* Claim wie „Kein Platz für Hass. Viel Platz für dich.“ – 2. Zeile per Texthervorhebung einfärben */
.wp-block-heading.is-style-blankit-claim {
    font-family: var(--f-display);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--cream);
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 1.3;
    letter-spacing: .01em;
    text-align: center;
}

/* Aufkleber-Labels: Hintergrundfarbe per Texthervorhebung im Editor */
.wp-block-heading.is-style-blankit-labels {
    font-size: clamp(1.6rem, 4.4vw, 2.6rem);
    letter-spacing: .02em;
    line-height: 1.35;
    rotate: -1.5deg;
}
.wp-block-heading.is-style-blankit-labels mark {
    padding: .12em .5em .08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* --------------------------------------------------------------------------
   Absätze
   -------------------------------------------------------------------------- */

p.is-style-blankit-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; max-width: 36em; }
p.is-style-blankit-eyebrow {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .85rem;
    color: var(--coral-dark);
}
p.is-style-blankit-label {
    display: table;
    margin-inline: auto;
    background: var(--ink);
    color: var(--yellow);
    font-family: var(--f-display);
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.1;
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    padding: .18em .55em .14em;
    rotate: -2deg;
    box-shadow: 6px 6px 0 var(--coral);
}
p.is-style-blankit-big {
    font-family: var(--f-display);
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1;
    color: var(--cream);
}

/* --------------------------------------------------------------------------
   Listen: Tags und Aufkleber
   -------------------------------------------------------------------------- */

ul.is-style-blankit-tags,
ul.is-style-blankit-stickers {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
ul.is-style-blankit-tags {
    gap: 10px;
    font-size: clamp(1.4rem, 3.4vw, 2rem);
}
ul.is-style-blankit-tags li {
    font-family: var(--f-display);
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.1;
    padding: .18em .55em .14em;
}
ul.is-style-blankit-tags li:nth-child(6n+1) { background: var(--paper); color: var(--coral); }
ul.is-style-blankit-tags li:nth-child(6n+2) { background: var(--ink); color: var(--coral); }
ul.is-style-blankit-tags li:nth-child(6n+3) { background: var(--coral); color: var(--cream); }
ul.is-style-blankit-tags li:nth-child(6n+4) { background: var(--teal-dark); color: var(--paper); }
ul.is-style-blankit-tags li:nth-child(6n+5) { background: var(--paper); color: var(--teal-dark); }
ul.is-style-blankit-tags li:nth-child(6n+6) { background: var(--yellow); color: var(--coral-dark); }
/* Der letzte Tag (z. B. „2 Aftershow-Partys“) ist immer der gelbe Hingucker */
ul.is-style-blankit-tags li:last-child:not(:first-child) { background: var(--yellow); color: var(--coral-dark); }
ul.is-style-blankit-tags li:nth-child(odd) { rotate: -2deg; }
ul.is-style-blankit-tags li:nth-child(even) { rotate: 1.5deg; }

ul.is-style-blankit-stickers {
    justify-content: center;
    gap: 20px 16px;
    font-size: clamp(1.3rem, 4vw, 1.9rem);
}
ul.is-style-blankit-stickers li {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    font-family: var(--f-display);
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1;
    padding: .5em .8em .45em;
    border: 4px solid var(--ink);
    border-radius: 999px;
    box-shadow: 5px 5px 0 var(--ink);
    white-space: nowrap;
}
ul.is-style-blankit-stickers li:nth-child(4n+1) { background: var(--paper); rotate: -6deg; }
ul.is-style-blankit-stickers li:nth-child(4n+2) { background: var(--coral); color: #fff; rotate: 5deg; }
ul.is-style-blankit-stickers li:nth-child(4n+3) { background: var(--yellow); rotate: -6deg; }
ul.is-style-blankit-stickers li:nth-child(4n+4) { background: var(--ink); color: var(--yellow); rotate: 5deg; }
@media (min-width: 900px) {
    ul.is-style-blankit-stickers { flex-direction: column; align-items: center; gap: 30px; font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
    ul.is-style-blankit-stickers li:nth-child(4n+2) { margin-left: 110px; }
    ul.is-style-blankit-stickers li:nth-child(4n+3) { margin-right: 90px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.wp-block-button:is(.is-style-blankit-coral, .is-style-blankit-teal, .is-style-blankit-paper, .is-style-blankit-ink) .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-family: var(--f-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    padding: .75em 1.25em .7em;
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.wp-block-button:is(.is-style-blankit-coral, .is-style-blankit-teal, .is-style-blankit-paper, .is-style-blankit-ink) .wp-block-button__link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
}
.wp-block-button.is-style-blankit-coral .wp-block-button__link { background: var(--coral); color: #fff; }
.wp-block-button.is-style-blankit-coral .wp-block-button__link:hover { background: var(--coral-dark); }
.wp-block-button.is-style-blankit-teal .wp-block-button__link { background: var(--teal-dark); color: #fff; }
.wp-block-button.is-style-blankit-paper .wp-block-button__link { background: var(--paper); color: var(--ink); }
.wp-block-button.is-style-blankit-paper .wp-block-button__link:hover { background: var(--yellow); }
.wp-block-button.is-style-blankit-ink .wp-block-button__link { background: var(--ink); color: var(--yellow); }

/* --------------------------------------------------------------------------
   Spalten, Bilder, Blankit-Blöcke
   -------------------------------------------------------------------------- */

.wp-block-columns { gap: 32px 40px; }
.wp-block-column > * { margin-block: 0; }
.wp-block-column > * + * { margin-top: 22px; }
.wp-block-column > .is-style-blankit-eyebrow + * { margin-top: 6px; }

/* Spalten mit Ortsmarke (Anfahrt) */
.wp-block-columns.is-style-blankit-pin::before {
    content: "";
    flex: none;
    align-self: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--ink);
    box-shadow: var(--shadow);
    rotate: -8deg;
    background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fffdf4'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / 48px no-repeat;
}

/* Maskottchen-Bild */
.wp-block-image.is-style-blankit-llama { margin: 0; }
.wp-block-image.is-style-blankit-llama img { width: min(300px, 70vw); rotate: 6deg; margin-inline: auto; }
@media (max-width: 899px) {
    .blocks .wp-block-image.is-style-blankit-llama { display: none; }
}

/* Blankit-Blöcke innerhalb von Abschnitten */
.wp-block-blankit-ticket-button { margin-top: 24px; }
.wp-block-blankit-socials.contact__links { list-style: none; }
.wp-block-blankit-donation { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.wp-block-blankit-sponsors .partners__row:last-of-type { margin-bottom: 0; }

/* Im Editor den Kopfbereich nicht unter der (dort fehlenden) Topbar verstecken */
.editor-styles-wrapper .hero { padding-top: 40px; }

/* ==========================================================================
   Unterseiten (FAQ, Camping, U18, History, Über uns)
   Alles hier kommt ohne die WordPress-Blockstyles aus, damit auch die
   statische Kopie richtig aussieht.
   ========================================================================== */

/* Seitenkopf: erstes Band der Seite, liegt unter der festen Topbar */
.wp-block-group.blankit-pagehead { padding-top: 124px; padding-bottom: 56px; }
.editor-styles-wrapper .wp-block-group.blankit-pagehead { padding-top: 56px; }
.blankit-pagehead .is-style-blankit-eyebrow { color: var(--ink); }
.blankit-pagehead > * + *,
.blankit-pagehead > .wp-block-group__inner-container > * + * { margin-top: 12px; }

/* Das Comic-Raster eines Bandes läuft immer bis zum Bildschirmrand,
   auch wenn der Inhalt des Bandes in der Breite begrenzt ist */
.wp-block-group.wp-block-group.wp-block-group > .halftone { max-width: none; margin: 0; }

/* Schmale Spalte: Zusatzklasse „blankit-narrow“ an einem Band.
   Seitenkopf und Inhaltsboxen sind dann gleich breit und stehen bündig übereinander. */
.wp-block-group.blankit-narrow > :not(.halftone):not(.wp-block-group__inner-container) { max-width: 900px; }
.wp-block-group.blankit-narrow > .wp-block-group__inner-container { max-width: 900px; margin-inline: auto; }

/* Inhaltsbox wie bei Impressum und Datenschutz */
.wp-block-group:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) {
    background: var(--paper);
    border: 4px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
    padding: clamp(22px, 5vw, 48px);
}
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > * + *,
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > .wp-block-group__inner-container > * + * { margin-top: 20px; }
.wp-block-group:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) + :is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) { margin-top: 40px; }
.wp-block-group:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) + .wp-block-buttons { margin-top: 36px; }
@media (max-width: 599px) {
    .wp-block-group:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) { box-shadow: 6px 6px 0 var(--ink); }
}

/* Luft über Überschriften und um Hinweis-Kästen, damit Abschnitte klar getrennt sind */
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > .wp-block-group__inner-container > * + h2,
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > * + h2 { margin-top: 48px; }
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > .wp-block-group__inner-container > * + h3,
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > * + h3 { margin-top: 36px; }
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > .wp-block-group__inner-container > h2 + h3,
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > h2 + h3 { margin-top: 20px; }
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > .wp-block-group__inner-container > :is(h2, h3) + *,
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > :is(h2, h3) + * { margin-top: 16px; }
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > .wp-block-group__inner-container > * + .is-style-blankit-note,
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) > .wp-block-group__inner-container > .is-style-blankit-note + * { margin-top: 34px; }

/* Rückblick („So war es 2025“): gelbe Box, davor ein schräger Balken über die ganze Breite */
.wp-block-group.is-style-blankit-sheet-yellow { background: var(--yellow); }
.is-style-blankit-sheet-yellow .wp-block-group.is-style-blankit-note { background: var(--paper); }
:is(.is-style-blankit-sheet, .is-style-blankit-sheet-yellow) + .wp-block-group.is-style-blankit-banner { margin-top: 64px; }
.wp-block-group.is-style-blankit-banner + .is-style-blankit-sheet-yellow,
.wp-block-group.is-style-blankit-banner + .is-style-blankit-sheet { margin-top: 60px; }

/* Fließtext in den Bändern */
:where(.blocks, .editor-styles-wrapper) :is(h2, h3, h4).wp-block-heading:not([class*="is-style-"]) {
    font-family: var(--f-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.12;
}
:where(.blocks, .editor-styles-wrapper) h2.wp-block-heading:not([class*="is-style-"]) { font-size: clamp(1.8rem, 4.6vw, 2.5rem); color: var(--coral); }
:where(.blocks, .editor-styles-wrapper) h3.wp-block-heading:not([class*="is-style-"]) { font-size: 1.45rem; }
:where(.blocks, .editor-styles-wrapper) h4.wp-block-heading:not([class*="is-style-"]) { font-size: 1.15rem; }
:where(.blocks, .editor-styles-wrapper) :is(p, li, td, figcaption) > a:not([class]) { color: var(--coral-dark); font-weight: 700; }
.is-style-blankit-ink :is(p, li) > a:not([class]) { color: var(--yellow); }
:where(.blocks, .editor-styles-wrapper) ul.wp-block-list:not([class*="is-style-"]),
:where(.blocks, .editor-styles-wrapper) ol.wp-block-list:not([class*="is-style-"]) { padding-left: 1.3em; margin-bottom: 0; } /* Abstand nach oben bestimmt der umgebende Block */
:where(.blocks, .editor-styles-wrapper) .wp-block-list:not([class*="is-style-"]) li + li { margin-top: .35em; }
.blocks .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.blocks .wp-block-image { margin-inline: 0; margin-bottom: 0; }
.blocks .wp-block-image img { border: 3px solid var(--ink); border-radius: 12px; }
.blocks .wp-block-image figcaption { font-size: .85rem; font-weight: 600; margin-top: 6px; }
.blocks .wp-block-image.is-style-blankit-llama img { border: 0; border-radius: 0; }
/* Freigestelltes Maskottchen im Fließtext: Zusatzklasse „blankit-mascot“ */
.blocks .wp-block-image.blankit-mascot img { border: 0; border-radius: 0; width: min(230px, 60vw); rotate: -4deg; }

/* Maskottchen im Seitenkopf: steht rechts neben der Überschrift und ragt über die
   Unterkante des Bandes hinaus (wie das Lama im Kopfbereich der Startseite) */
.wp-block-group.blankit-pagehead { z-index: 1; }
.blankit-pagehead > .wp-block-group__inner-container { position: relative; }
.blocks .blankit-pagehead .wp-block-image.blankit-mascot { width: fit-content; margin: 14px 0 -100px auto; }
.blocks .blankit-pagehead .wp-block-image.blankit-mascot img {
    width: 140px;
    rotate: 5deg;
    filter: drop-shadow(5px 5px 0 rgb(23 24 23 / .25));
}
@media (min-width: 760px) {
    .blocks .blankit-pagehead .wp-block-image.blankit-mascot { position: absolute; right: 0; bottom: -116px; margin: 0; }
    .blocks .blankit-pagehead .wp-block-image.blankit-mascot img { width: clamp(170px, 20vw, 220px); }
    /* Text bleibt links und endet vor dem Maskottchen */
    .blankit-pagehead:has(.blankit-mascot) :is(h1, p) { max-width: calc(100% - 260px); margin-left: 0; margin-right: auto; }
}
.is-style-blankit-ink .wp-block-buttons { justify-content: center; }

/* Hinweis-Kasten */
.wp-block-group.is-style-blankit-note {
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px 22px;
}
.is-style-blankit-note > * + *,
.is-style-blankit-note > .wp-block-group__inner-container > * + * { margin-top: 10px; }

/* FAQ: aufklappbare Einträge (Block „Details“) */
:where(.blocks, .editor-styles-wrapper) .wp-block-details {
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ink);
}
:where(.blocks, .editor-styles-wrapper) .wp-block-details + .wp-block-details { margin-top: 14px; }
:where(.blocks, .editor-styles-wrapper) .wp-block-details > summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 15px 54px 13px 18px;
    font-weight: 800;
    font-size: 1.08rem;
    line-height: 1.3;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    translate: 0 -52%;
    font-family: var(--f-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--coral);
}
.wp-block-details[open] > summary::after { content: "–"; }
.wp-block-details[open] > summary { border-bottom: 3px solid var(--ink); background: var(--yellow); border-radius: 11px 11px 0 0; }
/* Innenabstand für jeden Inhalt (Absatz, Liste, Tabelle, Bild). Die doppelte Klasse
   sorgt dafür, dass die Regel auch gegen die Abstände der einzelnen Blöcke gewinnt. */
.wp-block-details.wp-block-details.wp-block-details > :not(summary) { margin: 14px 18px 0; }
.wp-block-details.wp-block-details.wp-block-details > :last-child:not(summary) { margin-bottom: 18px; }
.wp-block-details .wp-block-image img { max-width: min(100%, 360px); }

/* Tabellen */
.blocks .wp-block-table { margin: 0; overflow-x: auto; }
:where(.blocks, .editor-styles-wrapper) .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: .95rem;
}
:where(.blocks, .editor-styles-wrapper) .wp-block-table :is(th, td) {
    border: 2px solid var(--ink);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
:where(.blocks, .editor-styles-wrapper) .wp-block-table th { background: var(--yellow); font-weight: 800; }

/* Bildergalerie: gleichmäßiges Raster, Klick öffnet das Bild groß */
.blocks .wp-block-gallery.has-nested-images,
.blocks .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr));
    gap: 10px !important;
    margin: 0;
    padding: 0;
}
.blocks .wp-block-gallery figure.wp-block-image {
    width: auto !important;
    margin: 0 !important;
    aspect-ratio: 4 / 3;
    border: 3px solid var(--ink);
    border-radius: 12px;
    overflow: hidden;
    background: var(--ink);
}
.blocks .wp-block-gallery figure.wp-block-image :is(a, img) { display: block; width: 100%; height: 100%; }
.blocks .wp-block-gallery figure.wp-block-image img {
    object-fit: cover;
    border: 0;
    border-radius: 0;
    transition: scale .25s ease;
}
.blocks .wp-block-gallery figure.wp-block-image a:hover img { scale: 1.05; }

.lightbox {
    border: 0;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: transparent;
    place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgb(23 24 23 / .93); }
.lightbox img {
    max-width: min(94vw, 1400px);
    max-height: 86vh;
    border: 4px solid var(--paper);
    box-shadow: 8px 8px 0 var(--coral);
}
.lightbox button {
    position: fixed;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    font: 400 1.7rem/1 var(--f-display);
    cursor: pointer;
}
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* --------------------------------------------------------------------------
   History: Perlenkette. Jede Gruppe mit dem Stil „History: Jahr“ ist eine Perle
   an der Schnur; assets/js/main.js baut daraus die Jahresleiste zum Springen.
   -------------------------------------------------------------------------- */

.wp-block-group.is-style-blankit-year {
    position: relative;
    padding: 0 0 64px 48px;
    scroll-snap-align: start;
}
.wp-block-group.is-style-blankit-year + .is-style-blankit-year { margin-top: 0; }
.is-style-blankit-year > * + *,
.is-style-blankit-year > .wp-block-group__inner-container > * + * { margin-top: 16px; }
/* Schnur */
.is-style-blankit-year::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ink);
}
.is-style-blankit-year:first-of-type::before { top: 18px; }
.is-style-blankit-year:last-of-type::before { bottom: auto; height: 22px; }
.wp-block-group.is-style-blankit-year:last-of-type { padding-bottom: 0; }
/* Perle */
.is-style-blankit-year::after {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--coral);
    border: 4px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}
.is-style-blankit-year:nth-of-type(3n+2)::after { background: var(--yellow); }
.is-style-blankit-year:nth-of-type(3n)::after { background: var(--teal); }
:where(.blocks, .editor-styles-wrapper) .is-style-blankit-year h2.wp-block-heading {
    font-size: clamp(3.2rem, 13vw, 6rem);
    line-height: .9;
    color: var(--coral);
    text-shadow: 3px 3px 0 var(--ink);
}
.is-style-blankit-year h3.wp-block-heading { margin-top: 22px; }
.is-style-blankit-year h3.wp-block-heading + * { margin-top: 10px; }
@media (min-width: 768px) {
    .wp-block-group.is-style-blankit-year { padding-left: 84px; }
    .is-style-blankit-year::before { left: 22px; }
    .is-style-blankit-year::after { top: 16px; width: 48px; height: 48px; }
}

/* Bands als Aufkleber; fett gesetzte Namen sind Headliner */
ul.is-style-blankit-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-block: 0;
}
ul.is-style-blankit-acts li {
    font-family: var(--f-display);
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    line-height: 1.1;
    padding: .34em .6em .28em;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 10px;
}
ul.is-style-blankit-acts li strong { font-weight: 400; }
ul.is-style-blankit-acts li:has(strong) {
    background: var(--coral);
    color: #fff;
    font-size: clamp(1.25rem, 3.6vw, 1.7rem);
    box-shadow: 3px 3px 0 var(--ink);
}

/* Jahresleiste: bleibt unter der Topbar stehen */
.yearnav {
    position: sticky;
    top: var(--topbar-h, 68px);
    z-index: 40;
    background: var(--ink);
    border-bottom: 3px solid var(--ink);
}
.yearnav ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 auto;
    padding: 10px var(--gutter);
    max-width: 1120px;
    overflow-x: auto;
    scrollbar-width: none;
}
.yearnav ol::-webkit-scrollbar { display: none; }
.yearnav li { display: flex; align-items: center; flex: none; }
.yearnav li + li::before {
    content: "";
    width: clamp(10px, 2.4vw, 26px);
    height: 4px;
    background: var(--paper);
}
.yearnav li > a {
    font-weight: 400;
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 38px;
    padding: 2px 10px 0;
    border: 3px solid var(--paper);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-display);
    letter-spacing: .04em;
    font-size: 1.02rem;
    line-height: 1;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, scale .15s ease;
}
.yearnav li > a:hover { background: var(--yellow); color: var(--ink); }
.yearnav li > a.is-active { background: var(--coral); color: #fff; scale: 1.12; }
html.has-yearnav { scroll-padding-top: var(--year-offset, 140px); scroll-snap-type: y proximity; }

/* „Weiter zu 2024“ am Ende eines Jahres */
.year-next {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin-top: 26px !important;
    font-family: var(--f-display);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 1.05rem;
    text-decoration: none;
    padding: .45em .8em .4em;
    background: var(--ink);
    color: var(--yellow);
    border-radius: 10px;
}
.year-next:hover { background: var(--coral-dark); color: #fff; }
.year-next .icon { rotate: 90deg; }
