body {
  padding: 0;
  margin: 0;
  background-color: #f4f6fa;
  color: #222;
  font-size: 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}

.dark-mode {
  background-color: #181a1b;
  color: #f4f6fa;
}

button {
  background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
  border: none;
  color: #fff;
  padding: 14px 30px;
  font-size: 18px;
  margin: 24px auto 16px auto;
  display: block;
  cursor: pointer;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.3s, color 0.3s;
}

button:hover {
  background: linear-gradient(90deg, #ea00f7 0%, #4b6cb7 100%);
}

h1 {
  background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
  color: #fff;
  margin: 0;
  margin-top: 0px;
  margin-bottom: 0.2em;
  padding: 32px 0 16px 0;
  text-align: center;
  border-radius: 0 0 30px 30px;
  letter-spacing: 2px;
  font-size: 2.5em;
  text-shadow: 1px 1px 8px #a259c6;
  position: relative;
}

h2 {
  text-align: center;
  margin: 20px 0 30px 0;
  color: #af15b4;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 6px;
}
h4 {
  text-align: center;
  margin: 20px 0 30px 0;
  color: #af15b4;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 6px;
  font-size: 2.2em;
}

table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  margin: 32px auto 0 auto;
  font-size: 1.08em;
  box-shadow: 0 4px 24px rgba(50,0,100,0.08);
}

th, td {
  border: 1.5px solid #a259c6;
  padding: 14px 18px;
  text-align: center;
}

th {
  background-color: #a259c6;
  color: #fff;
  font-size: 1.1em;
}

tr:nth-child(even) {
  background-color: #f3e6fa;
}
tr:nth-child(even) {
  background-color: #f2f2f2;
}
.dark-mode table {
  background: #232033;
  color: #fff;
  border-collapse: collapse;
  box-shadow: 0 4px 24px rgba(50,0,100,0.18);
}

.dark-mode th, .dark-mode td {
  border: 1px solid #444;
  padding: 10px;
}

.dark-mode th {
  background: #3a006a;
  color: #ff5eae;
}

.dark-mode tr:nth-child(even) {
  background: #2d2540;
}

/* Kacheln mittig, maximal 3-4 nebeneinander, auf großen Bildschirmen */
.zeitstrahl-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px 36px;
  padding: 40px 24px 60px 24px;
  justify-items: center;
  align-items: start;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ereignis {
  background: #fff;
  box-shadow: 0 8px 32px rgba(75, 108, 183, 0.18);
  margin: 0;
  padding: 24px 20px 20px 20px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  border-radius: 18px;
  transition: box-shadow 0.3s, background 0.3s;
}

.dark-mode .ereignis {
  background: #23272b;
  box-shadow: 0 6px 24px rgba(75, 108, 183, 0.18);
}

.ereignis h3 {
  color: #4b6cb7;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.dark-mode .ereignis h3 {
  color: #7faaff;
}

.bild {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(75, 108, 183, 0.10);
}
footer {
  background-color: #182848;
  color: white;
  padding: 10px;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
  font-size: 1em;
  letter-spacing: 1px;
}

a:link, a:visited {
  color: #4b6cb7;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff5e62;
  text-decoration: underline;
}

a:active {
  color: #ffa857;
}

/* Mehr-Button oben rechts, bleibt stehen */
.menu-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 0 0 0 30px;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 0;
  display: block;
}

/* Dropdown-Menü oben und unten abgerundet */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: linear-gradient(90deg, #a259c6 0%, #89CFF0 100%);
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  margin-top: 0;
  z-index: 10;
  flex-direction: column;
  padding: 0.5rem 0;
}

.dropdown-content.show {
  display: flex;
}

@media (max-width: 700px) {
  .menu-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
  }
  .dropdown-btn {
    font-size: 1.1em;
    padding: 16px 24px;
    border-radius: 0 0 0 30px;
    margin: 0;
  }
  .zeitstrahl-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 16px 4px 30px 4px;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
  }
  .ereignis {
    width: 94vw;
    max-width: 340px;
    min-width: 180px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 8px 14px 8px;
  }
}

.dropdown-content button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

.dropdown-content button:hover {
  background: #f1f1f1;
}

.dropdown-content.show {
  display: flex;
}
.dark-mode .dropdown-content {
  background: linear-gradient(90deg, #232033 0%, #3a2c4d 100%);
}
.dropdown-content a {
  color: #a259c6;
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background: #f3e6fa;
  color: #ff5eae;
}

.dropdown:hover .dropdown-content {
  display: block;
} 

.lizenz-box.ereignis,
.lizenz-box.ereignis:focus,
.lizenz-box.ereignis:active {
  background: #fff;
  color: #232033;
  border: 1.5px solid #a259c6;
  border-radius: 18px;
  font-size: 1em;
  font-family: inherit;
  font-weight: 500; 
  box-shadow: 0 8px 32px rgba(162, 89, 198, 0.18);
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  padding: 10px 18px;
  margin: 8px 0;
  outline: none;
  display: inline-block;
  text-align: center;
  min-width: 80px;
  max-width: 220px;
}

.lizenz-box.ereignis:hover,
.lizenz-box.ereignis:focus {
  background: #fff;
  color: #232033;
  border: 2.5px solid #ff5eae;
  box-shadow: 0 16px 40px rgba(255, 94, 174, 0.18);
  transform: scale(1.04);
}

.dark-mode .lizenz-box.ereignis,
.dark-mode .lizenz-box.ereignis:focus,
.dark-mode .lizenz-box.ereignis:active {
  background: #23272b;
  color: #f4f6fa;
  border: 1.5px solid #a259c6;
  box-shadow: 0 8px 32px rgba(162, 89, 198, 0.18);
}

.dark-mode .lizenz-box.ereignis:hover,
.dark-mode .lizenz-box.ereignis:focus {
  background: #23272b;
  color: #ff5eae;
  border: 2.5px solid #ff5eae;
  box-shadow: 0 12px 36px rgba(255, 94, 174, 0.22);
  transform: scale(1.04);
}

a.ereignis {
  text-decoration: none;
  color: inherit;
  display: block;
}

#back-to-index {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 28px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #89CFF0 0%, #ff5eae 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0