/* ***** Normalise CSS START ***** */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

[tabindex='-1']:focus:not(:focus-visible) {
    outline: 0 !important;
}

*:focus-visible {
    outline: none;
}

hr {
    background-color: currentColor;
    border: 0;
}

hr:not([size]) {
    height: 1px;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}

p {
    margin-top: 0;
    margin-bottom: 2rem;
}

p:last-child {
    margin-bottom: 0;
}

abbr[title],
abbr[data-original-title] {
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
    cursor: help;
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
}

address {
    margin-bottom: 1rem;
    font-style: normal;
    line-height: inherit;
}

ol,
ul {
    padding-left: 2rem;
}

ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
    margin-bottom: 0;
}

dd {
    margin-bottom: 0.5rem;
    margin-left: 0;
}

blockquote {
    margin: 0 0 1rem;
}

b,
strong {
    font-weight: bold;
}

sub,
sup {
    position: relative;
    line-height: 0;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -1.3rem;
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

figure {
    margin: 0 0 1rem;
}

img,
svg {
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

label {
    display: inline-block;
}

button {
    border-radius: 0;
    cursor: pointer;
}

button:focus {
    outline: none;
}

input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

select {
    word-wrap: normal;
}

[list]::-webkit-calendar-picker-indicator {
    display: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button;
}

::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

textarea {
    resize: vertical;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none;
}

legend {
    float: left;
    width: 100%;
    padding: 0;
    line-height: inherit;
    white-space: normal;
}

legend + * {
    clear: left;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
    padding: 0;
}

::-webkit-inner-spin-button {
    height: auto;
}

[type='search'] {
    outline-offset: -2px;
    -webkit-appearance: textfield;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
    padding: 0;
}

::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}

output {
    display: inline-block;
}

iframe {
    border: 0;
}

summary {
    display: list-item;
    cursor: pointer;
}

progress {
    vertical-align: baseline;
}

[hidden] {
    display: none !important;
}

iframe {
    width: 100%;
    margin-bottom: 0;
}

/* ***** Normalise CSS END ***** */

/* roboto-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v47-latin-regular.woff2') format('woff2');
}

/* roboto-italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/roboto-v47-latin-italic.woff2') format('woff2');
}

/* roboto-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/roboto-v47-latin-600.woff2') format('woff2');
}

/* roboto-600italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/roboto-v47-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {

    /*colors:*/
    --color-bg: #ffffff;
    --color-grey: #EBEBEB;
    --color-light-grey: #F8F8F8;
    --color-border: #6C757B;
    --color-placeholder: #6C757B;
    --color-text: #333333;
    --color-highlight: #207D8B;
    --color-btn-hover: #559EAA;
    --color-delete: #9B0000;
    --color-delete-hover: #C81414;;
    --color-error: #C81414;
    --color-success: #12AE1B;
    --color-pending: #DF7C26;

    /*fonts:*/
    --font-family: 'Roboto', Arial, sans-serif;
    --font-bold: 600;

    /*other:*/
    --padding-hor-wrapper: 3rem;
    --transition: all .2s;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-flow: column;
    font-family: var(--font-family);
    font-size: 1.2em;
    line-height: 1.5em;
    min-height: 100%;
    color: var(--color-text);
    background-color: var(--color-bg);
}

strong {
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

.btn {
    border: none;
    background-color: var(--color-highlight);
    color: var(--color-bg);
    font-weight: bold;
    font-family: var(--font-family);
    display: inline-block;
    padding: .5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.add_begleitung {
    display: inline-flex;
    gap: .75rem
}

.add_begleitung svg {
    flex:0 0 auto;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    fill: var(--color-bg);
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--color-btn-hover);
}

.btn.sent {
    pointer-events: none;
}

.btn:disabled,
.btn:disabled:hover {
    color: var(--color-bg);
    background-color: #a0a0a0;
    border-color: #a0a0a0;
    cursor: not-allowed;
}

.wrapper {
    width: 100%;
    max-width: 1110px;
    margin: 0 auto;
}

.wrapper_header {
    display: flex;
    gap: 6rem;
    justify-content: space-between;
    padding: 2rem var(--padding-hor-wrapper) 2rem;
}

.wrapper_main {
    padding: 6rem var(--padding-hor-wrapper);
}

.container_qr {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    align-items: center;
    background-color: var(--color-highlight);
    padding: 3rem;
    margin-top: -4rem;
}

.ticket .wrapper {

}

.text h1 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3em;
}

.text h2 {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3em;
}

.text h3 {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3em;
}

.text h4 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3em;
}

.text a,
footer a,
form a {
    color: var(--color-highlight);
}

.text a:hover,
footer a:hover,
form a:hover {
    text-decoration: none;
}

