
/* ======================= GLOBAL VARIABLES ======================================================== */
* {
    overflow-anchor: none !important;
}
* {
  box-sizing: border-box;
}
:root {
    --lipid_dark_blue: #232633;
    --lipid_dark_green: #007a6d;
    --lipid_light_green: #55C681;
    --lipid_orange: #ff9500;
    --lipid_yellow: #fbd800;
    --lipid_white: #FFFBFA;
    --lipid_grey: #1e1e1e;
    --lipid_light_grey: #979797;

    --font-family-primary: 'Inter', sans-serif;
    --fs-body: 1.1rem;
    --fs-h1: 3rem;
    --fs-h2: 1.25rem;
    --fs-h3: 1.875rem;
    --fs-h4: 1.4375rem;
    --fs-h5: 0.875rem;
    --fs-overlay: 2rem;
    --fs-dropdown-title: 0.9rem;

    --navbar-height: 3.5rem;

    /* Abschnittsüberschriften (Latest Publications, Meet our group members, …) */
    --title-size: 1.25rem;             /* Größe am Desktop */
    --title-size-mobile: 1rem;      /* Größe auf dem Handy */
    --title-weight: 250;              /* Dicke: 400 normal, 600 halbfett, 700 fett */
    --title-font: var(--font-family-primary);   /* Schriftart */
    --title-color: var(--lipid_light_grey);   /* Farbe */

  }


/* ======================= FONTS ======================================================== */

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter_regular.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter_italic.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: italic;
}
/* ======================= SECTION TOP NAVBAR ======================================================== */
/* ======================= BASE STYLES ======================================================== */

/* ======================= STICKY FOOTER FIX ======================================================== */
/* Ersetzt die bisherige body-Regel: */

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--navbar-height);
  font-family: var(--font-family-primary);
  font-size: var(--fs-body);
  background-color: var(--lipid_white);
  color: var(--lipid_dark_blue);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* verhindert horizontales Scrollen */
}

.page_content {
  flex: 1 0 auto; /* wächst, um den verfügbaren Platz zu füllen */
}

.footer {
  flex-shrink: 0; /* bleibt am Ende, egal wie kurz der Inhalt ist */
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }

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

/* ======================= NAVBAR STYLING ======================================================== */

.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--navbar-height);
  background-color: var(--lipid_grey);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 2000;
}

.nav-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-logo-img {
  height: 2.2rem;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lipid_white);
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lipid_orange);
  transition: color 0.3s ease;
}

/* --- Mobile Toggle Button --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

/* --- Menü-Icon mit Animation (Lipide -> X) --- */
.mobile-toggle {
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-svg {
  width: 36px;                    /* Größe des Icons */
  height: auto;
  display: block;
  overflow: visible;
}

/* Wellenlinien: ziehen sich zurück */
.menu-svg .wave {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s ease 0.15s, opacity 0.1s linear 0.15s;
}

/* Gelbe Punkte: schrumpfen auf ihre Mitte */
.menu-svg .dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease 0.2s;
}

/* X: Striche werden eingezeichnet */
.menu-svg .cross {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.35s ease, opacity 0.05s linear 0.3s;
}

/* Zustand "Menü offen" */
.mobile-toggle.is-open .wave {
  stroke-dashoffset: -1;
  opacity: 0;
  transition: stroke-dashoffset 0.3s ease, opacity 0.025s linear 0.25s;
}

.mobile-toggle.is-open .dot {
  transform: scale(0);
  transition: transform 0.3s ease;
}

.mobile-toggle.is-open .cross {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset 0.3s ease 0.15s, opacity 0.05s linear 0.15s;
}

