/* ============================================================
   FRAKTVRED — pretix shop override
   Paste into the pretix organizer/event "Custom CSS" / header
   injection. Mirrors the Next.js site design tokens.

   Pair this with: pretix admin → "Shop-Design" → Schriftart.
   Any font from the pretix-fontpack-free plugin works; this
   stylesheet reads the admin choice at runtime and does not
   hardcode a family. All fontpack fonts are self-hosted, so any
   choice satisfies CSP.

   Notes:
   - Only the *selected* font is served to the page. You cannot
     reach a second fontpack family (e.g. Space Mono) from CSS,
     hence the system stack for --font-mono below.
   - pretix emits exactly four @font-face blocks per font:
     normal/bold × upright/italic. Stick to font-weight 400 and
     700; anything else gets synthesised by the browser and looks
     smeared, especially on a serif.
   - Organizer-level pages (event list, calendar) use the
     ORGANIZER's font setting, not any event's. Set the organizer
     font to whatever those shared pages should use.
   ============================================================ */

:root {
    --bg: #0e1116;
    --bg-2: #14181f;
    --bg-3: #1b1f27;
    --fg: #f8f5f2;
    --fg-dim: #c9c4be;
    --fg-mute: #9a948e;
    --line: rgba(248, 245, 242, 0.10);
    --line-strong: rgba(248, 245, 242, 0.28);
    --accent: #470ff4;
    --accent-hot: #6b3df7;
    --accent-text: #8a6cff;
    --rose: #a4243b;
    --tangerine: #f47e3e;

    /* Type roles are driven by whatever is selected in pretix admin.
       pretix publishes that on :root as --pretix-font-family-sans-serif
       from theme.css. var() resolves at render time, so this follows
       per-event font overrides automatically.
       The fallback chain matters: pretix deliberately omits the variable
       from widget CSS (`@if (not $widget)`), so embeds need it. */
    --font-shop:    var(--pretix-font-family-sans-serif, "Open Sans", "OpenSans", "Helvetica Neue", Helvetica, Arial, sans-serif);
    --font-display: var(--font-shop);
    --font-body:    var(--font-shop);
    --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --font-accent:  ui-serif, Georgia, "Times New Roman", serif;
}

/* ---- Base canvas ---- */
html, body {
    background: var(--bg) !important;
    color: var(--fg) !important;
    font-family: var(--font-body) !important;
    -webkit-font-smoothing: antialiased;
}

body { font-weight: 400; letter-spacing: 0.01em; }

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent-text); }
a:hover, a:focus { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

hr { border-color: var(--line); }

p, li, dd, dt, label, small, .help-block { color: var(--fg-dim); }
.text-muted, .text-center.text-muted { color: var(--fg-mute) !important; }

/* ---- Headings / display ----
   Heavier weight + tight tracking + uppercase gives the shop font a
   display-y character. If you switch to a serif (e.g. Vollkorn), consider
   dropping text-transform on .content-header h1 and letting the face carry
   the weight instead — uppercase reads much softer on a serif. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display) !important;
    color: var(--fg) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.1;
}
h1, .h1 { font-size: 2.6rem; line-height: 1.05; }
.modal-card-title.h3 { font-family: var(--font-display) !important; }

/* Mono-ish elements: tabular numbers + tight tracking so the shop font
   reads structured even though it isn't actually monospaced. */
.btn,
.steps li,
.availability-box,
.price,
.form-control.input-item-count,
.form-control.input-item-price,
.input-group-addon,
.panel-heading,
footer {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* ---- Top header + organizer logo ---- */
header,
.page-header,
.page-header.pager-header-with-logo {
    background: transparent !important;
    border: none !important;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}
.page-header-links,
.page-header-links-outside {
    border: none !important;
    background: transparent !important;
}
.page-header-links a,
.page-header-links .btn-default {
    color: var(--fg-dim) !important;
}

.organizer-logo,
.event-logo {
    max-height: 140px;
    height: 100%;
    width: auto;
}
.page-header.logo-large .organizer-logo { max-height: 180px; }

/* ---- Main container ---- */
.btn-group[role="navigation"] {
    display: none;
}
.container.main-box {
    background: var(--bg) !important;
    color: var(--fg) !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 2rem 1.5rem 4rem;
}

.product-row.headline::before, .product-row.simple::before {
    border-top: none;
}
article.item-with-variations:last-child::after, .product-row:last-child::after {
    border-bottom: none;
}

/* Subtle scanline / vignette to echo the frontend mood */
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(71,15,244,0.10), transparent 70%),
        radial-gradient(60% 50% at 100% 100%, rgba(164,36,59,0.06), transparent 70%);
    z-index: 0;
}
header, main, footer { position: relative; z-index: 1; }

