﻿/* =========================================
   Algemene stijlen
========================================= */

::placeholder {
  color: #7c428f;
  opacity: 0.3; /* Firefox */
}

body {
  background-color: #f8f9fa;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
}

h2 {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Segoe UI", Tahoma, Geneva, sans-serif;

}

.text-purple {
  color: #64226b !important;
}

.custom-card {
  background-color: #CFA7C9;
  color: #4b1d56;
}

.custom-card .card-title {
  color: #4b1d56 !important;
}

.btn-purple {
  background-color: #802d85;
  color: #ffffff;
  border: none;
  font-weight: bold;
}

.btn-purple:hover {
  background-color: #7c428f;
  color: #ffffff;
}

/* ===============================
   Banner
   =============================== */
.header-banner {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: all 0.5s ease-out;
  opacity: 0;
}

.header-banner.active {
  opacity: 1;
}

header {
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* ===============================
   Navigatie wrapper en balk
   =============================== */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: transparent;
  transition: all 0.4s ease;
}

nav {
  width: 100%;
  max-width: 1000px;
  background: #802d85;
  border-bottom: 2px solid #7c428f;
  box-shadow: 0 4px 6px rgba(0,0,0,0.25);
  border-radius: 0 0 16px 16px;
  transition: all 0.4s ease;
}

.nav-wrapper.sticky nav {
  max-width: 100%;
  border-radius: 0;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  background: #802d85;
  animation: fadeSticky 0.4s ease forwards;
}

@keyframes fadeSticky {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   Navigatie container en logo
   =============================== */
.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* standaard mobiel */
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  box-sizing: border-box;
}

.logo {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
}

.logo.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo img {
  max-height: 50px;
  width: auto;
  display: block;
  margin-top: 10px;
}

/* ===============================
   Navigatielinks
   =============================== */
.nav-links {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 7px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.nav-links li a svg {
  margin-right: 6px;
  vertical-align: middle;
}

.nav-links li a:hover {
  background-color: #e8d4e5;
  color: #4b1d56;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-links li a.active {
  background-color: #7d4390;
  color: white;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===============================
   Hamburger-menu
   =============================== */
.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 35px;  
  height: 5px;  
  margin: 6px 0;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===============================
   Back-to-top knop
   =============================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #802d85;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1100;
  font-size: 16px;
}

.back-to-top:hover {
  background-color: #7c428f;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Mobiel + iPad portrait (max-width: 820px)
   =============================== */
@media screen and (max-width: 820px) {
  nav {
    border-radius: 0;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 12px;
    box-sizing: border-box;
  }

  .logo img {
    max-height: 35px;
    margin: 0;
  }

  .menu-toggle {
    display: block;
    font-size: 50px;
    padding: 0;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: rgba(124, 90, 133, 0.95);
    transition: left 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin: 0;
    padding: 0;
  }

  .nav-links.active {
    left: 0;
  }

  @media screen and (max-width: 768px) {
    .logo-stack,
    .quote-box {
      display: none !important;
    }

    /* Mobiel: ronde terug naar boven knop met witte pijl */
    .back-to-top {
      width: 45px;
      height: 45px;
      padding: 0;
      border-radius: 50%;
      text-align: center;
      line-height: 45px;
      bottom: 20px;
      right: 15px;
      font-size: 0;
    }

    .back-to-top .desktop-text {
      display: none;
    }

    .back-to-top .mobile-icon {
      display: inline-block;
    }

    .back-to-top .mobile-icon svg {
      width: 24px;
      height: 24px;
      fill: white;
    }
  }

  /* iPad portrait: knop zoals landscape */
  @media screen and (min-width: 769px) and (max-width: 820px) {
    .back-to-top {
      width: auto;
      min-width: 120px;
      height: 45px;
      padding: 0 20px;
      border-radius: 50px;
      text-align: center;
      line-height: 45px;
      bottom: 20px;
      right: 15px;
      font-size: 16px;
    }

    .back-to-top .desktop-text {
      display: inline-block;
      font-size: 16px;
      line-height: normal;
    }

    .back-to-top .mobile-icon {
      display: none;
    }
  }
}

/* ===============================
   iPad Landscape (821–1024px)
   =============================== */
@media screen and (min-width: 821px) and (max-width: 1024px) and (orientation: landscape) {
  .header-banner {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
  }

  .nav-container {
    padding: 10px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    padding-left: 5px;
  }

  .nav-links {
    flex-wrap: nowrap;
    padding-right: 10px;
    overflow: hidden;
  }
}

/* ===============================
   Desktop >1024px
   =============================== */
@media screen and (min-width: 1025px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
  }

  .logo img {
    margin-top: 0;
  }

  .nav-links {
    margin: 0;
    padding-right: 15px;
    flex-wrap: nowrap;
  }

  .logo {
    margin-left: 0;
    padding-left: 10px;
  }
}

/* ===============================
   Kleine schermen (max-width: 480px)
   =============================== */
@media screen and (max-width: 480px) {
  .logo img {
    max-height: 40px;
  }
}

/* ===============================
   Main content padding
   =============================== */
main {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===============================
   Main content Kaarten
   =============================== */

.dansschool-knop {
  display: inline-block;         
  float: right;                  /* rechts uitlijnen */
  background-color: #802d85;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;             /* kleinere knop */
  font-weight: bold;
  cursor: pointer;
  font-size: 10px;               /* kleiner lettertype */
  transition: all 0.3s ease;
  text-decoration: none;
}

.dansschool-knop:hover {
  background-color: #7c428f;
}

.dansschool-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 16px;
    color: #761D7B;
    line-height: 1.6;
    text-align: justify;
}

.dansschool-card {
    
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}


.dansschool-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.dansschool-image-left,
.dansschool-image-right {
    flex: 0 0 250px;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.dansschool-image-left {
    margin-right: 10px;
}

.dansschool-image-right {
    margin-left: 10px;
}

.dansschool-text {
    flex: 1 1 0;
}

.dansschool-fullwidth-text {
    width: 100%;
    margin-bottom: 20px;
}

@media screen and (max-width: 700px) {
    .dansschool-row {
        flex-direction: column;
    }
    .dansschool-image-left,
    .dansschool-image-right {
        margin: 0 auto 10px auto;
        text-align: center;
        display: block;
    }
}
