/* box-sizing: border-box gilt für alle div's */
* {
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: row;
    height: 100vh;
}

    .menu {
      width: 200px;
      background-color: #6c8dfb;
      padding: 10px;
    }

    .menu a {
      display: block;
      margin: 10px 0;
      text-decoration: none;
      color: #000;
    }

    .menu a:hover {
      background-color: #0077cc;   /* Hintergrundfarbe beim Hover */
      color: white;                /* Textfarbe beim Hover */
      text-decoration: none;       /* Unterstreichung entfernen */
      transform: scale(1.05);      /* Leichte Vergrößerung */
      transition: all 0.3s ease;   /* Sanfter Übergang */
}

    .content {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      position: relative;
    }

    /* Platzhaltertext */
    #placeholderText {
      position: absolute;
      top: 10px;
      left: 10px;
      color: #444;
      font-size: 1.1em;
      z-index: 5;
      transition: opacity 0.3s ease;
    }

    /* Bildvorschau */
    #mainImage {
      position: absolute;
      top: 10px;
      left: 10px;
      width: auto;
      z-index: 10;
      display: none;
      transition: opacity 0.3s ease;
    }

    .content img {
      position: absolute;      /* Ermöglicht die genaue Platzierung */
      top: 10px;               /* Abstand vom oberen Rand */
      left: 10px;              /* Abstand vom linken Rand */
      display: none;           /* Startzustand: unsichtbar */
      height: auto;
      width: auto;             /* Beispielgröße, anpassbar */
      max-width: 100%;
      z-index: 10;             /* Damit es über anderen Elementen liegt */
    }

    /* Mobile Optimierung */
    @media (max-width: 768px) {
      body {
        flex-direction: column;
      }

      .menu {
        width: 100%;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
      }

      .menu a {
        flex: 1;
        padding: 10px;
        text-align: center;
        white-space: nowrap;
      }

      .content {
        height: auto;
      }
    }