/* =========================================
   La Libreta – estilos
   ========================================= */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

:root {
  --green: #1e3350;
  --green-2: #2a4567;
  --sand: #f7f3ec;
  --sand-2: #ebe1cf;
  --clay: #c27d2e;
  --text: #232a35;
  --grey: #67716e;
  --border: #ddd3c1;
  --radius: 6px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--sand);
}
body.no-scroll { overflow: hidden; }

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--green);
}
h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }

a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}
.kicker--light { color: #f0c68f; }

.muted { color: var(--grey); font-weight: 400; }

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  border: 2px solid var(--green);
  transition: background .2s, color .2s;
}
.button:hover { background: var(--green-2); border-color: var(--green-2); }
.button--ghost { background: transparent; color: var(--green); }
.button--ghost:hover { background: var(--green); color: #fff; }
.button--full { width: 100%; cursor: pointer; font-family: inherit; }

.link-arrow {
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--sand-2);
  padding-bottom: 2px;
}
.link-arrow::after { content: ' →'; }
.link-arrow:hover { border-color: var(--clay); }


/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 239, 230, .95);
  backdrop-filter: blur(6px);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--border); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--green);
  line-height: 1.1;
}
.brand small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 3px;
}
.brand__mark {
  width: 34px; height: 38px;
  border-radius: 3px;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}
.brand__mark::before,
.brand__mark::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--sand-2);
  top: 12px;
  box-shadow: 0 6px 0 var(--sand-2);
}
.brand__mark::after { top: 24px; right: 14px; box-shadow: none; background: var(--clay); }

.menu { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--clay); }
.menu .menu__btn {
  background: var(--green);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
}
.menu .menu__btn:hover { background: var(--green-2); color: #fff; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 0;
  background: none;
  position: relative;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--green);
  transition: transform .25s, top .25s;
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle.is-open span:last-child { top: 19px; transform: rotate(-45deg); }


/* ---------- hero ---------- */
.hero { padding: 50px 0 90px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }

.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 600; margin-bottom: 22px; letter-spacing: -.01em; }
.hero h1 span { display: block; font-style: italic; font-weight: 400; color: var(--clay); }
.lead { font-size: 19px; color: #3e4a47; margin-bottom: 32px; max-width: 520px; }

.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--grey);
}
.hero__points li::before { content: '✓'; color: var(--clay); margin-right: 7px; font-weight: 600; }

.hero__img { position: relative; }
.hero__img img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 40% center;
  border-radius: 10px;
}
.hero__img figcaption {
  position: absolute;
  left: -40px;
  bottom: -34px;
  max-width: 300px;
  background: #fff;
  padding: 20px 22px;
  border-radius: var(--radius);
  box-shadow: 0 14px 36px -16px rgba(30, 51, 80, .35);
  font-size: 15px;
  color: var(--grey);
}
.hero__img figcaption strong {
  display: block;
  font-family: 'Lora', serif;
  font-size: 18px;
  color: var(--green);
  margin-bottom: 4px;
}
.hero__img figcaption em { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--clay); }


