:root {
    /* https://coolors.co/palette/f4f1de-e07a5f-3d405b-81b29a-f2cc8f */
    /* --navbar-bg: #3D405B; */
    --navbar-bg: #152930;
    --navbar-text: white;
    --navbar-hover-text: #f4daa7;
    --navbar-hover-bg: var(--navbar-bg);
    /* --title-bg: #81B29A; */
    --title-bg: #152930;
    --title-h1-font: #DE0082;
    --title-h2-font: white;


    --card-bg: #f4daa7;
    --card-hover-bg: #DE0082;
    --card-text: #464e52;
    --card-hover-text: var(--title-bg);
    --card-border-radius: 15px;
    --card-hover-transition: 0.2s;
    /*     
        --card-bg: #8a9977;
        --card-hover-bg: #F4DAA7;
        --card-text: #152930;
        --card-hover-text: #DE0082; */

    --blog-text: #464e52;
    --blog-bg: #f4daa7;
    --blog-sidebar-text: #464e52;
    --blog-sidebar-text-hover: #DE0082;
    --blog-sidebar-bg: #f4daa7;

    --cookie-banner-bg: #f4daa7;
    --cookie-banner-text: #152930;
    --cookie-banner-button-bg: #de0082;

    --imprint-text: white;
    --imprint-hover-text: #de0082;



    --overall-bg: var(--title-bg);
    /*  hitergrund antrazit, title pink, subtitle white, card green - basilikum schrift antrazit, bei hover irgendwie anders */
    /* de0082 magenta */
    /* 8a9977 salbei */
    /* 152930 antrazit */
    /* F4DAA7 sand for hover */
    --li-hover-bg: #F2CC8F;
    --li-hover-text: #3D405B;
    --red: #E07A5F;
    --creme: #F4F1DE;
    --left-right-padding: clamp(2rem, 7vw, 10rem);
    /* --left-right-padding-article: 1rem; */
    --left-right-padding-article: clamp(1rem, 8vw, 25rem);
    --article-p-fade-height: 4em;
}

.newsletter-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.newsletter-wrapper .newsletter-item {
    text-align: center;
    font-size: 2rem;
    font-weight: lighter;
    color: var(--title-bg);
    font-family: SpaceGrotesk, fallback, sans-serif;
    background-color: var(--title-h1-font);
    border-radius: 5px;
    padding: 1rem 2rem;
    border: none;
}

.newsletter-wrapper input {
    width: 100%;
}

.newsletter-wrapper button {
    transition: clip-path 0.2s ease-out;
    white-space: nowrap;
    margin-left: 1rem;
    cursor: pointer;
}



::-webkit-input-placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--title-bg);
}

::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--title-bg);
    opacity: 1;
}

.newsletter-wrapper input:focus {
    border: none;
}

* {
    box-sizing: border-box;
}


@font-face {
    font-family: SpaceGrotesk;
    src: url('/static/fonts/SpaceGrotesk-Regular.ttf') format("truetype");
}

@font-face {
    font-family: SpaceGrotesk;
    src: url('/static/fonts/SpaceGrotesk-Bold.ttf') format("truetype");
    font-weight: bold;
}

@font-face {
    font-family: SpaceGrotesk;
    src: url('/static/fonts/SpaceGrotesk-Light.ttf') format("truetype");
    font-weight: lighter;
}

body {
    margin: 0;
    background-color: var(--overall-bg);
}

.cookie-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    font-family: SpaceGrotesk, fallback, sans-serif;
}

.cookie-banner-content {
    font-weight: bold;
    background-color: var(--cookie-banner-bg);
    padding: 20px;
    width: 80%;
    border-radius: 5px;
    max-width: 400px;
    text-align: center;
    font-size: 16px;
}

.cookie-banner-content .hochdeutsch {
    font-size: 12px;
    color: var(--cookie-banner-text);
    font-weight: lighter;

}

.cookie-banner-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-top: 10px;
}

