/* Look der Vereinsseite www.tsv-ifa-chemnitz.de.
   Farben (Primär, Hintergrund) kommen aus den pretix-Designeinstellungen des Events,
   hier steht nur, was die Einstellungen nicht können. */

@font-face {
    font-family: "LeagueGothic";
    src: url("fonts/LeagueGothic.134817306429.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "YanoneKaffeesatz";
    src: url("fonts/YanoneKaffeesatz.af9523bf3b40.ttf") format("truetype");
    font-display: swap;
}

:root {
    --ifa-red: #f2233a;
    --ifa-red-dark: #911523;
    --ifa-ink: #212529;
    --ifa-grey: #c4c4c4;
    --ifa-line: #dee2e6;
    --ifa-bg: #e6e6e6;
    --ifa-display: "LeagueGothic", "Arial Narrow", Impact, sans-serif;
    --ifa-text: "YanoneKaffeesatz", "Helvetica Neue", Arial, sans-serif;
    --ifa-width: 1170px;
    --ifa-shadow: 0 2px 4px rgba(0, 0, 0, .075);
}

/* --- Grundtypografie ------------------------------------------------------ */

body {
    /* Footer bleibt auch auf kurzen Seiten (Checkout) am unteren Rand */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--ifa-text);
    font-size: 20px;
    line-height: 1.3;
    color: var(--ifa-ink);
    background: var(--ifa-bg);
}
h1, h2, h3, h4, .h1, .h2, .h3, .h4, legend, .panel-title {
    font-family: var(--ifa-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .01em;
}
h2, h3, .h2, .h3 {
    color: var(--ifa-red);
}
small, .small, .help-block {
    font-size: 16px;
}
.btn, .form-control {
    font-size: 20px;
}
.btn-primary, .btn-lg {
    font-family: var(--ifa-display);
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 24px;
}
.form-control, .btn {
    height: auto;
    min-height: 44px; /* bequem tippbar am Handy */
}

/* --- Header wie auf der Vereinsseite -------------------------------------- */

.ifa-wrap {
    max-width: var(--ifa-width);
    margin: 0 auto;
    padding: 0 15px;
}
.ifa-topbar {
    background: var(--ifa-red);
    color: #fff;
    font-size: 18px;
}
.ifa-topbar .ifa-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}
.ifa-topbar a,
.ifa-topbar a:hover,
.ifa-topbar a:focus {
    color: #fff;
    padding: 10px 0;
}
.ifa-topbar-label {
    font-family: var(--ifa-display);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 20px;
}
.ifa-header {
    background: #fff;
    box-shadow: var(--ifa-shadow);
    position: relative;
}
.ifa-header .ifa-wrap {
    padding-top: 14px;
    padding-bottom: 14px;
}
.ifa-logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* --- Matchbanner auf der Startseite --------------------------------------- */