/* ---- Panels / cards ---- */
.panel,
.panel-default,
.panel-danger,
.panel-warning,
.panel-info,
.panel-success,
.panel-primary {
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    color: var(--fg) !important;
}
.panel-heading {
    background: transparent !important;
    border-bottom: 1px solid var(--line) !important;
    color: var(--fg) !important;
    font-family: var(--font-mono) !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.85rem;
}
.panel-danger > .panel-heading,
.panel-warning > .panel-heading,
.panel-info > .panel-heading,
.panel-success > .panel-heading,
.panel-primary > .panel-heading {
    background: transparent !important;
    color: var(--fg) !important;
    border-bottom: 1px solid var(--line) !important;
}
.panel-danger { border-left: 3px solid var(--rose) !important; }
.panel-warning { border-left: 3px solid var(--tangerine) !important; }
.panel-info { border-left: 3px solid var(--accent-text) !important; }
.panel-success { border-left: 3px solid var(--accent) !important; }

.panel-title, .panel-title a { color: var(--fg) !important; }
.panel-body,
.panel > .panel-body,
.panel-default > .panel-body,
.panel-danger > .panel-body,
.panel-warning > .panel-body,
.panel-info > .panel-body,
.panel-success > .panel-body,
.panel-primary > .panel-body {
    background: transparent !important;
    color: var(--fg-dim) !important;
}

/* ---- Event list rows ---- */
.event-list.full-width-list .row,
.event-list.alternating-rows > * {
    background: transparent !important;
    border-bottom: 1px solid var(--line) !important;
    transition: background-color .15s ease;
}
.event-list.alternating-rows > *:nth-child(even) {
    background: rgba(255,255,255,0.015) !important;
}
.event-list .row:hover {
    background: color-mix(in oklab, var(--accent) 8%, transparent) !important;
}
.event-list a { color: var(--fg) !important; text-decoration: none; }
.event-list a:hover { color: var(--accent-text) !important; }

/* ---- Product rows (ticket selection) ---- */
.product-row,
.row.product-row.simple {
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px !important;
    margin: 0 0 .75rem !important;
    padding: 1rem .75rem !important;
}
.product-row:hover {
    border-color: var(--line-strong) !important;
}
.product-description { color: var(--fg-dim) !important; }
.item-category {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    color: var(--fg) !important;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: .35rem;
    margin: 1.5rem 0 .75rem;
}

/* Price + availability box */
.availability-box,
.col-md-2.availability-box,
.price {
    font-family: var(--font-mono) !important;
    color: var(--fg) !important;
    letter-spacing: 0.04em;
}
.availability-box.unavailable {
    color: var(--fg-mute) !important;
}
.availability-box.available { color: var(--accent-text) !important; }