/* Wer Animationen im System abgeschaltet hat, bekommt einen direkten Wechsel */
@media (prefers-reduced-motion: reduce) {
  .menu-svg .wave,
  .menu-svg .dot,
  .menu-svg .cross {
    transition: none !important;
  }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  background-color: var(--lipid_grey);
  z-index: 1999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active {
  transform: translateY(0);
}

.mobile-menu-content {
  padding: 1rem 0;
}

.mobile-menu-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-category-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: var(--fs-h4);
  color: var(--lipid_white);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.mobile-category-link:hover {
  color: var(--lipid_orange);
}

.home-spacer {
  width: 1rem;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .mobile-menu-overlay {
    display: none;
  }
}


/* ======================= SECTION FOOTER ======================================================== */

/* ======================= SECTION FOOTER ======================================================== */

.footer {
    background-color: var(--lipid_grey);
    color: var(--lipid_white);
    padding: 2rem 0;
    font-size: var(--fs-body);
    position: center;
}


/* --- Gesamt-Reihe --- */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Feste Karte (Jahnke Lab, dunkel) --- */
.logo-item-fixed {
  background-color: var(--lipid_grey);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 320px;
  min-width: 140px;
  max-width: 320px;
  aspect-ratio: 2.05 / 1;
  padding: 1.5rem;
}

.logo-item-fixed img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Slider-Bereich --- */
.logo-slider {
  flex: 1 1 400px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.logo-viewport {
  width: 100%;
  overflow: hidden;
}

.logo-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s ease;
  will-change: transform;
  
}

/* Standard (große Bildschirme): 3 Karten gleichzeitig sichtbar, Rest rotiert per Slider */
.logo-item {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  min-width: 0;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2.05 / 1;
  padding: 0.5rem;
  max-width: 320px;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Kontaktinfo --- */
.contact-info-container {
  flex: 1 1 260px;
  min-width: 160px;
  display: flex;
  align-items: center;
}

.contact-info {
  color: var(--lipid_white);
  font-size: 0.8rem;
  line-height: 1.3;
}

.contact-info h4 {
  color: var(--lipid_white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-info p {
  margin-bottom: 0.3rem;
}

.contact-info a {
  color: var(--lipid_white);
  text-decoration: none;
  font-weight: 700;
}

.contact-info a:hover {
  color: var(--lipid_orange);
}

/* Mail-Icon im Footer: ohne feste Größe würde das SVG die ganze Spalte füllen */
.footer-mail {
  display: inline-flex;
  margin-top: 0.4rem;
}

.footer-mail svg {
  width: 1.5rem;                    /* Größe des Briefumschlags */
  height: 1.5rem;
}

/* --- Mittelgroße Bildschirme: nur 2 Karten gleichzeitig sichtbar --- */
@media (max-width: 1200px) and (min-width: 577px) {
  .logo-item {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    max-width: 320px;
    
  }
}

/* --- Handy: gestapelt, kein Slide-Effekt mehr --- */
@media (max-width: 609px) {
  .footer-row {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logo-item-fixed {
    flex: 0 0 auto;
    width: 80%;
    max-width: 280px;
    min-width: 0;
  }

  .logo-slider {
    width: 100%;
    flex: 0 0 auto;
    overflow: visible;
  }

  .logo-viewport {
    overflow: visible;
  }

  .logo-track {
    flex-wrap: wrap;
    justify-content: center;
    transform: none !important; /* Slider-Animation auf Handy deaktivieren */
  }

  .logo-item {
    flex: 0 0 calc((100% - 1rem) / 2); /* 2 pro Reihe, alle sichtbar, kein Sliden */
    max-width: 280px;
  }

  .contact-info-container {
    flex: 0 1 320;
    justify-content: center;
    text-align: center;
  }
}

/* ======================= SECTION PUBLICATIONS ======================================================== */

/* --- Hero-Bereich --- */
/* Das Bild wird pro Seite über die Variable --hero-image gesetzt,
   z.B. <div class="pub-hero" style="--hero-image: url('...')">.
   Ohne Angabe wird das Standardbild verwendet. */
.pub-hero {
  position: relative;
  width: 100vw;
  min-height: 35rem;
  background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)),
                     var(--hero-image, url('/static/images/image_hero_gabri_cropped.png'));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  box-sizing: border-box;
}

.pub-hero h1 {
  color: var(--lipid_white);
  font-size: 5.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem 3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: relative;
  z-index: 5;
}

/* --- Header-Zeile: Überschrift + Buttons --- */
.pub-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1400px;
  margin: 3rem auto 3rem auto;
  padding: 0 1.5rem 0 2rem;
}

.pub-header-row h2 {
  margin: 0;
  font-size: 1.25rem;
  padding-left: 1rem;
  color: var(--lipid_grey);
}

.pub-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-right: 2.5rem;
}

.pub-btn {
  background-color: var(--lipid_light_green);
  color: var(--lipid_dark_blue);
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pub-btn:hover {
  background-color: var(--lipid_dark_green);
  color: var(--lipid_white);
  transform: translateY(-2px);
}

/* --- Trennlinie --- */
.pub-divider {
  max-width: 1400px;
  margin: 0 auto 2rem auto;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.15);
}

/* --- Publikationsliste --- */
.pub-list {
  max-width: 1400px;
  margin: 0;
  padding: 0 2.5rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.pub-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.pub-entry-text {
  flex: 1 1 400px;
}

.pub-authors {
  margin: 0 0 0.5rem 0;
  font-weight: 300;
}

.pub-title {
    font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.pub-journal {
  margin: 0 0 0.5rem 0;
}

.pub-doi a {
  color: var(--lipid_dark_green);
  word-break: break-all;
}

.pub-doi a:hover {
  color: var(--lipid_orange);
}

/* --- Vorschaubild / Platzhalter --- */
.pub-entry-image {
  flex: 0 0 420px;
  max-width: 420px;
  padding: 0 0 0 0rem;
}

.pub-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pub-entry-placeholder {
  height: 320px;
  background-color: #d9d9d9;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;

}


/* --- Responsive --- */
@media (max-width: 992px) {
  .pub-hero {
    min-height: 18rem;
  }
 
  .pub-hero h1 {
    font-size: 4rem;
    margin: 0 0 1rem 2rem;
  }
}
 
@media (max-width: 768px) {
  .pub-hero {
    min-height: 14rem;
  }
 
  .pub-hero h1 {
    font-size: 2.2rem;
    margin: 0 0 0.25rem 1rem;
  }
 
  .pub-header-row {
  padding: 0 1rem 0 1rem;
    }

    .pub-header-row h2 {
    font-size: 1.3rem;
    }

    .pub-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    }
 
  .pub-entry {
    flex-direction: column;
  }
 
  .pub-entry-image {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .pub-entry-text {
    flex: 0 0 auto;
  }

  .pub-list {
    padding: 0 1.5rem 3rem 1.5rem;
  }
}
 
@media (max-width: 480px) {
  .pub-hero {
    min-height: 10rem;
  }
 
  .pub-hero h1 {
    font-size: 1.6rem;
    margin: 0 0 0.25rem 0.5rem;
  }

  .pub-entry-text {
    padding-bottom : 0;
  }
  .pub-entry-image {
    max-width: 200px;
    margin: 0 auto;
  }

  .pub-buttons {
    padding-right: 0;
  }
}

.pub-author-highlight {
  font-weight: 700;
  color: var(--lipid_orange);
}

.pub-abstract {
    font-style: italic;
}

/* ======================= SECTION TEAM ======================================================== */

.team-section {
  max-width: 1400px;
  padding: 0 2.5rem 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 2.5rem;
}

/* --- Karte --- */
.team-card {
  display: flex;
  align-items: stretch;          /* Bild wird so hoch wie die Karte */
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  overflow: hidden;              /* Bild folgt den runden Ecken der Karte */
}

/* --- Foto / Platzhalter --- */

.team-card-lead .team-photo {
  flex-basis: 12.5rem;           /* Breite des Bildes bei Kevin */
}

.team-photo {
  flex: 0 0 9rem;                /* Breite des Bildes */
  background-size: cover;        /* Foto füllt die Fläche, wird zugeschnitten */
  background-position: center top;
  background-repeat: no-repeat;
}


.team-photo-placeholder {
  background-color: #d9d9d9;
}

/* --- Text --- */
.team-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  padding: 1.25rem 2rem 1.5rem 1.5rem;   /* Abstand Text zum Kartenrand */
}

.team-text p {
  margin: 0;
}

.team-name {
  color: var(--lipid_orange);
  font-size: 1.15rem;
  font-weight: 600;
}

.team-role {
  color: var(--lipid_grey);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem !important;
}

.team-tagline {
  color: var(--lipid_dark_green);
  font-weight: 600;
  max-width: 34rem;
  margin-bottom: 1.25rem !important;
}

.team-bio {
  margin-bottom: 1.25rem !important;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .team-section {
    padding: 0 1rem 3rem 1rem;
  }

    .team-card {
    flex-direction: column;
  }

  .team-photo,
  .team-card-lead .team-photo {
    flex-basis: auto;
    width: 100%;
    min-height: 15rem;
    background-position: center;  /* Kopf bleibt beim Zuschneiden sichtbar */
  }
}
 
/* Große Bildschirme: Foto fest im Format 2:3 */
@media (min-width: 1400px) {
  .team-photo {
    flex-basis: 13rem;
    min-height: calc(13rem * 5 / 4);     /* 4:5 */
  }

  .team-card-lead .team-photo {
    flex-basis: 15rem;
    min-height: calc(15rem * 5 / 4);     /* 4:5 */
  }
}


/* --- Kontakt-Icons (LinkedIn / E-Mail) --- */
.team-header {
  display: flex;
  justify-content: space-between;   /* Name links, Icons rechts */
  align-items: flex-start;
  gap: 1rem;
}

.team-links {
  display: flex;
  gap: 0.6rem;                      /* Abstand zwischen den Icons */
  flex-shrink: 0;
}

.team-link {
  width: 2.25rem;                   /* Größe der grauen Kästchen */
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lipid_white);
  border-radius: 0.4rem;
  color: var(--lipid_dark_green);
  font-weight: 700;
  font-size: 1.15rem;               /* Größe des "in" */
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.team-link svg {
  width: 1.2rem;                    /* Größe des Briefumschlags */
  height: 1.2rem;
}

.team-link:hover {
  background-color: var(--lipid_dark_green);
  color: var(--lipid_white);
}

/* Icons als Bild (z.B. Google Scholar): dunkle Version normal, helle beim Hovern */
.team-link img {
  width: 1.3rem;                    /* Größe des Scholar-Icons */
  height: 1.3rem;
  display: block;
}

.team-link .icon-hover {
  display: none;
}

.team-link:hover .icon-default {
  display: none;
}

.team-link:hover .icon-hover {
  display: block;
}

/* ======================= SECTION ALUMNI ======================================================== */

/* Trennlinie zwischen Team und Alumni */
.alumni-divider {
  max-width: 1400px;
  margin: 0 2.5rem 2.5rem 2.5rem;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.5);
  opacity: 1;
}

.alumni-section {
  max-width: 1400px;
  padding: 0 2.5rem 4rem 2.5rem;
}

.alumni-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* 3 Karten nebeneinander */
  gap: 1.25rem;
}

