:root {
  --dark: #011a25;
  --blue: #0092d0;
  --blue-light: #e4f7fe;
  --border: #e7eced;
  --container: 1285px;
  --gutter: max(78px, calc((100cqw - 1285px) / 2));
}

.page { container-type: inline-size; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--container), calc(100% - 155px)); margin: 0 auto; }
.center { text-align: center; }

/* ---------- shared ---------- */
.pill {
  display: flex; width: fit-content; align-items: center; justify-content: center;
  padding: 2px 10px; border: 1px solid var(--border); border-radius: 30px;
  font-size: 14px; line-height: 30px; font-weight: 500; color: var(--dark);
}
.pill--light { color: #fff; }

.h-36 { font-size: 36px; line-height: 46px; font-weight: 800; }
.h-46 { font-size: 46px; line-height: 56px; font-weight: 800; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 10px; border-radius: 36px; border: 1px solid transparent;
  font-size: 16px; line-height: 26px; font-weight: 500; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-outline { border-color: rgba(1, 26, 37, .4); color: var(--dark); }
.btn-sm { padding: 0 16px; min-height: 50px; }
.btn-arrow { padding: 0 20px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 10; top: 20px; left: 50%; transform: translateX(-50%);
  width: min(1390px, calc(100% - 50px)); min-height: 89px; padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 255px 71px 0 rgba(0,0,0,0), 0 163px 65px 0 rgba(0,0,0,.01), 0 92px 55px 0 rgba(0,0,0,.05), 0 41px 41px 0 rgba(0,0,0,.09), 0 10px 22px 0 rgba(0,0,0,.1);
}
.brand { position: relative; display: block; width: 170px; height: 41px; color: var(--dark); }
.brand-mark { width: 63.744px; height: 40.665px; }
.brand-name {
  position: absolute; left: 69.35px; top: 5.77px; font-size: 13.097px; line-height: normal;
  font-style: italic; font-weight: 800; white-space: nowrap;
}
.brand-sub {
  position: absolute; left: 64.88px; top: 22.21px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.27px; line-height: normal; font-style: italic; font-weight: 400; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav-cta { padding: 18px 24px; border-radius: 6px; background: var(--dark); color: #fff; font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 814px; padding-left: var(--gutter);
  display: flex; align-items: flex-start; color: #fff;
}
.hero-bg { position: absolute; top: -11.8%; right: -3%; bottom: -9.6%; left: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .hero-img-mob { display: none; }
.hero-bg .swiper-slide { position: relative; overflow: hidden; }
.nav-toggle { display: none; }
.nav-overlay { display: none; }
.partners-logos, .partners-logos .swiper-wrapper { display: contents; }
.partner-1 { order: 1; }
.partner-2 { order: 2; }
.partner-3 { order: 3; }
.partner-4 { order: 4; }
.partner-5 { order: 5; }
.only-mobile { display: none; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to right, #011a25 0%, rgba(1, 26, 37, 0) 94%);
}
.hero-inner {
  position: relative; z-index: 3; width: 625px; padding: 234px 0 143px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 40px;
}
.hero-pill {
  display: inline-block; padding: 10px 16px; border-radius: 24px;
  background: rgba(255, 255, 255, .3); font-size: 14px; line-height: 26px;
}
.hero-copy { margin-top: -28px; display: flex; flex-direction: column; gap: 8px; }
.hero-copy h1 { font-size: 60px; line-height: normal; font-weight: 700; }
.hero-copy p { font-size: 16px; line-height: 26px; color: rgba(255, 255, 255, .7); }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.hero-actions .btn-primary { width: 195px; }
.hero-actions .btn-white { width: 189px; }

/* ---------- partners ---------- */
.partners {
  min-height: 102px; background: #f3f3f3; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding-left: var(--gutter);
}
.partners-label { flex: none; width: 220px; font-size: 16px; line-height: 26px; font-weight: 600; color: var(--dark); }
.partner {
  position: relative; height: 33px; display: flex; align-items: center;
  border-left: 1px solid #d2d2d2; flex: none;
}
.partner img { flex: none; }
.partner-1 { width: 243px; padding-left: 18px; height: 33px; }
.partner-1 .crop { position: relative; display: block; width: 150px; height: 63px; overflow: hidden; }
.partner-1 .crop img { position: absolute; width: 100.67%; height: 142.86%; left: -.34%; top: -22.22%; }
.partner-2 { width: 237px; padding-left: 71px; }
.partner-2 img { width: 50px; height: 34px; object-fit: cover; }
.partner-3 { width: 222px; padding-left: 60px; }
.partner-3 img { width: 74px; height: 46px; object-fit: cover; }
.partner-4 { width: 242px; padding-left: 58px; }
.partner-4 img { width: 104px; height: 41.44px; }
.partner-5 { padding-left: 36px; flex: 1; }
.partner-5 img { width: 80px; height: 40px; }

/* ---------- intro ---------- */
.intro { padding: 100px 0; display: flex; flex-direction: column; align-items: center; }
.intro .h-36 { margin-top: 16px; }
.intro-text { width: min(870px, calc(100% - 40px)); margin-top: 20px; text-align: center; font-size: 20px; line-height: 34px; font-weight: 400; color: #000; }
.intro-swiper { width: 100%; margin-top: 40px; overflow: hidden; }
.intro-swiper .swiper-slide { width: 1284px; height: auto; }
.slide { width: 100%; height: 400px; border-radius: 8px; background-repeat: no-repeat; background-size: cover; background-position: center; }
.slide--track { background-image: url('assets/track.png'); background-size: 1402.256px 935.305px; background-position: -53.04px -302.4px; }
.slide--highjump { background-image: url('assets/intro-highjump.webp'); }
.slide--badminton { background-image: url('assets/intro-badminton.webp'); }

/* ---------- requirements ---------- */
.requirements { padding: 0 0 100px; }
.req-grid {
  width: min(var(--container), calc(100% - 155px)); margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 35px;
}
.req-card {
  min-height: 140px; padding: 20px 5px 20px 30px; display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.req-icon { flex: none; }
.req-card p { max-width: 302px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--dark); }
.req-card--26 p { line-height: 26px; }
.req-card--narrow p { max-width: 259px; }

/* ---------- paths ---------- */
.paths { padding-bottom: 100px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; }
.head-row .h-36, .head-row .h-46 { margin-top: 12px; }
.head-text { font-size: 16px; line-height: 26px; }
.head-text--paths { width: 438px; margin-top: 62px; flex: none; }
.path-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.path-card {
  position: relative; min-height: 370px; padding: 30px 24px 94px;
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px;
}
.path-card--blue { background: var(--blue-light); border-color: #dcedf3; }
.path-card--white { background: #fff; padding-bottom: 86px; }
.path-icon {
  width: 51px; height: 51px; border-radius: 8px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.path-photo { position: absolute; top: 11px; left: 350px; width: 264px; height: 348px; border-radius: 8px; object-fit: cover; }
.path-text { margin-top: auto; width: 310px; }
.path-label { font-size: 12px; line-height: 22px; font-weight: 400; }
.path-text h3 { margin-top: 4px; font-size: 24px; line-height: 24px; font-weight: 800; }
.path-desc { margin-top: 8px; font-size: 14px; line-height: 22px; font-weight: 400; }
.path-desc a { color: var(--blue); text-decoration: underline; white-space: nowrap; }
.path-card .btn { position: absolute; left: 24px; bottom: 24px; }
.unsure {
  display: block; width: max-content; margin: 40px auto 0; color: var(--blue);
  font-size: 16px; line-height: 24px; text-decoration: underline;
}

/* ---------- quality ---------- */
.quality { position: relative; overflow: hidden; min-height: 541px; padding: 151px 0 0 var(--gutter); background: var(--dark); color: #fff; }
.quality-text { position: relative; z-index: 1; width: 522px; display: flex; flex-direction: column; gap: 12px; }
.quality-text h2 { font-size: 36px; line-height: 48px; font-weight: 700; }
.quality-text p { width: 355px; font-size: 16px; line-height: 28px; color: rgba(255, 255, 255, .7); }
.quality-art { position: absolute; top: 0; left: calc(var(--gutter) + 453px); width: 831.638px; height: 541px; }

/* ---------- steps ---------- */
.steps { padding: 100px 0; }
.head-text--steps { width: 461px; margin-top: 82px; flex: none; }
.steps-grid {
  margin-top: 50px; display: grid; grid-template-columns: 420px 444px 421px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.step { padding: 40px 0 47px; }
.step-1 { padding-right: 16px; border-right: 1px solid var(--border); }
.step-2 { padding: 40px 20px 47px 21px; border-right: 1px solid var(--border); }
.step-3 { padding-left: 17px; padding-right: 2px; }
.step-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-num {
  width: 75px; height: 75px; border-radius: 8px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 20px; line-height: 30px; font-weight: 700;
}
.step h3 { margin-top: 20px; font-size: 24px; line-height: 30px; font-weight: 700; }
.step p { margin-top: 12px; width: 370px; max-width: 100%; font-size: 16px; line-height: 26px; }
.steps-cta { margin-top: 30px; display: flex; justify-content: center; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 848fr 592fr; color: #fff; }
.contact-left { padding: 93px 40px 154px var(--gutter); background: var(--blue); }
.contact-left h2 { margin-top: 20px; font-size: 60px; line-height: 70px; font-weight: 700; }
.contact-right { padding: 118px 40px 154px; background: #0480b5; border-left: 1px solid #34b0e5; }
.contact-lead { width: 414px; max-width: 100%; font-size: 20px; line-height: 26px; font-weight: 600; }
.contact-mail { margin-top: 6px; font-size: 16px; line-height: 26px; }
.contact-right .btn { margin-top: 29px; width: 230px; }

/* ---------- footer ---------- */
.footer {
  position: relative; min-height: 107px; padding: 0 var(--gutter); background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: space-between; font-size: 14px; line-height: 26px;
}
.footer-links { display: flex; gap: 22px; }
.brand--footer {
  position: absolute; left: 50%; top: 33px; margin-left: -96px; color: #fff;
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  :root { --gutter: 15px; }
  .container { width: calc(100% - 30px); }

  /* nav */
  .nav {
    top: 20px; width: calc(100% - 30px); padding: 0;
    flex-wrap: wrap; align-items: center; align-content: flex-start;
  }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 9; background: rgba(0, 0, 0, .5);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  body.menu-open .nav-overlay { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .brand { margin: 24px 0 24px 20px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; margin-right: 21px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .nav.is-open .brand { margin-bottom: 19px; }
  .nav-toggle .icon-close { display: none; }
  .nav.is-open .nav-toggle .icon-open { display: none; }
  .nav.is-open .nav-toggle .icon-close { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 26px;
    padding: 29px 19px 25px 18px; border-top: 1px solid var(--border); font-size: 20px; line-height: 24px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-cta { margin: 4px 0 0 1px; padding: 18px 24px !important; font-size: 14px; line-height: normal; text-align: center; }

  /* hero */
  .hero { min-height: 844px; padding-left: 0; }
  .hero-bg { inset: 0; }
  .hero-bg .hero-img-desk { display: none; }
  .hero-bg .swiper-slide img, .hero-bg .hero-img-mob {
    display: block; position: absolute; top: 0; left: -100%; width: 324.62%; height: 100%; max-width: none;
  }
  .hero-bg::after { background: linear-gradient(to bottom, #011a25 14.549%, rgba(1, 26, 37, 0) 91.748%); }
  .hero-inner { width: 100%; margin: 0; padding: 160px 15px 204px; gap: 20px; }
  .hero-pill { display: block; width: 100%; padding: 10px 20px; line-height: 22px; }
  .hero-copy { width: 100%; margin-top: 0; gap: 12px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn-primary, .hero-actions .btn-white { width: 100%; }

  /* partners */
  .partners { min-height: 117px; padding: 20px 0 0; flex-direction: column; align-items: center; gap: 8px; overflow: hidden; }
  .partners-label { width: auto; font-size: 14px; }
  .partners-logos { display: block; width: 100%; overflow: hidden; }
  .partners-logos .swiper-wrapper { display: flex; align-items: center; }
  .partners .partner, .partners .partner-1, .partners .partner-2, .partners .partner-3, .partners .partner-4, .partners .partner-5 {
    width: auto; height: auto; padding: 0; border: 0; flex: none; order: 0;
  }

  /* intro */
  .intro { padding: 50px 0 46px; align-items: flex-start; }
  .intro .pill { margin-left: 15px; }
  .intro .h-36 { margin: 12px 15px 0; text-align: left; }
  .intro-text { width: auto; margin: 12px 15px 0; text-align: left; font-size: 16px; line-height: 26px; }
  .intro-swiper { margin-top: 20px; }
  .intro-swiper .swiper-slide { width: calc(100% - 30px); }
  .slide { height: 201px; }
  .slide--track { background-size: 526.337px 351.067px; background-position: -81.462px -92.495px; }

  /* requirements */
  .requirements { padding-bottom: 50px; }
  .requirements .h-36 { padding: 0 15px; text-align: left; }
  .req-grid { width: calc(100% - 30px); margin-top: 27px; grid-template-columns: 1fr; gap: 12px; }
  .req-card { min-height: 118px; padding: 20px 16px 20px 20px; }

  /* paths */
  .paths { padding-bottom: 50px; }
  .head-row { flex-direction: column; }
  .head-text--paths { width: auto; margin-top: 12px; }
  .path-grid { grid-template-columns: 1fr; margin-top: 20px; gap: 20px; }
  .path-card, .path-card--white { min-height: 0; padding: 11px 11px 20px; }
  .path-icon { display: none; }
  .path-pic { display: block; }
  .path-photo { position: static; width: 100%; height: 317px; }
  .path-text { width: auto; margin: 20px 0 0; padding: 0 11px; }
  .path-card .btn { position: static; display: flex; margin: 24px 8px 0; }
  .unsure { margin-top: 30px; }

  /* quality */
  .quality { min-height: 607px; padding: 40px 15px 0; }
  .quality-text { width: 100%; }
  .quality-text p { width: auto; }
  .quality-art { top: auto; bottom: 0; left: 15px; width: 360px; height: 234.19px; }

  /* steps */
  .steps { padding: 51px 0 60px; }
  .head-row .h-46 { margin-top: 8px; font-size: 36px; line-height: 46px; }
  .head-text--steps { width: auto; margin-top: 8px; }
  .steps-grid { display: block; margin-top: 20px; border-bottom: 0; }
  .steps .step, .steps .step-1, .steps .step-2, .steps .step-3 { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .step-inner { align-items: flex-start; text-align: left; }
  .step-num { border-radius: 4px; font-weight: 600; }
  .step p { width: 100%; }
  .steps-cta .btn { width: 100%; }

  /* contact */
  .contact { grid-template-columns: 1fr; }
  .contact-left { padding: 40px 15px; }
  .contact-left h2 { margin-top: 8px; font-size: 32px; line-height: 42px; }
  .contact-right { padding: 30px 15px 64px; border-left: 0; background: var(--blue); }
  .contact-lead { width: 100%; }
  .contact-mail { margin-top: 14px; }
  .contact-right .btn { width: 100%; margin-top: 21px; }

  /* footer */
  .footer { min-height: 0; padding: 40px 15px 20px; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .brand--footer { position: relative; top: auto; left: auto; margin: 0; order: 1; }
  .footer-links { order: 2; flex-direction: column; gap: 11px; margin-top: 20px; }
  .only-mobile { display: block; }
  .footer p { order: 3; margin-top: 20px; }
}

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  padding: 15px; background: rgba(0, 0, 0, .5); overflow-y: auto;
}
.modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal-card {
  width: 519px; max-width: 100%; min-height: 601px; margin: auto; background: #fff; border-radius: 10px;
  box-shadow: 0 4px 44px rgba(0, 0, 0, .1); overflow: hidden; display: flex; flex-direction: column;
}
.modal-head {
  height: 67px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 16px; line-height: 26px; font-weight: 700; color: var(--dark); }
.modal-close {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; padding: 0;
  background: #fff; border: .686px solid var(--dark); border-radius: 2.743px; cursor: pointer;
}
.modal-progress { height: 4px; background: #f3f3f3; }
.modal-progress span { display: block; width: 50%; height: 100%; background: var(--blue); }
.modal-form {
  flex: 1; padding: 23px 20px 20px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 17px;
  align-content: stretch; font-size: 12px;
}
.modal-choice {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 17px; margin-bottom: 20px;
  align-items: start;
}
.choice-label, .field > span:not(.input-icon), .field > .field-label {
  padding: 0; font-size: 12px; line-height: 20px; font-weight: 700; color: #000; text-transform: uppercase;
}
.choice-label { grid-column: 1 / -1; margin-bottom: -10px; }
.radio {
  position: relative; min-height: 48px; padding: 3px 12px; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #bbb; border-radius: 4px; cursor: pointer;
  font-size: 14px; line-height: 20px; font-weight: 500; color: #000;
}
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot {
  flex: none; position: relative; width: 16px; height: 16px; background: url('assets/radio.svg') center / 100% 100% no-repeat;
}
.radio input:checked + .radio-dot::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--blue);
}
.radio input:checked ~ span:last-child { color: #000; }
.radio:has(input:checked) { border-color: var(--blue); }
.radio input:focus-visible + .radio-dot { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 50%; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.field input {
  width: 100%; height: 48px; padding: 0 12px; background: #fff; border: 1px solid #bbb; border-radius: 4px;
  font: 500 14px 'Montserrat', sans-serif; color: #000; outline: 0;
}
.field input:focus { border-color: var(--blue); }
.field-ort { order: 2; }
.field-verein { order: 1; }
.modal-form .modal-next { order: 3; grid-column: 1 / -1; margin-top: auto; min-height: 50px; font-size: 14px; width: 100%; cursor: pointer; border: 0; }
.modal-form .modal-next { align-self: end; }
.modal-form.was-validated .field input:invalid { border-color: #d33; }

@media (max-width: 767px) {
  .modal { padding: 0; align-items: center; }
  .modal-card { width: min(391px, 100%); min-height: 754px; border-radius: 10px 10px 0 0; margin: auto; }
  .modal-head { height: 66px; padding: 0 15px 0 16px; }
  .modal-form { padding: 20px 15px 30px 16px; grid-template-columns: 1fr; grid-template-rows: none; align-content: start; }
  .modal-choice { grid-template-columns: 1fr; gap: 12px; }
  .choice-label { margin-bottom: -8px; }
  .field { margin-bottom: 20px; }
  .field-ort, .field-verein { order: 0; }
  .field-verein { order: 1; }
  .modal-form .modal-next { margin-top: 4px; }
}

/* ---------- modal: steps, success, active radio ---------- */
.modal-card[data-step="2"], .modal-card[data-step="success"], .modal-card[data-step="loading"] { min-height: 599px; }
.modal-card[data-step="loading"] > * { visibility: hidden; }
.modal-card[data-step="success"] .modal-progress { display: none; }
.modal-card[data-step="2"] .modal-progress span { width: 100%; }
.radio:has(input:checked) { border-color: #bbb; }
.radio input:checked + .radio-dot { background-image: url('assets/radio-active.svg'); }
.radio input:checked + .radio-dot::after { content: none; }

.modal-form--2 { padding-top: 30px; grid-template-rows: none; align-content: start; }
.modal-form[hidden] { display: none; }
.modal-form--2 .field { order: 0; margin-bottom: 20px; }
.modal-form--2 .field-msg { grid-column: 1 / -1; margin: 10px 0 0; }
.modal-form--2 textarea {
  width: 100%; height: 181px; padding: 11px 12px; resize: none; background: #fff; border: 1px solid #bbb; border-radius: 4px;
  font: 400 12px/20px 'Montserrat', sans-serif; color: #000; outline: 0;
}
.modal-form--2 textarea:focus { border-color: var(--blue); }
.modal-form--2 ::placeholder { font-size: 12px; font-weight: 400; color: #000; opacity: 1; }
.input-icon { position: relative; display: block; }
.input-icon input { padding-right: 44px; }
.input-icon img { position: absolute; right: 12px; top: 12px; pointer-events: none; }
.field-geburt > .input-icon { text-transform: none; }
.modal-foot { grid-column: 1 / -1; margin-top: 25px; display: flex; align-items: center; justify-content: space-between; }
.modal-back { padding: 0; border: 0; background: none; font: 500 14px/26px 'Montserrat', sans-serif; color: #000; cursor: pointer; }
.modal-send { min-height: 50px; padding: 0 40px; font-size: 14px; border: 0; cursor: pointer; }
.modal-form--2.was-validated .field input:invalid { border-color: #d33; }

.modal-success { padding: 130px 80px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.modal-success[hidden] { display: none; }
.modal-success h3 { margin-top: 14px; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--dark); }
.modal-success .btn { margin-top: 26px; width: 100%; min-height: 50px; font-size: 14px; border: 0; cursor: pointer; }

@media (max-width: 767px) {
  .modal-card[data-step="success"] { min-height: 844px; }
  .modal-form--2 { grid-template-columns: 1fr; padding: 20px 15px 30px 16px; }
  .modal-form--2 .field-msg { margin-top: 0; }
  .modal-success { padding: 47px 16px 0 15px; }
  .modal-success h3 { margin-top: 14px; }
  .modal-card[data-step="2"] { min-height: 754px; }
}

.modal-error { grid-column: 1 / -1; margin-top: 12px; font-size: 12px; line-height: 20px; color: #d33; }
.modal-error[hidden] { display: none; }

/* ---------- details modal ---------- */
.details-card { min-height: 0; }
.details-card[data-kind="gym"] { min-height: 495px; }
.details-card[data-kind="lehre"] { min-height: 512px; }
.details-body { padding: 21px 20px 23px; display: flex; flex-direction: column; flex: 1; color: var(--dark); }
.details-label { font-size: 12px; line-height: 22px; font-weight: 400; text-transform: uppercase; }
.details-heading { margin-top: 4px; font-size: 24px; line-height: 24px; font-weight: 800; }
.details-text { margin: 16px -2px 0 2px; font-size: 16px; line-height: 26px; font-weight: 400; }
.details-cta { margin-top: auto; padding-top: 0; width: 100%; min-height: 50px; font-size: 14px; border: 0; cursor: pointer; }
.details-cta[hidden] { display: none; }
.details-card[data-kind="gym"] .details-text { margin-bottom: 60px; }

/* ---------- date picker ---------- */
.date-btn {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 0 12px;
  display: flex; align-items: center; justify-content: flex-end; border: 0; background: none; cursor: pointer;
}
.date-btn img { display: block; pointer-events: none; }
.field-geburt input { cursor: pointer; }
@media (max-width: 767px) {
  .details-card, .details-card[data-kind="gym"], .details-card[data-kind="lehre"] { min-height: 0; border-radius: 10px 10px 0 0; }
  .details-body { padding: 21px 16px 30px; }
  .details-text { margin-left: 0; }
  .modal:has(.details-card) { align-items: flex-end; }
}

/* ---------- calendar popup ---------- */
.datepicker {
  position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; width: 280px; padding: 12px;
  background: #fff; border: 1px solid #bbb; border-radius: 4px; box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
  text-transform: none; font-weight: 500; color: #000;
}
.datepicker[hidden] { display: none; }
.dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.dp-nav {
  flex: none; width: 28px; height: 28px; padding: 0; border: 1px solid #bbb; border-radius: 4px; background: #fff;
  font-size: 18px; line-height: 1; color: var(--dark); cursor: pointer;
}
.dp-nav:hover { border-color: var(--blue); color: var(--blue); }
.dp-head select {
  flex: 1; min-width: 0; height: 28px; padding: 0 4px; border: 1px solid #bbb; border-radius: 4px; background: #fff;
  font: 500 12px 'Montserrat', sans-serif; color: #000;
}
.dp-head select:last-of-type { flex: 0 0 68px; }
.dp-week, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-week span { font-size: 11px; line-height: 24px; font-weight: 700; color: #777; }
.dp-day {
  height: 32px; padding: 0; border: 0; border-radius: 4px; background: none;
  font: 500 12px 'Montserrat', sans-serif; color: #000; cursor: pointer;
}
.dp-day:hover:not(:disabled) { background: var(--blue-light); }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--blue); }
.dp-day.is-selected { background: var(--blue); color: #fff; }
.dp-day:disabled { color: #ccc; cursor: default; }
@media (max-width: 767px) { .datepicker { width: 100%; } }

/* ---------- desktop/mobile copy variants ---------- */
.mb { display: none; }
@media (max-width: 767px) {
  .dt { display: none; }
  .mb { display: inline; }

  /* requirements: six 140px cards, icon left */
  .req-grid { margin-top: 46px; gap: 16px; }
  .req-card, .req-card--narrow { min-height: 140px; padding: 20px 5px 20px 20px; gap: 16px; }
  .req-card p, .req-card--narrow p { max-width: none; }
  .req-card br { display: none; }

  .path-card--blue .path-desc { line-height: 24px; }
}
@media (max-width: 767px) {
  .path-card .btn { min-height: 58px; }
  .req-card--26 { padding-top: 17px; padding-bottom: 17px; }
}
@media (max-width: 767px) { .path-card--white .btn { margin-top: 20px; } }

.modal-note { margin-top: 8px; max-width: 360px; font-size: 13px; line-height: 20px; font-weight: 400; color: rgba(1, 26, 37, .7); }

/* ---------- modal transitions ---------- */
.modal {
  opacity: 0; backdrop-filter: blur(0);
  transition: opacity .35s ease, backdrop-filter .45s ease;
}
.modal.is-open { opacity: 1; backdrop-filter: blur(4px); }

.modal-card {
  opacity: 0; transform: translateY(44px) scale(.94);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .35s ease, min-height .45s ease;
}
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-progress span { transition: width .6s cubic-bezier(.16, 1, .3, 1); }

/* content eases in after the card: header first, then the fields one by one */
.modal.is-open .modal-head,
.modal.is-open .details-body > * { animation: modal-fade-up .5s cubic-bezier(.16, 1, .3, 1) both; }
.modal.is-open .modal-head { animation-delay: .12s; }
.modal.is-open .details-body > :nth-child(1) { animation-delay: .18s; }
.modal.is-open .details-body > :nth-child(2) { animation-delay: .23s; }
.modal.is-open .details-body > :nth-child(3) { animation-delay: .28s; }
.modal.is-open .details-body > :nth-child(4) { animation-delay: .34s; }
.modal.is-open .modal-form--1:not([hidden]) > * { animation: modal-fade-up .5s cubic-bezier(.16, 1, .3, 1) both; }

/* shared stagger for children of the panel that is entering / the form shown on open */
.modal-form > :nth-child(1) { --d: .16s; }
.modal-form > :nth-child(2) { --d: .21s; }
.modal-form > :nth-child(3) { --d: .26s; }
.modal-form > :nth-child(4) { --d: .31s; }
.modal-form > :nth-child(5) { --d: .36s; }
.modal-form > :nth-child(6) { --d: .41s; }
.modal-form > :nth-child(7) { --d: .46s; }
.modal-form > :nth-child(8) { --d: .5s; }
.modal.is-open .modal-form--1:not([hidden]) > * { animation-delay: var(--d, .2s); }

/* step changes: old panel slides out, new one slides in from the side we are heading to */
.modal-form, .modal-success { transition: opacity .22s ease, transform .22s ease; }
.modal-card[data-dir="fwd"] .is-leaving { opacity: 0; transform: translateX(-28px); }
.modal-card[data-dir="back"] .is-leaving { opacity: 0; transform: translateX(28px); }
.modal-card[data-dir="fwd"] .is-entering { animation: modal-slide-in-fwd .5s cubic-bezier(.16, 1, .3, 1) both; }
.modal-card[data-dir="back"] .is-entering { animation: modal-slide-in-back .5s cubic-bezier(.16, 1, .3, 1) both; }
.modal-form.is-entering > * { animation: modal-fade-up .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--d, .1s); }

/* success screen: the check pops, then the text and button rise */
.modal-success.is-entering img { animation: modal-pop .65s cubic-bezier(.34, 1.56, .64, 1) .12s both; }
.modal-success.is-entering h3 { animation: modal-fade-up .5s cubic-bezier(.16, 1, .3, 1) .3s both; }
.modal-success.is-entering .modal-note { animation: modal-fade-up .5s cubic-bezier(.16, 1, .3, 1) .38s both; }
.modal-success.is-entering .btn { animation: modal-fade-up .5s cubic-bezier(.16, 1, .3, 1) .46s both; }

@keyframes modal-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes modal-slide-in-fwd { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes modal-slide-in-back { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes modal-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 767px) {
  .modal-card { transform: translateY(72px); }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal-card, .modal-progress span, .modal-form, .modal-success { transition: none; backdrop-filter: none; }
  .modal *, .modal *::before { animation: none !important; }
}

/* ---------- button hover states ---------- */
.btn, .nav-cta { transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.btn-primary:hover { background: #007bb0; box-shadow: 0 6px 16px rgba(0, 146, 208, .35); transform: translateY(-1px); }
.btn-white:hover { background: var(--blue-light); border-color: var(--blue-light); }
.btn-outline:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: #02303f; transform: translateY(-1px); }
.nav-cta:hover { background: #02303f; }
.unsure, .path-desc a { transition: opacity .2s ease; }
.unsure:hover, .path-desc a:hover { opacity: .75; }
@media (hover: none) { .btn-primary:hover, .btn-dark:hover { transform: none; box-shadow: none; } }
