@font-face {
    font-display: swap;
    font-family: 'Hind';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Hind400.woff2') format('woff2');
  }

  @font-face {
    font-display: swap;
    font-family: 'Hind';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Hind500.woff2') format('woff2');
  }

  @font-face {
    font-display: swap;
    font-family: 'Hind';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/Hind600.woff2') format('woff2');
  }

  @font-face {
    font-display: swap;
    font-family: 'Hind';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Hind700.woff2') format('woff2');
  }

html, body {
    background-color: #e1e9f8;
    margin: 0; padding: 0;
    color: #104d89;
    font-family: 'Hind', sans-serif;
}

.site-header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: .7rem 10vw;
    flex-wrap: wrap;
}

h3, h1, h2 {
    font-weight: 700;
    margin-bottom: .25rem;
    margin-top: .25rem;
}

.header-site-title {
    margin-bottom: 0;
}

p {
    font-weight: 500;
    margin: 0;
    max-width: 40vw;
}

.main-content {
    margin: 0 10vw;
}

input[type=text], input[type=email], select {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 0;
    border-radius: .5rem;
    width: 40vw;
    margin: .5rem 0;
    margin-left: 0;
}

button[type=submit], button#submit_button, button#recipient_add {
    display: inline;
    padding: .75rem 2rem;
    background-color: #fda220;
    color: #104a82;
    font-weight: 700;
    font-size: 16px;
    border: 0;
    border-radius: 2rem;
    margin: .5rem 0;
    margin-left: 0;
    cursor: pointer;
}

.spacer {
    display: block;
    height: 7vh;
    background: transparent;
    color: transparent;
}

@media screen and (max-width: 800px) {
    .main-content {
        margin: 0 1rem;
    }
    p {
        max-width: 100vw;
    }
    input[type=text], input[type=email] {
        width: calc(100vw - 2rem);
    }
    .site-header {
        padding: .7rem 0;
        justify-content: space-around;
    }
}

form {
    display: inline;
}

button[name="back"] {
    display: inline;
    background: transparent;
    border: 1px solid #104a82;
}

.header-logo {
    padding-bottom: 8px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Motivauswahl */

:root {
    --motive-card-width: calc((80vw - 6rem) / 3 - 1px);
    --motive-card-height: calc(var(--motive-card-width) / 3 * 2); /* 3:2 format */
}

@media screen and (max-width: 800px) {
    :root {
        --motive-card-width: calc(90vw);
        --motive-card-height: calc(var(--motive-card-width) / 3 * 2); /* 3:2 format */
    }
}

.motive-selection {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.card-motive {
    width: var(--motive-card-width);
}

.card-motive > img {
    width: var(--motive-card-width);
    height: var(--motive-card-height);
}

.card-motive > div {
    padding-top: 12px;
    width: var(--motive-card-width);
    display: flex;
    justify-content: space-between;
}

.card-zoom {
    cursor: pointer;
}

.card-label {
    display: flex;
    align-items: flex-start;
    gap: .3rem;
    justify-content: flex-start;
    display: inline;
}

.card-selection-button {
    width: 1rem;
    height: 1rem;
    color: #074785;
}

/* Grußtextauswahl */

.text-templates {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
    width: 100%;
}

.text-template {
    flex: 0 0 auto;
    width: calc(33% - 2rem);
    min-width: 20rem;
    max-width: calc(100% - 2rem);
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
}

.text-template-content {
    background-color: white;
    border: 0;
    border-radius: 4px;
    padding: 1rem;
    flex: 1 1 auto;
}

.text-template-content p {
    margin-top: 1rem;
    font-weight: 400;
    font-size: .875rem;
}

.text-template-content p:first-child {
    margin-top: 0;
}

.text-radio {
    width: 16px;
    height: 16px;
}

.own-text {
    width: 80vw;
    height: 25rem;
}

/* Empfängerwahl */

#recipients_selector {
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.added-recipient {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-content: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.added-recipient-input {
    width: 240px;
    max-width: 240px;
}

.added-recipient-gender {
    width: 100px;
    max-width: 100px;
}

.added-recipient-delete {
    width: 16px;
    height: 16px;
    padding: .5rem .5rem;
    background-color: #f44;
    border: 0;
    border-radius: .5rem;
    margin-left: 0;
    margin: .5rem 0;
    cursor: pointer;
}

/* Vorschau */
.send-preview {
    float: right;
    max-width: 400px;
    background: white;
    padding: 1rem;
    border-radius: 1reM;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    min-height: 600px;
}

.send-preview-logo {
    width: 160px;
}

.send-preview p {
    margin-right: auto;
}

.preview-sides {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media screen and (max-width: 800px) {
    .preview-sides {
        flex-wrap: wrap;
    }
    .send-preview {
        max-width: calc(100vw - 4rem);
    }
}

.send-preview-text {
    width: -webkit-fill-available;
}

.send-preview-card {
    width: 100%;
    height: auto;
    display: block;
}
