/* ========================================
   GRUNDEINSTELLUNGEN
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #F6F2EF;
  color: #2F2F2F;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #E76A86;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ========================================
   CONTAINER
   ======================================== */

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}


/* ========================================
   HEADER
   ======================================== */

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #D6D6D6;
  padding: 20px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
}

/* Logo auf dem PC links */
.site-logo {
  width: 150px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* Text neben dem Logo */
.site-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: nowrap;
}

.site-type {
  font-size: 0.9rem;
  color: #2F2F2F;
  white-space: nowrap;
}

.site-title h1 {
  margin: 0;
  color: #E76A86;
  font-size: 2rem;
  line-height: 1.1;
}

.site-owner {
  color: #2F2F2F;
  font-size: 0.9rem;
  white-space: nowrap;
}


/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.nav-link {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 7px;
  color: #2F2F2F;
  font-size: 15px;
  line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: #F6DCE2;
  color: #2F2F2F;
  text-decoration: none;
}

.nav-link.active {
  background-color: #E76A86;
  color: #FFFFFF;
}

.nav-link.active:hover {
  background-color: #E76A86;
  color: #FFFFFF;
}


/* ========================================
   HAMBURGER-MENÜ
   ======================================== */

.menu-toggle {
  display: none;
}


/* ========================================
   HAUPTINHALT
   ======================================== */

main.container {
  padding-top: 35px;
  padding-bottom: 50px;
}

h1,
h2,
h3 {
  color: #2F2F2F;
  line-height: 1.25;
}

h2 {
  font-size: 30px;
  margin-top: 0;
}

h3 {
  font-size: 22px;
}

p {
  margin-top: 0;
  margin-bottom: 18px;
}

/* ========================================
   HERO-BEREICH
   ======================================== */

.hero {
  background-color: #FFFFFF;
  padding: 35px;
  margin-bottom: 35px;
  border-radius: 12px;
  border-left: 5px solid #E76A86;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 25px;
}

.hero h2 {
  margin-bottom: 15px;
}

.hero p:last-child {
  margin-bottom: 0;
}

/* ========================================
   KARTEN / KURSE
   ======================================== */

.course-list,
.card-grid,
.events,
.press-articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.card-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 8px;
}

.course-card,
.event-card,
.press-item,
.card {
  background-color: #FFFFFF;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #D6D6D6;
  box-shadow: 0 3px 10px rgba(47, 47, 47, 0.06);
  color: #2F2F2F;
  text-decoration: none;
}

.card h3 {
  color: #E76A86;
  margin-top: 0;
}

.card p {
  color: #2F2F2F;
}

.card:hover {
  border-color: #E76A86;
  background-color: #F6DCE2;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(47, 47, 47, 0.12);
}

.card-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  border-radius: 8px;
}

.card,
.card:hover,
.card:visited,
.card:active {
  text-decoration: none;
}

.course-card h2,
.event-card h2,
.press-item h2,
.card h3 {
  margin-top: 18px;
  margin-bottom: 12px;
}

.course-card p:last-child,
.event-card p:last-child,
.press-item p:last-child,
.card p:last-child {
  margin-bottom: 0;
}


/* ========================================
   BILD-PLATZHALTER
   ======================================== */

.thumb {
  width: 100%;
  min-height: 180px;
  background-color: #D6D6D6;
  border-radius: 8px;
}


/* ========================================
   GALERIE
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  margin: 0;
  background-color: #FFFFFF;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #D6D6D6;
  box-shadow: 0 3px 10px rgba(47, 47, 47, 0.06);
}

.gallery-item .thumb {
  min-height: 180px;
}

.gallery-item figcaption {
  padding: 12px 4px 4px 4px;
  text-align: center;
  font-weight: 600;
  color: #2F2F2F;
}


/* ========================================
   ALLGEMEINE INHALTSBEREICHE
   ======================================== */

.content-section,
.contact-section {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #D6D6D6;
}

.content-section h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.content-section h2:not(:first-child) {
  margin-top: 30px;
}


