/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
h2{
    text-align: center;
    font-size: 24px;
}
main, .content, p, h1, h3 {
    margin-right: 20px;
    margin-left: 0px;
}
.content-area img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Banner-Stil */
.banner {
    background-color: #002147;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.banner-logo {
    height: 100px; /* Passt die Höhe der Bilder an */
    width: auto;
}

/* Navigation-Stil */
nav.main-nav {
    background-color: #003366;
    padding: 10px 0;
    text-align: center;
}

nav.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav.main-nav ul li {
    margin: 0 15px;
    position: relative;
}

nav.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    position: relative;
    display: inline-block;
}

/* Hover-Effekt mit wachsender Linie von der Mitte */
nav.main-nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

nav.main-nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* Aktiver Link */
nav.main-nav ul li.active a::after {
    width: 100%;
    left: 0;
}
/* Sidebar-Stil */
/* Create a flex container for main layout */
/* Main layout container */
.main-container {
    display: flex;
    min-height: calc(100vh - 140px); /* Adjust based on header/nav height */
    max-width: 1600px;
    margin: 0 auto;
}

/* Content area (left side) */
.content-area {
    flex: 1;
    padding: 20px;
    padding-right: 0; /* Remove right padding since sidebar has its own */
}

/* Update sidebar to remove float and work with flexbox */
.sidebar {
    width: 300px;
    padding: 20px;
    background-color: #f4f4f4;
    float: right; 
    min-height: 100%;
    flex-shrink: 0; /* Prevent sidebar from shrinking */
}

/* Keep all your existing sidebar styles */
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    background-color: #003366;
    color: white;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    list-style: none;
    margin: 0 15px 15px 15px;
    position: relative;
}

.sidebar-list li a {
    display: block;
    background-color: white;
    text-decoration: none;
    padding: 10px 10px 10px 14px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.sidebar-list li a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 0;
    width: 3px;
    background-color: #003366;
    transition: height 0.3s ease, top 0.3s ease;
}

.sidebar-list li a:hover::before {
    height: 100%;
    top: 0;
}

.sidebar-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: -1; /* Put sidebar above content on mobile */
    }
    
    .content-area {
        padding-right: 20px;
    }
}
.header-container {
    max-width: 1600px;
    margin: 15 10 auto;
}
.main-header {
    background-color: #14316b;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    margin-inline-end: 0px
}
.content-box {
    background-color: white;
    border: 2px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
}
.profiles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.profile {
    position: relative;
            width: calc(33.33% - 14px);
            max-width: 300px;
            min-width: 250px;
            flex-grow: 0;
            background-color: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12);
            margin-bottom: 15px;
}

.profile-image-container {
    position: relative;
}
.profile-image {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.profile-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}
.profile-info {
    padding: 12px;
}
.profile-info p {
    margin: 0;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
}
.profile-info p:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    width: 70px; /* Feste Breite für alle Labels */
    flex-shrink: 0;
}

.info-value {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .profile {
        width: 100%;
    }
}

ul.custom-bullets {
    list-style: none;
    padding-left: 0;
}

ul.custom-bullets li {
    background: blue no-repeat left center;
    background-size: 16px 16px; /* Adjust size as needed */
    padding-left: 25px; /* Space for the image + some margin */
    margin-bottom: 5px; /* Control spacing between items */
}
 .no-link-style {
        color: inhherit;
        text-decoration: none;
    }

    .carousel {
  position: relative;
  width: 640px;
  height: 360px;
  margin: 50px auto;
}

video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50%;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 20px;       /* space below the video */
  text-align: center;     /* center the text horizontally */
}
.right-align {
  float: right;
  max-width: 40%;
  margin-left: 20px; /* Optional: adds space between image and text */
  margin-bottom: 20px; /* Optional: adds space below image */
}

nav.custom-nav {
    background: white;
    padding: 15px;
    display: flex;
    justify-content: flex-start;
}
nav.custom-nav a {
    color: black;
    text-decoration: underline;
}

nav.custom-nav a:hover {
    color: blue;
}

nav.custom-nav a:visited {
    color: blue;
}

#backToTop {
  display: none;             /* Hidden by default */
  position: fixed;           /* Stays in place */
  bottom: 20px;              /* Distance from bottom */
  right: 20px;               /* Distance from right */
  z-index: 100;              /* On top of other content */
  border: none;
  outline: none;
  background-color: #003366; /* Dark blue */
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

#backToTop:hover {
  background-color: #0055aa; /* Lighter blue on hover */
}
 th, td {
  padding: 10px;
}
table{
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
}
.back-link {
  display: block;              /* makes it behave like a button */
  margin-bottom: 12px;         /* space below it */
  background-color: #003366;   /* dark blue background */
  color: white;                /* white text */
  text-align: center;          /* center the text */
  padding: 8px 10px;           /* internal spacing */
  text-decoration: none;       /* remove underline */
  font-size: 14px;
  transition: background-color 0.3s; /* smooth hover effect */
}


.back-link:hover {
  background-color: #0055aa;   /* lighter blue when hovered */
}
.funding-logos{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.funding-logos img{
    height: 54px;
    width: auto;
}
/* Desktop: hide the menu button */
.nav-toggle {
  display: none;
}
/* ---------- Mobile improvements ---------- */
@media (max-width: 768px) {

    .right-align {
        float: none;
        max-width: 100%;
        margin: 0 auto 16px auto;
    }

  /* Banner smaller on phone */
  .banner {
    padding: 10px;
    gap: 12px;
  }
  .banner h1 {
    font-size: 28px;
    margin: 0;
  }
  .banner-logo {
    height: 44px;  /* instead of 100px on phones */
  }

  /* Show menu button on phone */
  .nav-toggle {
    display: block;
    width: 100%;
    background-color: #003366;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 18px;
    text-align: left;
    cursor: pointer;
  }

  /* Collapse nav list by default */
  nav.main-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  /* Open state */
  nav.main-nav ul.is-open {
    display: flex;
  }

  /* Make links easier to tap */
  nav.main-nav ul li {
    margin: 6px 0;
  }
  nav.main-nav ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 18px;
  }

  /* Put NEWS BELOW content on phone (right now you have order:-1) */
  .sidebar {
    order: 2;     /* content first, sidebar second */
  }
  .content-area {
    order: 1;
  }

  /* Carousel: responsive instead of fixed 640x360 */
  .carousel {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    aspect-ratio: 16 / 9;
  }

  .carousel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Smaller arrows on phone */
  .arrow {
    font-size: 1.6rem;
    padding: 0.4rem 0.75rem;
  }
  .funding-logos img{
    height: 42px;
  }
  .sidebar {
    font-size: 14px;
  }
  .sidebar-title {
    font-size: 16px;
    padding: 8px;
  }
  .sidebar-list li a {
    padding: 8px 10px;
  }
}

