
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    }
header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2em;
    }
header img {
    display: block;
    margin: 0 auto 1em auto;
    }

nav { 
    background-color: #34495e;
    padding: 1em;
    text-align: center;
    }

nav a { 
    color: white;
    margin: 0 1em;
    text-decoration: none;
    }

.container {
    max-width: 1200px;
    margin: auto;
    padding: 2em;
    background: white;
    }
h1  {
    text-align: center;
     }
     
h2 {
    color: #2c3e50;
    text-align: center;
    margin-top: 10px;
     }

h3 {
    color: #2c3e50;
    margin-top: 10px;
     }
    
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    }

table, th, td { border: 1px solid #ccc; }
        
th, td { padding: 0.75em; text-align: left; }

footer {
    text-align: center;
    padding: 1.5em;
    background-color: #2c3e50;
    color: white;
    }
    
     .timeline { max-width: 900px; margin: auto; position: relative; }
        .timeline::after { content: ''; position: absolute; left: 50%; width: 2px; background: #ccc; top: 0; bottom: 0; }
        .entry { padding: 1em 2em; position: relative; width: 50%; }
        .entry.left { left: -7%; text-align: right; }
        .entry.right { left: 50%; text-align: left; }
        .entry::before { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #3498db; top: 1em; z-index: 1; }
        .entry.left::before { right: -8px; }
        .entry.right::before { left: -8px; }
        .year { font-weight: bold; font-size: 1.2em; margin-bottom: 0.3em; color: #2c3e50; }
        @media screen and (max-width: 768px) {
            .timeline::after { left: 10px; }
            .entry { width: 100%; padding-left: 30px; text-align: left; }
            .entry.right, .entry.left { left: 0; }
            .entry::before { left: 0; }
        }


.white-section {
    background-color: #ffffff;
    padding: 2em 1em;
}
.grey-section {
    background-color: #f3f3f3;
    padding: 2em 1em;
}

.mine_wrapper {
    display: flex;
    justify-content: space-between;
    gap: 2em;
    margin: 2em 0;
}
.mine_left, .mine_right {
    flex: 1 1 45%;
    padding: 1em;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.prognose {
    color: #aaa;
    font-style: italic;
}
.blocksatz {
    text-align: justify;
}


/* ========== Mobile Optimierungen ========== */
@media (max-width: 768px) {

  body {
    padding: 0 1rem;
  }

  .container {
    padding: 1rem;
  }

  .box, .card, .info-box, .timeline-box {
    width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }

  .two-column, .flex-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .timeline {
    padding-left: 0.5rem;
  }

  .timeline .event {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .timeline .event .date {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  table, th, td {
    font-size: 0.9rem;
    word-break: break-word;
  }
}


/* Scrollbare Tabelle auf kleinen Bildschirmen */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Dynamische Schriftgröße für Tabelleninhalt */
table, th, td {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}


/* Verbesserte mobile Tabellenanzeige */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

.table-responsive table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

table, th, td {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  white-space: nowrap;
}


/* FINAL: Mobile Table Fix für überbreite Tabellen */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  table-layout: auto;
}

table, th, td {
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  white-space: normal;
  word-break: break-word;
  padding: 0.5rem;
}


/* ===== Overlay CSS für Tabelle ===== */
.table-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.overlay-content {
  background: #fff;
  padding: 1.5rem;
  width: 95%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-radius: 0.5rem;
}

.close-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.open-table-overlay {
  display: block;
  margin: 1rem auto;
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.3rem;
  cursor: pointer;
}

/* Boxen untereinander auf kleinen Geräten */
@media (max-width: 768px) {
  .info-duo {
    flex-direction: column;
    gap: 1rem;
  }
}


/* Desktop-Table sichtbar nur ab 768px Breite */
.table-wrapper-desktop {
  display: block;
}
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .table-wrapper-desktop {
    display: none;
  }
  .mobile-only {
    display: block;
    margin: 1rem auto;
  }
}
  .top-nav {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  .top-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
  }
  .top-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }
   .top-nav {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  .top-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
  }
  .top-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }
  .top-nav ul li a.active {
    color: #999;
    border-bottom: 2px solid #999;
  }
