body {
  margin: 0;
  font-family: sans-serif;
  background-color: #1e0826;
  color: white;
  position: relative;
  overflow-x: hidden;
}

a:link {
  color: white;
  text-decoration: none;
}

a:visited {
  color: lightblue;
  text-decoration: none;
}
a:hover {
  color: hotpink;
  text-decoration: none;
}

a:active {
  color: yellow;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  background-color: #1a0226;
  padding: 0.5rem 1rem; /* reduziert, um näher an die obere Textbox zu kommen */
  color: white;
}

footer {
  background-color: #1a0226;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 280px;
  margin: 0 auto; display: block;
  padding: 0 1rem;
  box-sizing: border-box;
}

.header-box,
.footer-box {
  flex: 1;
  text-align: left;
  min-height: 8rem;
}

.logo img {
  max-height: 220px;
  min-height: 120px;
}

.logo2 img {
  max-height: 180px;
  min-height: 120px;
}

/* Galerie */
.gallery {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 5rem 2rem;
  gap: 2rem;
  background-color: #280033;
  position: relative;
  min-height: calc(92vh - 200px);
  box-sizing: border-box;
}

/* Textboxen */
.textbox-top-left {
  position: absolute;
  top: 20px;
  left: 50px;
  background-color: #8000ff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  width: 45%;
  text-align: center;
  border-style: outset;
  border-color: hotpink;
  font-style: italic;
}

.textbox-bottom-right {
  position: absolute;
  bottom: 20px; /* Abstand */
  right: 50px;
  background-color: #8000ff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  width: 45%;
  text-align: center;
  border-style: outset;
  border-color: hotpink;
  font-style: italic;
}

/* Galerie-Boxen */
.art-box {
  flex: 1 1 30%;
  max-width: 340px;
  max-width: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.art-box-text {
  color: white;
  background-color: rgba(128, 0, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  max-width: 340px;
  max-width: 340px;
  font-size: 0.95rem;
  line-height: 1.4;
  border-radius: 6px;
  border-style: outset;
  border-color: hotpink;
}

/* Copyright */
.copyright {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.5rem;
  background-color: #16001a;
  color: #ccc;
  min-height:40px;
}

@media (max-width: 768px) {
  header, footer {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  .textbox-top-left,
  .textbox-bottom-right {
    width: 90%;
    left: 5%;
    right: 5%;
    top: auto;
    bottom: auto;
    position: static;
    margin: 1rem 0;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .art-box {
    width: 90%;
    margin-bottom: 1.5rem;
  }

  .logo img {
    max-height: 150px;
    min-height: 80px;
  }

  .footer-box, .header-box {
    min-height: auto;
    margin: 0.5rem 0;
  }

  footer {
    padding-bottom: 60px; /* erhöht Platz nach unten */
    overflow: visible;
  }

  footer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .copyright {
    margin-top: 20px; /* Abstand nach oben */
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  footer {
    padding-bottom: 2rem;
    min-height: 100px; /* optionaler Schutz für kleine Displays */
  }

  .footer-logo {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  body {
    padding-bottom: 120px; /* Platz für Footer falls notwendig */
  }
}

@media screen and (max-width: 360px) {
  body, p, h1, h2, h3 {
    font-size: 90%;
  }

  nav a {
    font-size: 0.9rem;
  }
}