@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..100,400..800&display=swap");

:root {
    --bfs-dark:        #09141c;
    --bfs-navy:        #0e222d;
    --bfs-green:       #bed578;
    --bfs-green-dark:  #a9c25f;
    --bfs-green-soft:  #eef5dc;
    --bfs-ink:         #09141c;
    --bfs-muted:       #5d6b70;
    --bfs-line:        #e4e8e6;

    --bfs-radius-card: 15px;
    --bfs-radius-pill: 300px;

    --bfs-font-body: "interstate", "Archivo", "Roboto", "Open Sans",
                     "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bfs-font-head: "interstate-condensed", "Archivo", "Oswald",
                     "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --pretix-font-family-sans-serif: var(--bfs-font-body);
    --pretix-body-bg: var(--bfs-dark);

    --pretix-body-bg-white-0: 1;
    --pretix-body-bg-white-1: 0;

    --pretix-border-radius-small: 8px;
    --pretix-border-radius-base: 10px;
    --pretix-border-radius-large: var(--bfs-radius-card);

    --pretix-link-contrast-color: var(--bfs-green);
    --pretix-link-hover-contrast-color: #ffffff;
}

body {
    background-color: var(--bfs-dark);
    color: var(--bfs-ink);
    font-family: var(--bfs-font-body);
    -webkit-font-smoothing: antialiased;
}