.cookie-banner-button {
    background-color: var(--cookie-banner-button-bg);
    border: none;
    border-radius: 5px;
    color: var(--cookie-banner-text);
    text-align: center;
    font-family: SpaceGrotesk, fallback, sans-serif;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
    margin: 4px 2px;
    cursor: pointer;
    padding: 16px 24px;
}

.cookie-banner-button-decline {
    background-color: var(--cookie-banner-bg);
    padding: 10px 24px;
    font-size: 0.8em;
    font-weight: lighter;
}

nav {
    z-index: 10;
    position: sticky;
    top: 0px;
    background-color: var(--navbar-bg);
    display: flex;
    justify-content: center;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-around;
    justify-items: center;
    align-items: center;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--navbar-text);
    text-decoration: none;
    font-style: larger;
    font-weight: bold;
    font-family: SpaceGrotesk, fallback, sans-serif;
    transition: ease 0.2s;
    text-align: center;
    /* padding-left: 1rem;
    padding-right: 1rem; */
    padding: 1rem 1rem;
}

.navbar a:hover {
    color: var(--navbar-hover-text);
    background-color: var(--navbar-hover-bg);
    /* font-weight: bold; */
}

header {
    text-align: center;
    background-color: var(--title-bg);
    padding: 1rem var(--left-right-padding);
    font-family: SpaceGrotesk, fallback, sans-serif;
    box-sizing: border-box;
}

header .content {
    max-width: 1250;
    margin: 0px auto;
    box-sizing: border-box;
}

header h1 {
    padding-top: 70px;
    padding-bottom: 30px;
    margin: 0;
    font-weight: bold;
    font-size: 5em;
    /* font-style: bold; */
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--title-h1-font)
}

header h2 {
    color: var(--title-h2-font);
    font-weight: normal;
    font-size: 2em;
}

header p {
    color: var(--title-h2-font);
    font-weight: normal;
}

