/* ============================================================
   Feldenkrais by Cramair – styles
   Design system, layout and responsive rules (mobile/tablet/desktop)
   ============================================================ */

:root {
  /* Color palette: warm, calm, feldenkrais-inspired */
  --clay: #b06a4f;          /* warm terracotta accent */
  --clay-dark: #8f5540;
  --sand: #f6f1ea;          /* light warm background */
  --sand-2: #efe7db;        /* alternate section background */
  --ink: #2f2a26;           /* main text */
  --ink-soft: #6d645c;      /* secondary text */
  --line: #e2d8cc;          /* hairlines / borders */
  --white: #ffffff;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(47, 42, 38, 0.45);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--clay-dark); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--clay); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; color: var(--ink); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--clay); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--clay); color: var(--white); box-shadow: 0 10px 24px -12px rgba(176, 106, 79, 0.9); }
.btn-primary:hover { background: var(--clay-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(246, 241, 234, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 46px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header.scrolled .nav-list a { color: var(--ink); }
.nav-list a:hover { color: var(--clay); }
.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 8px 18px;
  border-radius: 999px;
}
.site-header.scrolled .nav-cta { border-color: var(--clay); color: var(--clay); }

/* Burger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* Close button inside the mobile overlay menu */
.nav-close { display: none; position: absolute; top: 22px; right: 24px; background: none; border: 0; color: var(--white); font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 4px 12px; transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.nav-close:hover { color: var(--clay); transform: scale(1.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: url("../assets/images/hero-home.jpg") center/cover no-repeat fixed;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(30, 25, 22, 0.72), rgba(30, 25, 22, 0.28));
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding-top: var(--header-h); }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.78rem; margin: 0 0 14px; opacity: 0.9; }
.hero-title { font-size: clamp(2.8rem, 8vw, 5.4rem); color: var(--white); margin: 0 0 18px; }
.hero-title .reg { font-size: 0.35em; vertical-align: super; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 300; max-width: 34ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--white); font-size: 1.6rem; z-index: 2;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--sand-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.76rem; color: var(--clay); margin: 0 0 10px; font-weight: 600; }
.lead { color: var(--ink-soft); font-size: 1.08rem; margin-top: 10px; }

/* Split (text + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-text p { color: var(--ink-soft); margin: 0 0 1em; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
/* Focus the cropped images on a side rather than the center. */
#ueber-mich .split-media img { object-position: left center; }
#methode .split-media img { object-position: right center; }

/* Ticks list */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--clay); }

/* Quote */
.quote { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; color: var(--ink); border-left: 3px solid var(--clay); padding: 6px 0 6px 22px; margin: 1.4em 0 0; }
.quote cite { display: block; font-size: 0.95rem; font-style: normal; color: var(--ink-soft); margin-top: 10px; letter-spacing: 0.04em; }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 130px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 26px; padding: 0 0 26px; }
.timeline .tl-date { text-align: right; font-weight: 600; color: var(--clay); font-size: 0.9rem; padding-top: 1px; }
.timeline .tl-body { position: relative; padding-left: 26px; color: var(--ink-soft); }
.timeline .tl-body::before { content: ""; position: absolute; left: -5px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--clay); }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.card h3 { color: var(--clay-dark); margin-bottom: 18px; }
.card-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 16px; }
.plain, .pricelist { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }
.pricelist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pricelist li:last-child { border-bottom: 0; }
.pricelist .price { font-weight: 600; color: var(--clay-dark); white-space: nowrap; }
.link-arrow { display: inline-block; margin-top: 14px; font-weight: 500; }

/* Info band */
.info-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.info-band h4 { color: var(--clay-dark); font-size: 1.15rem; }
.info-band p { color: var(--ink-soft); margin: 0; }

