:root{
  --bg:#f1d547;
  --bg-alt:#DEBD24;
  --text:#1f1f1f;
  --card:#f9e88a;
  --accent:#b08b57;
  --accent-hover:#967347;
  --shadow:0 14px 35px rgba(0,0,0,0.18);
  --radius:20px;
  --max-width:1200px;
  --section-space:70px;

  --success-bg:#e6f7ea;
  --success-text:#1f6b35;
  --success-border:#9fd3ad;

  --error-bg:#fdeaea;
  --error-text:#9b1c1c;
  --error-border:#f0b4b4;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

.wrapper{
  width:min(var(--max-width),calc(100% - 32px));
  margin:0 auto;
}

img{
  max-width:100%;
  display:block;
}

h1,h2,h3,h4,p,ul{
  margin-top:0;
}

ul{
  margin-bottom:0;
  padding-left:22px;
}


.btn-secondary{
  background:#6f6f6f;
}

.btn-secondary:hover{
  background:#585858;
}

.map-consent{
  min-height:360px;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:14px;
}

.map-consent h4{
  margin:0;
  font-size:1.5rem;
}

.map-consent p{
  margin:0;
  max-width:520px;
}

.map-consent-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

.map-consent-note{
  font-size:0.95rem;
  opacity:0.9;
}

.map-frame{
  width:100%;
  height:100%;
  min-height:360px;
}

.map-frame iframe{
  width:100%;
  height:100%;
  min-height:360px;
  border:0;
  display:block;
}

.intro,
.gallery,
.offers,
.location,
.contact{
  padding:var(--section-space) 0;
}

/* HEADER */

.hero{
  position:relative;
  min-height:420px;
  background:url('../pics/wing-chun-kiel-header.jpeg') center center / contain no-repeat;
  background-color:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,0.55),rgba(0,0,0,0.15));
}

.hero-content{
  position:relative;
  z-index:1;
  width:min(var(--max-width),calc(100% - 32px));
  margin:0 auto;
  padding:48px 0;
  color:white;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-content h1{
  margin:0 0 10px;
  font-size:clamp(2rem,4vw,3.3rem);
}

.hero-content p{
  margin:0;
  max-width:700px;
}

/* SOCIAL ICONS */

.social-icons{
  position:absolute;
  top:20px;
  right:20px;
  display:flex;
  gap:14px;
  z-index:3;
}

.social-icons a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:rgba(0,0,0,0.42);
  backdrop-filter:blur(4px);
  transition:transform 0.25s ease, background 0.25s ease;
}

.social-icons a:hover{
  transform:scale(1.14);
}

.social-icons a:nth-child(1):hover{
  background:#1877f2;
}

.social-icons a:nth-child(2):hover{
  background:#e1306c;
}

.social-icons svg{
  width:20px;
  height:20px;
}

/* SECTION BACKGROUNDS */

.intro{ background:var(--bg); }

.gallery{
  background:var(--bg-alt);
  overflow:hidden;
}

.offers{ background:var(--bg); }
.location{ background:var(--bg-alt); }
.contact{ background:var(--bg); }

/* INTRO */

.intro-box{
  background:var(--card);
  border-radius:var(--radius);
  padding:36px;
  box-shadow:var(--shadow);
  position:relative;
  min-height:800px;
}

.intro-text{
  padding-right:120px;
  min-height:420px;
}

.intro-text p{
  margin:0 0 18px;
}

.intro-text p:last-child{
  margin-bottom:0;
}

.intro-text h2{
  line-height:1.2;
}

.intro-text ul{
  line-height:1.7;
}

.intro-nav{
  position:absolute;
  right:24px;
  bottom:24px;
  display:flex;
  align-items:center;
  gap:10px;
}

.intro-nav button{
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,0.95);
  color:var(--text);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
  cursor:pointer;
  font-size:1.4rem;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.2s ease, background 0.2s ease;
}

.intro-nav button:hover{
  transform:scale(1.06);
  background:white;
}