header .blog {
    /* padding: .1rem var(--left-right-padding-article); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header .contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* header .contact a {
    text-decoration: none;
    color: var(--navbar-bg);
    border: var(--li-hover-text) solid 0.2rem;
    padding: 2rem 3rem;
    background-color: var(--title-bg);
    transition: ease 0.2s;
}

header .contact a:hover {
    color: var(--title-bg);
    background-color: var(--li-hover-text);
}

header .contact a:visited {
    background-color: var(--li-hover-bg);
} */

header .imprint {
    display: flex;
    flex-direction: column;
    line-height: 1.2em;
    justify-content: center;
}

header .imprint p {
    display: flex;
    justify-content: center;
    padding: 1rem 1rem;
    border: var(--navbar-bg) solid 2px;
    color: var(--imprint-text);
    transition: 0.3s ease;
}

header .imprint p:hover {
    color: var(--imprint-hover-text);
}

footer {
    background-color: var(--title-bg);
    padding: 20px var(--left-right-padding);
    width: 100%;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
}

footer a {
    text-decoration: none;
    margin-right: 20px;
    color: var(--navbar-hover-text);
}

.cards {
    margin: 1rem var(--left-right-padding-article);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.cards .job-card {
    /* display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: center;
    align-items: center; */
    border-radius: var(--card-border-radius);
    padding: .5rem 10px;
    font-family: SpaceGrotesk, fallback, sans-serif;
    text-align: center;
    transition: 0.2s;
    background-color: var(--card-bg);
    color: var(--card-text);
}

.cards .job-card:hover {
    background-color: var(--card-hover-bg);
    color: var(--card-hover-text);
    transition: .2s;
}

.job-card a:visited,
.job-card a {
    text-decoration: none;
    color: var(--card-text);
    transition: .2s;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    
}

.job-card a:visited:hover,
.job-card a:hover {
    text-decoration: none;
    color: var(--card-hover-text);
    transition: .2s;
}

.job-card .logo-container {
    width: 240px;
    /* Set fixed width */
    height: 80px;
    /* Set fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.job-card .logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Scale while maintaining aspect ratio */
}
.job-card h2{
    margin:0;
}

.blog-card h2{
    margin: 0 1rem;
    margin-top: 2rem;
}
.blog-card p{
    margin: 1rem;
}
  

.jobs-list {
    /* max-width: 1250px; */
    margin: 0px auto;
    list-style-type: none;
    padding-inline-start: 0;
}

.jobs-list li a {
    padding: 0px var(--left-right-padding);
    /* border-top: 1px solid black; */
    /* border-bottom: medium none !important; */
    display: flex;
    position: relative;
    align-items: center;
    text-decoration: none;
    color: var(--li-hover-text)
}

.jobs-list li {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin: 1rem 0rem;
    border-bottom: 2px solid gray;
    font-family: SpaceGrotesk, fallback, sans-serif;
    transition: 0.3s ease;
}

.jobs-list li:hover {
    /* border-bottom: 2px solid gray; */
    padding-top: .5rem;
    padding-bottom: .5rem;
    margin: 1rem 0rem;
    /* border-top: 1px solid black; */
    /* border-bottom: medium none !important; */
    /* display: flex;
    position: relative; */
    font-weight: bold;
    /* letter-spacing: -0.17px; */
    /* transform: scale(1.03); */
    color: var(--li-hover-text);
    background-color: var(--li-hover-bg);
}

.programme-name {
    font-weight: bold;
    word-break: break-word;
    position: relative;
    width: 40%;
    padding-right: clamp(10px, 4vw, 2rem);
    text-decoration: none;
}

.programme-infos {
    position: relative;
    width: 60%;
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(3, 1fr) 0.5fr;
    grid-gap: 10px;
    /* font-weight: lighter; */
}

.programme-details {
    box-sizing: border-box;
    overflow: hidden;
}

/* 
.article-container {
    margin: 0px auto;
    list-style-type: none;
    padding-inline-start: 0;
}

.article {
    padding: 1rem var(--left-right-padding-article);
    margin: 1rem 0rem;
    border-bottom: 2px solid gray;
    font-family: SpaceGrotesk, fallback, sans-serif;
    transition: 0.3s ease;
    cursor: pointer;
}

.article p {
    position: relative;
    line-height: 1.3em;
    height: var(--article-p-fade-height);
    overflow: hidden;
    
}

.article p::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--article-p-fade-height);
    background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.article p.height-zero::after {
    height: 0;
} */

.blog-article {
    padding: 1rem var(--left-right-padding-article);

    /* I need to change this clamped padding inside the other clamped padding! that is causing errors */
    margin: 1rem 0rem;
    display: flex;
    flex-direction: row;
    font-family: SpaceGrotesk, fallback, sans-serif;
    box-sizing: border-box;
    /* color: var(--blog-text); */
}

.blog-article .text {
    overflow: hidden;
    box-sizing: border-box;
    color: var(--blog-text);
    background-color: var(--blog-bg);
    border-radius: var(--card-border-radius);
    padding: 1rem 2rem;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.blog-article #sidebar {
    width: 40%;
    display: flex;
    flex-direction: column;
    margin-right: 2rem;
    padding: 1rem 2rem;
    border-radius: var(--card-border-radius);
    background-color: var(--blog-sidebar-bg);
    color: var(--blog-sidebar-text)
}

.blog-article #sidebar a,
.blog-article #sidebar :visited {
    text-decoration: none;
    padding: .2em 0em;
    color: var(--blog-sidebar-text)
}

.blog-article #sidebar a:hover {
    color: var(--blog-sidebar-text-hover);
}

@media screen and (max-width:768px) {
    .programme-infos {
        width: 50%;
        grid-template-columns: repeat(1, 1fr);
    }

    .programme-name {
        width: 50%;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar a {
        padding: 0.5rem 3rem;
    }

    header h1 {
        width: 100%;
        font-size: 2em;
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    header h2 {
        width: 100%;
        font-size: 1.2em;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    .blog-article #sidebar {
        display: none;
    }

    .job-card .logo-container {
        margin: 1rem 1rem;
    }

    .newsletter-wrapper {
        flex-direction: column;
    }

    .newsletter-wrapper .newsletter-item {
        font-size: 1.2rem;
        padding: 1rem 1rem;
    }

    .newsletter-wrapper button {
        margin-top: 1rem;
        margin-left: 0;
    }
}