/* Background overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.07;
  z-index: -1;
}

/* General body styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f8fa;
  color: #222;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Header with logo and nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  color: #0a3d62;
  font-size: 1.1rem;
}

/* Burger icon (mobile only) */
header .burger {
  flex: 1;
  text-align: left;
  font-size: 1.5rem;
  color: #0a3d62;
  cursor: pointer;
  display: none;
}

/* Navigation links (desktop) */
nav {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #0a3d62;
  transition: color 0.25s ease;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

nav a:hover {
  background-color: #0a3d62;
  color: white;
}

/* Main layout */
main {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 90px 1rem 40px;
}

/* Sections */
section {
  background: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  min-width: 320px;
  margin-bottom: 2rem;
  padding: 2rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Section headings */
section h2 {
  border-bottom: 3px solid #0a3d62;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  color: #0a3d62;
}

section p {
  text-align: justify;
}

/* Email links */
a.mail-link {
  color: #0a3d62;
  font-weight: 600;
}

a.mail-link:hover {
  text-decoration: underline;
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 42px;
  height: 42px;
  background-color: #0a3d62;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #062640;
}

#impressum {
  all: unset;
  display: block;
  font-size: 0.9rem;
  color: #555;
  padding: 2rem 1rem;
  margin: 3rem auto;
  line-height: 1.5;
  max-width: 700px;
  text-align: left; /* block itself not justified */
}
#impressum h2 {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  border: none;
}



/* Mobile styles */
@media (max-width: 768px) {
  header .burger {
    display: block;
  }

  nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  main {
    width: 90vw;
  }

  section {
    min-width: auto;
  }
}
