/* ============================================
   BALANCE PHYSIOTHERAPIE — Design Tokens & Components
   ============================================ */

:root{
  --bg:        #FAF8F2;
  --bg-alt:    #F1ECE0;
  --surface:   #FFFFFF;
  --surface-2: #FBF9F4;
  --border:    rgba(42,50,40,.09);
  --border-strong: rgba(42,50,40,.16);
  --ink:       #262B24;
  --ink-soft:  #5C6459;
  --ink-faint: #8B9285;
  --sage:       #4C6B54;
  --sage-light: #7C9A80;
  --sage-dark:  #33473A;
  --sage-soft:  rgba(76,107,84,.10);
  --sage-glow:  rgba(76,107,84,.28);
  --clay:       #C17F4F;
  --clay-light: #E0A87A;
  --clay-dark:  #8F5A34;
  --clay-soft:  rgba(193,127,79,.13);
  --frame-radius: 1.5rem;
  --ease: cubic-bezier(.16,1,.3,1);
}

*{ scrollbar-color: var(--sage-light) var(--bg-alt); }

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,.font-display{
  font-family:'Fraunces',serif;
  letter-spacing:-.01em;
}

::selection{ background:var(--sage); color:#FFFFFF; }

/* ---------- Layout helpers ---------- */
.section-pad{ padding-top:6rem; padding-bottom:6rem; }
@media (max-width:768px){ .section-pad{ padding-top:3.75rem; padding-bottom:3.75rem; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:'Inter',sans-serif;
  font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  font-size:.78rem; color:var(--clay-dark);
}
.eyebrow::before{
  content:''; width:1.5rem; height:2px; background:var(--clay);
  display:inline-block; border-radius:2px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  font-family:'Inter',sans-serif; font-weight:600; letter-spacing:.01em;
  font-size:.98rem;
  padding:.95rem 1.9rem; border-radius:.85rem;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  cursor:pointer; white-space:nowrap;
}
.btn:active{ transform:translateY(0) scale(.98); }
.btn-primary{
  background:linear-gradient(135deg,var(--sage-light),var(--sage-dark));
  color:#FFFFFF;
  box-shadow:0 10px 26px -10px var(--sage-glow);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 34px -10px var(--sage-glow); }
.btn-ghost{
  border:1.5px solid var(--border-strong); color:var(--ink); background:transparent;
}
.btn-ghost:hover{ border-color:var(--sage); color:var(--sage-dark); background:var(--sage-soft); transform:translateY(-2px); }
.btn-clay{
  background:linear-gradient(135deg,var(--clay-light),var(--clay-dark));
  color:#FFFFFF;
  box-shadow:0 10px 26px -10px rgba(193,127,79,.45);
}
.btn-clay:hover{ transform:translateY(-2px); box-shadow:0 16px 34px -10px rgba(193,127,79,.55); }
.btn-sm{ padding:.62rem 1.2rem; font-size:.85rem; }

/* ---------- Header ---------- */
#site-header{
  transition:background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  background:rgba(250,248,242,.75);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
#site-header.scrolled{
  background:rgba(250,248,242,.96);
  box-shadow:0 8px 30px -14px rgba(38,43,36,.18);
}
.nav-link{
  position:relative; font-weight:500; font-size:.96rem; color:var(--ink-soft);
  transition:color .2s var(--ease);
}
.nav-link::after{
  content:''; position:absolute; left:0; bottom:-4px; width:0; height:2px;
  background:var(--clay); transition:width .25s var(--ease);
}
.nav-link:hover{ color:var(--ink); }
.nav-link:hover::after, .nav-link.active::after{ width:100%; }
.nav-link.active{ color:var(--sage-dark); font-weight:600; }

.top-bar{
  background:var(--sage-dark);
}

/* ---------- Hero ---------- */
.hero-dot-grid{
  background-image: radial-gradient(rgba(76,107,84,.16) 1.5px, transparent 1.5px);
  background-size:26px 26px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 85%);
}
.glow-orb{
  position:absolute; border-radius:50%; filter:blur(80px);
  pointer-events:none;
}
.glow-orb.sage{ background:radial-gradient(circle, var(--sage-glow), transparent 70%); }
.glow-orb.clay{ background:radial-gradient(circle, rgba(193,127,79,.30), transparent 70%); }
@keyframes floaty{
  0%,100%{ transform:translate(0,0) scale(1); }
  50%{ transform:translate(18px,-22px) scale(1.06); }
}
.glow-orb.float{ animation:floaty 15s ease-in-out infinite; }

@keyframes heroIn{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}
.hero-in{ animation:heroIn .8s var(--ease) both; }
.hero-in-1{ animation-delay:.05s; }
.hero-in-2{ animation-delay:.18s; }
.hero-in-3{ animation-delay:.32s; }
.hero-in-4{ animation-delay:.46s; }

/* ---------- Scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-delay-1.in{ transition-delay:.08s; }
.reveal-delay-2.in{ transition-delay:.16s; }
.reveal-delay-3.in{ transition-delay:.24s; }
.reveal-delay-4.in{ transition-delay:.32s; }

/* ---------- Cards ---------- */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--frame-radius);
  box-shadow:0 2px 14px -6px rgba(38,43,36,.06);
}

