/* Roots of Hatha – Stylesheet */

@font-face { font-family: "Almarai"; src: url("/fonts/almarai-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/fonts/almarai-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/fonts/almarai-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/fonts/libre-baskerville.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/fonts/libre-baskerville-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --white: #f6f3ec;
  --light: #ece4da;
  --accent: #b9a590;
  --black: #36302a;
  --dark-accent: #574c3f;
  --sans: "Almarai", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --container: min(76.5vw, 1180px);
  --gap: clamp(28px, 6vw, 110px);
  --radius-lg: 45px;
  --radius: 15px;
  --sec-pad: clamp(56px, 7vw, 100px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--light);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
li::marker { font-size: .8em; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 4.85vw, 64px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; }
h3 { font-size: clamp(26px, 2.7vw, 35px); line-height: 1.14; }
h4 { font-size: clamp(21px, 1.97vw, 26px); line-height: 1.17; }
.lead { font-size: clamp(18px, 1.73vw, 22px); line-height: 1.55; }
.small { font-size: 14.4px; }
.center { text-align: center; }
.justify { text-align: justify; }
.bold, strong { font-weight: 700; }
.sr-only, .hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.container { width: var(--container); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  color: var(--white);
  background: linear-gradient(to bottom, rgba(54, 48, 42, .55), rgba(54, 48, 42, 0));
}
.site-header.on-light { background: linear-gradient(to bottom, rgba(54, 48, 42, .92) 0%, rgba(54, 48, 42, .7) 45%, rgba(54, 48, 42, 0) 100%); }
.header-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 22px clamp(20px, 3.2vw, 48px) 28px;
}
.logo img { width: clamp(140px, 13vw, 180px); height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 1.8vw, 26px); align-items: center; }
.main-nav li { margin: 0; position: relative; }
.main-nav a, .sub-toggle {
  color: inherit; text-decoration: none; font: inherit; font-size: 15px; letter-spacing: .01em;
  background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-block;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .sub-toggle:hover, .main-nav a.active, .sub-toggle.active { border-bottom-color: currentColor; }
.sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 150px; padding: 10px 0; margin: 0;
  background: var(--white); color: var(--black); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(54, 48, 42, .18);
  display: none !important; flex-direction: column; gap: 0 !important;
}
.sub li { width: 100%; }
.sub a { display: block; padding: 7px 20px; border: 0 !important; }
.sub a:hover { background: var(--light); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: flex !important; }

.lang-switch {
  display: inline-flex; border: 1px solid rgba(246, 243, 236, .7); border-radius: 999px; overflow: hidden;
  font-size: 13px; letter-spacing: .06em; flex-shrink: 0;
}
.lang-opt { padding: 6px 12px; text-decoration: none; color: inherit; line-height: 1; }
a.lang-opt:hover { background: rgba(246, 243, 236, .18); }
.lang-opt.is-current { background: var(--white); color: var(--black); font-weight: 700; }

.burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; color: inherit; }
.burger span { display: block; height: 2px; background: currentColor; margin: 7px 0; transition: transform .25s; }

@media (max-width: 860px) {
  .header-inner { gap: 14px; padding: 16px 20px; }
  .main-nav {
    position: fixed; inset: 0; background: var(--black); margin: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s;
  }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav li { text-align: center; }
  .main-nav a, .sub-toggle { font-family: var(--serif); font-size: 26px; }
  .sub { position: static; transform: none; background: none; color: var(--white); box-shadow: none; padding: 8px 0 0; text-align: center; display: flex !important; }
  .sub a { font-size: 19px !important; padding: 6px 0; }
  .sub a:hover { background: none; }
  .sub-toggle { cursor: default; border: 0 !important; opacity: .65; font-size: 15px; font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .lang-switch { margin-left: auto; position: relative; z-index: 2; }
  .burger { display: block; position: relative; z-index: 2; }
  .menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding: var(--sec-pad) 0 calc(var(--sec-pad) + 40px); }
.sec-white { background: var(--white); }
.sec-light { background: var(--light); }
.sec-accent { background: var(--accent); }
.sec-dark { background: var(--black); color: var(--white); }
.sec.first { padding-top: clamp(150px, 15vw, 210px); }

.divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(34px, 5.5vw, 80px); display: block; z-index: 2; pointer-events: none; }
.divider path { fill: var(--next, var(--light)); }
.next-white { --next: var(--white); }
.next-light { --next: var(--light); }
.next-accent { --next: var(--accent); }
.next-dark, .divider-dark { --next: var(--black); }
.divider-arc { height: clamp(40px, 7vw, 100px); }