/* ---- Buttons ---- */
.btn {
    border-radius: 2px !important;
    font-family: var(--font-body) !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.85rem;
    font-weight: 700;
    border-width: 1px;
    transition: all .15s ease;
}
.btn-primary,
.btn.btn-primary,
.btn.btn-lg.btn-primary,
.btn.btn-primary.btn-block {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--accent-hot) !important;
    border-color: var(--accent-hot) !important;
    color: #fff !important;
}
.btn-default,
.btn.btn-default {
    background: transparent !important;
    border-color: var(--line-strong) !important;
    color: var(--fg) !important;
}
.btn-default:hover,
.btn-default:focus,
.btn-default.active,
.btn-default[aria-current="page"] {
    background: color-mix(in oklab, var(--accent) 15%, var(--bg-3)) !important;
    border-color: var(--accent) !important;
    color: var(--fg) !important;
    box-shadow: none !important;
}
.btn-group .btn { border-radius: 0 !important; }
.btn-group .btn:first-child { border-top-left-radius: 2px !important; border-bottom-left-radius: 2px !important; }
.btn-group .btn:last-child  { border-top-right-radius: 2px !important; border-bottom-right-radius: 2px !important; }

/* Quantity stepper */
.input-item-count-group .btn,
.input-item-count-dec,
.input-item-count-inc {
    background: var(--bg-3) !important;
    border-color: var(--line) !important;
    color: var(--fg) !important;
}
.input-item-count-group .btn:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
.form-control.input-item-count,
.form-control.input-item-price {
    background: var(--bg) !important;
    border-color: var(--line) !important;
    color: var(--fg) !important;
    text-align: center;
    font-family: var(--font-mono) !important;
}

/* "Auswählen" is a single unbreakable word, and .btn's uppercase plus
   0.09em tracking make it wider than the content box of the narrow
   col-md-2 / col-sm-3 cell it sits in, so it poked out past the button's
   border at every breakpoint. Reclaim the symmetric right padding —
   pretix only needs the left side, which holds the absolutely positioned
   checkbox — ease the tracking, and allow a hyphenated break as a last
   resort so a longer locale can never spill outside the border again. */
.btn-checkbox {
    padding-right: 10px;
    letter-spacing: 0.04em;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* On xs, pretix pairs the price input and the select control side by side
   (both col-xs-6). That leaves the button's content box narrower than
   "AUSWÄHLEN", which is a single unbreakable word once .btn uppercases it
   and adds tracking, so the label spilled outside the button's border.
   Stack the two controls full-width instead — then nothing has to shrink
   to fit, and the quantity stepper gets a comfortable hit area too. */
@media (max-width: 767px) {
    .product-row .col-xs-6.price,
    .product-row .col-xs-6.availability-box {
        width: 100%;
        float: none;
    }
    /* .input-group is display:table, so it shrink-wraps without this. */
    .product-row .col-xs-6.price .input-group-price {
        width: 100%;
        /* pretix's 3px reads as a collision once the two controls stack. */
        margin-bottom: 8px;
    }
}

/* ---- Forms ---- */
.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
select,
textarea {
    background: var(--bg) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--fg) !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    font-family: var(--font-body) !important;
}
.form-control:focus {
    border-color: var(--accent) !important;
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent) !important;
}
.input-group-addon {
    background: var(--bg-3) !important;
    border-color: var(--line-strong) !important;
    color: var(--fg-dim) !important;
    font-family: var(--font-mono) !important;
}
::placeholder { color: var(--fg-mute) !important; }
label { color: var(--fg-dim) !important; }

/* ---- Wells (used for cancel order body etc.) ---- */
.well,
.well-sm,
.well-lg {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--fg-dim) !important;
}

/* ---- Info rows on event page ---- */
.info-row, .content-header {
    color: var(--fg-dim) !important;
}
.info-row-icon, .info-row .fa {
    color: var(--accent-text) !important;
}
.content-header h1, .content-header .h1 {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--fg) !important;
}

/* ---- Alerts ---- */
.alert {
    background: var(--bg-2) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--fg) !important;
    border-radius: 2px !important;
}
.alert-success { border-left: 3px solid var(--accent) !important; }
.alert-danger  { border-left: 3px solid var(--rose) !important; }
.alert-warning { border-left: 3px solid var(--tangerine) !important; }
.alert-info    { border-left: 3px solid var(--accent-text) !important; }

