* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff; /* oder dein gewünschtes helles Grau */
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: min(5vw,32px);
    padding-right:min(5vw,32px);
}

main .container {
   margin-top:2rem; /* Nur noch Abstand nach oben */
}

/* Navigation */
nav {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav .logo img {
  height: 3em; 
  width: auto;
  vertical-align: middle;
}

nav ul {
    display: flex;
    list-style-type: none; /* statt list-style für Konsistenz */
    gap: 2rem;             /* moderner Abstand */
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Hauptinhalt */
main {
   min-height:70vh; 
   padding-bottom :2rem; 
}

/* Überschriften */
h1 {
   margin-bottom :1.5rem; 
   color:#2c3e50
}
h2{
   margin-top :2rem; 
   margin-bottom :1rem; 
   color:#34495e
}

.team-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
   gap: 2rem;
   margin-top:2rem;
}

.team-member {
   border:1px solid #ddd;
   padding:1rem;
   border-radius:8px;
   box-shadow:0px 2px 6px rgba(44,62,80,.04);
   background:white;
   text-align:center;
}

.member-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: .7em;
}

/* Publikationen */
.publication{
   margin-bottom :2rem ; 
   padding-bottom :2rem ; 
   border-bottom :1px solid #eee
}
.publication h3{margin-bottom:.5rem}
.pub-links{
   margin-top :.5rem
}
.pub-links a{
      margin-right :1rem ;
      color:#3498db ;
      text-decoration:none
}
.pub-links a:hover{text-decoration :underline }
details{margin-top :.5rem }
details summary{cursor:pointer;color:#3498db;font-weight :500 }
details p{margin-top :.5rem;padding-left :1rem }

/* Software & Daten Bereich*/
.software-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.software-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow:0px 2px 6px rgba(44,62,80,.04);
  position: relative;
  overflow: visible;
}

.software-item h3 {
   margin-bottom:.5em;
   color:#2c3e50;
}

.badge {
  display:inline-block;
  font-size:.85em;
  border-radius:.7em;
  padding:.25em .75em;
  margin-bottom:.7em;
  position: absolute;
  top: -0.6em;
  right: -0.6em;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(44,62,80,.12);
}

/* Standardfarbe als Fallback */
.badge {
    background:#3498db; 
    color:white;
}

.badge-software {
    background:#6c63ff; /* Lila-Blau für Software */
    color:white;
}
.badge-dataset {
    background:#27ae60; /* Grün für Dataset */
    color:white;
}

.table-responsive { overflow-x:auto; }
#dataset-table { border-collapse:collapse; width:100%; margin-top:2em;}
#dataset-table th,#dataset-table td{border:1px solid #ddd;padding:.5em;}
#dataset-table th { background:#f8f9fa; cursor:pointer; user-select:none;}
#dataset-table th.sorted-asc::after { content: " ▲"; }
#dataset-table th.sorted-desc::after { content: " ▼"; }
#dataset-table tr:nth-child(even){background:#fafbfc;}
#dataset-table tr:hover{background:#eef3fa;}

.software-links {
  margin-top:1em;
  display: flex;
  justify-content: center;
  gap: .5em;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: .15em .6em;     /* Weniger Padding */
  border-radius: .3em;     /* Weniger rund */
  font-weight: normal;     /* Kein Fett, wirkt dezenter */
  font-size: .95em;        /* Etwas kleiner */
  background: #e9ecef;     /* Heller Hintergrund statt kräftige Farbe */
  color: #333;
  border: 1px solid #ccc; 
  transition: background .2s, color .2s, border-color .2s;
}
.btn-github {
    background:#f6f8fa;
    color:#24292e;
    border-color:#d1d5da;
}
.btn-download {
    background:#eefaf3;
    color:#218c5b;
    border-color:#b4dfcb;
}
.btn:hover {
   background:#dde4ea !important;
   color:#222 !important;
   border-color:#aaa !important;
}

/* Footer */
footer{
     background:#2c3e50 ;
     color:white ;
     padding :2rem 0 ;
     margin-top :4rem ;
     display: flex;
     flex-wrap: wrap;       
     justify-content: center;
     align-items: center;     
     gap: 30px;               
}

footer a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s, text-decoration 0.2s;
}

footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 600px) {
  footer {
      flex-direction: column;
      gap: 15px;
      padding: 1.5rem 1rem;
  }
}

/* Hamburger Icon - hidden by default */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* Hamburger icon styling */
.nav-toggle-label {
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  flex-direction: column;
  justify-content: center;
}
.nav-toggle-label span {
  display: block;
  height: .25rem;
  width: 2rem;
  background: white;
  margin-bottom: .4rem;
  border-radius: .15rem;
}
.nav-toggle-label span:last-child { margin-bottom:0; }

/* Responsive styles */
@media (max-width:600px){
   nav .container {
     flex-direction: column;
     align-items:flex-start;
   }
   .container {
      padding-left:6vw; 
      padding-right:6vw; 
   }
   /* Show hamburger icon */
   .nav-toggle,
   .nav-toggle-label {
     display:block;
   }
   /* Hide menu by default */
   .menu {
     display:none;
     flex-direction:column; 
     width:100%;
     background:#2c3e50; /* same as nav bg */
     margin-top:.5em; 
   }
   /* Show menu when checkbox checked */
   .nav-toggle:checked + .nav-toggle-label + .menu {
     display:flex;
   }
   nav ul.menu li {
     margin-right:0; 
     margin-bottom:.7em; 
   }
}

/* Optional, make sure logo and hamburger are aligned nicely on mobile */
@media (max-width:600px){
    nav .logo {margin-bottom:.5em;}
}

.nav-toggle {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* --- Privacy Policy Extended Styles --- */

.privacy-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0px 2px 6px rgba(44,62,80,.04);
}

.privacy-notice {
  background-color: #f8f9fa;
  border-left: 4px solid #2c3e50;
  padding: 1rem;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  font-style: italic;
}

.privacy-lang-section {
  margin-bottom: 4rem;
}

.privacy-lang-section h1 {
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  font-size: 1.8rem;
}

.privacy-lang-section h2 {
  font-size: 1.4rem;
  border-left: 4px solid #3498db;
  padding-left: 1rem;
}

.privacy-lang-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.privacy-lang-section li {
  margin-bottom: 0.5rem;
}

/* Links inherit your existing blue color */
.privacy-lang-section a {
  color: #3498db;
  text-decoration: none;
  word-break: break-all; /* Prevents long email addresses from overflowing on mobile */
}

.privacy-lang-section a:hover {
  text-decoration: underline;
}

.section-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 4rem 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .privacy-wrapper {
      padding: 1rem;
      border: none;
      box-shadow: none;
  }
}