/* =============================================================
   Osteopathie Ute Fechner — Homburg
   Design system & styles
   ============================================================= */

/* ---------- Schriftarten (lokal gehostet · DSGVO-konform) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
}

/* ---------- Design Tokens ---------- */
:root {
  --green:       #3c6b4a;
  --green-bright:#7fae62;
  --green-deep:  #1f3f29;
  --green-soft:  #ecf2e7;

  --sand:        #b99568;
  --sand-soft:   #f4ead9;
  --sand-deep:   #8a6a41;

  --ink:      #1d211c;
  --charcoal: #48503f;
  --gray:     #7c8371;
  --gray-200: #e4e3d7;
  --paper:    #faf8f3;
  --white:    #ffffff;

  --bg:        #fbfaf6;
  --bg-alt:    #f3f0e7;
  --bg-ink:    #16261a;
  --surface:   #f3f0e7;
  --surface-2: #ece7d9;
  --text:      #1d211c;
  --text-soft: #666f5c;
  --border:    rgba(29,33,28,.10);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(60px, 8vw, 120px);
  --radius: 22px;
  --radius-sm: 12px;
  --radius-lg: 32px;

  --shadow-sm: 0 2px 12px rgba(20,24,16,.06);
  --shadow:    0 18px 50px -20px rgba(20,24,16,.22);
  --shadow-lg: 0 40px 90px -30px rgba(20,24,16,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; color-scheme: light; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 999;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transform-origin: left; transform: scaleX(0);
  transition: transform .08s linear;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface); }
.section-ink { background: var(--bg-ink); color: rgba(255,255,255,.92); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green-bright); border-radius: 2px; }

h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { color: var(--text-soft); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--charcoal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--green-deep); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,246,.9);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: blur(14px); } }
.site-header.is-stuck { border-color: var(--border); box-shadow: 0 6px 24px -18px rgba(20,24,16,.35); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--charcoal);
  position: relative; padding-block: 4px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--green);
  transition: right .25s var(--ease-out); border-radius: 2px;
}
.nav a:hover, .nav a.is-active { color: var(--green-deep); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

.header-cta { display: none; }
.header-phone {
  display: none; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .95rem;
}
.header-phone svg { width: 18px; height: 18px; color: var(--green); flex: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); flex: none;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--bg-ink);
  color: #fff; padding: 100px 28px 40px; transform: translateY(-8px);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease), transform .28s var(--ease);
  display: flex; flex-direction: column;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; padding-block: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu .mobile-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.mobile-menu .mobile-foot a.btn-light { align-self: flex-start; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .header-phone { display: inline-flex; }
  .burger { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; color: #fff; }
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 45%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(22,38,26,.94) 0%, rgba(22,38,26,.82) 32%, rgba(22,38,26,.42) 62%, rgba(22,38,26,.20) 100%),
    linear-gradient(0deg, rgba(15,23,16,.35), rgba(15,23,16,0) 40%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(120px, 20vw, 190px) clamp(70px, 12vw, 120px); }
.hero .eyebrow { color: var(--green-bright); }
.hero .eyebrow::before { background: var(--green-bright); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-cred { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.hero-cred li { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.88); display: flex; align-items: center; gap: 9px; }
.hero-cred li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }
.hero p.lede { color: rgba(255,255,255,.82); max-width: 52ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Page header (Unterseiten) ---------- */
.page-hero { background: var(--bg-ink); color: #fff; padding-block: clamp(110px, 16vw, 160px) clamp(50px, 8vw, 80px); position: relative; overflow: clip; }
.page-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,174,98,.28), transparent 70%);
}
.page-hero .eyebrow { color: var(--green-bright); }
.page-hero .eyebrow::before { background: var(--green-bright); }
.page-hero h1 { color: #fff; max-width: 22ch; position: relative; }
.page-hero p.lede { color: rgba(255,255,255,.78); max-width: 60ch; margin-top: 18px; position: relative; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(60,107,74,.25); }
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex: none;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .96rem; }

.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--charcoal); line-height: 1.55; }
.check-list li svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }

/* ---------- Intro / split sections ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

.split-media { position: relative; }
.portrait-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--green-deep), var(--green));
  padding: clamp(20px, 3vw, 34px) clamp(20px, 3vw, 34px) 0;
  box-shadow: var(--shadow-lg);
}
.portrait-frame img { width: 100%; height: auto; margin-inline: auto; display: block; }
.portrait-frame .frame-tag {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--ink); border-radius: 14px;
  padding: 12px 16px; font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
}

.stat-row { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; margin-top: 30px; }
.stat-row .stat b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--green-deep); font-weight: 700; }
.stat-row .stat span { font-size: .85rem; color: var(--text-soft); }

/* ---------- Quote ---------- */
.quote-block {
  border-left: 3px solid var(--green); padding-left: 24px; margin-block: 8px;
}
.quote-block p { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink); font-weight: 500; line-height: 1.5; }
.quote-block cite { display: block; margin-top: 12px; font-style: normal; font-size: .9rem; color: var(--text-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: clip;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.cta-band h2 { color: #fff; max-width: 20ch; position: relative; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 10px; max-width: 42ch; position: relative; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); flex: none;
  display: flex; align-items: center; justify-content: center; position: relative; transition: transform .3s var(--ease);
}
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-item summary .plus::before { width: 12px; height: 2px; }
.faq-item summary .plus::after { width: 2px; height: 12px; }
.faq-item[open] summary .plus { transform: rotate(135deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--text-soft); max-width: 68ch; }

/* ---------- Contact / info ---------- */
.info-card {
  background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
}
.info-row { display: flex; gap: 16px; padding-block: 16px; border-top: 1px solid var(--border); }
.info-row:first-child { border-top: none; padding-top: 0; }
.info-row .icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.info-row .icon svg { width: 20px; height: 20px; }
.info-row h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.info-row a, .info-row p { font-weight: 500; color: var(--ink); font-size: 1rem; }
.info-row address { font-style: normal; color: var(--ink); font-weight: 500; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.15) contrast(1.02); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-ink); color: rgba(255,255,255,.72); padding-block: 64px 30px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 34ch; font-size: .92rem; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .95rem; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--green-deep); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Legal pages ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 42px; margin-bottom: 14px; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.prose li { color: var(--text-soft); position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.prose a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-page .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 8rem); color: var(--green-soft); line-height: 1; -webkit-text-stroke: 2px var(--green); color: transparent; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: .82rem; font-weight: 600; font-family: var(--font-display); }

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