/* ==========================================================================
   My Little Underground – Site CSS · Richtung „Holzschnitt“
   Papier, Logo-Rot, schwarze Druckfarbe. Historischer Bleisatz (IM Fell)
   für Überschriften, Libre Caslon für Text. Kein Build-Schritt nötig.
   ========================================================================== */

@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("/fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap;
    src: url("/fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("/fonts/im-fell-english-sc-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap;
    src: url("/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); }

:root {
    --paper: #f6e8d2;
    --paper-2: #efdcc0;
    --card: #fbf2e4;
    --ink: #1f1b17;
    --soft: #6d6255;
    --red: #b3261e;
    --red-dark: #8e1c16;
    --rule: rgba(31, 27, 23, .25);

    --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
    --caps: "IM Fell English SC", "Iowan Old Style", Georgia, serif;
    --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --wrap: 72rem;
    --wrap-narrow: 42rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --shadow: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.wrap--program { max-width: calc(50rem + 2 * var(--gutter)); }

.visually-hidden, .skip-link:not(:focus) {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }

/* ---------- Kopf ---------- */

.site-header { background: var(--paper); border-bottom: 3px double var(--ink); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }

.wordmark {
    display: inline-flex; align-items: center; gap: .7rem; color: var(--red); text-decoration: none;
    font-family: var(--caps); letter-spacing: .18em; font-size: 1rem; line-height: 1.05;
}
.wordmark:hover { color: var(--red-dark); }
.wordmark__flowers { width: 3.2rem; height: auto; }
.wordmark--small { font-size: .95rem; margin-bottom: .4rem; }

.nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; background: none; cursor: pointer;
    border: 1px solid var(--ink); padding: .4rem .8rem; font-family: var(--caps); font-size: 1rem; letter-spacing: .08em; color: var(--ink);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 1.1rem; height: 1.5px; background: currentColor; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -5px; }
.nav-toggle__bars::after { position: absolute; top: 5px; }

.main-nav { display: none; }
.main-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 3px double var(--ink); padding: .5rem var(--gutter) 1rem;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: .55rem 0; color: var(--ink); text-decoration: none;
    font-family: var(--caps); font-size: 1.1rem; letter-spacing: .08em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red); }

@media (min-width: 56rem) {
    .nav-toggle { display: none; }
    .main-nav, .main-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
    .main-nav ul { display: flex; gap: 1.6rem; }
    .main-nav a { padding: .2rem 0; font-size: 1.05rem; border-bottom: 1px solid transparent; }
    .main-nav a[aria-current="page"] { border-bottom-color: var(--red); }
}

/* ---------- Grundbausteine ---------- */

.page-head { padding-top: clamp(2rem, 6vw, 3.75rem); padding-bottom: 1.5rem; }
.page-title { font-family: var(--display); font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.08; }
.lead { font-size: 1.15em; color: var(--soft); max-width: 38em; }
.eyebrow { font-family: var(--caps); font-size: .95rem; letter-spacing: .2em; color: var(--red); margin-bottom: .6rem; }
.small { font-size: .85rem; color: var(--soft); }
.empty { font-style: italic; color: var(--soft); padding: 1rem 0; }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tinted { background: var(--paper-2); }
.section--flush-top { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-title { font-family: var(--caps); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); letter-spacing: .12em; color: var(--red); }

.ornament { text-align: center; color: var(--red); letter-spacing: .6em; margin: 0; font-size: .95rem; }

.more-link { font-family: var(--caps); letter-spacing: .1em; font-size: 1.05rem; text-decoration: none; color: var(--red); }
.more-link::after { content: " →"; }
a.more-link:hover { text-decoration: underline; }

.button {
    display: inline-block; background: var(--red); color: var(--paper); text-decoration: none; cursor: pointer;
    font-family: var(--caps); font-size: 1.05rem; letter-spacing: .12em; line-height: 1.2;
    padding: .65rem 1.4rem; border: 1px solid var(--red); transition: background .15s, color .15s;
}
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button--big { font-size: 1.2rem; padding: .8rem 2rem; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }

/* Reihen erscheinen als rote Kapitälchen, nicht als bunte Pillen */
.tag { font-family: var(--caps); letter-spacing: .1em; font-size: .95rem; color: var(--red); text-decoration: none; }
.tag + .tag::before { content: " · "; color: var(--soft); }
a.tag:hover { text-decoration: underline; }

.notice { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--ink); padding: .7rem 1rem; font-style: italic; }
.notice--alert { border-left-color: var(--red); color: var(--red-dark); font-style: normal; font-weight: 700; }

.prose { max-width: 38em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--display); font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-family: var(--display); font-size: 1.3rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 2px solid var(--red); font-family: var(--display); font-style: italic; font-size: 1.15em; }

.facts { margin: 1.5rem 0; border-top: 1px solid var(--rule); }
.facts__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--caps); letter-spacing: .1em; color: var(--red); }
.facts dd { margin: 0; }

.fact-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.fact-list li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.fact-list li::before { content: "✿"; position: absolute; left: 0; color: var(--red); }
.link-list { padding-left: 1.2em; }

