body {
  font-family: Arial, sans-serif;
  background-color: #cc546a;
  margin: 0;
  padding: 0;
  color: #6e2461;
  overflow-x: hidden;
}

/*header*/
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  background: #4f0d19;
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
  z-index: 1000;
  transition: top 0.5s ease, opacity 0.5s ease;
  flex-wrap: wrap; /* responsive */
}
.header-nav {
  margin-left: auto;
  margin-right: 40px;
}
#header-slogan {
  color: #ffffff;
  text-shadow: 0 8 8px #b5737f;
  transition: text-shadow 0.3s ease;
  animation: sloganGlow 2s infinite alternate;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-logo {
  height: 60px;
}
.header-text h1 {
  margin: 0;
  font-size: 1.8em;
  color: #ffffff;
  letter-spacing: 1px;
}
.header-text span {
  font-size: 0.85em;
  color: #f3b3ff;
  opacity: 0.9;
}
#header-slogan {
  transition: opacity 0.5s ease;
}

.description {
  white-space: pre-line;
}

/* Navigation */
.header-nav a {
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 26px;
  font-weight: bold;
  font-size: 1em;
  color: white;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}
.header-nav a:hover {
  background: #f3b3ff;
  color: #2f1c2e;
  box-shadow: 0 0 15px rgba(243,179,255,0.6);
}
.main-container {
  padding-top: 120px;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
  font-size: 0.9em;
}
nav a:hover {
  color: #f3b3ff;
}

/* hauptbereich */
.main-container {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.anatomy-container {
  position: relative;
  max-width: 600px;
  margin: 40px auto;
}
.anatomy-container img {
  margin-top: 45px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Organpunkte */
.organ-point {
  position: absolute;
  width: 20px;
  height: 20px;
  background: transparent;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  z-index: 5;
  animation: pulse 1.5s infinite;
}
.organ-point:hover {
  transform: scale(1.5);
  box-shadow: 0 0 15px #67bed9;
}
.organ-point.highlight {
  box-shadow: 0 0 20px 5px #67bed9;
  transform: scale(1.5);
}
.organ-point::after {
  content: attr(data-organ);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #9c4555;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.organ-point:hover::after {
  opacity: 1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* SEITENLISTE */
.side-list {
  position: absolute;
  left: 3%;
  top: 160px;
  width: 240px;
  color: #e6d0d4;
  font-size: 18px;
  counter-reset: organCounter;
  background:  #4f0d19;
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 12px 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.side-list div {
  margin: 8px 0;
  padding: 8px 12px;
  cursor: pointer;
  border-left: 4px solid transparent;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  background: #8f2d3f;
}
.side-list div::before {
  counter-increment: organCounter;
  content: counter(organCounter) ". ";
  color: #e6d0d4;
  font-weight: bold;
}
.side-list div:hover {
  background: rgba(156, 69, 85,0.2);
  transform: scale(1.03);
}
.side-list .active {
  border-left-color: #dab9bf;
  color: #dab9bf;
  font-weight: bold;
  background: rgba(#4f0d19,0.25);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(156, 69, 85,0.6);
}

/* FOOTER */
footer {
  padding: 40px 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  position: relative;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.footer-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(243,179,255,0.6);
}
.footer-links a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f3b3ff;
  transition: 0.3s;
  transform: translateX(-50%);
}
.footer-links a:hover::after {
  width: 60%;
}

/* Overlay */
#organ-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 5000;
}
#organ-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.organ-modal {
  width: 88vw;
  height: 82vh;
  max-width: 1600px;
  max-height: 900px;
  background: rgba(255,255,255,0.96);
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(0,0,0,0.5);
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.77,0,0.175,1),
  opacity 0.35s ease;
}
#organ-overlay.show .organ-modal {
  transform: scale(1);
  opacity: 1;
}
.modal-image {
  position: relative;
  background: #83162a;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ALLE ORGAN-BILDER GLEICH GROSS */
.modal-image img {
  width: min(380px, 90%);
  height: min(380px, 90%);
  object-fit: contain;
}

.image-placeholder {
  position: absolute;
  text-align: center;
  color: #83162a;
  opacity: 0.7;
}
.image-placeholder span {
  display: block;
  font-size: 0.85em;
  margin-top: 8px;
}
.modal-content {
  padding: 50px;
  overflow-y: auto;
  color: black;
}
.modal-content h2 {
  font-size: 2.4em;
  margin: 0;
  color: #83162a;
}
.modal-content p {
  font-size: 1.1em;
  line-height: 1.9;
  color: black;
}
#close-overlay {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 10;
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2.4em;
  cursor: pointer;
  color: #83162a;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: all 0.25s ease;
}
#close-overlay:hover {
  background: #83162a;
  color: #fff;
  transform: rotate(90deg);
}

/* PASSWORD LOCK */
body.locked #site-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
#password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.password-box {
  background: white;
  color: #83162a;
  padding: 30px 40px;
  border-radius: 14px;
  text-align: center;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.password-box h2 {
  margin-bottom: 10px;
  color: #83162a;
}
.password-box input {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.password-box button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  background: #83162a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.password-box button:hover {
  background: #83162a;
}
#password-error {
  color: red;
  font-size: 14px;
  display: none;
  margin-top: 10px;
}

/* ----------------------------------- */
/*          RESPONSIVE DESIGN          */
/* ----------------------------------- */

/* Tablets */
@media (max-width: 900px) {
  .organ-modal {
    grid-template-columns: 1fr;
    height: 80vh;
  }
  .header-text h1 {
    font-size: 1.3em;
    text-align: center;
  }
  .header-logo {
    height: 45px;
  }
}
@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 10px 0;
  }

  .header-text h1 {
    font-size: 1.1em;
    width: 100%;
  }

  .header-logo {
    height: 40px;
    margin: 10px auto;
  }

  /* SIDE-LIST FIX: unter Navbar sichtbar */
  .side-list {
    position: relative;      /* normal im Fluss */
    width: 95%;
    max-width: none;
    margin: 120px auto 15px; /* 120px = Navbar-Höhe + Abstand */
    left: auto;
    top: auto;
    transform: none;
  }

  .main-container {
    padding-top: 20px; /* Inhalt weiter unten */
  }

  .organ-modal {
    width: 98vw;
    height: 90vh;
  }

  .modal-content {
    padding: 15px;
  }

  .modal-image {
    max-height: 250px;
    margin-bottom: 15px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

