/* ===== AOI Rhythms: shared styles ===== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f5efe3;
  --paper-2: #ebe3d2;
  --ink: #23271f;
  --ink-soft: #5b5f53;
  --moss: #4d6138;      /* Erlebnispädagogik */
  --ember: #c4703a;     /* Music */
  --aoi: #2f4f74;       /* Creative work (aoi = blue) */
  --accent: var(--moss);
  --radius: 18px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
}

.theme-moss  { --accent: var(--moss); }
.theme-ember { --accent: var(--ember); }
.theme-aoi   { --accent: var(--aoi); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.075rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.4rem; }
em { font-family: var(--serif); font-style: italic; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.eyebrow {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .8em; display: block;
}
.lead { font-size: 1.25rem; color: var(--ink-soft); }
section { padding: clamp(64px, 10vw, 120px) 0; }
.alt { background: var(--paper-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(35, 39, 31, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--aoi); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid rgba(35,39,31,.1); padding: 8px 22px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .98rem; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #fff; padding: 0; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,16,.55), rgba(20,24,16,0) 65%), linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(20,24,16,.75)); }
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vw, 100px); }
.hero .eyebrow { color: #f3d9b8; }
.hero p { font-size: 1.25rem; max-width: 560px; opacity: .95; }
.hero .btn { background: #fff; color: var(--ink); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero-small { min-height: 62vh; }

/* ---------- three doors ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.door {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
  color: #fff; text-decoration: none; display: flex; align-items: flex-end;
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.door:hover img { transform: scale(1.05); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(15,18,12,.8)); }
.door div { position: relative; z-index: 1; padding: 26px; }
.door h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: .25em; hyphens: auto; overflow-wrap: anywhere; }
.door p { margin: 0; font-size: .97rem; opacity: .9; }
.door .tag { display: inline-block; width: 34px; height: 4px; border-radius: 2px; margin-bottom: 14px; }
@media (max-width: 980px) { .door { aspect-ratio: 2 / 3; } }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { aspect-ratio: 4 / 3; } }

/* ---------- split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-img { order: 2; }
.split-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-img { order: 0; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid rgba(35,39,31,.08); }
.alt .card { background: #faf6ee; }
.card h3 { color: var(--accent); }
.card p:last-child { margin-bottom: 0; }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 14px; margin-top: 36px; }
.gallery img { width: 100%; border-radius: 12px; margin-bottom: 14px; break-inside: avoid; }
.gallery figure { margin: 0; break-inside: avoid; }
.gallery figcaption { display: none; }
[data-lightbox] img { cursor: zoom-in; transition: transform .25s ease, filter .25s ease; }
[data-lightbox] img:hover { transform: scale(1.015); filter: brightness(1.04); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20,22,18,.94); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lb.open { display: flex; }
.lb img { max-width: min(1100px, 100%); max-height: calc(100vh - 190px); object-fit: contain; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lb-cap { color: #f5efe3; max-width: 640px; text-align: center; font-size: 1.02rem; line-height: 1.55; margin-top: 18px; min-height: 3em; }
.lb-count { color: rgba(245,239,227,.55); font-size: .85rem; margin-top: 6px; }
.lb button { position: absolute; background: rgba(245,239,227,.12); color: #f5efe3; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb button:hover { background: rgba(245,239,227,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lb-prev { left: 24px; } .lb-next { right: 24px; } .lb img { max-height: calc(100vh - 230px); } }

/* ---------- quote ---------- */
.big-quote { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.3; text-align: center; max-width: 860px; margin: 0 auto; }
.big-quote small { display: block; font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); margin-top: 1em; }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.testimonial { background: #faf6ee; border-radius: var(--radius); padding: 28px; }
.testimonial p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.testimonial cite { font-style: normal; font-weight: 600; font-size: .92rem; color: var(--accent); }

/* ---------- course box ---------- */
.course { background: var(--ink); color: var(--paper); border-radius: 26px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.course h2 { color: #fff; }
.course .price { font-family: var(--serif); font-size: 2.6rem; color: #f3c79c; }
.course ul { padding-left: 1.1em; margin: 0 0 1em; }
.course .btn { background: var(--ember); }
@media (max-width: 820px) { .course { grid-template-columns: 1fr; } }

/* ---------- video embed placeholder ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.video-ph {
  aspect-ratio: 16 / 9; border-radius: 14px; background: #1d2119; color: #cfc6b4;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: .95rem;
}

/* ---------- placeholder note (draft only) ---------- */
.todo {
  display: inline-block; background: #fff3c4; color: #6b5300; border-radius: 6px;
  padding: 2px 8px; font-size: .82rem; font-family: var(--sans); font-style: normal;
}

/* ---------- language switch ---------- */
.lang-switch { display: inline-flex; border: 1.5px solid var(--accent); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.lang-switch button { background: none; border: 0; padding: 7px 16px; cursor: pointer; font: 600 .85rem var(--sans); color: var(--accent); }
.lang-switch button.on { background: var(--accent); color: #fff; }
[data-lang="en"] .de, [data-lang="de"] .en { display: none !important; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc6b4; padding: 56px 0 40px; font-size: .95rem; }
.site-footer a { color: #f1e8d6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--serif); font-weight: 400; color: #fff; font-size: 1.15rem; margin: 0 0 .6em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4em; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- YouTube click-to-load ---------- */
.yt, .yt-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; border: 0; display: block; }
.yt { position: relative; padding: 0; overflow: hidden; cursor: pointer; background: #1d2119; color: #fff; font: inherit; text-align: left; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .9; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt::before { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px; box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.yt span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 600; font-size: .95rem; z-index: 1; }
.video-note { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }
.course-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; margin-bottom: 18px; display: block; }
.free-lesson { margin-top: 48px; }
.free-lesson h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.free-lesson .videos { margin-top: 20px; }
@media (max-width: 640px) { .gallery { columns: 2; column-gap: 8px; } .gallery img { margin-bottom: 8px; border-radius: 8px; } }
