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

h1, h2 {
    margin-left: 20px;
}

p {
    margin: 10px 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

ul {
   margin: 1rem 0;
    margin-bottom: 0.8rem;
  padding-left: 2rem;
}

li {
    margin-left: 20px;
}

li::before {
  content: square;
  display: inline-block;
  width: 1.2rem;
  margin-left: -1.2rem;
  color: rgba(0,0,0,0.4);
}

/* Header and hero */
header {
  position: relative;
  text-align: center;
  color: #fff;
  background: #000;
}

header nav {
  background: rgba(0,0,0,0.7);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

header nav ul li {
  margin: 0 1rem;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

header nav ul li a:hover {
  text-decoration: underline;
}

.hero {
  background: #000;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
}

.hero-overlay {
  position: absolute;
  pointer-events: none;
  bottom: -40px;
  left: 0;
  width: 150%;
  height: 30%;
  background-color: white;
  transform: skewY(-3deg);
  transform-origin: bottom right;
  z-index: 0;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.hero img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #000;
  display: inline-block;
}

.pre-overview-content {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-30px);
  width: 100%;
  color: #000;
}

.pre-overview-content img {
  width: 100%;
  max-width: 200px;
  vertical-align: middle;
}

/* Kendo section */
section#kendo-bg {
  position: relative;
  background-image: url('../images/kendo.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  max-width: 100vw;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Geschiedenis section */
section#geschiedenis-bg {
  position: relative;
  background-image: url('../images/geschiedenis.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  max-width: 100vw;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

section#geschiedenis-bg .geschiedenis-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* Lidmaatschap section */
section#lidmaatschap-bg {
  position: relative;
  background-image: url('../images/lidmaatschap.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  max-width: 100vw;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

section#lidmaatschap-bg .lidmaatschap-overlay, section#kendo-bg .kendo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

main#main {
 position:relative;
 top:-40px;
}

/* Kendo section */
#locatie.location-section {
  position: relative;
  background-image: url('../images/kendo.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  max-width: 100vw;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Location section */
#locatie.location-section {
  position: relative;
  background-image: url('../images/location.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  max-width: 100vw;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#locatie .location-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

#locatie .location-content {
  z-index: 2;
  max-width: 95vh;
  bottom: 6rem;
  position: absolute;
}

.location-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.location-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Intro text */
.intro-text, section#lidmaatschap .section, section#geschiedenis .section, section#contact .section, section#kendo .section, .gray-bg {
  background-color: #f7f7f7;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.intro-text p {
  margin: 10px 0;
}

/* Route button */
.route-button {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.route-button:hover {
  background-color: #1b5e20;
  transform: translateY(-2px);
}

/* Accordion */
.accordion {
  width: 100%;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.accordion hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 20px 0;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
}

.accordion-header {
  background-color: #f7f7f7;
  cursor: pointer;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-item.active .accordion-header {
  border-bottom: 1px solid #ccc;
}

.accordion-header:hover {
  background-color: #e2e2e2;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fff;
  padding: 0 20px;
}

.accordion-content p {
  margin: 10px 0;
}

.accordion-header::after {
  content: '+';
  font-size: 20px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.kamon-section-over-ons{
    display:flex;
    align-items:center;
    gap:40px;
}

.kamon-image-over-ons img{
    width:200px;
    height:auto;
}

.kamon-text-over-ons{
    flex:1;
}


/* Responsive navigation */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background: rgba(0,0,0,0.8);
  position: fixed;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #ffffff1c;
}

.nav-container .logo {
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  height: 54px;
}

#nav-kamon {
  opacity: 0;
  display: none;
  transition: opacity 0.5s ease;
}

.nav-container ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-container ul li {
  margin: 0 1rem;
}

.nav-container ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.nav-container ul li a:hover {
  text-decoration: underline;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  background-color: #00000000;
  border: 0;
}

/* Sections */
section {
  padding: 0rem 2rem;
  max-width: 95vh;
  margin: 0 auto;
}

section img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

section#terminologie{
    max-width: 91.5%;
}

/* Contact form */
form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert.error {
  background: #ffe6e6;
  border: 1px solid #ffb3b3;
}

.alert.success {
  background: #e6ffe6;
  border: 1px solid #b3ffb3;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #333;
  color: #fff;
  margin-top: 2rem;
}

/* Scroll animations */
.hidden-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
#banner {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
}

.btn-primary,
form button {
  display: inline-block;
  padding: 0.75rem;
  background-color: #ff4d4f;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.3s, transform 0.2s;
  border: none;
  outline: none;
}

.btn-primary:hover,
form button:hover {
  background-color: #e04345;
}

/* Location section alternate */
.location-section {
  text-align: center;
  padding: 3rem 1rem;
  background: #f8f9fa;
}

.location-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.map-wrapper {
  display: inline-block;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.map-wrapper:hover {
  transform: scale(1.02);
}

.map-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.route-button {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: #2e7d32; /* calm green */
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.3s;
}

.route-button:hover {
  background-color: #1b5e20;
}

/* --- iOS Background & Overlay Fixes --- */
section#kendo-bg,
section#geschiedenis-bg,
section#lidmaatschap-bg,
#locatie.location-section {
  background-repeat: no-repeat;       /* prevent repeated images */
  background-attachment: scroll;      /* fixed breaks on iOS */
  min-height: 60vh;                   /* ensure height on mobile */
  -webkit-backface-visibility: hidden; 
  -webkit-transform: translate3d(0,0,0);
  -webkit-flex-shrink: 0;             /* prevent flex collapse on iOS */
  flex-shrink: 0;
}

section#kendo-bg .kendo-overlay,
section#geschiedenis-bg .geschiedenis-overlay,
section#lidmaatschap-bg .lidmaatschap-overlay,
#locatie .location-overlay {
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0,0,0);
}

/* --- Accordion Fixes for iOS --- */
.accordion-content {
  -webkit-transition: max-height 0.3s ease, padding 0.3s ease;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* =========================
   GLOBAL SECTION LAYOUT
========================= */

main section:not([id$="-bg"]){
    max-width:800px;
    margin:70px auto;
    padding-bottom:40px;
    border-bottom:1px solid rgba(0,0,0,0.08);
    position:relative;
}

main section:last-child{
    border-bottom:none;
}


/* =========================
   TEXT READABILITY
========================= */

main section p{
    line-height:1.7;
    margin-bottom:16px;
}

main section li{
    margin-bottom:8px;
}


/* =========================
   HEADINGS
========================= */

main section h2{
    margin-bottom:20px;
    letter-spacing:0.04em;
}


/* =========================
   KAMON SECTION
========================= */

.kamon-section-over-ons{
    display:flex;
    align-items:center;
    gap:40px;
}

.kamon-image-over-ons{
    flex-shrink:0;
}

.kamon-image-over-ons img{
    width:200px;
    height:auto;
}

.kamon-text-over-ons{
    flex:1;
}


/* =========================
   JAPANESE STYLE LINE
========================= */

main section:not([id$="-bg"])::before{
    content:"";
    position:absolute;
    top:5px;
    height:40px;
    width:5px;
    background:#111;
    opacity:0.15;
}

/* =========================
   CONTENT BLOCK LAYOUT
========================= */

.content-block{
    max-width:800px;
    margin:70px auto;
    padding-bottom:40px;
    border-bottom:1px solid rgba(0,0,0,0.08);
    position:relative;
}

.content-block:last-child{
    border-bottom:none;
}


/* =========================
   VERTICAL LINE
========================= */

.content-block h2::before{
    content:"";
    position:absolute;
    height:40px;
    width:2px;
    background:#111;
    opacity:0.15;
    margin-left:-20px;
}


/* =========================
   TEXT READABILITY
========================= */

.content-block p{
    line-height:1.7;
    margin-bottom:16px;
}

.content-block li{
    margin-bottom:8px;
}


/* =========================
   HEADINGS
========================= */

.content-block h2{
    margin-bottom:20px;
    letter-spacing:0.04em;
}



/* Mobile styles */
@media (max-width: 768px) {
main section{
    margin:50px 20px;
}

.kamon-section-over-ons{
    flex-direction:column;
    text-align:center;
}

.kamon-image-over-ons img{
    width:100px;
}

main section::before{
    display:none;
}
  .hamburger {
    display: block;
  }

      .kamon-section-over-ons{
        flex-direction:column;
        text-align:center;
    }

    .kamon-image-over-ons img{
        width:110px;
    }

  #nav-links {
    overflow: hidden;
    flex-direction: column;
    background: rgba(0,0,0,0.8);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    transition: max-height 1s ease;
  }

  #nav-links.show {
    display: flex;
    max-height: 100vh;
  }

  #nav-links li {
    margin: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #ffffff1c;
  }

  .nav-container .logo img {
    display: none;
    width: auto;
    max-width: 54px;
    height: 100%;
  }

  .pre-overview-content img {
    max-width:140px;
    margin-top: 50px;
  }

  #main {
    padding: 0 10px;
  }

  section {
    padding: 2rem 0rem;
  }

  #nav-kamon {
    opacity: 100;
    display: block;
    transition: opacity 0.5s ease;
  }

  #nav-kamon.show {
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  section#kendo-bg,
  section#geschiedenis-bg,
  section#lidmaatschap-bg,
  #locatie.location-section {
    min-height: 50vh;
    background-attachment: scroll;
  }

  .accordion {
    width: 100%;
  }

  .accordion-content {
    padding: 10px 20px;
  }
.content-block{
    margin:50px 20px;
}

.content-block::before{
    display:none;
}

}

footer a {
    text-decoration:none;
    color: #fff;

}