/* Color Variables */
:root {
    --dark-color: #074ee8;
    --gray-color: hsl(0, 0%, 60%);
    --light-color: hsl(0, 0%, 100%);
    --highlight-color: #ff0550;
    --border-color-dark: #074ee8;
    --border-color-normal: #0790DE;
    --border-color-light: #6bc0fd;
    --care-regio-blue: #07d2d4;
    --FAQ-line-height: 1.5;
    --FAQ-background-color: #d9feff;
    --FAQ-border-radius: 10px;
}

/* GLOBAL STYLES */
* {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    line-height: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: 0.2s ease all;
}

a {
    text-decoration: none;
    transition: 0.3s ease all;
}

button {
    border: 3px solid var(--highlight-color);
    background-color: var(--highlight-color);
    color: #fff;
    border-radius: 3em;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: 600;
    height: 2em;
    padding-left: 1em;
    padding-right: 1em;
    letter-spacing: -.025em;
    text-transform: uppercase;
    transition: 0.3s ease background-color;
}

button:hover {
    color: var(--highlight-color);
    background-color: var(--light-color);
}

img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 80%;
    width: 100%;
}

p {
    color: var(--gray-color);
    font-size: .9em;
    hyphens: auto;
    line-height: 1.5;
    margin: 1em 0;
}

html {
    scroll-behavior: smooth;
}


/* CONTAINERS STYLES */
.container {
    padding: 1em;
}

.flex-container {
    display: flex;
}

/* Cookie Popup Styles */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 200px;
    background-color: #f5f5f5;
    text-align: center;
    box-sizing: border-box;
    display: none;
}

.cookies-button {
    font-size: 1em;
    margin-top: 10px;
    padding: 5px 10px;
}

/* HEADER NAVIGATION STYLES */
.logo {
    width: 200px;
    height: auto;
    margin-top: -20px;
    margin-bottom: -20px;
    transition: 0.2s ease all;
}

.logo:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    top: 0;
    position: sticky;
    z-index: 999;
}

.nav-container-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-container-2 > div {
    display: flex;
}

/* Responsive Design for Navigation Container */
@media (max-width: 900px) {
    .nav-container {
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(2, auto);
    }

    /* Positioning of the children of nav-container */
    .nav-container > *:nth-child(1) {
        grid-area: 1 / 1 / 2 / 2;
    }

    .nav-container > *:nth-child(3) {
        grid-area: 1 / 2 / 2 / 3;
    }

    .nav-container > *:nth-child(4) {
        grid-area: 1 / 3 / 2 / 4;
    }

    .nav-container > *:nth-child(2) {
        grid-area: 2 / 1 / 3 / 4;
        margin-bottom: 20px;
    }
}

/* Header Styles */
header {
    top: 0;
    position: sticky;
    background: #fff;
    z-index: 999;
    overflow: hidden;
}

/* Header Menu Styles */
.header-menu {
    justify-self: center;
    display: flex;
    gap: 20px;
}

.header-menu-link {
    color: var(--gray-color);
    display: block;
    font-size: .85em;
    font-weight: 500;
    padding: .5em .75em;
    text-transform: uppercase;
}

.header-menu-link:hover {
    color: var(--highlight-color);
    transform: scale(1.1);
}

/* Home Button Styles */
.home-button {
    background-color: var(--highlight-color);
    border-radius: 5px;
    color: var(--light-color);
    font-size: 0.9em;
    padding: .5em 1em .5em 1em;
    text-transform: uppercase;
    margin-right: 30px;
    text-align: center;
    border: 2px solid var(--highlight-color);
}

