/* =====================
   Variablen & Basis
   ===================== */
:root {
  --glass-bg:
    radial-gradient(40% 40% at 50% 52%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(120% 120% at 30% 30%, #ffffff 0%, #eef7ff 40%, #dbeeff 70%, #cfe6ff 100%);
  --glass-border: 2px solid rgba(70, 130, 180, 0.35);
  --glass-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.9),
    inset 0 -10px 20px rgba(70, 130, 180, 0.18),
    0 10px 24px rgba(17, 63, 102, 0.22);
  --text-color: #0f2542;

  --link-color: #0b63ff;
  --link-hover: #084bc5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to top, #87ceeb 0%, #b0e0e6 50%, #ffffff 100%);
  font-family: sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}

/* =====================
   Header / Navigation
   ===================== */

header,
.site-header {
  width: 100%;
  padding: 21px 32px 0;
  box-sizing: border-box;
  position: relative;
  backdrop-filter: blur(6px);
}

.logo {
  height: 150px;
  flex-shrink: 0;
  display: block;
}

/* Desktop Navigation:
   Logo bleibt links, Navigation sitzt mittig über dem Main */
.navbar {
  width: min(1000px, calc(100% - 40px));
  margin: 55px auto 0;
  padding-left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  margin: 5px 0;
  background: #1e3f66;
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #ff4500;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #ff4500;
}

/* Nav-Blasen */
.nav-item {
  width: 150px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  color: #0f2542;
  font-weight: bold;
  font-size: 22px;
  text-decoration: none;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 6px rgba(15, 37, 66, 0.22);
  animation: float 6s ease-in-out infinite;
}

.nav-item:hover {
  color: #ff4500;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* =====================
   Mobile Menü
   ===================== */

@media (max-width: 780px) {
  header,
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo burger"
      "nav nav";
    padding: 12px 16px 0;
  }

  .logo {
    grid-area: logo;
    height: 70px;
  }

  .hamburger {
    grid-area: burger;
    display: block;
    justify-self: end;
    align-self: center;
  }

  .navbar {
    grid-area: nav;
    width: 100%;
    margin: 8px 0 0;
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s ease;
  }

  .navbar.active {
    max-height: 400px;
    padding: 12px 16px 16px;
  }

  .nav-item {
    width: auto;
    height: auto;
    padding: 4px 0;
    font-size: 18px;
    text-align: right;
    background: none;
    box-shadow: none;
    border: none;
    animation: none;
  }
}

/* =====================
   Hauptinhalt
   ===================== */

.page-main {
  padding: 40px 24px;
  flex: 1 0 auto;
}

.content-box {
  max-width: 1000px;
  margin: 20px auto;
  padding: 32px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text-color);
}

/* =====================
   Freizeit Buttons
   ===================== */

.freizeit-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 80px;
  flex-wrap: wrap;
}

.freizeit-legal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.freizeit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: #6fa8bd;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(49, 90, 109, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.freizeit-btn:hover {
  background: #5d99ae;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(49, 90, 109, 0.24);
}

@media (max-width: 600px) {
  .freizeit-actions {
    gap: 18px;
  }
}
/* =====================
   Fußzeile
   ===================== */

.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  border-radius: 0;
  background:
    linear-gradient(to top, rgba(15, 37, 66, 0.9) 0%, rgba(40, 90, 130, 0.75) 60%, rgba(255, 255, 255, 0.05) 100%),
    radial-gradient(120% 120% at 30% 30%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  color: #e8f4ff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.08),
    0 -4px 10px rgba(17, 63, 102, 0.25);
  backdrop-filter: blur(6px);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.site-footer h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #fff;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: #e8f4ff;
  opacity: 0.9;
  text-decoration: none;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 28px 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =====================
   Link-Styling global
   ===================== */

a {
  color: var(--link-color);
  text-decoration: none;
}

a:visited {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--link-hover);
  outline-offset: 2px;
  border-radius: 6px;
  text-decoration: none;
}