body {
  margin: 0;
  font-family: 'Marcellus', sans-serif;
  background-color: rgb(40, 40, 50);
}

.header {
  background: linear-gradient(90deg, #23023f, #6f0000);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-shadow:
    1px 1px 1px #000,
    1px -1px 1px #000,
   -1px 1px 1px #000,
   -1px -1px 1px #000;
}

.logo {
  font-size: 2.0em;
  font-weight: bold;
  color: rgb(230, 230, 230);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5em;
  margin: 0px;
  font-size: 1.5em;
  font-weight: bold;
}

.nav-links a {
  color: rgb(230, 230, 230);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.subnav {
  background-color: rgb(40, 40, 50);
  color: lightblue;
  display: flex;
  justify-content: center;
  z-index: 10;
  position: relative;
  gap: 1.0em;
  padding-top: 0.25em;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbutton {
  background: none;
  color: #ccc;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.5em;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2e2e3a;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,0.1);
  min-width: 8.0em;
  font-size: 1.1em;
  text-align: center;
}

.dropdown-content a {
  display: block;
  color: #ccc;
  padding: 0.2em;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color:#445;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

h1 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.5em;
  font-weight: normal;
  margin: 0;
}

p {
  margin: 0;
}

.content {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.2em;
  line-height: 1.4;
  color: gainsboro;
  padding: 20px;
  max-width: 1024px;
  margin: 0 auto 0 auto;
  text-align: justify;
}

.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

/* Seitenumschaltung */
.page {
  display: none;
  font-family: 'Nunito Sans', sans-serif;
}

.page.active {
  display: block;
}

.datasheet-grid {
  padding-left: 1em;
  margin: 0 0 0.5em 0;
}

.datasheet-grid li {
  display: grid;
  grid-template-columns: 100px 1fr;
}


.datasheet-link {
  list-style-type: none;
  padding-left: 1em;
  margin: 0 0 0.5em 0;
}

.datasheet-grid a,
.datasheet-link a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover,
.dropbutton:hover,
.datasheet-grid a:hover,
.datasheet-link a:hover {
  color: rgb(255, 240, 200);
}

.thumbnail-row {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: nowrap;
  margin: 1em 0 1em 0;
}

img.thumbnail {
  width: 10em;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
  margin: 0;
}

img.thumbnail:hover {
  border-color: #446;
}


.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-content img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 5px;
  display: block;
}

table {
  border-collapse: separate;
  border-spacing: 0px;
  margin: 1em auto;
  width: 100%;
}

th, td {
  text-align: center;
}





@media screen and (max-width: 800px) {
  .logo {
    font-size: 1.5em;
  }

  .nav-links {
    font-size: 1.125em;
  }

  .subnav {
    gap: 0.25em;
  }

  .dropbutton {
    font-size: 1.0em;
  }

  .dropdown-content {
    font-size: 0.75em;
  }

  h1 {
    font-size: 1.25em;
  }

  .content {
    font-size: 1.0em;
  }
}