/* ============================================================
   TERMIN

   Eigene Datei, damit seite.css unverändert aus base.html
   übernommen bleibt.

   Betroffen sind zwei Dinge:
     1. die Verweise auf den Terminkarten und beim Countdown
        der Startseite (Bild und Titel führen zur Einzelseite)
     2. die Einzelseite eines Termins (public/termin.php)

   Farben, Rundungen und Schatten kommen aus den Variablen von
   seite.css und wechseln damit auch mit der Jahreszeit.
   ============================================================ */

/* ------------------------------------------------------------
   1. Verweise auf der Startseite
   ------------------------------------------------------------ */

/* Bild der Karte als Verweis: sieht aus wie vorher. */
.card-bildlink {
    display: block;
    color: inherit;
}

.card-bildlink:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: -3px;
}

/* Titel als Verweis: Farbe der Überschrift, Unterstrich erst beim Zeigen. */
.termin-link {
    color: inherit;
    text-decoration: none;
}

.termin-link:hover,
.termin-link:focus-visible {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ------------------------------------------------------------
   2. Einzelseite
   ------------------------------------------------------------ */

/* Platz für die feste Kopfleiste, wie auf der Galerieseite. */
.termin-seite {
    padding-top: 116px;
}

.termin-zurueck {
    display: inline-block;
    margin-bottom: 18px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink-3);
}

.termin-zurueck:hover {
    color: var(--brand);
}

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

.termin-kopf {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 36px;
}

.termin-bildrahmen {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--paper-2);
    box-shadow: var(--sh-1);
}

/* Foto wie gezeichnetes Motiv in derselben Größe.
   .card-canvas setzt 190 px Höhe – hier wird sie überschrieben. */
.termin-bild,
.card-canvas.termin-bild {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.termin-marken {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.termin-marken .eyebrow {
    margin-bottom: 0;
}

.termin-titel {
    margin-bottom: .2em;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    overflow-wrap: anywhere;
}

.termin-untertitel {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-2);
}

.termin-fakten {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
}

.termin-fakten > div {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 10px;
}

.termin-fakten dt {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: .2em;
}

.termin-fakten dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.termin-kurztext {
    margin: 0 0 18px;
}

.termin-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

/* ---------------------------------------------------- Hinweise */

.termin-hinweis {
    margin: 0 0 36px;
    padding: 16px 20px;
    background: var(--gold-lt);
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    border-radius: var(--r-s);
    color: var(--ink);
}

.termin-hinweis-absage {
    background: var(--brand-lt);
    border-left-color: var(--brand);
}

/* ---------------------------------------------------- Inhalt */

.termin-inhalt {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 44px;
}

.termin-inhalt-eine {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
}

.termin-zwischentitel {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    margin-bottom: .7em;
}

.termin-text {
    color: var(--ink-2);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.termin-text p {
    margin: 0 0 1em;
}

/* Programm: Uhrzeit links, Text rechts, eine feine Zeitleiste. */
.ablauf {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 3px solid var(--line);
}

.ablauf li {
    position: relative;
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 14px;
    padding: 9px 0 9px 20px;
}

.ablauf li::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 15px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--brand);
}

/* Ohne Uhrzeit nimmt der Text die ganze Breite ein. */
.ablauf li.ablauf-ohne-zeit {
    grid-template-columns: minmax(0, 1fr);
}

.ablauf li.ablauf-ohne-zeit::before {
    border-color: var(--line);
}

.ablauf-zeit {
    font-weight: 800;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ablauf-text {
    overflow-wrap: anywhere;
}

/* Seitenspalte: Preise und Plakat. */
.termin-seitenspalte {
    display: grid;
    gap: 22px;
}

.termin-kasten {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    box-shadow: var(--sh-1);
}

.preisliste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.preisliste li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}

.preisliste li:last-child {
    border-bottom: none;
}

.preis-name small {
    display: block;
    font-size: .85rem;
    color: var(--ink-3);
}

.preis-betrag {
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.termin-plakat {
    margin: 0;
}

.termin-plakat img {
    cursor: zoom-in;
}

/* ---------------------------------------------------- Sponsoren */

.termin-sponsoren {
    margin: 44px 0 0;
    text-align: center;
}

.termin-sponsoren .sponsor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sponsor-zusatz {
    margin: 0;
    font-size: .88rem;
    line-height: 1.4;
    color: var(--ink-2);
}

.sponsor-zusatz b {
    display: block;
    color: var(--ink);
}

.termin-fuss {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    margin: 44px 0 0;
}

/* ---------------------------------------------------- Schmale Geräte */

@media (max-width: 920px) {
    .termin-kopf,
    .termin-inhalt {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .termin-bild,
    .card-canvas.termin-bild {
        height: 260px;
    }
}

@media (max-width: 520px) {
    .termin-seite {
        padding-top: 96px;
    }

    .termin-fakten > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .ablauf li {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}