/* --- Karte --- */
.alumni-card {
  display: flex;
  align-items: stretch;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  
}

.alumni-photo {
  flex: 0 0 8.5rem;                     /* Breite des Bildes */
  min-height: 8rem;                     /* Mindesthöhe der Karte */
  border-radius: 0.75rem 0 0 0.75rem;   /* runde Ecken links */
  background-size: cover;               /* Foto füllt die Fläche, wird zugeschnitten */
  background-position: center top;      /* Kopf bleibt beim Zuschneiden sichtbar */
}


.alumni-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.25rem;
  font-size: 0.9rem;
}

.alumni-text p {
  margin: 0 0 0.5rem 0;
}

.alumni-name {
  font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .alumni-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .alumni-grid {
    grid-template-columns: 1fr;
  }

  .alumni-divider {
    margin: 0 1rem 2rem 1rem;
  }

  .alumni-section {
    padding: 0 1rem 3rem 1rem;
  }
}


/* ======================= SECTION CONTACT ======================================================== */

.contact-page {
  max-width: 1400px;
  padding: 2.5rem 2.5rem 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-title {
  color: var(--lipid_orange);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

/* --- Offene Stellen --- */
.positions-card {
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 1.5rem 2rem;
  font-size: 1rem;
}

.positions-card p {
  margin: 0 0 0.5rem 0;
}

.positions-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* --- Kontakt: zwei Spalten --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Adresskarte mit Mail-Button oben rechts (Button nutzt .team-link) */
.address-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.35;
}

.address-card p {
  margin: 0;
}

/* Anfahrt: Icon links, Text rechts */
.travel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.travel-list li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.travel-icon {
  width: 2rem;                      /* Größe der Anfahrts-Icons */
  height: 2rem;
  flex-shrink: 0;
  color: var(--lipid_grey);
}

.travel-list p {
  margin: 0;
  line-height: 1.3;
}

.travel-label {
  color: var(--lipid_light_green);
  font-weight: 600;
}

/* Karte */
.contact-map iframe {
  width: 100%;
  aspect-ratio: 1 / 1;              /* quadratische Karte */
  border: 0;
  border-radius: 0.25rem;
  display: block;
}

/* Karte erst nach Klick bedienbar */
.map-frame {
  position: relative;
}

.map-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}