.ifa-hero {
    color: #fff;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 14px, transparent 14px 44px),
        linear-gradient(115deg, var(--ifa-red) 0%, var(--ifa-red) 45%, var(--ifa-red-dark) 100%);
}
.ifa-hero .ifa-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
}
.ifa-hero-crest {
    width: 72px;
    height: auto;
    flex: none;
}
.ifa-hero p {
    margin: 0;
}
.ifa-hero-competition {
    display: inline-block;
    background: #fff;
    color: var(--ifa-red);
    font-family: var(--ifa-display);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 20px;
    line-height: 1;
    padding: 5px 10px 4px;
}
.ifa-hero-match {
    font-family: var(--ifa-display);
    text-transform: uppercase;
    font-size: 40px;
    line-height: 1;
    padding: 10px 0 8px;
}
.ifa-hero-match span {
    display: block;
}
.ifa-hero-vs {
    font-size: .6em;
    opacity: .8;
    padding: 2px 0;
}
.ifa-hero-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
    font-size: 20px;
}
/* Das Banner trägt Spiel und Datum schon, die pretix-Überschrift bleibt für Screenreader. */
.ifa-hero ~ .main-box .page-header {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Ort und Zeit stehen ebenfalls schon im Banner. */
.ifa-hero ~ .main-box .info-row {
    display: none;
}

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

.container.main-box {
    margin-bottom: 32px;
    width: 100%;
    max-width: var(--ifa-width);
    box-shadow: var(--ifa-shadow);
    border-radius: 6px;
}
.page-header {
    border-bottom: 0;
}
.page-header h1 {
    font-size: 36px;
    line-height: 1.05;
}
.page-header h1 a {
    color: var(--ifa-red);
}
.page-header h1 small {
    display: block;
    font-family: var(--ifa-text);
    text-transform: none;
    letter-spacing: 0;
    font-size: 20px;
    padding-top: 4px;
}
.main-box > footer nav {
    font-size: 16px;
}

/* --- Auswahl Heimbereich / Gästeblock ------------------------------------- */

.item-category:first-of-type {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
}
.item-category:first-of-type > h3 {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 32px;
}
.item-category:first-of-type > .product-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    align-content: space-between;
    gap: 8px 16px;
    margin: 0;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid var(--ifa-line);
    border-top: 8px solid var(--ifa-red);
    border-radius: 6px;
    transition: opacity .15s;
}
.item-category:first-of-type > .product-row:nth-of-type(2) {
    border-top-color: var(--ifa-ink);
}
.item-category:first-of-type > .product-row::before,
.item-category:first-of-type > .product-row::after,
.item-category:first-of-type > .product-row > .clearfix {
    display: none;
}
.item-category:first-of-type > .product-row > div {
    float: none;
    width: auto;
    padding: 0;
    min-height: 0;
}
.item-category:first-of-type > .product-row > div:first-child {
    flex: 0 0 100%;
}
.item-category:first-of-type .product-row h4 {
    margin: 0 0 6px;
    font-size: 36px;
    line-height: 1;
    color: var(--ifa-red);
}
.item-category:first-of-type .product-row:nth-of-type(2) h4 {
    color: var(--ifa-ink);
}
.item-category:first-of-type .product-row .price {
    flex: 1 1 auto;
    text-align: left;
}
.item-category:first-of-type .product-row .price p {
    margin: 0;
    font-family: var(--ifa-display);
    font-size: 32px;
    line-height: 1;
}
.item-category:first-of-type .product-row .price small {
    display: block;
    font-family: var(--ifa-text);
    font-size: 16px;
    padding-top: 4px;
}
.item-category:first-of-type .product-row .availability-box {
    flex: 0 0 160px;
}
.product-row.ifa-locked {
    opacity: .4;
}

/* --- Footer wie auf der Vereinsseite -------------------------------------- */

.ifa-footer {
    background: var(--ifa-red);
    color: #fff;
    margin-top: auto;
    padding: 28px 0 24px;
    text-align: center;
}
.ifa-footer-crest {
    width: 72px;
    height: auto;
}
.ifa-footer-links {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
    font-size: 18px;
}
.ifa-footer-links li {
    padding: 8px 0;
}
.ifa-footer-links a,
.ifa-footer-links a:hover,
.ifa-footer-links a:focus {
    color: #fff;
}

/* --- Ab Tablet -------------------------------------------------------------- */

@media (min-width: 768px) {
    .ifa-logo img {
        height: 84px;
    }
    .ifa-hero .ifa-wrap {
        gap: 36px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .ifa-hero-crest {
        width: 130px;
    }
    .ifa-hero-match {
        font-size: 68px;
    }
    .ifa-hero-match span {
        display: inline;
    }
    .ifa-hero-vs {
        padding: 0 .25em;
    }
    .ifa-hero-facts {
        font-size: 24px;
    }
    .item-category:first-of-type {
        grid-template-columns: 1fr 1fr;
    }
    .page-header h1 {
        font-size: 46px;
    }
}
