@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ---------------- */
/* Custom propeties */
/* ---------------- */

:root {
	/* colors */
    --clr-dark-blue:  #110D30;
	--clr-dark:   41 19 98;
	--clr-light: #411996;
	--clr-white: #ffffff;

	/* font sizes */
    --fs-600: 2rem;
    --fs-500: 1.65rem;
    --fs-400: 1.1rem;
    --fs-300: 1.0rem;
    --fs-200: 0.7rem;
	/* font-families */
	--ff-serif: "Roboto Slab", serif;
    --ff-sans: "Roboto", sans-serif;
}

@media (min-width: 25em) {
	:root {
	/* font sizes */
    --fs-600: 2.25rem;
    --fs-500: 1.85rem;
    --fs-400: 1.3rem;
    --fs-300: 1.1rem;
    --fs-200: 0.85rem;
	}
}

@media (min-width: 45em) {
	:root {
	/* font sizes */
    --fs-600: 3rem;
    --fs-500: 1.85rem;
    --fs-400: 1.4rem;
    --fs-200: 1rem;
	}
}

/* ---------------- */
/*      Reset       */
/* ---------------- */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul
{
  list-style: none;
}

/* Set core body defaults */
body {
	font-family: var(--ff-sans);
	font-size: var( --fs-400);
	background-color: var(--clr-white);
	color: var(--clr-dark-blue);
    min-height: 100vh;
    line-height: 1.5;
	display: grid;
	grid-template-rows: min-content 1fr;
	overflow-x: hidden;
	padding: 0;
	justify-items: center;
}