/* Hinweis erscheint beim Drüberfahren */
.map-overlay span {
  background-color: rgba(30, 30, 30, 0.75);
  color: var(--lipid_white);
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.map-overlay:hover span,
.map-overlay:focus-visible span {
  opacity: 1;
}

/* Nach dem Klick: Ebene weg, Karte bedienbar */
.map-frame.is-active .map-overlay {
  display: none;
}

.map-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--lipid_dark_green);
  text-decoration: underline;
}

.map-link:hover {
  color: var(--lipid_orange);
}
/* --- Banner "moving" (volle Breite, dunkel) --- */
.moving-banner {
  background-color: var(--lipid_grey);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 2rem;
  /* Hintergrund über die volle Bildschirmbreite ziehen, Inhalt bleibt in der Spalte */
  box-shadow: 0 0 0 100vmax var(--lipid_grey);
  clip-path: inset(0 -100vmax);
}

.moving-pin {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.moving-text {
  text-align: center;
}

.moving-text p {
  color: var(--lipid_light_green);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.75rem 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;       /* Karte unter die Adresse */
  }
}

@media (max-width: 576px) {
  .contact-page {
    padding: 1.5rem 1rem 3rem 1rem;
  }

  .positions-card {
    padding: 1.25rem;
  }

  .moving-banner {
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .moving-text p {
    font-size: 1.15rem;
  }
}
/* ======================= SECTION NEWS ======================================================== */
/* ======================= SECTION NEWS ======================================================== */

.news-page {
  max-width: 1400px;
  padding: 2.5rem 2.5rem 4rem 2.5rem;
}

.news-heading {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 1.25rem 0;
}

.news-divider {
  margin: 0;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.15);
  opacity: 1;
}