/* Workshop cards use the same .card look but grid auto-fit */
#workshop-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.workshop-card .ws-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.workshop-card .ws-meta strong { color: var(--clay-dark); }
.center-note { text-align: center; max-width: 640px; margin: 36px auto 0; color: var(--ink-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button { border: 0; padding: 0; cursor: pointer; background: none; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--clay); margin-bottom: 2px; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-hint { margin: 0 0 20px; font-size: 0.9rem; color: var(--ink-soft); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.req { color: var(--clay); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-sans); font-size: 0.98rem; color: var(--ink); background: var(--sand);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(176, 106, 79, 0.15); }
.field textarea { resize: vertical; }
.form-feedback { margin: 14px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-feedback.error { color: #b3261e; }
.form-feedback.ok { color: #3c7a4a; }

/* Map embed */
.map-embed { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-embed figcaption { padding: 14px 20px; font-size: 0.9rem; color: var(--ink-soft); background: var(--white); }

/* Testimonials / feedback carousel */
.testimonials { max-width: 820px; margin: 0 auto; position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.6s var(--ease); }
.testimonial { flex: 0 0 100%; padding: 8px 10px; }
.testimonial-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(30px, 5vw, 52px); text-align: center; }
.testimonial-card .t-quote-mark { font-family: var(--font-serif); font-size: 3.4rem; line-height: 0.5; color: var(--clay); opacity: 0.4; }
.testimonial-card .t-text { font-family: var(--font-serif); font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-style: italic; color: var(--ink); margin: 18px 0 24px; }
.testimonial-card .t-name { font-weight: 600; color: var(--clay-dark); }
.testimonial-card .t-info { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 2px; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.testimonial-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.testimonial-dots button.active { background: var(--clay); transform: scale(1.2); }

/* ---------- Subpage (e.g. links) ---------- */
.subpage-hero { padding: calc(var(--header-h) + 60px) 0 20px; background: var(--sand-2); text-align: center; }
.subpage-hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 6px 0 14px; }
.subpage-hero .lead { max-width: 640px; margin: 0 auto; }

.links-wrap { max-width: 860px; margin: 0 auto; display: grid; gap: clamp(30px, 5vw, 52px); }
.link-group h2 { font-size: 1.6rem; padding-bottom: 12px; border-bottom: 2px solid var(--clay); margin-bottom: 22px; }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.link-cards a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.link-cards a:hover { transform: translateY(-2px); border-color: var(--clay); }
.link-title { display: block; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; color: var(--clay-dark); }
.link-ext { font-size: 0.85em; }
.link-desc { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; }
.back-home { text-align: center; margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Footer ---------- */
.site-footer { background: #262019; color: #d9cfc4; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; align-items: start; }
.footer-brand img { height: 48px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p, .footer-contact p { margin: 0 0 8px; font-size: 0.95rem; }
.footer-contact span { color: #a89b8d; }
.site-footer a { color: #e7ddd1; }
.site-footer a:hover { color: var(--clay); }
.footer-partners { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-partners img { height: 58px; width: auto; }
.footer-badge img { height: 74px; border-radius: 8px; }
.footer-link { font-size: 0.9rem; flex-basis: 100%; }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #a89b8d; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(20, 16, 13, 0.94); padding: 5vw; }
.lightbox.open { display: flex; }
.lb-image { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 1.8rem; line-height: 1; transition: background 0.2s var(--ease); }
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  /* On small screens the fixed header is opaque once scrolled so the burger
     icon stays readable over any content in the middle of the page. */
  .site-header.scrolled { background: var(--sand); backdrop-filter: none; }
  .nav { position: fixed; inset: 0; background: rgba(38, 32, 25, 0.98); display: flex; align-items: center; justify-content: center; transform: translateX(100%); transition: transform 0.35s var(--ease); }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 26px; }
  .nav-list a, .site-header.scrolled .nav-list a { color: var(--white); font-size: 1.05rem; }
  .nav-cta { border-color: rgba(255,255,255,0.6); }
  .nav-toggle { display: flex; }
  .nav.open ~ .nav-toggle { opacity: 0; pointer-events: none; }
  .nav.open .nav-close { display: block; }
  .nav-toggle.open span { background: var(--white); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .hero { background-attachment: scroll; }
}

/* Mobile */
@media (max-width: 640px) {
  .split, .info-band, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  #methode .split-media { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline .tl-date { text-align: left; }
  .timeline .tl-body { padding-left: 0; }
  .timeline .tl-body::before { left: -30px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}
