/* ==========================================================================
   KINEVOCE – Praxis für Kinesiologie und Stimme, Basel
   Design: ruhig, hell, organisch. Grün aus dem Logo-Blümchen, warme Creme.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green-950: #16281f;
  --green-900: #1e3a2c;
  --green-800: #275240;
  --green-700: #2f6a50;
  --green-600: #3c8564;
  --green-500: #4f9d78;
  --green-200: #cfe4d6;
  --green-100: #e4f0e8;
  --green-050: #f0f6f1;
  --cream: #faf9f5;
  --sand: #f3f0e8;
  --white: #ffffff;
  --ink: #253129;
  --muted: #5f6e64;
  --line: #dfe6df;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(30, 58, 44, .08);
  --shadow-md: 0 8px 30px rgba(30, 58, 44, .10);
  --wrap: 1160px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--green-900);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
strong { color: var(--green-900); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.wrap-narrow { max-width: 830px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--green-900); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 245, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line); background: #fff;
}
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-weight: 700; letter-spacing: .16em;
  font-size: 1.3rem; color: var(--green-900); display: block;
}
.brand-claim { font-size: .68rem; letter-spacing: .04em; color: var(--muted); display: block; }

.main-nav { display: flex; align-items: center; gap: .1rem; }
.main-nav > ul { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.main-nav a, .nav-toggle-sub {
  display: inline-block; padding: .55rem .72rem; border-radius: 9px;
  color: var(--ink); font-size: .93rem; font-weight: 500;
  background: none; border: 0; font-family: var(--sans); cursor: pointer;
}
.main-nav a:hover, .nav-toggle-sub:hover { background: var(--green-100); color: var(--green-900); }
.main-nav a[aria-current="page"] { color: var(--green-700); font-weight: 600; }

.has-sub { position: relative; }
.nav-toggle-sub::after { content: "▾"; font-size: .7em; margin-left: .35em; opacity: .7; }
.sub-nav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem; list-style: none; margin: 0;
  display: none; z-index: 110;
}
.has-sub.open .sub-nav { display: block; }
.sub-nav li { margin: 0; }
.sub-nav a { display: block; padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; }

.btn {
  display: inline-block; padding: .72rem 1.35rem; border-radius: 999px;
  background: var(--green-700); color: #fff !important; font-weight: 600;
  font-size: .95rem; border: 1px solid var(--green-700);
  transition: background .2s, transform .15s; cursor: pointer; font-family: var(--sans);
  text-align: center;
}
.btn:hover { background: var(--green-800); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--green-800) !important;
  border-color: var(--green-600);
}
.btn-outline:hover { background: var(--green-100); }
.btn-light { background: #fff; color: var(--green-900) !important; border-color: #fff; }
.btn-light:hover { background: var(--green-050); }
.header-cta { margin-left: .4rem; white-space: nowrap; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; padding: 10px;
}
.nav-burger span { display: block; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(2.2rem, 5vw, 4rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.hero .eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-600); font-weight: 600; margin-bottom: 1rem; display: block;
}
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; padding: 0; margin: 0; list-style: none; }
.hero-badges li { font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; margin: 0; }
.hero-badges svg { flex: none; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.hero-card {
  position: absolute; left: -1.2rem; bottom: -1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .8rem 1.1rem; font-size: .87rem;
  display: flex; align-items: center; gap: .65rem;
}
.hero-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: none; aspect-ratio: 1; }
.hero-card strong { display: block; font-size: .92rem; }
.hero-card span { color: var(--muted); font-size: .8rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.6rem, 7vw, 5rem) 0; }
.section-tint { background: var(--green-050); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sand { background: var(--sand); border-top: 1px solid #e9e3d5; border-bottom: 1px solid #e9e3d5; }
.section-head { max-width: 720px; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-head .eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-600); font-weight: 600; display: block; margin-bottom: .5rem;
}
.section-head p { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card img.scenar-device-img { object-fit: contain; background: #f3f6f1; padding: .55rem; }
.card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.28rem; margin-bottom: .3rem; }
.card p { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; }
.card .card-link { margin-top: auto; font-weight: 600; font-size: .9rem; }
.card .card-link::after { content: " →"; }
.card a.card-cover::before { content: ""; position: absolute; inset: 0; }
.card a.card-cover:focus-visible::before { outline: 3px solid var(--green-500); outline-offset: -3px; border-radius: var(--radius-lg); }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  margin: 0 auto; max-width: 780px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.45; color: var(--green-800);
}
.quote-band blockquote::before { content: "«"; color: var(--green-500); margin-right: .15em; }
.quote-band blockquote::after { content: "»"; color: var(--green-500); margin-left: .15em; }
.quote-band cite { display: block; margin-top: 1rem; font-family: var(--sans); font-style: normal; font-size: .88rem; color: var(--muted); }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split .checklist { list-style: none; padding: 0; }
.split .checklist li { padding-left: 1.7em; position: relative; margin-bottom: .55em; }
.split .checklist li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 1em; height: 1em;
  background: var(--green-600);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* ---------- Info tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}
.tile h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .55rem; }
.tile h3 svg { flex: none; }
.tile p, .tile li { font-size: .93rem; color: var(--muted); }
.tile p:last-child { margin-bottom: 0; }
.tile .big { font-size: 1.6rem; font-family: var(--serif); color: var(--green-800); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery img {
  border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  border: 1px solid var(--line);
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #eaf3ed; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e6dc; max-width: 620px; }
.cta-band .hero-ctas { margin-top: 1.4rem; }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(1.8rem, 5vw, 3.2rem) 0 clamp(1.2rem, 3vw, 2rem); }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 .45rem; color: var(--green-500); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green-700); }
.page-hero .lead { font-size: 1.13rem; color: var(--muted); max-width: 46em; }

/* ---------- Article / content pages ---------- */
.content { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.content h2 { margin-top: 2.2em; }
.content h3 { margin-top: 1.6em; }
.content .figure-right { float: right; width: min(46%, 420px); margin: .4rem 0 1.2rem 1.8rem; }
.content .figure-left { float: left; width: min(46%, 420px); margin: .4rem 1.8rem 1.2rem 0; }
.content .figure-full { margin: 1.8rem 0; }
.content .figure-right img, .content .figure-left img, .content .figure-full img {
  border-radius: var(--radius); border: 1px solid var(--line); width: 100%;
}
.content::after { content: ""; display: block; clear: both; }
.cols-2 { columns: 2; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; }

.infobox {
  background: var(--green-050); border: 1px solid var(--green-200);
  border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; margin: 2rem 0;
  clear: both;
}
.infobox h3, .infobox h4 { margin-top: 0; }
.infobox p:last-child, .infobox ul:last-child { margin-bottom: 0; }

.notebox {
  background: var(--sand); border: 1px solid #e7dfcd; border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem; margin: 2rem 0; clear: both;
}
.notebox h3, .notebox h4 { margin-top: 0; }
.notebox p:last-child { margin-bottom: 0; }

blockquote.pull {
  border-left: 3px solid var(--green-500); margin: 1.8rem 0; padding: .3rem 0 .3rem 1.3rem;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--green-800);
}
blockquote.pull cite { font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--muted); display: block; margin-top: .4rem; }