.intro-nav button:active{
  transform:scale(0.98);
}

.intro-indicator{
  min-width:52px;
  text-align:center;
  font-weight:bold;
}

/* GALLERY */

.gallery-shell{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
}

.gallery-wrapper{
  position:relative;
  flex:1;
  width:100%;
  overflow:hidden;
  padding:36px 0 44px;
  cursor:grab;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  touch-action:pan-y;
}

.gallery-wrapper::-webkit-scrollbar{
  display:none;
}

.gallery-wrapper.dragging{
  cursor:grabbing;
  user-select:none;
}

.gallery-track{
  display:flex;
  align-items:center;
  gap:18px;
  width:max-content;
  will-change:transform;
}

.gallery-item{
  flex:0 0 auto;
  position:relative;
  z-index:1;
}

.gallery-item img{
  display:block;
  width:auto;
  height:260px;
  border-radius:18px;
  box-shadow:var(--shadow);
  object-fit:cover;
  transform-origin:center center;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease;
  will-change:transform;
  cursor:pointer;
}

.gallery-item.is-hovered{
  z-index:25;
}

.gallery-item.is-hovered img{
  box-shadow:0 24px 50px rgba(0,0,0,0.34);
}

.gallery-nav{
  flex:0 0 auto;
  width:48px;
  height:48px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,0.9);
  color:var(--text);
  box-shadow:0 8px 20px rgba(0,0,0,0.18);
  cursor:pointer;
  font-size:1.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.2s ease, background 0.2s ease;
}

.gallery-nav:hover{
  transform:scale(1.06);
  background:white;
}

.gallery-nav:active{
  transform:scale(0.98);
}

/* OFFERS */

.offer-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px;
  align-items:stretch;
}

.offer-card{
  background:var(--card);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:110px 26px 28px;
  text-align:center;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  height:100%;
}

.offer-image{
  width:150px;
  height:150px;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto 18px;
  border:8px solid var(--card);
  box-shadow:0 10px 24px rgba(0,0,0,0.14);
  flex-shrink:0;
  transform:translateY(-70px);
}

.offers h2{
  text-align:center;
}

.offer-card h2,
.offer-card h3{
  margin:-50px 0 18px;
  font-size:1.8rem;
}

.text{
  white-space:pre-line;
  margin-bottom:22px;
  width:100%;
  flex:1;
}

/* BUTTONS */

.btn{
  display:inline-block;
  background:var(--accent);
  color:white;
  text-decoration:none;
  padding:14px 24px;
  border-radius:999px;
  font-weight:bold;
  border:none;
  cursor:pointer;
}

.btn:hover{
  background:var(--accent-hover);
}

/* LOCATION */

.location-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:stretch;
}

.location-text,
.location-map{
  background:var(--card);
  border-radius:20px;
  box-shadow:var(--shadow);
  height:100%;
}

.location-text{
  padding:28px;
  display:flex;
  flex-direction:column;
}

.location-text h2,
.location-text h3{
  font-size:1.8rem;
  margin-bottom:18px;
}

.location-text p{
  white-space:pre-line;
  margin:0;
  flex:1;
}

.location-map{
  overflow:hidden;
}

.location-map iframe{
  width:100%;
  height:100%;
  min-height:360px;
  border:0;
  display:block;
}

/* CONTACT */

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:stretch;
}

.contact-text,
.contact-form-wrap{
  background:var(--card);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:28px;
  height:100%;
  display:flex;
  flex-direction:column;
}

.contact-text h2,
.contact-text h3,
.contact-form-wrap h2,
.contact-form-wrap h3{
  font-size:1.8rem;
  margin-bottom:18px;
}

.contact-form-wrap form{
  display:flex;
  flex-direction:column;
  gap:14px;
  flex:1;
}

label{
  font-weight:bold;
}

input,
textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid #d2d2d2;
  border-radius:12px;
  font-size:1rem;
  font-family:inherit;
  background:white;
}

textarea{
  min-height:150px;
  resize:vertical;
  flex:1;
}

