:root {
    --copy-size: 1.25rem;
    --copy-size--big: 2rem;
    --copy-size--medium: 1.75rem;
    --copy-size--small: 1rem;
    --text: #412001;
    --feature: #a36777;
}

@font-face {
    font-family: "GolosTextWebRegular";
    src: url("Golos-Text_Regular.woff2") format("woff2"), url("Golos-Text_Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "GolosTextWebBold";
    src: url("Golos-Text_Bold.woff2") format("woff2"), url("Golos-Text_Bold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "GolosUIWebRegular";
    src: url("Golos-UI_Regular.woff2") format("woff2"), url("Golos-UI_Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "GolosUIWebBold";
    src: url("Golos-UI_Bold.woff2") format("woff2"), url("Golos-UI_Bold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: GolosTextWebRegular, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    font-size: var(--copy-size);
    line-height: 1.4;
    background-color: #d6d6d6;
    color: #412001;
    margin: 40px auto 40px auto;
    width: 1120px;
}

header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h2 {
    margin: 0 0 1rem 0;
}

h2,
nav {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 400;
}

.form-group {
    display: grid;
}

form {
    margin: 1rem 0 1rem 0;
}

div.alert {
    margin: 2rem 0 0 0;
}

input .form-control,
input,
textarea {
    width: 100%;
    background-color: #d6d6d6;
    border: 2px solid #412001;
    color: #412001;
    padding: 8px 16px 8px 16px;
}

.lt textarea,
textarea {
    height: 320px;
}

label {
    display: block;
    margin: 1rem 0 1rem 0;
}

button {
    background-color: var(--feature);
    border: none;
    color: #d6d6d6;
    font-size: var(--copy-size);
}

footer {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: #412001;
    /* text-transform: lowercase; */
    transition: color 0.3s;
}

a:hover,
a.selected,
section.course-dates a:hover {
    color: var(--feature);
}

.termin a {
    color: var(--feature);
}

.text a {
    color: var(--feature);
}

.hp {
    position: absolute;
    left: -8888px;
}

.uniform__potty {
    position: absolute;
    left: -8888px;
}

nav {
    margin: 0 0 18px 0;
}

nav a {
    margin: 0 0 0 32px;
}

p {
    margin: 0 0 1rem 0;
}

section {
    margin: 80px 0 80px 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px 32px;
    grid-auto-flow: dense;
}

p span {
    font-weight: 700;
}

h1 span,
.join-now span {
    color: var(--feature)
}

.hero img,
.hero video {
    grid-column: 1 / span 12;
    max-width: 100%;
    background-color: grey;
}

.bot {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: left;
}

section.hero h1,
section.course-details div.text {
    grid-column: 3 / span 9;
    /* text-align: center; */
}

section.contact-page div {
    text-align: center;
}

section.formular-text div,
form div,
section.form div,
section.formular-fields form {
    grid-column: 1 / span 12;
}

section.course-details div.text {
    grid-column: 3 / span 10;
    /* text-align: center; */
}

section.course-details div.logo {
    grid-column: 1 / span 2;
    /* text-align: center; */
}

.blockquote p {
    text-align: left;
    font-size: var(--copy-size);
    border-bottom: .125rem solid var(--text);
    border-top: .125rem solid var(--text);
    border-color: var(--feature);
    padding: 16px 0 16px 0;
    margin: 0;
}

cite{
    font-style: italic;
    text-align: left;
    margin-bottom: 1rem;
    color: var(--feature)
}


/* div.picture { */


/* height: 100%; */


/* width: 100%; */


/* object-fit: cover; */


/* }  */

.picture img {
    /* if it breaks on safari, try min-height */
    min-height: 100%;
    object-fit: cover;
}

.logo img {
    /* min-height: 100%; */
    min-width: 100%;
    object-fit: cover;
}


/* section.course-details .picture img {
    height: 100%;
    object-fit: scale-down;
} */

section.mamki div.text {
    grid-column: 1 / span 5;
}

section.mamki div.picture {
    grid-column: 6 / span 7;
}

section.course-dates div.text,
section.about div.text {
    grid-column: 8 / span 5;
}

section.course-dates div.picture,
section.about div.picture {
    grid-column: 1 / span 7;
}

section.contact div.form {
    grid-column: 4 / span 6;
}

section.impressum div.text,
section.gdpr div.text,
section.blockquote p,
section.blockquote cite,
section.blockquote h1 {
    grid-column: 1 / span 12;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer a {
    margin: 0 16px 0 16px;
}

@media (max-width: 1248px) {
    body {
        width: auto;
        margin: 40px 64px 40px 64px;
    }
    h1 {
        font-size: 32px;
    }
    h2,
    nav,
    footer {
        font-size: 24px;
    }
    section {
        margin: 60px 0 60px 0;
    }
    section.mamki div.text,
    section.course-dates div.picture,
    section.about div.picture,
    section.contact div.form {
        grid-column: 1 / span 6;
    }
    section.mamki div.picture,
    section.course-dates div.text,
    section.about div.text,
    section.contact div.form {
        grid-column: 7 / span 6;
    }
    
    section.course-details div.logo {
        grid-column: 1 / span 2;
    }

    section.course-details div.text {
        grid-column: 3 / span 8;
    }
}

@media (max-width: 920px) {
    header {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    section {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 24px;
        margin: 40px 0 40px 0;
    }
    div.picture {
        max-height: 100%;
        width: 100%;
        object-fit: scale-down;
    }
    .picture img {
        max-height: 100%;
        /* if it breaks on safari, try min-height */
        object-fit: cover;
    }
    .impressum p {
        font-size: var(--copy-size--small);
        margin: 0;
    }
    .gdpr p {
        font-size: var(--copy-size--small);
    }
    .gdpr li {
        font-size: var(--copy-size--small);
    }
    nav {
        margin: 16px 0 0 0;
    }
    nav a {
        margin: 0 16px 0 16px;
    }
    .hero img,
    .hero video {
        grid-column: 1 / span 4;
    }
    .logo img {
        /* max-height: 100%; */
        min-width: 100%;
        object-fit: cover;
    }
    section.hero h1,
    section.mamki div.text,
    section.mamki div.picture,
    section.course-dates div.text,
    section.course-dates div.picture,
    section.contact-page div,
    section.formular-fields div,
    section.formular-fields form,
    section.about div.picture,
    section.about div.text,
    section.contact div.form,
    section.impressum div.text,
    section.formular-text div,
    form div,
    section.form div,
    section.formular-fields form,
    section.gdpr div.text {
        grid-column: 1 / span 4;
    }
    section.course-details div.logo {
        grid-column: 1 / span 1;
        text-align: left;
    }
    section.course-details div.text {
        grid-column: 2 / span 3;
        text-align: left;
        /* text-align: center; */
    }
    section.course-details div.picture {
        grid-column: 1 / span 1;
        /* text-align: center; */
    }
}

@media (max-width: 830px) {
    footer a {
        font-size: var(--copy-size--small);
    }
    footer a {
        margin: 8px auto 0 auto;
    }
}

@media (max-width: 660px) {
    body {
        margin: 40px 24px 40px 24px;
    }
    header img {
        max-width: 250px;
    }
    section {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 24px;
    }
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    footer a {
        margin: 8px 0 0 0;
    }
}

@media (max-width: 550px) {
    body {
        margin: 24px 24px 24px 24px;
    }
    header img {
        width: 100%;
    }
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    nav a {
        margin: 8px 0 0 0;
    }
    section.course-details div.text {
        grid-column: 1 / span 4;
        /* text-align: center; */
    }
    section.course-details div.picture {
        grid-column: 2 / span 2;
        /* text-align: center; */
    }
}