* {
	margin: 0;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

h1, h2, h3,
h4, h5, h6
p{
	font-weight: 400;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

.sr-only {
  position: absolute; 
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px; 
  overflow: hidden;
  clip-path: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}


/* ---------------- */
/* Utility classes  */
/* ---------------- */

.flex {
	display: flex;
	gap: var(--gap, 1rem);
}

.grid {
	display: grid;
	gap: var(--gap, 1rem);
}

.d-block {
	display: block;
}

.flow > * + * { /* select all elements except the first child */
	margin-top: var(--flow-space, 1rem);
}

.container {
	padding-inline: 2em;
	margin-inline: auto;
	max-width: 100vw;
}

.grid-container {
	display: grid;
	place-items: center;
/*	padding-inline: 1rem;*/
}

.grid-container * {
	max-width: 50ch;
}

@media (min-width: 45rem) {
	.grid-container {
		text-align: left;
	    column-gap: var(--container-gap, 2rem);
		border: 1px solid red;
	    /*grid-template-column: minmax(2rem, 1fr) minmax(0, 40rem)
		minmax(0, 40rem) minmax(2rem, 1fr);*/
	}
/*
    .grid-container > *:first-child {
	    grid-column: 2;
    }

    .grid-container > *:last-child {
	    grid-column: 3;
    }

	.grid-container--home {
		padding-bottom: max(6rem, 20vh);
		align-items: end;
	}
	*/
}

/* colors */
.bg-dark { background-color: rgb(var(--clr-dark));}
.bg-light { background-color: var(--clr-light);}
.bg-white { background-color: var(--clr-white);}

.text-dark { color: var(--clr-dark-blue);}
.text-light { color: var(--clr-light);}
.text-white { color: var(--clr-white);}

/* typography */

.ff-serif { font-family: var(--ff-serif); } 
.ff-sans { font-family: var(--ff-sans); } 

.uppercase { text-transform: uppercase; }

.fs-600 { font-size: var(--fs-600); }
.fs-500 { font-size: var(--fs-500); }
.fs-400 { font-size: var(--fs-400); }
.fs-300 { font-size: var(--fs-300); }
.fs-200 { font-size: var(--fs-200); }

.letter-spacing-1 { letter-spacing: 2.75px; } 
.letter-spacing-2 { letter-spacing: 2.35px; }

.fs-600 {
    line-height: 1.25;
}

.f-bold {
	font-weight: 500;
}

.emph {
	font-style: italic;
}

/* ------------- */
/* Components    */
/* ------------- */

/* navigation */

.primary-header {
	position: sticky;
	z-index: 500;
    top: 0;
	width: 100vw;
}

.primary-navigation {
	--gap: clamp(2rem, 10vw, 5rem);
	--underline-gap: 2rem;
	list-style: none;
	padding: 0;
	margin: 0;
	z-index: 1000;
	background-color: rgba(var(--clr-dark));
	flex-grow: 1;
	flex-direction: row;
	font-weight: 500;
}

.mobile-nav-toggle {
	display: none;
}

.primary-navigation a {
	text-decoration: none;
}

.primary-navigation a > span {
    font-weight: 600;
    margin-right: .5em;
}

.right-indicators > [aria-selected="true"],
.right-indicators > *.active {
	border-color: var(--clr-white);
}

.right-indicators > *:hover,
.right-indicators > *:focus {
	opacity: 25%;
}

.right-indicators > *:hover.non-clickable,
.right-indicators > *:focus.non-clickable {
	opacity: 100%;
}

.dropdown {
    display: none;
	list-style: none;
    position: absolute;
    z-index: 1001;
	background-color: rgb(var(--clr-dark));
}

li:hover ul.dropdown {
  display: block;
  overflow: auto;
  padding-top: .5rem;
}

li:hover .dropdown > * {
	margin: 1rem;
	padding: .2rem 0;
}

/* logos */

/*
.header-logos {
	align-items: center;
	-moz-column-gap: 0.75rem;
	column-gap: 0.75rem;
	display: flex;
	padding-block: 1.25rem 1.25rem;
}

.logo {
	margin:  2rem clamp(1.5rem, 5vw, 3.45rem);
	max-width: 12rem;
}
*/

@media (max-width: 80rem) {
	.primary-header {
		width: 100%;
		padding: 2.5rem;
	}

    .primary-navigation {
	    --underline-gap: 2rem;
	    position: fixed;
	    z-index: 1000;
	    inset: 0;
	    list-style: none;
	    padding: min(10rem, 5vh) 2rem;
		margin-top: 4rem;
	    flex-direction: column;
		transform: translateX(100%);
	    transition: transform 300ms ease-in-out;
		height: 100%;
	}

	.primary-navigation > * {
		padding-top: 0;
		margin-top: -1rem;
	}

	.primary-navigation[data-visible="true"] {
		transform: translateX(0);
	}

	.mobile-nav-toggle {
		display: block;
		position: absolute;
		z-index: 2000;
		right: 1rem;
		top: 2rem;
		background: transparent;
		background-image: url(./assets/menu-hamburger.svg);
		background-repeat: no-repeat;
		width: 1.5rem;
		aspect-ratio: 1;
		border: 0;
		color: var(--clr-white);
	}

	.mobile-nav-toggle[aria-expanded="true"] {
		background-image: url(./assets/icon-close.svg);
	}

    .right-indicators > *:hover,
    .right-indicators > *:focus {
		border-right: .2rem solid var(--clr-white);
    }

	.right-indicators > *:hover.non-clickable,
	.right-indicators > *:focus.non-clickable {
	    border: none;
    }
    .primary-navigation.right-indicators > *.active {
		cursor: pointer;
		padding: 0;
		border: 0;
		border-right: .2rem solid var(--clr-white);
    }
}

@media (min-width: 45em) {
	.primary-navigation {
		padding-inline: clamp(2rem, 7vh, 6rem);
		margin: 2rem 0;
	}

	.primary-header::before {
         content: '';
         display: block;
         position: relative;
         height: 1px;
         max-width: 50%;
		 margin: 0 2rem;
		 z-index: 2;
		 order: 1;
     }

	 nav{
		 order: 2;
	 }

}

/* main components */

/* header image */
.header-image {
		padding-top: 2rem;
		background: none;
		background-color: rgb(var(--clr-dark));
	    width: 100%;
		height: 19rem;
}

.header-image h1 {
	max-width: 30rem;
}

.mobile-delimiter {
		width: 100%;
		height: 1px;
		color: var(--clr-light);
}

@media (min-width: 45rem) {
    .header-image{
	    background: url('images/Graphen.jpg') center/cover;
	    margin-inline: 0;
	    padding-top: 4rem;
	    padding-left: 6rem;
	    border-image: fill 0
	/* linear-gradient(to left, #3c2971 0%, #311e63 70%), */
	/* height: 390px; width: 100%; */
		    linear-gradient(292deg, rgba(41, 19, 98, 0.5) 28%, rgba(41, 19, 98,0.9) 70%);
	    height: 23rem; /* TWEAK !!!!! */
	    width: 100%;
    }

    .header-image h1 {
	    max-width: 35rem;
    }

    .mobile-delimiter {
	    display: none;
    }
}

@media (min-width: 80rem) {
	.header-image {
		padding-left: 10rem;
	}
}

/* main content area */

.flex-main {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
/*	justify-items: center;*/
}

.subheading {
	padding-top: 1rem;
	margin-left: 3rem;
}

.main-content {
	padding: 2rem 0;
	width: 100vw;
}

.content {
	margin: 1rem 0;
}

@media (min-width: 45rem) {
	.main-content {
		padding: 2rem 4rem;
	}
}

@media (min-width: 80rem) {
	.main-content {
		padding: 2rem 8rem;
	}
}

/* news cards */
.news-grid {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 2rem;
}


@media (min-width: 40rem) {
	.news-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 60rem) {
	.news-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (min-width: 80rem) {
	.news-grid {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}

.flex-container{
	padding-inline: 1.5rem 1.5rem;
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
	background-color: white;
	
	text-align: left;
	align-items: flex-start;
	z-index: -1;
	min-height: 100%;
}

.card {
	position: relative;
	min-width: 0;
	flex-direction: column;
	margin-bottom: 2em;	
	align-self: stretch;
	border-style: none;
	z-index: 0;
}

.card:hover {
  background-color: #e8e2f7;
}

.card .teaser__item-content {
	display: flex;
	flex-flow: column nowrap;
    padding: 1.5rem;
	min-block-size: 17rem;
}


.header_news{
	display: flex;
	flex: 1;
	font-size: 1.25rem;
    line-height: 1.3;
}

.header_news a{
	color: black;
	text-decoration: none;
}

.summary{
	display: flex;
    align-items: flex-start;

    font-size: .875rem;
	flex-grow: 1;
    line-height: 1.5;
}

.img_news img{

	min-width: 30%;
	/* padding-inline: .75rem .75rem; */
 	flex-shrink: 1;
	position: relative;
	aspect-ratio: 332 / 197;
    -o-object-fit: cover;
    object-fit: cover;
    inline-size: 100%;
	z-index: 0;
}
.date{
    /* padding-inline-start: .75rem; */
    /* padding-inline-end: .75rem; */
	/* width: 33.3333333333%; */
	font-size: smaller;
	color: #999;
	text-align: left;
	position: relative;
    overflow: hidden;
	/* margin-block-start: 1.5rem; */
	/* padding: 1.5rem; */
}

/* delimiter line */
.delimiter-line {
	color: var(--clr-light);
	height: 1px;
	margin: 2rem 0;
}

/* unfolding content */

.in2template-accordion {
    background-color: #f6f2ff;
    border-left: 0.0625rem #072140;
    color: #072140;
    max-width: 80vw;
	margin-block-start: 0.5rem;
}

.in2template-accordion button {
    border-style: none;
}
 
.in2template-accordion__title {
    inset-block-start: -0.25rem;
    margin-inline-end: 1.5rem;
    pointer-events: none;
}

.in2template-accordion__trigger {
	display: flex;
    align-items: baseline;
    color: inherit !important;
    cursor: pointer;
    display: flex;
    font: inherit;
    inline-size: 100%;
    justify-content: space-between;
    margin: 0;
    padding-block: 0.75rem 0.75rem;
    padding-inline: 1.5rem 1.5rem;
    text-align: start;
	background-color: #00000001;
}

a, button {
    touch-action: manipulation;
    color: #22114d;

}

.in2template-accordion__panel {
    padding-block: 0.75rem 1.5rem;
    padding-inline: 1.5rem 1.5rem;
	text-align: justify;
	display: none;
	overflow: hidden;
}	
.in2template-accordion__panel > p {
	line-height: 1.5em;
	margin-bottom: .5em;
}

.in2template-accordion h3 {
    font-size: 1.25rem;
    line-height: 1.625;
    font-weight: 500;
}

.flex--middle {
    align-items: center;
}
.flex--space-between {
    justify-content: space-between;
}

/* mail icon */
.c-contact__data--mail::before {
    content: url(images/mail.svg);
}
.c-contact__data--mail::before {
    background-color: none;
    block-size: 1.25rem;

    display: inline-block;
    inline-size: 1.25rem;
    margin-inline-end: 0.375rem;
    vertical-align: text-bottom;

    mask-mode: auto;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}
/* footer */
.page_footer{
	display: flex;
	background-color: rgb(var(--clr-dark));
	position: relative;
	clear:both;
	padding: 3rem 0 2rem 11rem;
	margin-top: auto;
	flex-shrink: 0; 
	margin-block-start: 3rem;
	width: 100vw;
	flex-grow: 0;
    padding-block: 3.5rem 2.5rem;
}

@media (max-width: 45rem) {
	.page_footer {
		padding-left: 3rem;
	}
}

.page_footer ul {
	line-height: 2.5em;
}

.page_footer a {
	float: left;
	display: block;
	color: #f2f2f2;
	text-decoration: none;
}

.page_footer a img {
	display: inline-block;
}

.footer-links {
padding-left: 0;
list-style: none;
}
.footer-links li {
    display: flex;
}

.footer-links a {
    color: #999;
}

.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
color: #fff;
text-decoration: none;
}

.link {
	height: 1em;
	padding-left: .2em;
}