.back { padding-top: 1.5rem; margin: 0; font-family: var(--caps); letter-spacing: .08em; }
.back a { text-decoration: none; }

/* Bilder von Flyern/Covern: wie aufgeklebt mit hartem Schatten */
.event__flyer img, .flyer-feature__item img, .flyer-grid img, .product__media img, .trio__item img, .teaser img {
    box-shadow: var(--shadow); border: 1px solid var(--ink);
}

/* ---------- Startseite ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__logo { margin: 0; justify-self: center; max-width: 24rem; width: 100%; }
.hero__logo img { width: 100%; }
.hero__title { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); line-height: 1.15; margin-bottom: .8rem; text-wrap: balance; }
.hero__intro { color: var(--soft); max-width: 34em; margin: 0; }
@media (min-width: 52rem) { .hero__inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.section--program { padding-top: 1.5rem; }
.program-title { font-family: var(--caps); text-align: center; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); letter-spacing: .16em; margin-bottom: .1rem; }
.program-sub { text-align: center; font-style: italic; color: var(--soft); margin-bottom: 1.75rem; }
.program-more { text-align: center; margin: 1.75rem 0 0; }

.trio { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
.trio__inner { display: grid; gap: 0; padding-inline: 0; }
.trio__item {
    display: grid; gap: .8rem; align-content: start; padding: 2rem var(--gutter);
    color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule);
}
.trio__item:last-child { border-bottom: 0; }
.trio__item img { height: 11rem; width: auto; max-width: 100%; justify-self: start; filter: sepia(.2) contrast(1.05); transition: transform .2s; }
.trio__item:hover img { transform: rotate(-1.5deg); }
.trio__item:hover .trio__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.trio__title { font-family: var(--caps); font-size: 1.5rem; letter-spacing: .1em; color: var(--red); margin: .4rem 0 0; }
.trio__item p { margin: 0; color: var(--soft); }
@media (min-width: 52rem) {
    .trio__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: var(--gutter); }
    .trio__item { border-bottom: 0; border-right: 1px solid var(--rule); padding: 2.25rem 1.75rem; }
    .trio__item:first-child { padding-left: 0; }
    .trio__item:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- Programm-Zeilen (Termine) ---------- */

.termin-list { display: grid; border-top: 1px solid var(--rule); }
.prog-row { border-bottom: 1px solid var(--rule); }
.prog-row[hidden] { display: none; }
.prog-row__link {
    display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .25rem 1.25rem;
    padding: 1rem 0; color: var(--ink); text-decoration: none; align-items: baseline;
}
.prog-row__link:hover .prog-row__title { color: var(--red); }
.prog-row__date { display: grid; }
.prog-row__day { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.prog-row__weekday { font-family: var(--caps); font-size: .85rem; letter-spacing: .1em; color: var(--red); }
.prog-row__title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin: 0 0 .15rem; transition: color .15s; }
.prog-row__subtitle { font-style: italic; margin: 0; }
.prog-row__meta { color: var(--soft); margin: 0; font-size: .95rem; }
.prog-row__cancelled { color: var(--red); font-weight: 700; margin: .2rem 0 0; }
.prog-row.is-cancelled .prog-row__title { text-decoration: line-through; }
.prog-row__side { grid-column: 2; display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.prog-row__reihe { font-family: var(--caps); letter-spacing: .1em; color: var(--red); font-size: .95rem; }
.prog-row__reihe span + span::before { content: " · "; color: var(--soft); }
.prog-row__flyer { width: 3.5rem; box-shadow: 3px 3px 0 var(--ink); border: 1px solid var(--ink); transform: rotate(1.5deg); }
@media (min-width: 44rem) {
    .prog-row__link { grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1.5rem; padding: 1.1rem 0; }
    .prog-row__day { font-size: 2rem; }
    .prog-row__side { grid-column: auto; flex-direction: row; justify-content: flex-end; align-self: center; }
    .prog-row__flyer { width: 4.25rem; }
}

.filter { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-bottom: 1.25rem; }
.filter__btn {
    font-family: var(--caps); font-size: 1.05rem; letter-spacing: .08em; cursor: pointer;
    background: none; border: 0; border-bottom: 1px solid transparent; color: var(--soft); padding: .2rem 0;
}
.filter__btn:hover { color: var(--ink); }
.filter__btn[aria-pressed="true"] { color: var(--red); border-bottom-color: var(--red); }
.archive-hint { margin-top: 2rem; }

/* Detailseiten (Termin, Projekt) */
.event__grid { display: grid; gap: 2rem; padding-block: 1rem 3rem; }
@media (min-width: 56rem) {
    .event__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
    .event__flyer { position: sticky; top: 7rem; }
}
.event__flyer img { width: 100%; }
.event__tags { margin-bottom: .6rem; }

.lineup { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--rule); }
.lineup li { padding: .6rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; }
.lineup strong { font-size: 1.15rem; }
.lineup span { font-style: italic; color: var(--soft); }