/* background image sections */
.bg-img { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.bg-img img { width: 100%; height: 100%; object-fit: cover; }
.bg-img::after { content: ""; position: absolute; inset: 0; background: var(--overlay, rgba(54, 48, 42, .15)); }
.has-bg > .container, .has-bg > .hero-content { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); background: var(--black);
  min-height: clamp(460px, 70vh, 720px);
  display: flex; align-items: center;
  padding: 130px 0 110px;
}
.hero.tall { min-height: clamp(520px, 82vh, 820px); align-items: flex-end; padding-bottom: 150px; }
.hero .bg-img { --overlay: rgba(54, 48, 42, .15); }
.hero.dim .bg-img { --overlay: rgba(54, 48, 42, .45); }
.hero-content { position: relative; z-index: 1; width: 100%; padding: 0 4vw; display: flex; }
.hero-content.pos-center { justify-content: center; }
.hero-content.pos-right { justify-content: flex-end; padding-right: 15vw; }
.hero-content.pos-left { justify-content: flex-start; padding-left: 4vw; }
.hero-title { position: relative; text-align: center; max-width: 780px; }
.hero-title::before {
  content: ""; position: absolute; inset: -6% -10%; z-index: -1;
  background: var(--glow, rgba(87, 76, 63, .85)); filter: blur(38px); border-radius: 50%;
}
.hero-title.no-glow::before { display: none; }
.hero-title h1 { margin: 0 0 .25em; }
.hero-title p { font-weight: 700; font-size: clamp(16px, 1.73vw, 22px); line-height: 1.4; margin: 0; }
.hero-title .quote { font-weight: 400; max-width: 520px; margin: 1.2em auto 0; }
.hero-title .quote-by { font-weight: 400; font-size: 16px; margin-top: .8em; }

/* ---------- Grid helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.split.top { align-items: start; }
.split.w-60-40 { grid-template-columns: 1.25fr .8fr; }
.split.w-40-60 { grid-template-columns: .8fr 1.25fr; }
.split.w-35-65 { grid-template-columns: .7fr 1.3fr; }
.split.w-65-35 { grid-template-columns: 1.3fr .7fr; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 1.4rem; }
.mt-l { margin-top: clamp(40px, 5vw, 80px); }
.mb-l { margin-bottom: clamp(32px, 4vw, 60px); }

.rounded { border-radius: var(--radius-lg); overflow: hidden; }
.rounded-sm { border-radius: var(--radius); overflow: hidden; }
.round { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.photo-credit { font-size: 14.4px; text-align: center; margin-top: 12px; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }

.card { background: var(--light); padding: clamp(24px, 3vw, 40px); }
.card-white { background: var(--white); }
.card-accent { background: var(--accent); }
.card.r-lg { border-radius: var(--radius-lg); }
.card.r { border-radius: var(--radius); }
.card-glass { background: rgba(246, 243, 236, .84); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.card-glass-light { background: rgba(236, 228, 218, .85); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }

/* info card (Voraussetzung / Preis) */
.info-card { background: var(--light); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 42px) clamp(26px, 3vw, 40px); font-size: 15px; }
.info-card h4, .info-card .label { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0; margin: 0 0 .6em; }
.info-card ul { margin-bottom: 1.6em; }
.info-card .finish { text-align: center; font-weight: 700; font-size: 16px; margin-top: 1em; }

/* quotes */
.quote-text { font-size: clamp(19px, 1.73vw, 22px); line-height: 1.5; }
.quote-by { text-align: right; margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font: inherit; font-size: 14px; line-height: 1.2;
  padding: 16px 30px; border-radius: 12px; border: 1px solid var(--black); color: var(--black);
  background: transparent; cursor: pointer; transition: background .2s, color .2s; text-align: center;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: var(--dark-accent); border-color: var(--dark-accent); }
.btn-sm { padding: 6px 22px; font-size: 13px; border-radius: 999px; }
.btn-row { text-align: center; margin-top: clamp(28px, 3vw, 44px); }

