/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #fefcf7;
  color: #444;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */

.header-img
{
  width:800px;
  max-width: 800px;
  max-width: 100%;
  margin: 3em auto;
  display: block;
}

/* Bubbles im Hintergrund */
.hintergrundwellen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.welle-blau {
  background-color: #d3e4ef;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  position: absolute;
  top: -400px;
  right: -300px;
}

.welle-mitte {
  background-color: #7db56854;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  position: absolute;
  top: 800px;
  left: -200px;
  opacity: 0.5;
}

.welle-apricot {
  background-color: #ffe6d5;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  position: absolute;
  bottom: -400px;
  right: -300px;
}

/* Inhalt */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2em;
  position: relative;
  z-index: 1;
}
.text
{
  padding-left: 3em;
  display: block;
  max-width:800px;
  margin:0 auto;
}

h1 {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #34649e;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #4a4a4a;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #444;
  max-width: 90ch;
}

/* Kästchen */
.kaestchen-grid {
  display: grid;
  max-width: 750px;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-items: center;
  padding: 1rem;
}

.kaestchen {
  background-color: #eeede9;
  border-radius: 30px;
  padding: 2rem;
  width: 100%;
  max-width: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.kaestchen:hover {
  transform: translateY(-4px);
}

.kaestchen h2 {
  font-size: 1.3rem;
  margin-top: 1rem;
  color: #333;
}

.kaestchen ul {
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
  width: 100%;
  color: #444;
}

.kaestchen ul li {
  margin-bottom: 0.5rem;
}

.blurb-img {
  width: 80px;
  height: auto;
}

/* Kontakt */
.kontakt-box {
  text-align: center;
  background-color: #fbd0b9;
  border-radius: 25px;
  padding: 2rem;
  max-width: 750px;
  margin: 2rem auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.1rem;
  color: #444;
}

/* Footer */
.footer-img {
  display: block;
  margin: 3rem auto 1rem;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: #34649e;
  color: white;
  border: none;
  padding: 0.8rem 1.1rem;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #244b74;
}


/* Responsive */
@media (max-width: 768px) {

  .text
  {
    padding:0;
  }

  .kaestchen-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #34649e;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}


nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  /* Startzustand */
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Zentriert & etwas luftiger */
.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3.2rem;
}

.nav-links li a {
  color: #5a5a5a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: #34649e;
}

/* Mobile Menü weiterhin lesbar */
@media (max-width: 768px) {
  .nav-links {
    background-color: #ffffff;
  }
}



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

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.show {
    display: flex;
  }
}