/* ---- Progress / steps ---- */
.progress {
    background: var(--bg-3) !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    height: 4px;
}
.progress-bar,
.progress-bar-success {
    background: var(--accent) !important;
}
.steps li {
    color: var(--fg-mute) !important;
    font-family: var(--font-mono) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}
.steps li.active, .steps li.active a { color: var(--accent-text) !important; }

/* ---- Modal cards ---- */
.modal-card {
    background: var(--bg-2) !important;
    color: var(--fg) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 2px !important;
}
.modal-card-icon, .modal-card-icon .fa { color: var(--accent-text) !important; }
.modal-card-description { color: var(--fg-dim) !important; }

/* ---- Footer ---- */
footer {
    background: transparent !important;
    color: var(--fg-mute) !important;
    border-top: 1px solid var(--line) !important;
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
footer a { color: var(--fg-dim) !important; }
footer a:hover { color: var(--accent-text) !important; }

/* ---- Locale switcher ---- */
.locales a { color: var(--fg-mute) !important; }
.locales a.active, .locales a:hover { color: var(--accent-text) !important; }

/* ---- Misc tweaks ---- */
.textbubble-success { background: var(--accent) !important; color: #fff !important; }
.status { color: var(--fg-dim) !important; }
.fa { color: inherit; }

/* ---- Bank transfer QR code: give the canvas a white quiet zone so
   the code is actually scannable on the dark theme. ---- */
#banktransfer_qrcodes_tabs_content [role="figure"] {
    display: inline-block;
    background: #fff;
    padding: 14px;
    border-radius: 2px;
    line-height: 0;
}
#banktransfer_qrcodes_tabs_content [role="figure"] canvas,
#banktransfer_qrcodes_tabs_content canvas[role="img"] {
    background: #fff !important;
    display: block;
}
/* Defensive fallback for any other QR canvas pretix renders */
canvas[aria-label*="QR" i],
canvas[aria-label*="banking app" i] {
    background: #fff !important;
    padding: 14px;
    box-sizing: content-box;
    border-radius: 2px;
}

/* ---- Stripe card / wallet separator ("ODER") ----
   pretix-stripe.css hardcodes light colors for the divider between the
   card field and the Google/Apple Pay button: a #DDDDDD bar (.hr) with a
   #FFFFFF pill (.sepText) punched through it to hold the label. On this
   canvas that pill reads as a white blob with near-invisible text. Keep
   the plugin's geometry — .sepText is absolutely positioned over .hr,
   vertical bar above 999px, horizontal below — and only restate the
   colors, plus the mono/uppercase treatment the other structural labels
   get. The pill has to match whatever sits behind the divider, which is
   the payment panel (--bg-2). */
#stripe-card-elements .hr {
    background-color: var(--line-strong) !important;
}
#stripe-card-elements .sepText {
    background: var(--bg-2) !important;
    color: var(--fg-mute) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Print: revert to neutral */
@media print {
    body::before { display: none; }
    body { background: #fff !important; color: #000 !important; }
}

/* ---- Tier states on .product-row ---- */
.product-row.is-active-tier {
    background: color-mix(in oklab, var(--accent) 12%, var(--bg-2)) !important;
    border-color: var(--accent) !important;
    box-shadow:
        0 0 0 1px var(--accent),
        0 0 24px -6px color-mix(in oklab, var(--accent) 55%, transparent);
    position: relative;
    overflow: hidden;
}
.product-row.is-active-tier::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    box-shadow: 0 0 18px color-mix(in oklab, var(--accent) 60%, transparent);
}

.product-row.is-active-tier .product-description,
.product-row.is-active-tier strong,
.product-row.is-active-tier .item-name,
.product-row.is-active-tier h3,
.product-row.is-active-tier .h4 {
    color: var(--fg) !important;
}
.product-row.is-active-tier .availability-box,
.product-row.is-active-tier .price {
    color: var(--accent-text) !important;
    font-weight: 700;
}

