/* =========================================================
   BASIS
========================================================= */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #f2f2f2;
  color: #222;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

main h1 {
  font-family: 'Montserrat', sans-serif;
  color: #0070b0;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   LINKS
========================================================= */
.text-link {
  color: #0070b0;
  font-weight: 600;
  text-decoration: underline;
}

.text-link:hover {
  text-decoration: none;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 40px;
  color: white;
  background: linear-gradient(
    90deg,
    #0070b0 0%,
    #2fa4e7 50%,
    #0070b0 100%
  );
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;

  text-decoration: none;
  color: white;
}

.logo img {
  width: auto;
  height: 70px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;

  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo-sub {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a,
.nav-parent {
  display: inline-flex;
  align-items: center;

  padding: 8px 14px;
  border-radius: 6px;

  color: white;
  font-weight: 600;
  text-decoration: none;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.main-nav a:hover,
.nav-parent:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  margin-left: 6px;
  font-size: 0.7rem;

  transition: transform 0.3s ease;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;

  display: none;
  flex-direction: column;

  min-width: 180px;
  overflow: hidden;

  border-radius: 10px;
  background: white;

  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

  z-index: 2000;
}

.nav-submenu a {
  padding: 12px 16px;

  color: #0070b0;
  font-weight: 600;
}

.nav-submenu a:hover {
  background: #f2f2f2;
  transform: none;
}

.nav-dropdown:hover .nav-submenu {
  display: flex;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  overflow: hidden;

  padding: 100px 20px 160px;

  text-align: center;
  color: white;

  background: linear-gradient(
    180deg,
    #4fb5ec 0%,
    #2fa4e7 40%,
    #0070b0 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 20px;

  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;

  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button,
.download-button {
  display: inline-block;

  padding: 14px 28px;
  border-radius: 8px;

  font-weight: 700;
  text-decoration: none;
  text-align: center;

  transition:
    background 0.3s ease,
    transform 0.25s ease;
}

.cta-button {
  background: #ffffff;
  color: #0070b0;
}

.cta-button:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

.download-button {
  background: #0070b0;
  color: white;
}

.download-button:hover {
  background: #005b8f;
}

/* Hero Bild */
.hero-image {
  position: absolute;

  top: calc(50% + 80px);
  left: 50%;

  width: 80%;
  max-width: 1000px;

  opacity: 0.3;

  transform: translate(-50%, -50%);

  z-index: 1;
}

.hero-image img {
  border-radius: 12px;
}

/* =========================================================
   ANIMATIONEN
========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);

  transition:
    opacity 1s ease,
    transform 1s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   AKTUELLES / INSTAGRAM
========================================================= */
.aktuelles {
  margin: 60px 0;
}

.aktuelles h2 {
  margin-bottom: 30px;

  text-align: center;
  font-size: 2rem;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.instagram-card {
  overflow: hidden;

  padding: 12px;
  border-radius: 14px;

  background: #ffffff;

  box-shadow: 0 6px 20px rgba(0,0,0,0.12);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.instagram-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

.instagram-card iframe {
  width: 100%;
  border: none;
}

/* =========================================================
   DIENSTPLAN
========================================================= */
.dienstplan-info {
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.pdf-wrapper {
  width: 100%;
  height: 700px;

  overflow: hidden;

  border: 2px solid #0070b0;
  border-radius: 8px;

  background: #ffffff;
}

.pdf-wrapper iframe,
.pdf-wrapper embed {
  width: 100%;
  height: 100%;
  border: none;
}

.download-area {
  margin-top: 30px;
  text-align: center;
}

/* =========================================================
   BEITRITT
========================================================= */
.beitritt {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.beitritt-hero {
  margin-bottom: 40px;

  padding: 80px 20px;
  border-radius: 12px;

  text-align: center;
  color: white;

  background: linear-gradient(
    180deg,
    #4fb5ec 0%,
    #2fa4e7 40%,
    #0070b0 100%
  );
}
/* =========================================================
   ÜBER UNS
========================================================= */
.ueber-uns {
  max-width: 900px;
  margin: 0 auto 80px;

  text-align: center;
}

.ueber-uns h1 {
  margin-bottom: 20px;

  font-family: 'Montserrat', sans-serif;
  color: #0070b0;
}

.ueber-uns-intro {
  margin-bottom: 50px;

  font-size: 1.1rem;
  line-height: 1.7;
}

.ueber-uns-links {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 30px;
}

.ueber-uns-card {
  display: block;

  padding: 30px;
  border-radius: 16px;

  color: #222;
  text-decoration: none;

  background: #ffffff;

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ueber-uns-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.ueber-uns-card h2 {
  margin-bottom: 10px;
  color: #0070b0;
}

/* =========================================================
   GESCHICHTE
========================================================= */
.geschichte {
  max-width: 1100px;
  margin: 0 auto 80px;
}

.geschichte h1 {
  margin-bottom: 50px;

  text-align: center;

  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;

  color: #0070b0;
}

.geschichte-block {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 40px;
  align-items: center;
}

.geschichte-text h2 {
  margin-bottom: 15px;
  color: #0070b0;
}

.geschichte-text p {
  line-height: 1.7;
}

.geschichte-bild img {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* =========================================================
   TEAM
========================================================= */
.team {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 40px 20px;
}

/* Intro */
.team-intro {
  margin-bottom: 50px;
  text-align: center;
}

.team-intro h1 {
  margin-bottom: 15px;

  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;

  color: #0070b0;
}

.team-intro p {
  max-width: 700px;
  margin: 0 auto 30px;

  font-size: 1.1rem;
  line-height: 1.6;
}

/* Gruppenbild */
.team-group-image img,
.team-member-image img {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Mitglieder */
.team-members {
  display: flex;
  flex-direction: column;

  gap: 60px;
}

.team-member {
  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;
  gap: 40px;
}

/* Wechsel Bild/Text */
.team-member:nth-child(even) .team-member-image {
  order: 2;
}

.team-member:nth-child(even) .team-member-info {
  order: 1;
}

/* Text */
.team-member-info h2 {
  margin-bottom: 10px;

  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;

  color: #0070b0;
}

.team-member-info p {
  margin-bottom: 5px;
  line-height: 1.6;
}

/* =========================================================
   KONTAKT
========================================================= */
.kontakt {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.kontakt-intro {
  margin-bottom: 40px;

  text-align: center;
  font-size: 1.2rem;
}

.kontakt-personen {
  display: flex;
  flex-direction: column;

  gap: 50px;
}

.kontakt-block {
  display: grid;
  grid-template-columns: 200px 1fr;

  align-items: center;
  gap: 30px;
}

/* Bilder */
.kontakt-bild img {
  width: 200px;
  height: 200px;

  object-fit: cover;
}

/* Text */
.kontakt-info h2 {
  margin-bottom: 10px;
  color: #0070b0;
}

.kontakt-info p {
  margin: 5px 0;
}

.kontakt-info a {
  color: #0070b0;
  text-decoration: underline;
}

.kontakt-info a:hover {
  text-decoration: none;
}

/* =========================================================
   KONTAKT – GOOGLE MAPS
========================================================= */
.kontakt-map {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 20px;

  text-align: center;
}

.kontakt-map h2 {
  margin-bottom: 10px;

  font-family: 'Montserrat', sans-serif;
  color: #0070b0;
}

.kontakt-map p {
  margin-bottom: 25px;
  line-height: 1.6;
}

.map-wrapper {
  overflow: hidden;

  width: 100%;
  height: 450px;

  border-radius: 16px;

  box-shadow: 0 14px 35px rgba(0,0,0,0.2);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   IM AUFBAU
========================================================= */
.im-aufbau {
  max-width: 800px;
  margin: 80px auto;
  padding: 60px 30px;

  text-align: center;

  background: #ffffff;
  border-radius: 20px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.im-aufbau-icon {
  margin-bottom: 20px;
  font-size: 4rem;
}

.im-aufbau h1 {
  margin-bottom: 20px;

  font-family: 'Montserrat', sans-serif;
  color: #0070b0;
}

.im-aufbau p {
  margin-bottom: 35px;

  font-size: 1.1rem;
  line-height: 1.7;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  margin-top: 60px;

  color: white;

  background: linear-gradient(
    90deg,
    #0070b0 0%,
    #2fa4e7 50%,
    #0070b0 100%
  );
}

.footer-inner {
  max-width: 1200px;
  margin: auto;

  padding: 40px 20px;

  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-block {
  flex: 1;
  min-width: 220px;
}

.social-links {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.social-links a {
  color: white;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding: 12px 20px;

  text-align: center;

  background: rgba(0,0,0,0.15);
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .instagram-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobilgeräte */
@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2rem;
  }

  /* Hero Buttons */
  .hero-buttons {
    flex-direction: column;
    align-items: center;

    gap: 16px;
  }

  .hero-buttons a {
    width: 80%;
    max-width: 300px;
  }

  /* Layouts */
  .geschichte-block,
  .team-member,
  .kontakt-block,
  .ueber-uns-links {
    grid-template-columns: 1fr;
  }

  .team-member,
  .kontakt-block {
    text-align: center;
  }

  /* Team Reihenfolge zurücksetzen */
  .team-member:nth-child(even) .team-member-image,
  .team-member:nth-child(even) .team-member-info {
    order: unset;
  }

  /* Kontaktbilder */
  .kontakt-bild img {
    margin: 0 auto;
  }

  /* PDF */
  .pdf-wrapper {
    height: 450px;
  }

  /* Maps */
  .map-wrapper {
    height: 320px;
  }
}

/* Kleine Handys */
@media (max-width: 640px) {

  .instagram-feed {
    grid-template-columns: 1fr;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 400px) {

  .hero-buttons a {
    width: 90%;
    max-width: 260px;
  }
}