html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: white;
  font-family: Menlo, monospace;
}

/* Layout-Struktur */
header {
  position: relative;
  width: 100%;
  height: 80px;
}

main {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
}

/* Zentrierter Model Viewer */
.viewer-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

model-viewer {
  width: 300px;
  height: 300px;
  background-color: transparent;
}

/* Text links oben */
.top-left-text {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 12px;
  color: black;
  line-height: 1.4;
}

.top-left-text .bold {
  font-weight: bold;
}

/* Navigation rechts oben */
.nav {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav a {
  font-size: 12px;
  color: black;
  text-decoration: underline;
}

.nav a:hover {
  color: red;
}

.btn-link {
  color: black;             /* Textfarbe schwarz */
  text-decoration: underline; /* unterstrichen */
  font-weight: medium;
  cursor: pointer;
 margin-top: 15%; /* Abstand nach oben */
  display: inline-block; /* damit margin-top wirkt */
}

.btn-link:hover {
  color: red;               /* beim Hover rot */
}

/* FOOTER */
.footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(6px - env(safe-area-inset-bottom));
  font-family: Menlo, monospace;
  font-size: 12px;
  line-height: 1;
  color: black;
}


/* MAIN für Info-Seite */
main {
  flex: 1;
  position: relative;
}

/* Info-Text: Mitte, aber linksbündig */
.info-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 420px;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.back-arrow {
  position: absolute;
  top: 32px;    /* mehr Abstand nach oben */
  left: 32px;  /* mehr Abstand nach links */
  font-size: 16px;
  color: black;
  text-decoration: underline;
}

.bold {
  font-weight: bold; /* fett */
}

/* =========================
   MOBILE (Handy)
   ========================= */
@media (max-width: 700px) {

  /* Typo allgemein größer */
  .top-left-text,
  .nav a,
  .info-container {
    font-size: 11px;
  }

  .top-left-text {
    line-height: 1.5;
  }

  /* Navigation etwas luftiger */
  .nav {
    gap: 12px;
  }

  /* Model Viewer größer */
  model-viewer {
    width: 210px;
    height: 210px;
  }

  /* Footer besser lesbar */
  .footer {
    font-size: 12px;
  }

  /* Back Arrow größer & klarer */
  .back-arrow {
    font-size: 20px;
    top: 40px;
    left: 40px;
  }

  /* Info-Text: bessere Lesebreite */
  .info-container {
    max-width: 90%;
  }
}