.main-box {
    border-radius: var(--bfs-radius-card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.page-header.logo-large img {
    border-top-left-radius: var(--bfs-radius-card);
    border-top-right-radius: var(--bfs-radius-card);
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5,
.content-header, .panel-title, legend {
    font-family: var(--bfs-font-head);
    font-weight: 800;
    font-stretch: 75%;
    letter-spacing: -.01em;
    line-height: 1.05;
    color: var(--bfs-ink);
}

h1, .h1, .content-header { font-size: 2.4rem; margin-bottom: .6em; }
h2, .h2 { font-size: 1.9rem; }
h3, .h3 { font-size: 1.45rem; }
h4, .h4 { font-size: 1.15rem; }

.panel-heading,
.panel-heading h1, .panel-heading h2, .panel-heading h3, .panel-heading h4,
.panel-heading .panel-title,
.panel-heading .panel-title strong,
.panel-heading .panel-title a {
    color: inherit;
}

.panel-primary > .panel-heading,
.panel-primary > summary.panel-heading,
.panel-primary > legend > .panel-heading {
    color: #fff;
}

body, p, li, td, label, .form-control {
    font-size: .95rem;
    line-height: 1.55;
}

a {
    color: var(--bfs-navy);
    text-decoration: underline;
    text-underline-offset: .18em;
    text-decoration-thickness: 1px;
}
a:hover, a:focus { color: var(--bfs-green-dark); }

small, .text-muted { color: var(--bfs-muted); }

.btn {
    font-family: var(--bfs-font-head);
    font-weight: 800;
    font-stretch: 75%;
    text-transform: uppercase;
    letter-spacing: .09em;
    border-radius: var(--bfs-radius-pill);
    border-width: 2px;
    height: auto;
    padding: .62em 1.5em;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-lg { padding: .78em 1.9em; }
.btn-sm,
.btn-xs { padding: .45em 1.1em; letter-spacing: .07em; }

.btn-primary,
.btn-primary:focus,
.btn-primary.focus {
    background-color: var(--bfs-green);
    border-color: var(--bfs-green);
    color: var(--bfs-navy);
    box-shadow: none;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:active:hover,
.btn-primary:active:focus,
.btn-primary.active,
.open > .btn-primary.dropdown-toggle {
    background-color: var(--bfs-green-dark);
    border-color: var(--bfs-green-dark);
    color: var(--bfs-navy);
    box-shadow: none;
}
.btn-primary .badge { color: var(--bfs-navy); background-color: #fff; }

.btn-default,
.btn-default:focus {
    background-color: transparent;
    border-color: var(--bfs-navy);
    color: var(--bfs-navy);
    box-shadow: none;
}
.btn-default:hover,
.btn-default:active,
.btn-default.active {
    background-color: var(--bfs-navy);
    border-color: var(--bfs-navy);
    color: #fff;
    box-shadow: none;
}

.btn-link {
    font-family: var(--bfs-font-body);
    font-weight: 600;
    font-stretch: normal;
    text-transform: none;
    letter-spacing: normal;
    color: var(--bfs-navy);
    padding-left: 0;
    padding-right: 0;
}
.btn-link:hover, .btn-link:focus { color: var(--bfs-green-dark); }

.btn:focus-visible,
a:focus-visible,
.form-control:focus-visible {
    outline: 3px solid var(--bfs-green);
    outline-offset: 2px;
}

.panel {
    border: 1px solid var(--bfs-line);
    border-radius: var(--bfs-radius-card);
    box-shadow: none;
    overflow: hidden;
}

.panel-default > .panel-heading,
.panel-default > legend > .panel-heading {
    background-color: var(--bfs-navy);
    border-color: var(--bfs-navy);
    color: #fff;
    padding: 14px 20px;
}
.panel-default > .panel-heading,
.panel-default > .panel-heading .panel-title,
.panel-default > .panel-heading a { color: #fff; }

.panel-title {
    font-size: 1.3rem;
    text-transform: none;
}

.panel-default > .panel-heading .panel-title a[data-toggle="collapse"]:hover,
.panel-default > legend > .panel-heading .panel-title a[data-toggle="collapse"]:hover,
.panel-default > .panel-heading details .panel-title:hover {
    background-color: rgba(255, 255, 255, .12);
}

.panel-body { padding: 20px; }

.event-list.full-width-list h3,
.event-list.full-width-list h4 {
    font-family: var(--bfs-font-head);
    font-weight: 800;
    font-stretch: 75%;
    font-size: 1.12em;
    letter-spacing: -.005em;
}
.event-list.full-width-list h3 a { text-decoration: none; }
.event-list.full-width-list h3 a:hover { text-decoration: underline; }

.alternating-rows .row:nth-child(even) { background-color: #f4f6f2; }
.event-list.full-width-list .row {
    border-radius: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.textbubble-success {
    background: var(--bfs-green-soft);
    color: #3f5216;
}
.textbubble-success .fa { color: #6f8f27; }

.form-control {
    border-color: #c3ccc9;
    border-radius: 10px;
    box-shadow: none;
    height: auto;
    padding: .55em .9em;
    color: var(--bfs-ink);
}
.form-control:focus {
    border-color: var(--bfs-navy);
    box-shadow: 0 0 0 3px rgba(190, 213, 120, .5);
}
.input-group-addon {
    background-color: #f4f6f2;
    border-color: #c3ccc9;
    border-radius: 10px;
    color: var(--bfs-muted);
}
label { font-weight: 600; }

.alert { border-radius: var(--bfs-radius-card); border-width: 1px; }
.alert p:last-child { margin-bottom: 0; }

.alert-success::before,
.alert-danger::before,
.alert-info::before,
.alert-warning::before,
.alert-legal::before,
.alert-primary::before {
    border-top-left-radius: calc(var(--bfs-radius-card) - 1px);
    border-bottom-left-radius: calc(var(--bfs-radius-card) - 1px);
}

aside.front-page { margin-top: 30px; }

footer {
    background-color: transparent;
    border-top: 0;
    padding-top: 18px;
}

footer nav ul {
    font-family: var(--bfs-font-head);
    font-stretch: 75%;
    text-transform: uppercase;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .09em;
    line-height: 1.5;
    gap: 4px 16px;
    align-items: baseline;
}

footer nav li:not(:first-child)::before {
    content: none;
    width: auto;
}

footer nav ul li:last-child {
    flex-basis: 100%;
    text-align: center;
    margin-top: 2px;
    opacity: .7;
}

footer a {
    color: var(--bfs-muted);
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
}
footer a:hover,
footer a:focus-visible {
    color: var(--bfs-navy);
    text-decoration: none;
    border-bottom-color: var(--bfs-green-dark);
}

footer nav ul a[href*="pretix.eu"] {
    font-size: 0;
    letter-spacing: 0;
}
footer nav ul a[href*="pretix.eu"]::after {
    content: "& pretix";
    font-size: .95rem;
    letter-spacing: .08em;
}

::selection { background: var(--bfs-green); color: var(--bfs-navy); }

@media (max-width: 767px) {
    h1, .h1, .content-header { font-size: 1.9rem; }
    .btn { letter-spacing: .06em; }
}

:root {
    --bfs-todo:        #b8791a;
    --bfs-todo-soft:   #fdf4e3;
    --bfs-todo-line:   #e8b866;
}

.panel-confirm > .panel-heading {
    padding: 14px 20px;
}
.panel-confirm .panel-title {
    margin: 0;
    font-size: 0;
    line-height: 0;
}
.panel-confirm .panel-title::after {
    content: "AGB akzeptieren";
    display: inline-block;
    font-size: 1.05rem;
    line-height: 1.2;
}
.panel-confirm:has(input[type="checkbox"]:checked) .panel-title::after {
    content: "AGB akzeptiert";
}

.panel-confirm .checkbox {
    margin: 0;
}
.panel-confirm .checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 400;
    transition: background-color .15s ease;
}

.panel-confirm .checkbox label input[type="checkbox"] {
    position: static;
    float: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--bfs-green-dark);
    cursor: pointer;
}
.panel-confirm .checkbox label p {
    margin: 0;
    flex: 1 1 auto;
}
.panel-confirm .checkbox label:hover {
    background-color: rgba(255, 255, 255, .55);
}

.panel-confirm:has(input[type="checkbox"]:not(:checked)) {
    border: 2px solid var(--bfs-todo-line);
}
.panel-confirm:has(input[type="checkbox"]:not(:checked)) > .panel-heading {
    background-color: var(--bfs-todo);
    border-color: var(--bfs-todo);
    color: #fff;
}
.panel-confirm:has(input[type="checkbox"]:not(:checked)) > .panel-body {
    background-color: var(--bfs-todo-soft);
}
.panel-confirm:has(input[type="checkbox"]:not(:checked)) .checkbox label {
    background-color: #fff;
    border: 1px solid var(--bfs-todo-line);
}

.panel-confirm:has(input[type="checkbox"]:checked) {
    border: 2px solid var(--bfs-green-dark);
}
.panel-confirm:has(input[type="checkbox"]:checked) > .panel-heading {
    background-color: var(--bfs-green-dark);
    border-color: var(--bfs-green-dark);
    color: var(--bfs-dark);
}
.panel-confirm:has(input[type="checkbox"]:checked) > .panel-body {
    background-color: var(--bfs-green-soft);
}

.panel-confirm .checkbox label:has(:focus-visible) {
    outline: 2px solid var(--bfs-dark);
    outline-offset: 2px;
}

#cart-deadline-short {
    display: inline;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    font-family: var(--bfs-font-body);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;

    color: inherit;
    opacity: .85;

    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

#cart-deadline {
    display: block;
    margin: 12px 0 14px;
    padding: 11px 0 0;
    border-top: 1px solid var(--bfs-line);
    background: none;
    border-radius: 0;
    color: var(--bfs-muted);

    font-family: var(--bfs-font-body);
    font-size: .86rem;
    font-weight: 400;
    line-height: 1.45;
}

.cart-row:has(.addon-signifier) {
    font-size: .88em;
}
.cart-row:has(.addon-signifier) strong {
    font-weight: 600;
}
.cart-row:has(.addon-signifier) .totalprice small {
    display: none;
}
.cart-row:has(.addon-signifier) .product .dl-inline {
    display: none;
}
.cart-row:has(.addon-signifier) .product p {
    margin-bottom: 0;
}

.cart-row[data-article-id="item-16"] .dl-inline,
.cart-row[data-article-id^="item-16-"] .dl-inline {
    display: none;
}

@media (max-width: 991px) {
    div.cart-row {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
    }
    div.cart-row > div {
        float: none;
    }
    div.cart-row > .clearfix {
        display: none;
    }
    div.cart-row > div.product,
    div.cart-row.total > div.product,
    div.cart-row.subtotal > div.product {
        width: 100%;
        margin-bottom: 6px;
    }
    div.cart-row > div.count,
    div.cart-row.editable > div.count {
        width: auto;
        text-align: left;
        order: 1;
    }
    div.cart-row > div.singleprice,
    div.cart-row.editable > div.singleprice {
        width: auto;
        text-align: left;
        order: 2;
        font-size: .9em;
        color: var(--bfs-muted);
    }
    div.cart-row > div.totalprice,
    div.cart-row.editable > div.totalprice {
        width: auto;
        text-align: right;
        order: 3;
        margin-left: auto;
    }

    div.cart-row:not(.total):not(.subtotal):not(:has(.addon-signifier)) > div.singleprice::before {
        content: "je ";
    }

    div.cart-row:has(.addon-signifier) > div.product {
        width: auto;
        margin-bottom: 0;
    }

    div.cart-row:has(.addon-signifier) > div.singleprice,
    div.cart-row.editable:has(.addon-signifier) > div.singleprice {
        display: none;
    }

    div.cart-row.total > div.product {
        width: auto;
        margin-bottom: 0;
    }
}

.thank-you {
    position: relative;
    margin: 0 0 26px;
    padding: 22px 24px 22px 84px;
    background-color: var(--bfs-green-soft, #eef5dc);
    border: 1px solid var(--bfs-green-dark, #a9c25f);
    border-radius: var(--bfs-radius-card, 15px);
    text-align: left;
}

.thank-you > .fa-check-circle {
    position: absolute;
    left: 24px;
    top: 22px;
    font-size: 42px;
    line-height: 1;
    color: var(--bfs-green-dark, #a9c25f);
}

.thank-you > .h1,
.thank-you > h2 {
    margin: 0 0 8px;
    font-size: 1.65rem;
    line-height: 1.1;
    color: var(--bfs-ink, #09141c);
}

.thank-you > .lead {
    margin: 0 0 10px;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bfs-ink, #09141c);
}

.thank-you > p {
    margin: 0 0 8px;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--bfs-muted, #5d6b70);
}
.thank-you > p:last-child {
    margin-bottom: 0;
}

.thank-you code {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    max-width: 100%;
    background-color: #fff;
    border: 1px solid var(--bfs-line, #e4e8e6);
    border-radius: 8px;
    color: var(--bfs-ink, #09141c);
    font-size: .84rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .thank-you {
        padding: 18px;
    }
    .thank-you > .fa-check-circle {
        position: static;
        left: auto;
        top: auto;
        display: inline-block;
        margin-bottom: 10px;
        font-size: 34px;
    }
    .thank-you > .h1,
    .thank-you > h2 {
        font-size: 1.4rem;
    }
}

.dl-horizontal {
    display: grid;
    grid-template-columns: minmax(5.5em, auto) 1fr;
    gap: 7px 14px;
    margin: 0;
}

.dl-horizontal dt {
    float: none;
    clear: none;
    width: auto;
    overflow: visible;
    white-space: normal;
    text-align: left;
    font-weight: 600;
    font-size: .86rem;
    line-height: 1.4;
    color: var(--bfs-muted);
}

.dl-horizontal dd {
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.dl-horizontal dd:empty {
    display: none;
}
.dl-horizontal dt:has(+ dd:empty) {
    display: none;
}

@media (max-width: 480px) {
    .dl-horizontal {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .dl-horizontal dt {
        font-size: .78rem;
    }
    .dl-horizontal dd + dt {
        margin-top: 10px;
    }
}

ul.list-unstyled:has(> li > a[href^="https://pay.google.com/gp/v/save/"]) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 10px;
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: bfs-gw-ticket;
}

ul.list-unstyled:has(> li > a[href^="https://pay.google.com/gp/v/save/"]) > li {
    margin: 0 !important;
}

ul.list-unstyled:has(> li > a[href^="https://pay.google.com/gp/v/save/"]) > li:nth-child(even) {
    display: none;
}

li:nth-child(even) > a[href^="https://pay.google.com/gp/v/save/"] {
    display: none;
}

ul.list-unstyled:has(> li > a[href^="https://pay.google.com/gp/v/save/"]) > li:nth-child(odd) {
    counter-increment: bfs-gw-ticket;
}

a[href^="https://pay.google.com/gp/v/save/"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    white-space: normal;
    font-size: 0;
    line-height: 0;
    padding: .59rem 1.43rem;
}

a[href^="https://pay.google.com/gp/v/save/"] .fa {
    font-size: .95rem;
    line-height: 1;
}

a[href^="https://pay.google.com/gp/v/save/"]::after {
    content: "Ticket " counter(bfs-gw-ticket) " speichern";
    font-size: .95rem;
    line-height: 1.55;
}

ul.list-unstyled:has(> li > a[href^="https://pay.google.com/gp/v/save/"])
    > li:first-child:nth-last-child(2) > a::after {
    content: "In Google Wallet speichern";
}

.panel-body:has(> ul.list-unstyled > li > a[href^="https://pay.google.com/gp/v/save/"]) > p {
    margin-bottom: 14px;
}