.home-button:hover {
    color: var(--highlight-color);
    background-color: var(--light-color);
    transition: 0.3s ease all;
    transform: scale(1.1);
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.secondary-button {
    margin-top: 30px;
    border: 1px solid var(--highlight-color);
    background-color: var(--light-color);
    color: var(--highlight-color);
    border-radius: 3em;
    cursor: pointer;
    font-size: 1em;
    font-weight: 200;
    height: 2em;
    padding-left: 1em;
    padding-right: 1em;
    letter-spacing: -.025em;
    text-transform: uppercase;
    transition: 0.3s ease background-color;
}

.secondary-button:hover {
    background-color: var(--highlight-color);
    color: #fff;
}

/* HEADER CONTENT STYLES */
.header-img {
    border-radius: 60%;
    box-shadow: 0 0 0 .5em var(--border-color-dark),
    0 0 0 1em var(--border-color-normal),
    0 0 0 1.5em var(--border-color-light);
    height: 15em;
    margin: 2em auto;
    overflow: hidden;
    width: 15em;
    top: 120px;
}

.header-description {
    margin: 8em 3em 0;
    max-width: 48vw;
}

.header-description p {
    font-size: 1.1em;
    margin-top: 2em;
    margin-bottom: 5em;
}

.header-title {
    font-size: 2.5em;
    letter-spacing: -.025em;
    line-height: 1.25;
    margin-left: -.0625em;
    margin-top: -30px;
    font-weight: lighter;
}

/* BUTTONS */
/* Scroll Top Button Styles */
#scrollTopButton {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99; /* Make sure it does not overlap */
    border: none;
    outline: none;
    background-color: var(--highlight-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    transform: scale(0.9);
    transition: 0.3s ease transform;
}

#scrollTopButton span {
    display: inline-block;
    font-size: 30px;
    line-height: 30px;
    height: 30px;
}

#scrollTopButton:hover {
    background-color: var(--gray-color);
    transform: scale(1);
}

/* Content Styles (Paragraphs) */

.content {
    width: 100%;
    margin: auto;
    padding-bottom: 8em;
    background-color: var(--border-color-dark);
    position: relative;
}

.content h2, .content #heading2 {
    font-size: 2.5em;
    margin: 0;
    padding-bottom: 0.5em;
    color: #fff;
    text-align: center;
}

.content h2 {
    padding-top: 3em;
}

.content #heading2 {
    padding-top: 2.5em;
}

.content p, .content-2 p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    line-height: 2;
    color: #000;
    background-color: #fff;
    margin-bottom: 0.625em;
    padding: 3em 6em;
    text-align: justify;
    border: 10px solid var(--border-color-light);
    border-radius: 25px;
    box-shadow: 0 0 0 10px var(--border-color-normal);
}

.content p {
    margin-left: 15em;
    margin-right: -1.2em;
    column-count: 2;
    column-gap: 4em;
}

.content-2 p {
    margin-right: 15em;
    margin-left: -1.2em;
    border-radius: 0 30px 30px 0;
}

.content b {
    color: var(--highlight-color);
    font-size: 1.1em;
}

.content .logo {
    width: 33em;
    height: auto;
}

.content .logo:hover {
    cursor: default;
    transform: none;
}

.content #myVideo {
    width: 100%;
    height: auto;
    border: 1px solid var(--care-regio-blue);
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    margin-top: 2em;
}

.content-1 a {
    color: var(--highlight-color);
    text-decoration: underline;
}

/* Animation Styles */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

.fly-in-left {
    animation: 1s ease-out 0s 1 slideInFromLeft;
}

.fly-in-right {
    animation: 1s ease-out 0s 1 slideInFromRight;
}

#foerderung img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
    height: auto;
    padding-bottom: 5em;
}

/* HEADER CONTENT IMPRESSUM, DATENSCHUTZ, ÜBER UNS*/

.header-title-2 {
    font-size: 2.5em;
    letter-spacing: -.025em;
    line-height: 1.25;
    margin-top: 70px;
    margin-bottom: 50px;
}

@media only screen and (max-width: 800px) {
    .header-title-2, .header-title, #heading1, #heading2, #heading3, h2 {
        font-size: 5vw;
    }
}

/* STYLE CONTENT IMPRESSUM DATENSCHUTZ*/
#content2 {
    width: 100%;
    margin: auto;
    padding: 2em 10vw 3em;
}


b {
    color: var(--highlight-color);
    font-size: 1.2em;
}

#text-impressum {
    color: #000;
}