/* Past tiers — diagonal hatch, muted */
.product-row.is-past-tier {
    background:
        repeating-linear-gradient(-45deg, transparent 0 14px, rgba(248,245,242,0.025) 14px 16px),
        var(--bg-2) !important;
    border-color: var(--line) !important;
    opacity: 0.72;
}
.product-row.is-past-tier .product-description,
.product-row.is-past-tier .availability-box,
.product-row.is-past-tier .price,
.product-row.is-past-tier strong {
    color: var(--fg-mute) !important;
}
.product-row.is-past-tier .availability-box {
    text-decoration: line-through;
    text-decoration-color: color-mix(in oklab, var(--rose) 70%, transparent);
    text-decoration-thickness: 2px;
}

/* Future tiers — quiet, tangerine stage hint */
.product-row.is-future-tier {
    background: rgba(248,245,242,0.015) !important;
    border-color: var(--line) !important;
}
.product-row.is-future-tier .availability-box {
    color: var(--tangerine) !important;
}
.product-row.is-future-tier .product-description {
    color: var(--fg-dim) !important;
}

/* Disable the generic hover lift on non-active rows so the active one stands alone */
.product-row.is-past-tier:hover,
.product-row.is-future-tier:hover {
    border-color: var(--line) !important;
}
.product-row.is-active-tier:hover {
    background: color-mix(in oklab, var(--accent) 16%, var(--bg-2)) !important;
}

/* ============================================================
   CALENDAR VIEWS (week / month / day)
   Note: these render on organizer-level pages, which use the
   ORGANIZER's font setting rather than any event's.
   ============================================================ */

/* ---- Shared event pill (used in all three calendar views) ---- */
a.event {
    display: block;
    background: color-mix(in oklab, var(--accent) 18%, var(--bg-3)) !important;
    border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent) !important;
    border-radius: 2px !important;
    padding: 0.2rem 0.4rem !important;
    text-decoration: none !important;
    color: var(--fg) !important;
    transition: background .15s ease, border-color .15s ease;
}
a.event:hover {
    background: color-mix(in oklab, var(--accent) 28%, var(--bg-3)) !important;
    border-color: var(--accent) !important;
    color: var(--fg) !important;
    text-decoration: none !important;
}
a.event.continued {
    border-style: dashed !important;
    opacity: 0.7;
}
.event-name {
    display: block;
    color: var(--fg) !important;
    font-weight: 700;
    font-size: 0.82rem;
}
.event-time {
    display: block;
    color: var(--fg-mute) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem;
}
.event-status {
    display: block;
    color: var(--accent-text) !important;
    font-size: 0.72rem;
}
.event-name-continued {
    color: var(--fg-mute) !important;
    font-style: italic;
    font-weight: 400;
}

/* ---- Calendar nav (prev / selector / next row) ---- */
ul.calendar-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.25rem !important;
    align-items: center;
}
ul.calendar-nav li { display: flex; align-items: center; }

/* ---- Month calendar (table.table-calendar) ---- */
table.table-calendar {
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
    width: 100%;
    table-layout: fixed;
}
table.table-calendar thead th {
    background: transparent !important;
    border: none !important;
    color: var(--fg-mute) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem 0.5rem !important;
}
table.table-calendar td.day {
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px;
    vertical-align: top;
    padding: 0.4rem 0.5rem !important;
    min-height: 72px;
}
table.table-calendar td.day.no-events {
    opacity: 0.45;
}
table.table-calendar td.day.has-events {
    border-color: var(--line-strong) !important;
}
table.table-calendar .day-label,
table.table-calendar time.hidden-xs {
    color: var(--fg-mute) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.78rem;
    display: block;
    margin-bottom: 0.3rem;
}
table.table-calendar td.day.has-events .day-label,
table.table-calendar td.day.has-events time.hidden-xs {
    color: var(--fg) !important;
}
table.table-calendar ul.events {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
table.table-calendar ul.events li {
    margin-bottom: 2px;
    color: var(--fg-dim) !important;
}
/* Mobile selected-day panel */
div#selected-day.table-calendar {
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px;
    padding: 0.75rem !important;
    margin-top: 0.5rem;
}