/* ---------- principer ---------- */
.principles { background: var(--green); color: #d5deea; padding: 64px 0; }
.principles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.principle__no {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  font-size: 14px;
  margin-bottom: 16px;
  color: #fff;
}
.principle h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.principle p { font-size: 15px; }


/* ---------- kurser ---------- */
.courses { padding: 110px 0 90px; }
.sec-head { max-width: 640px; margin-bottom: 50px; }
.sec-head__sub { color: var(--grey); }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.courses__grid { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 22px; align-items: stretch; }

.course {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.course--main { border: 2px solid var(--green); box-shadow: 0 24px 50px -30px rgba(30,51,80,.5); }
.course__badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--clay);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.course__label { font-size: 13px; color: var(--grey); margin-bottom: 8px; }
.course h3 { font-size: 27px; margin-bottom: 10px; }
.course__desc { font-size: 15px; color: #4b5653; margin-bottom: 20px; }
.course__list { font-size: 15px; margin-bottom: 26px; }
.course__list li { padding: 8px 0 8px 24px; border-top: 1px solid #efe8db; position: relative; }
.course__list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 17px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(-45deg);
}
.course__price { margin-top: auto; margin-bottom: 20px; }
.course__price strong { display: block; font-family: 'Lora', serif; font-size: 34px; color: var(--green); line-height: 1.1; }
.course__price span { font-size: 13px; color: var(--grey); }
.course .button { text-align: center; }

.courses__note { margin-top: 36px; font-size: 14px; color: var(--grey); max-width: 720px; }


/* ---------- buffertkollen ---------- */
.calc { background: var(--green-2); color: #d7e0ec; padding: 100px 0; }
.calc__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.calc h2 { color: #fff; }
.calc__intro p { margin-bottom: 16px; }
.calc__small { font-size: 13px; opacity: .75; }

.calc__form { background: #fff; color: var(--text); border-radius: 10px; padding: 34px 34px 26px; }
.field { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #efe8db; }
.field label { font-size: 15px; }
.field__input { display: flex; align-items: center; gap: 8px; }
.field__input span { color: var(--grey); font-size: 14px; }
.field input[type=number] {
  min-width: 0;
  width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  text-align: right;
  background: var(--sand);
}
.field input[type=number]:focus { outline: 2px solid var(--clay); outline-offset: 1px; background: #fff; }
.field--range { flex-direction: column; align-items: stretch; gap: 8px; }
.field--range input { width: 100%; accent-color: var(--clay); }

.calc__result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 14px;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px;
}
.calc__result span { display: block; font-size: 13px; color: var(--grey); }
.calc__result strong { font-family: 'Lora', serif; font-size: 30px; color: var(--green); }
.calc__form .calc__small { color: var(--grey); }


/* ---------- om oss ---------- */
.about { padding: 110px 0; }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.about__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
.about__text p { margin-bottom: 16px; color: #3e4a47; }
.about__facts { display: flex; gap: 40px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.about__facts dt { font-size: 13px; color: var(--grey); }
.about__facts dd { font-family: 'Lora', serif; font-size: 30px; color: var(--green); font-weight: 600; }


/* ---------- journal ---------- */
.journal { background: #fff; padding: 100px 0; }
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.post__meta { font-size: 13px; color: var(--clay); font-weight: 500; margin-bottom: 6px; }
.post h3 { font-size: 22px; margin-bottom: 8px; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-decoration-color: var(--clay); }
.post p { font-size: 15px; color: var(--grey); }


/* ---------- faq + kontakt ---------- */
.contact { padding: 100px 0 110px; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; }

.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); margin-top: 26px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-weight: 500;
  font-size: 18px;
  color: var(--green);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 26px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding-bottom: 20px; color: #4b5653; font-size: 16px; }

.form-box { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 38px 36px 30px; }
.form-box h3 { font-size: 30px; }
.form-box__sub { color: var(--grey); font-size: 15px; margin: 8px 0 24px; }

#contactForm label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
#contactForm input[type=text],
#contactForm input[type=email],
#contactForm select,
#contactForm textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  background: var(--sand);
  color: var(--text);
}
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; background: #fff; }
#contactForm .has-error { border-color: #b33a2b; background: #fdf1ef; }
#contactForm label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--grey); }
#contactForm label.check input { margin-top: 3px; accent-color: var(--green); }
#contactForm label.check.has-error { color: #b33a2b; background: none; }
.form-ok { margin-top: 14px; color: var(--green-2); font-weight: 500; }

.contact__info { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 15px; color: var(--grey); }
.contact__info li { padding: 3px 0; }
.contact__info a { text-decoration: none; }
.contact__info a:hover { color: var(--clay); }


/* ---------- footer ---------- */
.site-footer { background: var(--green); color: #b6c3d6; padding: 64px 0 28px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand--light { color: #fff; }
.brand--light small { color: #9caec6; }
.brand--light .brand__mark { background: var(--sand-2); }
.brand--light .brand__mark::before { background: var(--green); box-shadow: 0 6px 0 var(--green); }
.site-footer__about { margin-top: 18px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13px; }
.site-footer__bottom a { display: inline; }


/* ========== responsive ========== */
@media (max-width: 1000px) {
  .hero__grid { gap: 40px; }
  .hero__img figcaption { left: 20px; }
  .principles__grid { grid-template-columns: repeat(2, 1fr); }
  .courses__grid { grid-template-columns: 1fr; max-width: 560px; }
  .calc__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__photo { max-width: 420px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .menu {
    position: fixed;
    top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 28px;
    font-size: 20px;
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .menu .menu__btn { margin-top: 20px; text-align: center; border: 0; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { order: -1; }
  .hero { padding-top: 24px; }
  .journal__grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header__row { height: 66px; }
  .menu { top: 66px; }
  .brand { font-size: 20px; }

  .hero__img img { aspect-ratio: 4/3; }
  .hero__img figcaption { position: static; max-width: none; margin-top: -24px; margin-left: 14px; margin-right: 14px; position: relative; left: 0; bottom: 0; }
  .lead { font-size: 17px; }
  .hero__actions .button { width: 100%; text-align: center; }

  .principles__grid { grid-template-columns: 1fr; gap: 28px; }
  .courses, .about, .journal, .contact { padding: 72px 0; }
  .calc { padding: 72px 0; }
  .course { padding: 30px 22px 24px; }

  .calc__form { padding: 24px 18px 20px; }
  .field { flex-direction: column; align-items: stretch; gap: 6px; }
  .field input[type=number] {
  min-width: 0; width: 100%; }
  .calc__result { grid-template-columns: 1fr; }

  .about__facts { gap: 24px; }
  .about__facts dd { font-size: 24px; }
  .form-box { padding: 28px 20px 24px; }
}