/* SUCCESS / ERROR MESSAGE */

.form-message{
  display:none;
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:18px;
  font-weight:bold;
  line-height:1.45;
  border:1px solid transparent;
}

.form-message.success{
  display:block;
  background:var(--success-bg);
  color:var(--success-text);
  border-color:var(--success-border);
}

.form-message.error{
  display:block;
  background:var(--error-bg);
  color:var(--error-text);
  border-color:var(--error-border);
}

/* FOOTER */

footer{
  background:var(--bg-alt);
  text-align:center;
  padding:var(--section-space) 0;
}

.footer-links{
  display:flex;
  justify-content:center;
  gap:28px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.footer-links a{
  color:var(--text);
  text-decoration:none;
  font-weight:bold;
}

.footer-links a:hover{
  text-decoration:underline;
}

.footer-address{
  font-size:0.98rem;
}

/* LIGHTBOX */

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.82);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 0.25s ease, visibility 0.25s ease;
  z-index:9999;
}

.lightbox.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.lightbox-image{
  max-width:min(92vw,1200px);
  max-height:88vh;
  border-radius:18px;
  box-shadow:0 24px 60px rgba(0,0,0,0.45);
}

.lightbox-close{
  position:absolute;
  top:18px;
  right:18px;
  width:52px;
  height:52px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,0.92);
  color:#111;
  font-size:2rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 26px rgba(0,0,0,0.28);
}

/* MOBILE */

@media(max-width:900px){
  :root{
    --section-space:55px;
  }

  .offer-grid,
  .location-grid,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .offer-card{
    padding:95px 26px 28px;
  }

  .offer-image{
    transform:translateY(-55px);
  }

  .offer-card h2,
  .offer-card h3{
    margin:-35px 0 18px;
  }

  .location-map iframe{
    min-height:320px;
  }

  .gallery-wrapper{
    padding:28px 0 34px;
  }

  .gallery-item img{
    height:210px;
  }

  .gallery-shell{
    gap:10px;
  }

  .gallery-nav{
    width:42px;
    height:42px;
    font-size:1.3rem;
  }

  .social-icons{
    top:16px;
    right:16px;
  }

  .intro-box{
    min-height:680px;
  }

  .intro-text{
    padding-right:0;
    padding-bottom:70px;
    min-height:560px;
  }

  .intro-nav{
    right:18px;
    bottom:18px;
  }

  .hero{
    min-height:320px;
    background-size:contain;
  }

  .hero-content{
    padding:36px 0;
  }

  .hero-content h1{
    font-size:clamp(1.6rem,7vw,2.4rem);
  }

  .hero-content p{
    max-width:92%;
    font-size:0.98rem;
  }

/* MAP FRAME */

.map-frame{
  width:100%;
  height:100%;
  min-height:360px;
}

.map-frame iframe{
  width:100%;
  height:100%;
  min-height:360px;
  border:0;
  display:block;
}

/* CONSENT MODAL */

.consent-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh; /* 🔥 WICHTIG */
  background:rgba(0,0,0,0.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:10000;
}

.consent-modal.is-open{
  display:flex;
}

.consent-box{
  width:min(520px,100%);
  background:var(--card);
  color:var(--text);
  border-radius:20px;
  box-shadow:0 20px 50px rgba(0,0,0,0.28);
  padding:28px;
  text-align:center;
}

.consent-box h3{
  margin:0 0 14px;
  font-size:1.7rem;
}

.consent-box p{
  margin:0 0 14px;
}

.consent-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin:18px 0 12px;
}

.btn-secondary{
  background:#6f6f6f;
}

.btn-secondary:hover{
  background:#585858;
}

.consent-note{
  font-size:0.95rem;
  margin-bottom:0;
}

.consent-note a{
  color:var(--text);
  font-weight:bold;
}

@media(max-width:900px){
  .map-frame{
    min-height:320px;
  }

  .map-frame iframe{
    min-height:320px;
  }

  .consent-box{
    padding:22px;
  }
}


}