
/* Google Fonts - Poppins, Lora */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");

@layer theme, global, layout, modules, utilities;



@layer theme {
  :root {
  --background-color-1: #f0faff;
  --background-color-navi: #5963a8;
  --background-color-footer: #e6eaec;
  --color-navi-hover: #52c5ba;
  --color-navi-font: white;
  --color-footer-font: rgb(7, 7, 7);
  --color-card-container: white;
  --color-headertext: white;
  --background-color-headertext: rgb(0 0 0 / 0.5);
  --color-nav-button: white;

  --main-font: "Poppins", sans-serif;
  --font-heading: "Lora", serif;
}
}

@layer global {
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--main-font);
}
body {
 background: var(--background-color-1); 
}

h1 {
  margin-bottom: 1em;
}

p,h2,h3{
  margin: 0 0 10px 0;
  }
  
}

@layer layout {

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body main {
  max-width: 70em;
  margin: 0 auto;
  flex-grow: 1;
}

@media (min-width: 72em) {
  body main {
    width: 70em
  }
}

}


@layer modules {


.logos-funding-container {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.logo-funding-org {
  display: inline-block;
  margin-right: 1em;
  width: 200px;
}

.logo-edinburgh {
  width: 80px;
}


/* ein container */
.card-container {
  padding: 20px;
  background-color: var(--color-card-container);
  max-width: 250px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.prpfile-info {
  align-items: center;
}

.profile-img img {
  
  /* bottom: 110%;
  margin-top: 0px;
  margin-bottom: 5%; */
 width: 100%;
 /* max-width: 220px; */
height: auto;
  
}

/* der container */
.karten {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: row;
  
  gap: 50px;
}

.header-desktop {
  
  text-align: center;
}

/* header {
  background-image: url(images/background2v.jpg);
  
  background-position: center top;
  background-size: 100% auto;
} */

main {
  padding: 15px;
  position: relative;
}

.text_on_header {
 
  padding: 2px;
  max-width: 20em;
  background-color: var(--background-color-headertext);
  color: var(--color-headertext);
  position: absolute;
  top: -200px;
  /*left: 30%; /*
  /* transform: translate(-50%, -50%); */
}

.text_on_header h3 {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  font-size: 4em;
}

.header-smart {
  display: none;
}



.rand {
  width: 12px;
}

.nav {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 5vw;
  background: var(--background-color-navi);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.nav,
.nav .nav-links {
  display: flex;
  align-items: center;
}
.nav {
  justify-content: space-between;
}
a {
  
  text-decoration: none;
}
.nav .logo {
  font-size: 1.3rem;
  font-weight: 500;
}
/*neu eingefügt*/
.nav img {
  width: clamp(120px, 12vw, 200px);
  height: auto;
}
.nav .nav-links {
  column-gap: 20px;
  list-style: none;
}
.nav .nav-links a {
  transition: all 0.2s linear;
}
.nav.openSearch .nav-links a {
  opacity: 0;
  pointer-events: none;
}
.nav .search-icon {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.nav .search-box {
  position: absolute;
  right: 250px;
  height: 45px;
  max-width: 555px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s linear;
}
.nav.openSearch .search-box {
  opacity: 1;
  pointer-events: auto;
}
.search-box .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  left: 15px;
  color: #4a98f7;
  transform: translateY(-50%);
}
.search-box input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 6px;
  background-color: #fff;
  padding: 0 15px 0 45px;
}

.nav .navOpenBtn,
.nav .navCloseBtn {
  display: none;
}


/* responsive */
/*@media screen and (max-width: 1160px) {
  .nav {
    padding: 15px 100px;
  }
  .nav .search-box {
    right: 150px;
  }
}*/

@media screen and (max-width: 1200px) {
  .nav {
    padding: 10px 4vw; 
  }
  .nav-links li a {
    font-size: 0.95rem;
  }
  .nav-links {
    column-gap: 10px;
  }
  .nav .search-box {
    right: 150px;
  }
}

@media screen and (max-width: 950px) {
  .nav {
    padding: 15px 50px;
  }
  .nav .search-box {
    right: 100px;
    max-width: 400px;
  }
  .text_on_header h3 {
    font-size: 3em;
  }
  .nav-links li a {
    font-size: 1rem;
  }
}
@media screen and (max-width: 768px) {
.karten {
  flex-direction: column;
}

.nav img {
    width: clamp(120px, 12vw, 200px); 
  }

.logo-funding-org {
  width: 150px;
}

.logo-edinburgh {
  width: 60px;
}

  .header-smart {
    display: block;
  }

  header {
    display: none;}

  .nav .navOpenBtn,
  .nav .navCloseBtn {
    display: block;
  }
  .nav {
    padding: 15px 20px;
  }
  .nav .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    max-width: 280px;
    width: 100%;
    padding-top: 100px;
    row-gap: 30px;
    flex-direction: column;
    background-color: #11101d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 100;
  }
  .nav.openNav .nav-links {
    left: 0;
  }
  .nav .navOpenBtn {
    color: var(--color-nav-button);
    font-size: 1.4rem;
    cursor: pointer;
  }
  .nav .navCloseBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-nav-button);
    font-size: 1.4rem;
    cursor: pointer;
  }
  .nav .search-box {
    top: calc(100% + 10px);
    max-width: calc(100% - 20px);
    right: 50%;
    transform: translateX(50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .nav .nav-links li a {
    font-size: 1.2rem;
  }

  .footer-content {
    flex-direction: column;       /* Elemente untereinander anordnen */
    align-items: center;          /* Zentriert alles horizontal */
    text-align: center;           /* Text zentrieren */
  }

  .footer-content p {
    order: 2;                     /* Text kommt nach den Logos */
    margin-top: 10px;             /* Abstand nach oben */
    flex: unset;                  /* Flex nicht mehr für Text */
  }

  .footer-content a {
    order: 1;                     /* Logos zuerst */
    margin: 5px 0;                /* Abstand zwischen den Logos */
  }

  .footer-content a + a {
    margin-left: 10px;            /* Abstand zwischen den zwei Logos */
  }
}



.nav-links{
  display: flex;
  align-items: center;
 
 
}
.nav-links li{
  list-style: none;
  margin: 0 12px;
}
.nav-links li a{
  position: relative;
  color: #ffffff;
  font-size: clamp(0.7rem, 1vw + 0.3rem, 1rem);
  font-weight: 500;
  padding: 6px 0;
  text-decoration: none;
}
.nav-links li a:before{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-navi-hover);
  border-radius: 12px;
  transition: all 0.4s ease;
}
.nav-links li a:hover:before{
  width: 100%;
}
.nav-links li.center a:before{
  left: 50%;
  transform: translateX(-50%);
}
.nav-links li.upward a:before{
  width: 100%;
  bottom: -5px;
  opacity: 0;
}
.nav-links li.upward a:hover:before{
  bottom: 0px;
  opacity: 1;
}
.nav-links li.forward a:before{
  width: 100%;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.nav-links li.forward a:hover:before{
  transform: scaleX(1);
  transform-origin: left;
}



footer a {color: var(--color-footer-font);
  font-size: x-small;
} 

footer {
/* grid-area: footer; */

bottom: 0;
padding-top: 1em;
padding-bottom: 1em;
padding-left: 1em;
background-color: var(--background-color-footer);
}

.container {
   
   
  display: flex;
  justify-content: space; 
  flex-direction: column;
}

footer {
  margin-top: auto;
}

.logo {
  color: white;
}

.footer-content {
  display: flex;              /* macht den Container zu einer flexiblen Zeile */
  align-items: center;        /* zentriert Text und Bilder vertikal */
  justify-content: space-between; /* verteilt die Elemente gleichmäßig */
  gap: 20px;                  /*Abstand zwischen Text und Logos */
}

.footer-content p {
  margin: 0;                  /* entfernt Standardabstände, damit alles sauber ist */
  flex: 1;                     /* Text nimmt den verfügbaren Platz ein */
}

main ul li {
  margin-left: 2em;
}


#underconstruction-pic
{
  width: 400px;
}


}

/* utilities */
@layer utilities {
  .responsive {
    width: 100%;
    height: auto;
  }
}