*, *::before, *::after {
    box-sizing: border-box;
}
html {
    height: 100%;
}
body {
    margin: 0;
    font: 12pt "Noto Sans", Corbel, Arial, sans-serif;
    accent-color: #70b9e6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
body > * {
    flex-shrink: 0;
}
header {
    background: #70b9e6;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.slogan {
    margin-left: 16px;
    font-weight: bold;
    font-size: 16pt;
    color: inherit;
    text-decoration: none;
}
.logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.logo {
    display: block;
    width: 96px;
    height: 96px;
}
main {
    flex: 1;
}
ul {
    list-style-type: square;
}
a {
    color: #287aad;
    text-decoration: underline;
    &:hover {
        text-decoration: none;
    }
}
.svg-symbols {
    width: 1px;
    height: 1px;
    position: absolute;
    left: -1px;
    top: -1px;
    opacity: 0;
    pointer-events: none;
}
.stage {
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}
.top-bar {
    height: 10px;
    background: linear-gradient(to right, #00b040 0% 50%, #fff 50% 100%);
    &::before {
        content: "";
        display: block;
        height: 100%;
        max-width: 1100px;
        margin-inline: auto;
        background: linear-gradient(135deg,
            #00b040 0% 14.29%,
            #ff0091 14.29% 28.57%,
            #ff6501 28.57% 42.86%,
            #0672ba 42.86% 57.12%,
            #ef0b00 57.12% 71.49%,
            #feac02 71.49% 85.71%,
            #fff 85.71% 100%
        );
    }
}
h1 {
    color: #287aad;
    text-align: center;
}
p {
    line-height: 1.5;
}
#ep-event-details {
    h3 {
        margin-bottom: 0;
    }
    h1 {
        margin-top: 0;
        text-align: start;
    }
}
.ev-hero-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    object-position: center;
}
#ev-form,
.container {
    padding: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.ev-form-notice,
.ev-form-success,
.ev-form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 8px 0;
    font-weight: bold;
}
.ev-form-notice > svg,
.ev-form-success > svg,
.ev-form-error > svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.ev-form-notice {
    background: #9cf;
    color: #048;
}
.ev-form-success {
    background: #9f9;
    color: #080;
}
.ev-form-error {
    background: #f99;
    color: #800;
}
.footer {
    background: #333;
    color: white;
    padding: 16px;
    text-align: center;
    a {
        color: inherit;
    }
}
.footer #box {
    max-width: 1100px;
    margin: 0 auto;
}
input[type="text"],
input[type="email"],
textarea {
    display: block;
    font: inherit;
    min-width: 0;
    max-width: none;
    width: 100%;
    background: white;
    color: black;
    padding: 4px;
    border-radius: 0;
    border: 1px solid #ccc;
    &:focus-visible {
        outline: 2px solid #287aad;
        outline-offset: 1px;
    }
}
textarea {
    resize: vertical;
    min-height: 2lh;
    height: 4lh;
    max-height: 15lh;
}
[type="submit"] {
    appearance: none;
    background: #70b9e6;
    color: #fff;
    border: none;
    border-radius: 0;
    font: inherit;
    font-weight: bold;
    font-size: 150%;
    padding: 0.25em 0.5em;
    cursor: pointer;
    &:hover {
        filter: brightness(125%);
    }
}
label {
    letter-spacing: normal;
    text-transform: none;
    font-weight: normal;
}