/* related links */
.related { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 3rem; clear: both; }
.related h2 { margin-top: 0; font-size: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.related-grid a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.1rem; font-weight: 600; font-size: .93rem; color: var(--green-900);
  transition: border-color .2s, transform .2s;
}
.related-grid a:hover { border-color: var(--green-500); transform: translateY(-2px); }
.related-grid a span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
article.post img.post-hero {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  margin: 0 0 1.8rem; width: 100%; max-height: 460px; object-fit: cover;
}
.exercise {
  background: var(--green-050); border: 1px solid var(--green-200); border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem; margin: 2.2rem 0;
}
.exercise h3 { margin-top: 0; display: flex; gap: .5rem; align-items: center; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.data { border-collapse: collapse; width: 100%; font-size: .93rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
table.data th { background: var(--green-100); color: var(--green-900); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 600; color: var(--green-900); display: block; margin-bottom: .35rem; }
input, textarea, select {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: .95rem; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--green-500); border-color: var(--green-500); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-list svg { flex: none; margin-top: .2rem; }
.contact-list a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #c4d4c9; margin-top: clamp(2.5rem, 7vw, 5rem); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem;
  padding: clamp(2.4rem, 6vw, 4rem) 0 2rem;
}
.site-footer h3 {
  color: #fff; font-family: var(--sans); font-size: .85rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .92rem; }
.site-footer a { color: #c4d4c9; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .15em; color: #fff; font-weight: 700; }
.footer-brand-claim { font-size: .85rem; margin: .2rem 0 1rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 1.2rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-size: .84rem;
}
.footer-legal ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.small { font-size: .87rem; color: var(--muted); }
.tag {
  display: inline-block; background: var(--green-100); color: var(--green-800);
  border-radius: 999px; padding: .18rem .75rem; font-size: .8rem; font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid, .related-grid, .tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: .8rem clamp(18px, 4vw, 32px) 1.4rem;
    max-height: calc(100vh - 74px); overflow: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .main-nav a, .nav-toggle-sub { display: block; width: 100%; text-align: left; font-size: 1.02rem; padding: .7rem .8rem; }
  .sub-nav {
    position: static; display: none; box-shadow: none; border: 0;
    background: var(--green-050); border-radius: 10px; margin: .2rem 0 .4rem;
  }
  .has-sub.open .sub-nav { display: block; }
  .header-cta { display: none; }
  .hero-grid, .split, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-card { left: .8rem; bottom: -1rem; }
  .split-media { order: -1; }
  .content .figure-right, .content .figure-left { float: none; width: 100%; margin: 1.4rem 0; }
  .cols-2 { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .card-grid, .post-grid, .related-grid, .tiles, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  body { font-size: .97rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .related-grid a { transition: none; }
}