#text-impressum a {
    color: var(--highlight-color);
    text-decoration: underline;
}

a[href^="mailto:"] {
    color: var(--highlight-color);
    text-decoration: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* CONTACT FORM */
.centered {
    text-align: center;
    margin: 0;
    padding: 3em 0 0;
}

form {
    max-width: 420px;
    margin: 50px auto;
    padding-bottom: 8em;
}

.feedback-input {
    color: #000;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 18px;
    border-radius: 5px;
    line-height: 22px;
    background-color: transparent;
    border: 2px solid #074ee8;
    transition: 0.3s ease all;
    padding: 13px;
    margin-top: 8px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
    outline: 0;
}

.feedback-input:focus {
    border: 2px solid var(--highlight-color);
    background-color: #fff;
    color: #000;
}

textarea {
    height: 150px;
    line-height: 150%;
    resize: vertical;
    color: #074ee8;
}

label {
    line-height: 2;
}

[type="submit"] {
    width: 100%;
    background: var(--gray-color);

    border-radius: 5px;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: 0.3s ease all;
    margin-top: -4px;
    font-weight: 700;
}

[type="submit"]:not([disabled]) {
    background: #074ee8;
}

[type="submit"]:hover:not([disabled]) {
    background: #ff0550;
    color: #fff;
}

/* FOOTER */

footer {
    background: #f1f1f1;
    text-align: center;
}

footer .row {
    width: 100%;
    margin: 0 0;
    padding: 20px 0;
    box-sizing: border-box;
    color: var(--gray-color);
    font-size: 0.8em;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .row a {
    font-size: large;
    text-decoration: none;
    color: var(--gray-color);
    transition: 0.3s ease all;
    display: inline-block;
}

footer .row a:hover {
    color: var(--highlight-color);
    transform: scale(1.1);
}

footer .row ul {
    width: 100%;
}

footer .row ul li {
    display: inline-block;
    margin: 0 30px;
}

footer .row a i {
    font-size: 2em;
    margin: 0 1%;
}

/* ----------------- Styles for FAQ page ----------------- */
#FAQ-description {
    color: #000;
}

.FAQ-heading {
    margin-top: 2.5em;
    margin-bottom: 1em;
    font-size: 1.3em;
    line-height: var(--FAQ-line-height);
}

.FAQ-block {
    border: 1px solid black;
    border-radius: var(--FAQ-border-radius);
}

/* FAQ: Global styles for FAQ entries */
.FAQ-entry {
    background-color: var(--FAQ-background-color);
}

.FAQ-entry-first {
    border-top-left-radius: var(--FAQ-border-radius);
    border-top-right-radius: var(--FAQ-border-radius);
}

.FAQ-entry-last {
    border-bottom-left-radius: var(--FAQ-border-radius);
    border-bottom-right-radius: var(--FAQ-border-radius);
}

.FAQ-entry a {
    color: var(--highlight-color);
    text-decoration: underline;
}

.FAQ-entry details div {
    margin-bottom: 1.5em;
    color: #000;
    font-size: 0.9em;
    hyphens: auto;
    line-height: var(--FAQ-line-height);
}

.FAQ-entry details {
    padding-left: 1em;
    padding-right: 1em;
}

.FAQ-entry summary {
    list-style: none;
    padding-top: 1em;
    padding-bottom: 1em;
    line-height: var(--FAQ-line-height);
}

.FAQ-entry summary::-webkit-details-marker {
    display: none;
}

/* FAQ: Styles for tables */
.FAQ-entry table {
    border-collapse: collapse;
    width: 100%;
}

.FAQ-entry td {
    border: 1px solid #000000;
    text-align: left;
    padding: 8px;
    background-color: #ffffff;
}

.FAQ-entry th {
    border: 1px solid #000000;
    text-align: center;
    padding: 8px;
    background-color: #e8e8e8;
}

.year-column {
    width: 5%;
}

.publish-column {
    width: 60%;
}

.content-column {
    width: 35%;
}

/* FAQ: Cursor style when moving cursor over details summary */
.FAQ-entry summary {
    cursor: pointer;
}

/* FAQ: Arrow that rotates when opening the details */
.FAQ-entry details summary::before {
    content: "▶";
    color: var(--highlight-color);
}

.FAQ-entry details[open] summary::before {
    content: "▼";
}

/* FAQ: Changes background color when opening details */
.FAQ-entry details[open] {
    background: linear-gradient(to bottom, var(--FAQ-background-color), white);
}

.FAQ-entry-first details[open] {
    background: linear-gradient(to bottom, var(--FAQ-background-color), white);
    border-top-right-radius: var(--FAQ-border-radius);
    border-top-left-radius: var(--FAQ-border-radius);
}

.FAQ-entry-last details[open] {
    background: linear-gradient(to bottom, var(--FAQ-background-color), white);
    border-bottom-right-radius: var(--FAQ-border-radius);
    border-bottom-left-radius: var(--FAQ-border-radius);
}

/* FAQ: Hover effect when moving the cursor over the details summary */
.FAQ-entry summary:hover {
    transform: scale(1.01);
}

/* FAQ: Text styling */
.bold {
    font-weight: bold;
}

.code {
    background-color: #ededed;
    font-family: monospace !important;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 1.1em;
}

.colored {
    color: #02abb0;
}

.annotation {
    color: #ff0000;
    font-weight: bold;
    font-size: 1.3em;
}

/* FAQ: Heading styles */
.FAQ-entry-heading {
    padding-left: 10px;
}

.FAQ-entry-heading-text {
    color: #000;
    font-weight: bold;
    margin-left: 1em;
}

.FAQ-text-heading-1 {
    text-decoration: underline;
    margin-bottom: 0.3em !important;
}

.FAQ-text-heading-2 {
    text-decoration: underline;
    margin-bottom: 0.3em !important;
    font-weight: bold;
}

.FAQ-text-heading-3 {
    margin-bottom: 0.3em !important;
}

/* FAQ: List styles */
.FAQ-text-list.primary-list li {
    list-style: disc inside !important;
    text-indent: -20px;
    padding-left: 20px;
    line-height: var(--FAQ-line-height);
}

.FAQ-text-list.secondary-list li {
    list-style: circle inside !important;
    text-indent: -20px;
    padding-left: 20px;
    line-height: var(--FAQ-line-height);
}

/* FAQ: Box styles */
.FAQ-box-container {
    display: flex;
    flex-direction: column;
}

.FAQ-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: center;

    border: 1px solid;
    border-radius: 10px;
    padding: 2em !important;
    margin-bottom: 1.5em;
    max-width: 900px;
}

