@import url("./font-inter/inter.css");

/* Grund-Reset */
* {
  font-family: "Inter", system-ui, sans-serif;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: transparent;
  overflow-x: hidden;
}

/* =========================
   Hintergrund nur auf Desktop
========================= */
.page-background {
  background: url('/assets/background.webp') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .page-background {
    background: none;
  }
}

/* =========================
   NAVIGATIONSBAR
========================= */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 900px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 30px;
  margin: 0 auto;

  background: rgba(123, 226, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: inherit;
  padding: 10px;
  display: flex;
  align-items: center;
  font-size: large;
  transition: transform 0.2s ease;
}

nav ul li a:hover {
  transform: scale(0.85);
}

/* Logo */
.logo-text {
  width: 200px;
  margin-right: 10px;
  padding-left: 10px;
  position: relative;
  z-index: 101;
}

/* Burger-Menü (mobil) */
.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  margin-left: auto;
  user-select: none;
  position: relative;
  z-index: 102;
}

/* =========================
   CONTENT-BEREICH
========================= */
.content {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 30px;

  min-height: 100vh;
  background-color: aliceblue;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);

  z-index: 0;
}

/* =========================
   RESPONSIVE: MOBIL
========================= */
@media (max-width: 768px) {
  nav {
    width: 100vw;
    padding: 10px 15px;
    margin: 0;
  }

  .burger {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10000;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: aliceblue;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.1);
    z-index: 0;

    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: transform 0.4s ease, opacity 0.3s ease;
  }

  nav ul.active {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav ul li a {
    padding: 15px 20px;
  }

  .content {
    margin: 0 auto 10px auto !important;
    padding: 15px 20px !important;
    width: auto !important;
    max-width: 100% !important;
    border-radius: 0;
    box-shadow: none;
  }
}
