/* debug = true */

:root {
    --paper: #efe6d8;
    --paper_deep: #e4d8c6;
    --ink: #1a1612;
    --muted: #6b6258;
    --accent: #b8432a;
    --cream: #f4efe6;
    --lake: #12181c;
    --line: rgba(26, 22, 18, 0.16);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --header: 2.15rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    hyphens: auto;
    -webkit-hyphens: auto;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.45;
}

h1,
h2,
h3 {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.site_header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 0;
    padding: 0.4rem 1.4rem 0.22rem;
    line-height: 1.15;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.brand {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.brand a,
.site_nav a,
.footer_brand a,
.footer_nav a,
.hero_cta,
.block_more a,
.laender_liste a,
.termin_zeile a,
.quell_satz a {
    text-decoration: none;
}

.site_nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
}

.site_nav a:hover,
.site_nav a.is_here,
.footer_nav a:hover,
.block_more a:hover,
.quell_satz a:hover {
    color: var(--accent);
}

.is_home .brand {
    display: none;
}

.is_home .site_header {
    position: absolute;
    left: 0;
    right: 0;
    justify-content: flex-end;
    background: transparent;
    border-bottom-color: transparent;
    color: var(--cream);
}

.is_home .site_header.is_scrolled {
    position: fixed;
    background: rgba(18, 24, 28, 0.9);
    border-bottom-color: rgba(244, 239, 230, 0.12);
}

.hero {
    position: relative;
    min-height: 100svh;
    color: var(--cream);
    overflow: hidden;
}

.hero_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 45%;
}

.hero_shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 16, 20, 0.78) 0%,
        rgba(10, 16, 20, 0.5) 38%,
        rgba(10, 16, 20, 0.12) 68%,
        rgba(10, 16, 20, 0.28) 100%
    );
}

.hero_copy {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    padding: calc(var(--header) + 18vh) 1.5rem 4rem;
    animation: rise 1s ease both;
}