.FAQ-box.warning {
    background-color: #fffea8;
}

.FAQ-box.info {
    background-color: #d6e6ff;
}

.FAQ-box-icon {
    width: 50px;
    height: 50px;
}

.FAQ-box-text {
    padding-left: 20px;
    margin-bottom: 0 !important;
    line-height: var(--FAQ-line-height);
    font-size: 1em !important;
    color: black;
}

/* FAQ: Picture styles */
.FAQ-picture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.FAQ-picture {
    max-width: 90em;
    border: 1px solid;
    background-color: white;
    padding-bottom: 0 !important;
    margin-bottom: 0.5em !important;
}

.FAQ-picture.picture-small {
    max-width: 30em;
}

.FAQ-picture.picture-medium {
    max-width: 70em;
}

.FAQ-picture-text {
    font-style: italic;
    font-size: 0.8em !important;
    margin-bottom: 0 !important;
    text-align: center;
}

/* Styles for screens with max-width of 1024px */
@media only screen and (max-width: 1024px) {
    .header-description {
        max-width: 90vw;
    }

    header {
        position: relative;
    }

    .header-img {
        display: none;
    }

    .logo {
        width: 10em;
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        transition: 0.2s ease all;
    }

    .header-title {
        font-size: 2.5em;
        letter-spacing: -.025em;
        line-height: 1.25;
        margin-left: -.0625em;
        margin-top: -3em;
    }
    
    #editor-button-link {
        display: flex;
        justify-content: center;
    }

    #foerderung img {
        width: 70%;
    }

    .content p {
        column-count: 1;
    }

    #heading1 {
        padding-top: 3em;
    }

    .content {
        width: 100%;
        margin: auto;
        padding-bottom: 5em;
        background-color: var(--border-color-dark);
        position: relative;
    }
    
    .content h2, .content #heading2 {
        font-size: 2em;
        margin: 0;
        padding-bottom: 0.5em;
        color: #fff;
        text-align: center;
    }
    
    .content h2 {
        padding-top: 2em;
    }
    
    .content p, .content-2 p {
        margin-bottom: 0.625em;
        padding: 1em 3em;
        text-align: justify;
    }
    
    .content p {
        margin-left: 3em;
    }
    
    .content-2 p {
        margin-right: 3em;
        margin-left: -1.2em;
        border-radius: 0 30px 30px 0;
    }
}