.text ul,
.text ol {
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.text ol {
    padding-left: 1.25rem;
}

.text li {
    margin-bottom: .5rem;
}

main {
    display: block;
    flex: 1 1 auto;
}

/* ***** Header START ***** */
header {
    width: 100%;
    background-color: var(--color-light-grey);
}

.header_band {
    display: block;
    width: 100%;
    height: 16px;
    background-color: var(--color-highlight);
}

.logo {
    display: flex;
    align-items: center;
}

/* ***** Header END ***** */

.stage {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: var(--color-highlight);
}


/* ***** Login START ***** */
.login_wrapper {
    display: flex;
    justify-content: center;
}

.login_wrapper input[type="text"] {
    max-width: 300px;
    border-radius: 5px 0 0 5px;
    border-right: 0;
}

.login_wrapper input[type="submit"] {
    border-radius: 0 5px 5px 0;
}

.login_error {
    margin-top: 1rem;
    text-align: center;
    color: var(--color-error);
}
/* ***** Login END ***** */

/* ***** Form START ***** */
.introtext {
    margin-bottom: 3rem;
}

form {
    background-color: var(--color-light-grey);
    padding: 2rem;
}

form h2 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

fieldset {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.form__group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 3rem;
}

.form__group:last-child {
    margin-bottom: 0;
}

.form__group.border_bottom {
    border-bottom: 1px dashed #a0a0a0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.form__group.border_bottom:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form__row {
    flex: 0 0 calc(50% - 1rem);
    position: relative;
    line-height: 1.5em;
}

.form__row.full {
    flex: 0 0 100%;
}

.form__group.border_bottom {
    gap: 0 2rem;
}

.text_form {
    margin-bottom: 1.5rem;
}

.text_form p {
    margin-bottom: 1rem;
}

.text_form p:last-child {
    margin-bottom: 0;
}

.text_form ul {
    padding-left: 1rem;
}

.text_form ul li {
    margin-bottom: 1rem;
}

.text_form ul li:last-child {
    margin-bottom: 0;
}

.form__row_headline {
    width: 100%;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.checkbox_wrapper {
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: .5rem;
    font-size: 1em;
    font-family: var(--font-family);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="tel"]:disabled,
input[type="number"]:disabled,
textarea:disabled,
select:disabled {
    color: 1px solid var(--color-border);
    background-color: var(--color-grey);
    cursor: not-allowed;
}

.select {
    position: relative;
    display: block;
}

.select::before {
    content: '▼';
    color: var(--color-border);
    position: absolute;
    right: 1px;
    top: 1px;
    pointer-events: none;
    font-size: 1em;
    height: 45px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.select select {
    padding-right: 45px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

option:disabled {
    color: var(--color-border);
}

.teilnahme_ja,
.stellvertretung_ja {
    display: none;
}

.form__group_begleitung {
    position: relative;
    border: 1px solid var(--color-border);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.form__group_begleitung:last-child {
    margin-bottom: 1.5rem;
}

.delete_begleitung {
    width: 25px;
    height: 25px;
    fill: var(--color-delete);
    position: absolute;
    right: .5rem;
    top: .5rem;
    cursor: pointer;
    transition: var(--transition);
}

.delete_begleitung:hover {
    fill: var(--color-delete-hover);
}

.form__hinweis {
    display: block;
    margin-top: 1rem;
    color: var(--color-border);
}

.form__hinweis_top {
    display: block;
    margin-bottom: 1.5rem;
}

.toggle_verpflegung_container {
    display: none;
}

.toggle_verpflegung_wrapper {
    padding-top: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

form div.error {
    margin-top: .25rem;
    color: var(--color-error);
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
}

#privacy_consent-error {
    padding-left: 34px;
}

.spinner {
    height: 20px;
    width: 32px;
}

.feedback_box {
    margin-top: 1rem;
}

.email_error .feedback_box__wrapper,
.feedback_error .feedback_box__wrapper,
.send_error,
.send_success {
    color: var(--color-error);
    border:2px solid var(--color-error);
    padding: .5rem 1rem;
    display: inline-block;
    border-radius: 10px;
}

.send_success {
    color: #12AE1B;
    border:2px solid #12AE1B;
}

.feedback_success .feedback_box__wrapper {
    padding: 2rem;
    background-color: var(--color-light-grey);
}

.email_error .feedback_box__wrapper {
    width: 100%;
}

.email_error .feedback_box__wrapper a,
.feedback_error .feedback_box__wrapper a,
.email_error .feedback_box__wrapper a:hover,
.feedback_error .feedback_box__wrapper a:hover,
.send_error a,
.send_error a:hover {
    color: var(--color-error);
    text-decoration: underline;
}

.send_success a,
.send_success a:hover {
    color: #12AE1B;
    text-decoration: underline;
}


/* *** Checkbox START *** */

/* better solution for styling the checkboxes */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked,
[type="radio"]:not(:checked),
[type="radio"]:checked {
    /* hide the checkbox without making it hidden for
    the screen readers */
    position: absolute;
    left: 0;
    opacity: 0.01;
    pointer-events: none;
}

/* styling the label and making room for the boxes */
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label,
[type="radio"]:not(:checked) + label,
[type="radio"]:checked + label {
    position: relative; /* make label the reference to position the custom boxes */
    cursor: pointer;
    padding-left: 34px;
    line-height: 1.5em;
}

/* styling the new boxes*/
[type="checkbox"]:not(:checked) + label::before,
[type="checkbox"]:checked + label::before,
[type="radio"]:not(:checked) + label::before,
[type="radio"]:checked + label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-border);
    background-color: #ffffff;
    transition: all .275s;
}

[type="radio"]:not(:checked) + label::before,
[type="radio"]:checked + label::before {
    border-radius: 30px;
}

/* the checked box */
[type="checkbox"]:not(:checked) + label::after,
[type="checkbox"]:checked + label::after,
[type="radio"]:not(:checked) + label::after,
[type="radio"]:checked + label::after {
    content: '';
    background: url('../img/check.svg') center center no-repeat;
    background-size: 18px auto;
    height: 24px;
    width: 24px;
    position: absolute;
    top: 2px;
    left: 0;
    transition: var(--transition);
}

/* how a no check state should look like  */
[type="checkbox"]:not(:checked) + label::after,
[type="radio"]:not(:checked) + label::after {
    opacity: 0;
    transform: scale(0) rotate(45deg);
}

/* how a check should look like */
[type="checkbox"]:checked + label::after,
[type="radio"]:checked + label::after {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* *** Checkbox END *** */


/* ***** Form END ***** */


/* ***** Ticket START ***** */
.ticket header {
    padding-bottom: 4rem;
}

.qr_container {
    display: inline-flex;
    flex-flow: column;
    background-color: var(--color-bg);
    padding-bottom: 3rem;
}

.qr_text {
    padding: 0 10%;
}

.qr_user_name {
    display: block;
    font-size: 1.4rem;
    margin-bottom: .25rem;
}

.ticket_data_wrapper {
    padding: 1.5rem;
    width: 100%;
    background-color: var(--color-light-grey);
    margin-bottom: 6rem;
}

.ticket_data_wrapper span {
    display: block;
    margin-bottom: .25rem;
}

span.ticket_begleitung_status {
    display: inline;
    font-size: .9rem;
}

.ticket_begleitung_status.eingeladen {
    color: var(--color-pending);
}

.ticket_begleitung_status.zugesagt {
    color: var(--color-success);
}

.ticket_begleitung_status.abgesagt,
.ticket_begleitung_status.storniert,
.ticket_begleitung_status.abgelaufen {
    color: var(--color-error);
}

.print_wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

#print {
    display: flex;
    gap: .5rem;
    color: var(--color-bg);
    font-weight: bold;
    cursor: pointer;
}

#print svg {
    height: 30px;
    width: 30px;
    fill: var(--color-bg);
}

#print:hover span {
 text-decoration: underline;
}

.introtext_ticket {
    margin-bottom: 6rem;
}


/* ***** Ticket END ***** */


/* ***** Footer START ***** */
footer {
    font-size: .9em;
    background-color: var(--color-light-grey);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.wrapper_footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6rem 8rem;
    justify-content: center;
    padding: 3rem var(--padding-hor-wrapper);
}

.ticket .wrapper_footer {
    justify-content: space-between;
}

.footer_box {
    display: flex;
    flex-flow: column;
    gap: 1rem;
}

.footer_headline {
    font-weight: bold;
}

.nav_list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.footer_foerderer {
    gap: 1.25rem;
}

.branding_band {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: .25rem;
    font-size: 14px;
}

/* ***** Footer END ***** */

.hidden {
    display: none;
}

@media screen and (max-width: 660px) {

    :root {
        --padding-hor-wrapper: 2rem;
    }

    .wrapper_header {
        flex-flow: column;
        align-items: center;
        gap: 3rem;
    }

    .wrapper_footer {
        gap: 3rem;
        flex-flow: column;
        align-items: center;
        flex-wrap: nowrap;
    }

    .wrapper_qr {
        padding: 0;
    }

    .container_qr {
        padding: 2rem;
    }

    .introtext_ticket {
        margin-bottom: 4rem;
    }

    .ticket .wrapper_main {
        padding: 4rem var(--padding-hor-wrapper);
    }

    .ticket_data_wrapper {
        margin-bottom: 4rem;
    }

    .form__row {
        flex: 0 0 100%;
    }

    .footer_box {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {

    :root {
        --padding-hor-wrapper: 1rem;
    }

    .ticket_data_wrapper {
        padding: 1rem;
    }

    .introtext_ticket {
        margin-bottom: 3rem;
    }

    .ticket .wrapper_main {
        padding: 3rem var(--padding-hor-wrapper);
    }

    .ticket_data_wrapper {
        margin-bottom: 3rem;
    }

    .container_qr {
        padding: 1rem;
    }

    form,
    .form__group_begleitung {
        padding: 1rem;
    }

}