.kicker {
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero .kicker {
    color: rgba(244, 239, 230, 0.72);
}

.hero_brand {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 0.92;
}

.hero h1,
.page h1,
.block h2,
.tag_kopf h2 {
    font-family: var(--serif);
    font-weight: 500;
}

.hero h1 {
    margin: 1.1rem 0 0.8rem;
    font-size: clamp(1.25rem, 6.6vw, 2.8rem);
    line-height: 1.12;
    white-space: nowrap;
}

.hero_lead {
    margin: 0 0 1.6rem;
    max-width: 28ch;
    font-size: 1.05rem;
    color: rgba(244, 239, 230, 0.86);
}

.hero_cta {
    display: inline-block;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid var(--cream);
    font-size: 0.95rem;
}

.hero_cta:hover {
    color: #f0c2b4;
    border-bottom-color: #f0c2b4;
}

.hero_credit {
    position: absolute;
    right: 1.4rem;
    bottom: 0.7rem;
    z-index: 2;
    margin: 0;
    max-width: 26rem;
    padding: 0.2rem 0.45rem;
    text-align: right;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(244, 239, 230, 0.92);
    background: rgba(10, 16, 20, 0.42);
}

.hinweis {
    margin: 0;
    padding: 0.7rem 1.5rem;
    background: var(--paper_deep);
    font-size: 0.88rem;
    color: var(--muted);
}

.block {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 4.2rem 1.4rem 3.2rem;
}

.block_head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

.block_head h2,
.block h2,
.page h1 {
    margin: 0;
}

.block_head h2,
.laender h2,
.quell_satz h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.block_head p {
    margin: 0;
    color: var(--muted);
}

.kalender_lauf {
    display: grid;
    gap: 2.4rem;
}

.kalender_lauf .tag:last-child .termin_zeile:last-child a {
    border-bottom: none;
}

.tag_kopf {
    position: sticky;
    top: var(--header);
    z-index: 4;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.65rem 0 0.45rem;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
}

.is_home .tag_kopf {
    top: 0;
}

.tag_wochentag {
    margin: 0;
    min-width: 7.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.tag_kopf h2 {
    margin: 0;
    font-size: 1.55rem;
}

.termin_zeile a {
    display: grid;
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.2rem 0.9rem;
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
    align-items: start;
    transition: border-left-color 0.2s ease, transform 0.2s ease;
}

.termin_zeile a:hover {
    border-left-color: var(--accent);
    transform: translateX(4px);
}

.termin_foto {
    grid-column: 1;
    grid-row: 1 / span 6;
    margin: 0;
    width: 5.8rem;
    height: 5.8rem;
    overflow: hidden;
    background: #d8d2c8;
    align-self: start;
}

.termin_foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.termin_zeile a:hover .termin_foto img {
    transform: scale(1.07);
}

.termin_zeit,
.termin_km,
.termin_zeile h3,
.termin_ort,
.termin_credit {
    grid-column: 2;
    min-width: 0;
}

.termin_zeit {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.termin_art {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.termin_zeile h3 {
    margin: 0.05rem 0 0;
    font-family: var(--serif);
    font-size: 1.22rem;
    font-weight: 500;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.termin_ort {
    margin: 0;
    color: var(--muted);
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.termin_credit {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--muted);
}

.block_more {
    margin: 2rem 0 0;
}

.block_more a,
.quell_satz a {
    border-bottom: 1px solid var(--ink);
}

.bleed {
    margin: 0;
}

.bleed img {
    width: 100%;
    height: min(78vh, 820px);
    object-fit: cover;
}

.bleed figcaption,
.inline_bild figcaption {
    width: min(1120px, 100%);
    margin: 0.65rem auto 0;
    padding: 0 1.4rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.quell_satz {
    max-width: 34rem;
    margin-left: 8vw;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.quell_satz p {
    font-size: 1.15rem;
}

.laender_liste {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
}

.laender_liste li {
    border-top: 1px solid var(--line);
}

.laender_liste a {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.laender_liste a:hover {
    color: var(--accent);
    padding-left: 0.4rem;
}

.page {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 1.35rem 1.4rem 4rem;
}

.page_head {
    margin-bottom: 0.85rem;
}

.page h1 {
    font-size: 1.85rem;
}

.page_lead {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.standort_block {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: end;
    margin-bottom: 1.6rem;
}

.standort_block p {
    margin: 0;
}

.standort_block label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.standort_block select,
.standort_block button {
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    padding: 0.25rem 0;
    cursor: pointer;
}

.standort_block button:hover,
.standort_block select:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.standort_note {
    flex-basis: 100%;
    font-size: 0.88rem;
    color: var(--muted);
}

.termin_zeile.has_km .termin_km {
    margin: 0;
    font-size: 0.86rem;
    color: var(--accent);
}

.filter_bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
    align-items: end;
    margin-bottom: 1.1rem;
}

.filter_bar p {
    margin: 0;
}

.filter_bar label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.filter_bar select,
.filter_bar input,
.filter_bar button {
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    padding: 0.25rem 0;
}

.filter_suche {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.2rem 0.75rem;
    align-items: end;
    flex: 1 1 14rem;
}

.filter_suche label {
    grid-column: 1 / -1;
}

.filter_bar input {
    min-width: 0;
    width: 100%;
}

.filter_bar button {
    cursor: pointer;
}

.filter_bar button:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.leer {
    color: var(--muted);
}

.termin_seite h1 {
    max-width: none;
    font-size: clamp(1.65rem, 6.4vw, 2.8rem);
    line-height: 1.15;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.termin_bild {
    margin: 1.6rem 0 0;
}

.termin_bild img {
    width: 100%;
    height: min(46vh, 420px);
    object-fit: cover;
    display: block;
}

.termin_bild figcaption {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.termin_datum,
.termin_uhr {
    margin: 0.35rem 0 0;
    font-size: 1.15rem;
}

.termin_meta {
    display: grid;
    gap: 1rem;
    width: 100%;
    margin: 2rem 0;
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.termin_meta div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.6rem;
}

.termin_meta dt {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.termin_meta dd {
    margin: 0;
    min-width: 0;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
}

.termin_meta a {
    overflow-wrap: anywhere;
}

.termin_text {
    font-size: 1.12rem;
    max-width: 38rem;
}

.lese h2 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    margin: 2.2rem 0 0.6rem;
    max-width: 22ch;
}

.lese h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 1.4rem 0 0.35rem;
}

.lese ul {
    margin: 0.4rem 0 1rem;
    padding-left: 1.2rem;
}

.angaben {
    display: grid;
    gap: 0.85rem;
    margin: 1.2rem 0 0;
    padding: 0;
}

.angaben div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
}

.angaben dt {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.angaben dd {
    margin: 0;
}

.lese .hinweis {
    max-width: 40rem;
    padding: 0.7rem 0.9rem;
}

.lese p,
.lese li {
    font-size: 1.08rem;
    max-width: 40rem;
}

.lese code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9em;
}

.stand {
    color: var(--muted);
}

.inline_bild {
    margin: 2.4rem 0 0;
}

.inline_bild img {
    width: 100%;
    height: 28rem;
    object-fit: cover;
}

.site_footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 2rem 1.4rem;
    border-top: 1px solid var(--line);
}

body.kalender .site_footer,
body.naehe .site_footer {
    border-top: none;
}

.footer_brand {
    margin: 0;
    font-family: var(--serif);
}

.footer_nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
}

.reveal.is_in {
    animation: rise 0.7s ease forwards;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 760px) {
    html {
        --header: 1.85rem;
    }

    .brand {
        display: none;
    }

    .site_header,
    .is_home .site_header {
        justify-content: flex-start;
        padding: 0.38rem 1rem 0.16rem;
        gap: 0;
    }

    .site_nav {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
        font-size: 0.86rem;
    }

    .hero_copy {
        max-width: none;
        padding: calc(var(--header) + 8vh) 1rem 3rem;
    }

    .block,
    .page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .block_head,
    .tag_kopf {
        flex-direction: column;
        gap: 0.25rem;
    }

    .site_footer {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: 0.7rem;
        padding: 1.3rem 1rem;
    }

    .footer_primary {
        display: none;
    }

    .footer_nav {
        justify-content: flex-end;
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .tag_wochentag {
        min-width: 0;
    }

    .page {
        padding-top: 1.05rem;
    }

    .page h1 {
        font-size: 1.65rem;
    }

    .termin_zeile a {
        grid-template-columns: 4.2rem minmax(0, 1fr);
        column-gap: 0.7rem;
        padding-left: 0;
    }

    .termin_foto {
        grid-column: 1;
        grid-row: 1 / span 6;
        width: 4.2rem;
        height: 4.2rem;
        align-self: start;
    }

    .termin_zeit,
    .termin_km,
    .termin_zeile h3,
    .termin_ort,
    .termin_credit {
        grid-column: 2;
    }

    .termin_zeile h3 {
        font-size: 1.08rem;
    }

    .filter_bar {
        gap: 0.7rem 1rem;
    }

    .filter_suche {
        flex: 1 1 100%;
    }

    .quell_satz {
        margin-left: auto;
        margin-right: auto;
        width: min(1120px, 100%);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bleed img,
    .inline_bild img {
        height: 52vh;
    }

    .termin_meta div,
    .angaben div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero_copy,
    .reveal,
    .termin_zeile a,
    .laender_liste a {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }

    .termin_foto img,
    .termin_zeile a:hover .termin_foto img {
        transform: none;
        transition: none;
    }
}