/* Styles for screens with min-width of 1024px */
@media only screen and (min-width: 1024px) {
    /* Global styles */
    img {
        object-position: 50% 100%;
    }

    /* Container styles */
    .container {
        padding: 2em;
    }

    /* Header styles */
    .header-menu-link {
        padding: 0 1.5em;
    }

    .header-content {
        position: relative;
        min-height: calc(100vh - 63px);
        overflow: hidden;
    }

    .header-img {
        box-shadow: 0 0 0 2em var(--border-color-dark),
        0 0 0 4em var(--border-color-normal),
        0 0 0 6em var(--border-color-light);
        height: 55vw;
        margin: 0;
        position: absolute;
        right: -16vw;
        width: 55vw;
    }

    .header-title {
        font-size: calc(1vw + 2.5em);
    }
}

/* Styles for portrait orientation with min-height of 1024px */
@media only screen and (orientation: portrait) and (min-height: 1024px) {
    .header-content {
        margin-top: 15vh;
    }
}

/* Styles for larger screens with min-width of 1600px */
@media screen and (min-width: 1800px) {
    .white-area {
        background-color: #fff;
        height: 50px;
    }

    .logo-home {
        width: 300px;
    }

    .header-menu-link {
        font-size: 1em;
    }

    .header-description button {
        font-size: 2em;
        font-weight: 600;
        height: 2.5em;
    }

    .content p, .content-2 p {
        font-size: 1.15em;
    }

    .content p {
        margin-left: 20em;
        margin-right: -1.2em;
    }

    .content-2 p {
        margin-right: 20em;
        margin-left: -1.2em;
    }

    .content .logo {
        width: 50em;
        height: auto;
    }

    #content2 {
        font-size: 1.2em;
        width: 100%;
        margin: auto;
        padding: 2em 10vw 3em;
    }
}

/* Form styles */
.error-text {
    color: var(--highlight-color);
    font-size: 14px;
    padding-bottom: 16px;
    font-weight: bold;
}

input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--dark-color);
}

.success-form-submitted {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 100vw;
    height: 100px;
    text-align: center;
    margin: 100px 0 150px 0;
}

.success-form-submitted img {
    height: 50px;
    width: 50px;
    margin: auto;
}

.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 20px 0;
    flex-direction: column;
}

.captcha-container-image {
    display: flex;
    align-items: end;
}

.captcha-reload-icon {
    cursor: pointer;
    width: 20px;
    height: 20px;
    transition: 0.3s ease all;
    margin-left: 60px;
}

#error-captcha {
    text-align: center;
    margin-bottom: 20px;
}

label {
    width: 100%;
}

/* Content styles */
.content-1, .content-2 {
    overflow: hidden;
}

/* montserrat-regular - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/9bddd99255e79f291922.woff2) format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url(../fonts/d08b95388737e342839b.ttf) format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* montserrat-500 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/460e0a49408ef798457c.woff2) format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url(../fonts/54d10fd36728d8639ad0.ttf) format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* montserrat-600 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url(../fonts/b349c0eae2fd24f89086.woff2) format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url(../fonts/f3e696098f2d6fdb583b.ttf) format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