/* ========================================
   KONTAKT
   ======================================== */

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info h2,
.contact-form-wrapper h2 {
  margin-top: 0;
}

.contact-form {
  width: 100%;
  max-width: 650px;
}

.contact-form label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2F2F2F;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #D6D6D6;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #2F2F2F;
  font-family: inherit;
  font-size: 16px;
}

.contact-form input {
  min-height: 52px;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #E76A86;
  border-color: #E76A86;
}


/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 7px;
  border: none;
  background-color: #E76A86;
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}

.btn:hover {
  background-color: #D95775;
  color: #FFFFFF;
  text-decoration: none;
}

.btn-primary {
  background-color: #E76A86;
  color: #FFFFFF;
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: #2F2F2F;
  color: #FFFFFF;
  padding: 25px 0;
  text-align: center;
  font-size: 14px;
}

.site-footer .container {
  padding-top: 0;
  padding-bottom: 0;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 850px) {

  .course-list,
  .card-grid,
  .events,
  .press-articles {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}


/* ========================================
   HANDY
   ======================================== */

@media (max-width: 600px) {

  body {
    font-size: 16px;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .site-header {
    padding: 15px 0;
  }


  /* ========================================
     KOPFBEREICH AUF DEM HANDY
     ======================================== */

  .site-header .container {
    position: relative;
  }

  .site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    /* Platz für das Hamburger-Menü */
    width: calc(100% - 55px);
    margin: 0 auto;
    padding: 5px 0 0 0;
  }

  .site-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    text-align: center;
  }

  .site-type {
    font-size: 0.8rem;
    white-space: normal;
  }

  .site-title h1 {
    margin: 0;
    width: 100%;
    max-width: 100%;
    font-size: 1.9rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: normal;
  }

  .site-owner {
    align-self: center;
    font-size: 0.8rem;
    white-space: normal;
  }

  .site-logo {
    width: 150px;
    height: auto;
  }


  /* ========================================
     HAMBURGER
     ======================================== */

.menu-toggle {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;

  width: 40px;
  height: 40px;

  padding: 0;
  border: none;
  background: transparent;

  color: #E76A86;

  font-size: 28px;
  line-height: 40px;
  text-align: center;

  cursor: pointer;
}

.menu-toggle:hover {
  background: transparent;
  color: #D95775;
}

  /* ========================================
     NAVIGATION
     ======================================== */

  .main-nav {
    display: none;
    margin-top: 20px;
  }

  .main-nav.menu-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

.nav-link {
  width: 100%;
  padding: 6px 7px;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}

  /* ========================================
     HAUPTINHALT
     ======================================== */

  main.container {
    padding-top: 25px;
    padding-bottom: 35px;
  }

  h2 {
    font-size: 26px;
  }

  .hero {
    padding: 24px 20px;
    margin-bottom: 25px;
  }


  /* ========================================
     KARTEN
     ======================================== */

  .course-card,
  .event-card,
  .press-item,
  .card {
    padding: 20px;
  }

    .card,
  .card:hover,
  .card:visited,
  .card:active {
    text-decoration: none;
  }

  .thumb {
    min-height: 160px;
  }


  /* ========================================
     GALERIE
     ======================================== */

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-item .thumb {
    min-height: 200px;
  }


  /* ========================================
     INHALTSBEREICHE
     ======================================== */

  .content-section,
  .contact-section {
    padding: 22px 18px;
  }


  /* ========================================
     KONTAKTFORMULAR
     ======================================== */

  .contact-form input {
    min-height: 54px;
  }

  .contact-form textarea {
    min-height: 200px;
  }


  /* ========================================
     BUTTONS
     ======================================== */

.btn {
  padding: 7px 16px;
  line-height: 1.3;
}

  .site-footer .footer-copyright {
    display: block;
  }

  .site-footer .footer-separator-first {
    display: none !important;
  }

  .site-footer .footer-links {
    display: block;
    margin-top: 4px;
  }

}