/* Eine Meldung: Text und Bild nebeneinander */
.news-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 1rem 4rem 1rem;
}

/* Jede zweite Meldung: Bild bzw. Slider links, Text rechts */
.news-item-flipped .news-images,
.news-item-flipped .news-slider {
  order: -1;
}

.news-text .news-date {
  color: var(--lipid_orange);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 1rem 0 1.5rem 0;
}

/* Jede zweite Meldung: Datum grün */
.news-item-flipped .news-text .news-date {
  color: var(--lipid_light_green);
}

.news-text p {
  font-size: 1rem;
  font-weight: 500;
  max-width: 28rem;
}

/* Ein einzelnes Bild */
.news-images img {
  width: 100%;
  aspect-ratio: 3 / 2;              /* Format der News-Bilder */
  object-fit: cover;
  display: block;
}

/* --- Slider für Meldungen mit mehreren Bildern --- */
.news-slider {
  position: relative;
}

.news-slider-viewport {
  overflow: hidden;
}

.news-slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.news-slider-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 3 / 2;              /* Format der News-Bilder */
  object-fit: cover;
  display: block;
}

/* Pfeile links und rechts über dem Bild */
.news-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background-color: rgba(30, 30, 30, 0.55);
  color: var(--lipid_white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.news-slider-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.news-slider-btn:hover {
  background-color: var(--lipid_dark_green);
}

.news-slider-prev { left: 0.75rem; }
.news-slider-next { right: 0.75rem; }

/* Punkte unter dem Bild */
.news-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.news-slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-slider-dot.is-active {
  background-color: var(--lipid_orange);
  transform: scale(1.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .news-page {
    padding: 1.5rem 1rem 3rem 1rem;
  }

  .news-item {
    grid-template-columns: 1fr;     /* Text über dem Bild */
    gap: 1.25rem;
    padding: 1.5rem 0 2.5rem 0;
  }

  .news-item-flipped .news-images,
  .news-item-flipped .news-slider {
    order: 0;                       /* auf dem Handy immer: Text, dann Bild */
  }

  .news-text .news-date {
    margin-top: 0;
  }
}


/* ======================= ABSCHNITTSÜBERSCHRIFTEN (alle Seiten) ======================================================== */
/* Werte werden oben in :root eingestellt (--title-...) */

.pub-header-row h2,
.team-header-row h2,
.news-heading,
.alumni-title,
.contact-title {
  font-family: var(--title-font);
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  color: var(--title-color);
}

@media (max-width: 768px) {
  .pub-header-row h2,
  .team-header-row h2,
  .news-heading,
  .alumni-title,
  .contact-title {
    font-size: var(--title-size-mobile);
  }
}

/* Positions & Contact: Überschriften bleiben orange */
.contact-title {
  color: var(--lipid_orange);
  font-size: var(--title-size);
  font-weight: 600;
}