/* style.css */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 2.5rem 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.portrait {
  width: 160px;
  border-radius: 8px;
  margin-top: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.icon-links a {
  text-decoration: none; /* entfernt ggf. Unterstriche */
}

.icon-links i {
  text-decoration: none;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: #333;
}

.text-links {
  margin-top: 0.5rem;
}

.text-links a {
  text-decoration: none;
  color: #333;
  margin: 0 0.5rem;
}

nav.mobile-only {
  display: none;
}

.section-divider {
  text-align: center;
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: #999;
}

main {
  padding: 1rem;
  max-width: 900px;
  margin: auto;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.education-list {
  list-style: none;
  padding: 0;
}

.education-list li {
  margin-bottom: 1.5rem;
  text-align: center;
}

.education-list i {
  text-align: center;
  margin-right: 0.5rem;
  color: #444;
}

.timeline {
  position: relative;
  margin-left: 2rem;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ccc;
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -0.1rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background-color: white;
  border: 2px solid #3b82f6;
  border-radius: 50%;
}

.timeline-card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.publication {
  margin-bottom: 2rem;
}

.publication .abstract-text {
  display: none;
  background: #f2f2f2;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
}

.publication .abstract-text.visible {
  display: block;
}

.publication button {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.news-card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

address {
  text-align: center;
  margin-top: 1rem;
  font-style: normal;
  line-height: 1.6;
  color: #444;
}

/* Responsive mobile nav */
@media screen and (max-width: 768px) {
  nav.mobile-only {
    display: block;
    background: #fff;
    text-align: center;
    margin-bottom: 1rem;
  }

  .menu-toggle {
    font-size: 2rem;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    padding: 0;
    margin-top: 0.5rem;
  }

  .nav-links li {
    list-style: none;
    margin: 0.5rem 0;
  }

  .nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
  }

  .nav-links.visible {

    display: flex;
  
  }

  nav.mobile-only.open .nav-links {
    display: flex;
  }
}

nav.top-nav {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for small screens */
  justify-content: space-between; /* Space between rows */
  align-items: center;
}

nav.top-nav a {
  text-decoration: none;
  color: #333;
  margin: 0 1rem;
  font-weight: bold;
}

nav.top-nav a:hover {
  color: #007acc;
}

nav.top-nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007acc;
  margin-bottom: 0.5rem; /* Add spacing for small screens */
}

nav.top-nav .menu {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  nav.top-nav {
    flex-direction: column; /* Stack items in two rows */
    align-items: center; /* Align items to the center */
  }

  nav.top-nav .menu {
    display: none;
    flex-direction: column;
    width: 100%; /* Full width for dropdown */
    align-items: center; /* Center align menu items */
  }

  nav.top-nav .menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    align-self: center; /* Center align toggle */
  }

  nav.top-nav.open .menu {
    display: flex;
    position: flex; /* Remove absolute positioning */
    background-color: transparent;
    border-top: none;
    padding: 0;
    align-items: center; /* Center align menu items */
  }

  nav.top-nav.open .menu a {
    margin: 0.5rem 0;
    width: 100%; /* Full width for links */
    text-align: center; /* Center align text */
  }
}

@media screen and (max-width: 768px) {
  nav.top-nav {
    display: none;
  }
}

.column {
  float: left;
  width: 50%;
}

.column70 {
  float: left;
  width: 70%;
}

.column30 {
  float: right;
  width: 30%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

.abstract-text {
  display: none;
}

.column30.desktop-only {
  display: none;
}

.column50 {
  float: left;
  width: 50%;
}

.column100 {
  float: left;
  width: 100%;
}

@media screen and (min-width: 720px) {
  .column30.desktop-only {
    display: block;
  }
}

.column50.desktop-only {
  display: none;
  width: 50%;
}

@media screen and (min-width: 720px) {
  .column50.desktop-only {
    display: block;
  }
}

.column100.mobile-only {
  display: block;
  justify-content: center;
  width: 100%;
}

@media screen and (min-width: 720px) {
  .column100.mobile-only {
    display: none; /* Hide the element when min-width is 720px or more */
  }
}