/* ---- Week calendar (div.week-calendar) ---- */
.week-calendar {
    border-top: 1px solid var(--line);
}
.week-calendar details.weekday {
    border-bottom: 1px solid var(--line);
}
.week-calendar .weekday:nth-child(even) {
    background: none;
}
.week-calendar details.weekday > summary {
    background: var(--bg-2) !important;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.week-calendar details.weekday > summary::-webkit-details-marker { display: none; }
.week-calendar details.weekday > summary::marker { display: none; }
.week-calendar details.weekday.no-events > summary {
    opacity: 0.45;
}
.week-calendar details.weekday > summary h3 {
    color: var(--fg-dim) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}
.week-calendar details.weekday.has-events > summary {
    background: color-mix(in oklab, var(--accent) 6%, var(--bg-2)) !important;
}
.week-calendar details.weekday.has-events > summary h3 {
    color: var(--fg) !important;
}
.week-calendar ul.events {
    list-style: none !important;
    padding: 0.4rem 0.75rem 0.75rem !important;
    margin: 0 !important;
    background: var(--bg) !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.week-calendar ul.events li {
    color: var(--fg-dim) !important;
}

/* ---- Day calendar (div.day-calendar) ---- */
.day-calendar {
    background: transparent !important;
}
.day-calendar h3.day-row-name {
    color: var(--fg-mute) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em !important;
    padding: 0.2rem 0.5rem;
    margin: 0 !important;
    border-bottom: 1px solid var(--line);
}
.day-calendar ul.day-timeline {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-left: 1px solid var(--line);
}
/* Time tick rows */
.day-calendar ul.day-timeline.ticks > li {
    color: var(--fg-mute) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem;
    border-top: 1px solid var(--line) !important;
    padding: 2px 6px;
    background: transparent !important;
}
/* Tick placeholder cells in event rows */
.day-calendar ul.day-timeline > li.tick {
    border-top: 1px solid var(--line) !important;
    background: transparent !important;
    color: transparent !important;
}
/* Event cells in day timeline */
.day-calendar ul.day-timeline > li:not(.tick) {
    background: transparent !important;
    padding: 2px;
}

/* ---- Cart sneak-peek: always show the whole cart ----
   pretix clamps the checkout cart aside to `height: 8em` and floats the
   "Warenkorb anzeigen" trigger over its bottom 4.5em, fading the covered
   rows out with a hardcoded light gradient (rgba(248,248,248,.9)) that is
   unusable on a dark canvas. We want the cart shown in full instead — but
   the teardown has to come from pretix's own code rather than a CSS
   override, because presale.js marks the clamped body
   `aria-hidden="true" inert` and only lifts that when the button is
   clicked. Forcing `height: auto` here would reveal the cart while
   leaving it invisible to screen readers and unclickable — including
   "Reservierung verlängern" once the deadline nears — and no CSS can
   undo `inert`.

   So trip pretix's own no-peek path. It measures the body once on load:

       if (content.scrollHeight < 200) { trigger.remove();
           content.classList.remove('sneak-peek-content'); return; }

   `display: contents` leaves the body without a layout box, so
   scrollHeight reports 0: the trigger is removed from the DOM, the class
   goes with it (taking this rule out of play), and inert/aria-hidden are
   never set. The panel body then lays out normally, at full height.

   The wrapper padding below stands in for .panel-body's own padding while
   the body has no box: during the first frame before presale.js runs, and
   permanently for no-JS visitors, where pretix keeps the class and hides
   the trigger via body.nojs. It stops matching the moment the class goes.

   Scoped by class, not by .cart: the checkout cart aside
   (presale template event/checkout_base.html) is the only place pretix
   uses this mechanism, so there is nothing else to keep teasing. */
.sneak-peek-content {
    display: contents;
}
.sneak-peek-container > div:has(> .sneak-peek-content) {
    padding: 15px;
}

.table-calendar a.event:before, .week-calendar a.event:before, .day-calendar a.event:before {
    background: none !important;
}