.service-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--frame-radius);
  overflow:hidden;
  transition:transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow:0 2px 14px -8px rgba(38,43,36,.08);
}
.service-card:hover{
  transform:translateY(-6px);
  border-color:rgba(76,107,84,.35);
  box-shadow:0 26px 44px -22px rgba(38,43,36,.22), 0 0 0 1px rgba(76,107,84,.12);
}
.service-card .img-wrap{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.service-card .img-wrap img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.service-card:hover .img-wrap img{ transform:scale(1.08); }
.service-icon{
  width:2.85rem; height:2.85rem; border-radius:.9rem;
  display:flex; align-items:center; justify-content:center;
  background:var(--sage-soft); color:var(--sage-dark);
  border:1px solid rgba(76,107,84,.2);
}

/* ---------- Condition chips (Beschwerden) ---------- */
.condition-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--frame-radius);
  padding:1.75rem; transition:all .3s var(--ease);
}
.condition-card:hover{ border-color:rgba(193,127,79,.35); box-shadow:0 20px 36px -20px rgba(38,43,36,.18); transform:translateY(-4px); }
.condition-icon{
  width:3.1rem; height:3.1rem; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--clay-soft); color:var(--clay-dark);
}

/* ---------- Timeline (process steps) ---------- */
.timeline{ position:relative; }
.timeline::before{
  content:''; position:absolute; left:1.4rem; top:.5rem; bottom:.5rem; width:2px;
  background:linear-gradient(180deg, var(--sage), rgba(76,107,84,.05));
}
@media (min-width:1024px){
  .timeline.timeline-h::before{ left:0; right:0; top:1.4rem; bottom:auto; height:2px; width:auto; background:linear-gradient(90deg, var(--sage), rgba(76,107,84,.05)); }
}
.timeline-dot{
  width:2.9rem; height:2.9rem; border-radius:50%;
  background:var(--bg); border:2px solid var(--sage);
  color:var(--sage-dark); font-family:'Fraunces',serif; font-weight:600;
  display:flex; align-items:center; justify-content:center; font-size:1.15rem;
  box-shadow:0 0 0 6px var(--bg), 0 0 22px -6px var(--sage-glow);
  position:relative; z-index:1; flex-shrink:0;
}

/* ---------- Stats ---------- */
.stat-num{
  font-family:'Fraunces',serif; font-weight:600;
  font-size:2.75rem; line-height:1; color:var(--ink);
}
.stat-num .unit{ color:var(--clay-dark); }

/* ---------- Testimonials ---------- */
.stars{ color:var(--clay); letter-spacing:2px; }

/* ---------- FAQ Accordion ---------- */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-question{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  text-align:left; padding:1.4rem 0; cursor:pointer; background:none; border:none;
  color:var(--ink); font-weight:600; font-size:1.05rem;
}
.faq-icon{ transition:transform .35s var(--ease); flex-shrink:0; color:var(--sage); }
.faq-item.open .faq-icon{ transform:rotate(45deg); }
.faq-answer{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-item.open .faq-answer{ max-height:400px; }
.faq-answer-inner{ padding-bottom:1.5rem; color:var(--ink-soft); line-height:1.7; }

/* ---------- Forms ---------- */
.field-label{ font-size:.85rem; font-weight:600; color:var(--ink-soft); margin-bottom:.4rem; display:block; }
.field-input{
  width:100%; background:var(--bg-alt); border:1.5px solid var(--border);
  border-radius:.75rem; padding:.85rem 1rem; color:var(--ink); font-size:.95rem;
  transition:border-color .2s var(--ease), background-color .2s var(--ease);
}
.field-input:focus{ outline:none; border-color:var(--sage); background:var(--surface); }
.field-input::placeholder{ color:var(--ink-faint); }
select.field-input{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6459' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 1rem center; padding-right:2.5rem; }

.step-dot{
  width:2.2rem; height:2.2rem; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces',serif; font-weight:600; font-size:1rem;
  border:2px solid var(--border-strong); color:var(--ink-faint);
  transition:all .3s var(--ease);
}
.step-dot.active{ border-color:var(--sage); color:var(--sage-dark); background:var(--sage-soft); }
.step-dot.done{ border-color:var(--sage); background:var(--sage); color:#FFFFFF; }
.step-line{ flex:1; height:2px; background:var(--border-strong); transition:background .3s var(--ease); }
.step-line.done{ background:var(--sage); }

.option-card{
  border:1.5px solid var(--border); border-radius:1rem; padding:1.1rem 1.2rem;
  cursor:pointer; transition:all .2s var(--ease); background:var(--bg-alt);
}
.option-card:hover{ border-color:rgba(76,107,84,.4); }
.option-card.selected{ border-color:var(--sage); background:var(--sage-soft); }

/* ---------- Insurance / trust strip ---------- */
.cert-chip{
  display:flex; align-items:center; gap:.6rem; color:var(--ink-soft);
  transition:all .3s var(--ease);
}
.cert-chip:hover{ opacity:1; color:var(--sage-dark); }

/* ---------- Team photo treatment ---------- */
.team-photo{ position:relative; overflow:hidden; }
.team-photo img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.team-photo:hover img{ transform:scale(1.05); }

/* ---------- Misc ---------- */
.text-gradient{
  background:linear-gradient(135deg,var(--sage-dark),var(--clay-dark));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.mobile-menu{
  /* collapsed here, not in JS: rendering it open and closing it after
     the script ran pushed the whole page down and back up again */
  max-height:0; opacity:0;
  transition:max-height .4s var(--ease), opacity .3s var(--ease); overflow:hidden;
}

::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg-alt); }
::-webkit-scrollbar-thumb{ background:var(--sage-light); border-radius:6px; }

img{ max-width:100%; }

.scrollbar-none{ scrollbar-width:none; -ms-overflow-style:none; }
.scrollbar-none::-webkit-scrollbar{ display:none; }

/* Accessibility: visible focus ring everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2.5px solid var(--sage); outline-offset:2px; border-radius:4px;
}