/* Archiv */
.archiv-year { font-family: var(--display); font-size: 2.4rem; margin-top: 2rem; padding-bottom: .2rem; border-bottom: 3px double var(--ink); }
.archiv-year--small { font-size: 1.6rem; margin-top: 2.5rem; }
.archiv-list { list-style: none; margin: 0; padding: 0; }
.archiv-row a {
    display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: .1rem 1rem;
    padding: .65rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.archiv-row a:hover .archiv-row__title { color: var(--red); }
.archiv-row time { font-family: var(--display); font-size: 1.1rem; grid-row: span 2; font-variant-numeric: tabular-nums; }
.archiv-row__title { font-weight: 700; }
.archiv-row__place { color: var(--soft); font-size: .92rem; }
.archiv-row__tags { display: none; }
@media (min-width: 52rem) {
    .archiv-row a { grid-template-columns: 4rem minmax(0, 1fr) 14rem 10rem; align-items: baseline; }
    .archiv-row time { grid-row: auto; }
    .archiv-row__tags { display: block; text-align: right; }
}

/* Projekt-Übersicht */
.teaser-grid, .project-grid { display: grid; gap: 2rem; }
@media (min-width: 44rem) { .teaser-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.teaser { display: grid; gap: .8rem; align-content: start; color: var(--ink); text-decoration: none; }
.teaser img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; filter: sepia(.15); transition: transform .2s; }
.teaser:hover img { transform: rotate(-1deg); }
.teaser:hover .teaser__title { color: var(--red); }
.teaser__placeholder { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px solid var(--ink); box-shadow: var(--shadow); background: var(--card); }
.teaser .teaser__placeholder img { width: 45%; aspect-ratio: auto; box-shadow: none; border: 0; filter: none; }
.teaser__body { display: grid; gap: .3rem; }
.teaser__body .eyebrow { margin: 0; font-size: .85rem; }
.teaser__title { font-family: var(--display); font-size: 1.6rem; margin: 0; transition: color .15s; }
.teaser p { color: var(--soft); margin: 0; }

/* ---------- Familiendisko ---------- */

.fd-hero { padding-block: clamp(2rem, 6vw, 3.75rem); border-bottom: 3px double var(--ink); }
.fd-hero__inner { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .fd-hero__inner { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: end; } }
.fd-hero__subtitle { font-family: var(--display); font-style: italic; font-size: 1.35rem; }

.flyer-feature { display: grid; gap: 2.5rem; margin-top: 1rem; }
.flyer-feature__item { display: grid; gap: 1.5rem; align-items: center; }
.flyer-feature__item img { width: 100%; max-width: 24rem; }
.flyer-feature__date { font-family: var(--caps); letter-spacing: .1em; color: var(--red); margin-bottom: .3rem; font-size: 1.1rem; }
.flyer-feature__item h3 { font-family: var(--display); font-size: 1.8rem; }
.flyer-feature__item h3 a { color: var(--ink); text-decoration: none; }
.flyer-feature__item h3 a:hover { color: var(--red); }
@media (min-width: 44rem) { .flyer-feature__item { grid-template-columns: minmax(0, 20rem) 1fr; gap: 3rem; } }

.flyer-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
@media (min-width: 44rem) { .flyer-grid { grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 2rem; } }
.flyer-grid img { width: 100%; transition: transform .2s; }
.flyer-grid li:nth-child(odd) img { transform: rotate(-1deg); }
.flyer-grid li:nth-child(even) img { transform: rotate(1deg); }
.flyer-grid a:hover img { transform: rotate(0) scale(1.02); }

/* ---------- Quartett & Buch ---------- */

.product { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .product { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.product__media img { width: 100%; }
.product__media--book img { max-width: 22rem; margin-inline: auto; }
.price { font-family: var(--display); font-size: 2.4rem; color: var(--red); margin-bottom: 1rem; }

.book-body { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .book-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; } }
.name-list { list-style: none; padding: 0; margin: 0; columns: 2 12rem; column-gap: 2rem; }
.name-list li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }

/* ---------- Newsletter ---------- */

.newsletter { background: var(--paper-2); padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.newsletter .section-title { font-family: var(--display); font-style: italic; letter-spacing: 0; color: var(--ink); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.newsletter .small { margin-top: .9rem; }
.newsletter__form { max-width: 30rem; margin: 1rem auto 0; }
.newsletter__form label { display: block; font-family: var(--caps); letter-spacing: .1em; color: var(--red); margin-bottom: .2rem; }
.newsletter__row { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; align-items: end; }
.newsletter__row input {
    flex: 1 1 14rem; min-width: 0; font: inherit; font-style: italic; padding: .45rem 0; color: var(--ink);
    border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0;
}
.newsletter__row input:focus { outline: none; border-bottom: 2px solid var(--red); }

/* ---------- Fuß ---------- */

.site-footer { padding-block: 2rem; font-size: .9rem; color: var(--soft); border-top: 1px solid var(--rule); }
.site-footer__inner { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer__claim { font-family: var(--display); font-style: italic; max-width: 30rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.site-footer__links a { color: var(--ink); }
.site-footer__links a:hover { color: var(--red); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