#ep-event-intro>:is(h1, h4) {
    margin-block: 0.5em;
}
#ep-event-intro>:is(h2, h3, p) {
    margin-block: 1em;
}
#ep-event-intro {
    margin-top: 18px;
    line-height: 1.5;
}
#ep-event-intro ul {
    font-size: 20px;
    line-height: 30px;
    padding-inline-start: 2em;
    margin-block: 1.5em;
}
#ep-event-intro li {
    list-style: outside disc;
    margin-block: 6px;
}
#ep-event-intro * {
    font-family: inherit !important;
    line-height: inherit !important;
}
.ev-hero-image {
    display: block;
    width: 100%;
    height: auto;
}
.ev-hero-video-wrapper {
    position: relative;
    z-index: 0;
    background: #eee;
}
.ev-hero-video-wrapper::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
}
#ev-hero-playback-toggle {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    appearance: none;
    width: 48px;
    height: 48px;
    border: 0;
    background: linear-gradient(45deg, #0008, #0000 50%);
    border-radius: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(.17,.8,.21,1);
}
.ev-hero-video-wrapper:hover #ev-hero-playback-toggle,
.ev-hero-video-wrapper:has(:focus-visible) #ev-hero-playback-toggle {
    opacity: 1;
}
#ev-hero-playback-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 2px 8px #0008);
}
.ev-hero-video + #ev-hero-playback-toggle {
    .ep-icon-play {
        display: none;
    }
    .ep-icon-pause {
        display: block;
    }
}
.ev-hero-video.paused + #ev-hero-playback-toggle {
    .ep-icon-play {
        display: block;
    }
    .ep-icon-pause {
        display: none;
    }
}
.ev-hero-video {
    display: block;
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    object-position: center;
}
.ev-form-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 3em;
}
.ev-form-field {
    margin: 10px 0;
}
.ev-form-field.ev-full {
    grid-column: span 2;
}
.ev-form-field>label:nth-of-type(2):has(input[type="checkbox"]) {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 4px;
    align-items: start;
}
.ev-form-field:is(.required, :has([required]))>:is(label, h2):not(:has(span.ev-label)):first-of-type::after,
.ev-form-field:is(.required, :has([required]))>:is(label, h2):first-of-type>span.ev-label::after {
    content: "*";
    color: red;
}
.ev-form-field>label:first-of-type>.ev-info {
    vertical-align: middle;
}
.ev-form-field>label input:not([type="submit"]):is([type="checkbox"], [type="radio"]) {
    --size: 16px;
}
svg.ev-hint-icon {
    fill: currentColor;
    width: 16px;
    height: 16px;
    cursor: help;
    vertical-align: baseline;
}
.ev-privacy-hint {
    font-size: 12px;
    font-style: italic;
}
.ev-privacy-hint>p {
    font: inherit;
}
.ev-privacy-hint>p+p {
    margin-top: 15px;
}
.ev-form-field-hint {
    margin: 5px 0;
    font-size: 12px;
    text-transform: uppercase;
}
p+p {
    margin-top: 5px;
}
.ev-selection {
    margin-block: 15px 25px;
}
.ev-selection>label {
    display: flex;
    align-items: start;
    text-transform: none;
    font: inherit;
    line-height: inherit;
    gap: 4px;
}
.ev-selection>label>input {
    margin: 3px 0 0;
    height: auto;
    line-height: inherit;
}
#mommy #formular form > div,
#mommy #formular form > div:nth-child(2n+1),
#mommy #formular form > div:nth-child(2n) {
    width: unset;
    padding: unset;
}
.svg-symbols {
    width: 1px;
    height: 1px;
    opacity: 0;
    position: absolute;
    left: -999px;
    top: -999px;
}

#ep-event-intro p:has(>small),
#ep-event-intro p>small,
#ep-event-intro p.small-text {
    font-size: 12px;
    line-height: 16px;
}

.ev-normal-text {
    line-height: 1.5;
    margin: 1em auto;
    max-width: 60ch;
    &.center {
        text-align: center;
    }
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.event {
    display: flex;
    color: inherit;
    border: 1px solid #ccc;
    padding: 16px;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
    text-decoration: none;
    &:hover {
        background: #70b9e6;
        border-color: #70b9e6;
        color: #fff;
    }
    h4 {
        margin: 0;
        font-size: inherit;
    }
    time {
        font-size: 80%;
        font-variant-numeric: lining-nums;
    }
}

.indented {
    margin-inline-start: 2em;
    position: relative;
    &::before {
        content: "\25B6\FE0E";
        color: #287aad;
        display: block;
        position: absolute;
        left: -2em;
        top: 0;
    }
}

em.name {
    font-style: normal;
    font-weight: bold;
    color: #287aad;
}

.floatimg {
    margin: 8px;
    float: right;
}

.contains-submission {
    text-align: center;
}

.cf::after {
  content: "";
  clear: both;
  display: table;
}

@media (max-width: 500px) {
    .slogan {
        font-size: 12pt;
    }
    .logo {
        width: 48px;
        height: 48px;
    }
    .floatimg {
        display: block;
        margin: 0 auto 24px;
        float: none;
        max-width: 100%;
        height: auto;
    }
    .contains-submission {
        display: flex;
        >button {
            flex: 1;
        }
    }
}

@media (max-width: 700px) {
    .ev-form-field {
        grid-column: span 2;
    }
}

@media (max-width: 999px) {
    .ep-event-wrapper {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(3, max-content);
    }
    .ep-event-details-wrapper {
        display: contents;
    }
    #ep-event-intro {
        grid-row: 1;
    }
    .ep-event-selections-wrapper {
        grid-row: 2;
    }
    .ev-form-wrapper {
        grid-row: 3;
    }
}

@media (min-width: 1000px) {
    .ep-event-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: minmax(0, 1fr);
        column-gap: 50px;
        &.no-selections {
            grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
            grid-template-rows: minmax(0, 1fr);
            >.ep-event-details-wrapper {
                grid-column: 2;
            }
            >.ep-event-selections-wrapper {
                display: none;
            }
            .ev-form-field.contains-submission {
                text-align: center;
            }
        }
    }
}

@media (max-width: 1280px) {
    .ev-form-field input:not([type="submit"]):is([type="checkbox"], [type="radio"]) {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 1000px) {
    svg.ev-hint-icon {
        width: 12px;
        height: 12px;
    }
}


@media print {
    #ev-form-details {
        display: none;
    }
    header {
        background: none;
        color: inherit;
    }
    footer,
    .footer {
        display: none;
    }
}
