body {
  background-color: #1e1e1e;
  margin: 0;
  padding: 0;

  font-family: Helvetica, Arial, sans-serif;
}

/* svg positioning */
figure {
  margin: 0;
  padding: 0;
}

/* svg color */
.cls-1 {
  fill: #787878;
}

.PHILIPPE {
  width: 100vw;
  height: auto;
  position: absolute;
  top: 0px;
}

.SPELTZ {
  width: 85vw;
  height: auto;
  position: absolute;
  bottom: 0px;
  right: 0px;
}

main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  height: 93%;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url(../p/background.webp);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  padding: 0;

  display: flex;
  flex-direction: column;
}

.mainWorks {
  background-color: #2a2a2a;
  background-image: none;
}

.worksSelect,
.aboutSelect,
.contactSelect {
  font-weight: bold;
}

header {
  background: linear-gradient(to right, #7e7d48, #dce1ad, #abd7a7, #235730);
}

nav ul {
  list-style-type: none;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}

nav {
  font-weight: medium;
  font-size: 1.5em;
  font-style: italic;
  padding: 13px 0;
}

a:link {
  text-decoration: none;
  color: #803dec;
}
a:hover {
  color: #cbaaf9;
}
a:active {
  color: #1e1e1e;
}
a:visited {
  color: #803dec;
}

.submenu ul {
  list-style-type: none;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0.7em 20px;
}

.submenu {
  background: linear-gradient(
    90deg,
    #666640 0%,
    #a8ab87 33%,
    #86a483 66%,
    #274b30 100%
  );
}

.scrollbox {
  display: flex;
  flex-direction: column;

  overflow-y: auto; /* internes Scrollen */
  scroll-snap-type: y mandatory; /* Snap vertikal + “muss” einrasten */
  scroll-behavior: smooth; /* optional: schöner */

  flex: 1;
  min-height: 0;
}

.panel {
  flex: 0 0 100%; /* exakt eine "Seite" hoch */
  display: flex;
  flex-direction: column;
  height: 100%; /* nimmt die volle Höhe der Scrollbox */
  scroll-snap-align: start; /* an den Anfang einrasten */
  margin-bottom: -17px;
}

.submenu a.active {
  color: white;
  font-weight: bold;
  font-size: 110%;
}

p {
  color: white;
  line-height: 1.4;
  text-align: justify;
  hyphens: auto;
  background: linear-gradient(
    90deg,
    #666640 0%,
    #a8ab87 33%,
    #86a483 66%,
    #274b30 100%
  );
  padding: 0 20px 10px 20px;
  margin-top: -5px;
}

.aboutContainer {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100vh;
  padding: 10px;
  background-image: none;
}

.aboutContainer p {
  background: none;
  padding: 0;
  margin: 0;
}

.aboutContainer img {
  height: 300px;
  width: auto;
}

.contact {
  a:link {
    color: white;
  }
  a:hover {
    color: #803dec;
  }
  a:active {
    color: #1e1e1e;
  }
  a:visited {
    color: white;
  }

  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 60vh;
}

.LNunten {
  position: absolute;
  bottom: 0;
  padding: 0 20px 30px 20px;
  text-align: center;
}

.legalnotice {
  margin-bottom: 1em;
}

.impressum {
  background: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

h3 {
  color: white;
  font-size: 1em;
  font-weight: normal;
  text-decoration: underline;
}

h2 {
  color: white;
  a:link {
    text-decoration: none;
    color: white;
  }
  a:hover {
    color: #803dec;
  }
  a:active {
    color: #1e1e1e;
  }
  a:visited {
    color: white;
  }
}

img {
  width: 100%;
  height: 100%; /* Bild kennt die Figure-Höhe */
  object-fit: cover; /* füllt die Box, schneidet ggf. ab */
  object-position: center; /* vertikal + horizontal zentriert */
  display: block;
}

.scrollbox figure {
  margin-top: -7px;
  padding: 0 10px 32px 10px;
  overflow: hidden;
  object-position: center;
}

footer {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to right, #7e7d48, #dce1ad, #abd7a7, #235730);
  width: 100%;
  height: 20px;
}

@media (max-width: 600px) {
  .aboutContainer {
    flex-direction: column;
  }
}
