/* Grundstruktur */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f7f7f7;
  color: #222;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.hero {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364); /* Dunkelblauverlauf */
  color: #ffffff;
  padding: 80px 30px;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 0.3em;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero .subline {
  font-size: 1.2em;
  font-weight: 300;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}


/* Navigation */
.sticky-nav {
  position: fixed;
  top: 280px;
  left: 30px;
  background: rgba(250, 250, 250, 0.95);
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  z-index: 100;
  max-width: 220px;
}

.sticky-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sticky-nav li {
  margin: 8px 0;
}

.sticky-nav a {
  color: #333;
  text-decoration: none;
}

.sticky-nav a:hover {
  text-decoration: underline;
}

.main-content {
  margin-left: 270px; /* Falls deine Sidebar 220px + 50px Abstand hat */
  max-width: 900px;
  padding: 30px;
}
/* Hauptinhalt */
main {
  /* max-width: 1100px; */
  /* margin: 40px auto; */
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 6px;
}

/* Überschriften */
h2 {
  margin-top: 40px;
  font-size: 1.8em;
  border-bottom: 3px solid #e74c3c;
  padding-bottom: 6px;
  border-image: linear-gradient(to right, #0f2027, #203a43, #2c5364) 1;
  color: #2c3e50;
}

h3 {
  margin-top: 30px;
  font-size: 1.3em;
  color: #333;
}

p {
  margin: 1em 0;
}

/* Tabellen */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  word-break: normal;
  white-space: normal;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: inset -6px 0 6px -6px rgba(0, 0, 0, 0.08);
}

/* Scrollbarkeit sicherstellen */
.wide-table {
  min-width: 750px; /* oder breiter, je nach Inhalt */
  width: 100%;
  border-collapse: collapse;
}

/* Kein Umbruch = Scroll erzwingen */
.wide-table th,
.wide-table td {
  white-space: nowrap;
  word-break: normal;
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Listen */
ul, ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

ul li {
  margin: 5px 0;
}

/* Links */
a {
  color: #e74c3c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
.countdown-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}
/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 0.9em;
  margin-top: 50px;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  header h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.2em;
  }
}
table:not(.wide-table) td,
table:not(.wide-table) th {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}
@media (max-width: 768px) {
  .sticky-nav {
    display: none;
  }

  .main-content {
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    padding: 5px;
  }
    .hero h1 {
    font-size: 1.3em;
  }
  .hero .subline {
    font-size: 1em;
    line-height: 1.1em;
  }
  .wide-table td,
  .wide-table th {
    font-size: 0.85em;
  }
}
  table:not(.wide-table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table:not(.wide-table) th,
  table:not(.wide-table) td {
    word-break: normal;
    white-space: normal;
    font-size: 0.85em;
  }
@media (max-width: 900px) and (orientation: landscape) {
  .sticky-nav {
    display: none;
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 20px;
  }
}