/* ---------- Video (2-click privacy) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.video:hover img { opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border: 0; border-radius: 14px; background: #f00; cursor: pointer;
}
.video-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-note { margin: 8px 0 0 !important; font-size: 11px; line-height: 1.4; opacity: .75; text-align: left; }
.video.loaded .video-play { display: none; }
.video-caption { text-align: center; margin-top: 14px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 22vw, 330px);
  gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px clamp(20px, 4vw, 60px) 12px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.c-card { scroll-snap-align: center; background: var(--white); border-radius: 6px; padding: 14px 14px 26px; text-align: center; }
.c-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 18px; }
.c-card h2 { font-size: 22px; margin: 0 0 .3em; letter-spacing: -.01em; }
.c-card .sub-title { font-weight: 700; font-size: 14px; max-width: 170px; margin: 0 auto 1em; line-height: 1.35; }
.c-card .meta { font-size: 13px; line-height: 1.5; max-width: 170px; margin: 0 auto; }
.c-arrow {
  position: absolute; top: 36%; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(87, 76, 63, .78); color: var(--white); cursor: pointer; display: grid; place-items: center;
}
.c-arrow svg { width: 22px; height: 22px; }
.c-prev { left: clamp(10px, 2.4vw, 40px); }
.c-next { right: clamp(10px, 2.4vw, 40px); }
.section-kicker { text-align: center; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; margin-bottom: clamp(30px, 3.5vw, 50px); }

/* ---------- Program grid (Kursangebot) ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 6vw, 110px); row-gap: clamp(50px, 6vw, 90px); }
.program { text-align: center; }
.program:nth-child(3n+2) { transform: translateY(-72px); }
.program img { width: 72%; margin: 0 auto 18px; }
.program h4 { margin-bottom: .45em; }
.program p { font-size: 15px; margin-bottom: 1em; }

/* ---------- Courses notice (Startseite) ---------- */
.notice { display: grid; grid-template-columns: 1fr 3fr 1fr; align-items: end; gap: 3vw; }
.notice .figure-l { justify-self: center; width: 80%; }
.notice .figure-r { justify-self: center; width: 70%; }
.notice-card { background: var(--light); border-radius: var(--radius); padding: 30px clamp(20px, 3vw, 44px); text-align: center; align-self: center; }
.notice-card p { font-size: 15px; }
.notice-card p.lead { font-weight: 700; font-size: clamp(17px, 1.6vw, 21px); margin-bottom: .7em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; max-width: 360px; margin: 0 auto; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--black);
  background: #fff; border: 1px solid rgba(54, 48, 42, .25); border-radius: 0; padding: 14px 16px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--dark-accent); outline-offset: 1px; }
.form .btn { justify-self: center; margin-top: 8px; padding: 14px 34px; }
.form-note { font-size: 12px; text-align: center; margin-top: 8px; }
.form-thanks { text-align: center; }
.form-thanks h3 { margin-bottom: .3em; }
.form-error { color: #8a2b16; font-size: 14px; text-align: center; }
.form.sent > :not(.form-thanks) { display: none !important; }
.form.sent .form-thanks { display: block !important; }

.contact-form { max-width: none; text-align: left; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { font-size: 14px; display: block; margin-bottom: 6px; }
.contact-form .req { font-size: 12px; opacity: .7; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend { font-size: 14px; margin-bottom: 6px; padding: 0; }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer-main { padding-top: clamp(60px, 6vw, 90px); padding-bottom: clamp(90px, 9vw, 130px); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--gap); align-items: start; }
.footer-contact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.footer-contact a { text-decoration: none; }
.social { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.social svg { width: 28px; height: 28px; fill: var(--black); display: block; }
.whatsapp { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(17px, 1.6vw, 21px); }
.whatsapp span { text-decoration: underline; text-underline-offset: 3px; }
.whatsapp img { width: 46px; }
.certified { width: min(100%, 360px); margin-top: 16px; }
.footer-newsletter { text-align: center; }
.footer-newsletter h2 { font-size: clamp(28px, 2.7vw, 35px); margin-bottom: .5em; }
.footer-newsletter > p { font-size: 14px; max-width: 460px; margin: 0 auto 28px; }
.legal-bar { background: var(--black); padding: 26px 0 40px; }
.legal-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; }
.legal-bar a { color: var(--white); font-family: var(--serif); font-size: clamp(17px, 1.97vw, 25px); text-underline-offset: 4px; }

/* ---------- Legal pages ---------- */
.legal h3, .legal h4 { margin-top: 1.4em; }
.legal h5 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin: 1.6em 0 .5em; }
.legal p, .legal li { font-size: 15px; }
.legal a { word-break: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --container: calc(100% - 40px); --radius-lg: 30px; }
  .split, .split.w-60-40, .split.w-40-60, .split.w-35-65, .split.w-65-35, .footer-grid { grid-template-columns: 1fr; }
  .split > .first-mobile { order: -1; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .program:nth-child(3n+2) { transform: none; }
  .notice { grid-template-columns: 1fr 1fr; }
  .notice-card { grid-column: 1 / -1; order: -1; }
  .hero-content.pos-right, .hero-content.pos-left { justify-content: center; padding: 0 20px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .legal-bar .container { justify-content: center; }
  .c-arrow { display: none; }
}
@media (max-width: 520px) {
  .program-grid { grid-template-columns: 1fr; }
  .program img { width: 62%; }
  .hero { padding-top: 110px; }
}
.contact-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
