/* ==========================================================================
   Dr. Elisabeth Binder – Chiropraktik und Physiovet
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #007f31; /* darkened from logo green #009035 for 4.5:1 contrast with white */
  --green-dark: #006030;
  --green-deep: #0b4a29;
  --green-tint: #eef6ef;
  --green-tint-2: #dcefe0;
  --text: #4a4f4c;
  --heading: #1f2421;
  --muted: #5f6561;
  --line: #e6e9e6;
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --footer: #1f2622;
  --footer-2: #29312c;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 8px 24px rgba(16, 40, 24, .08);
  --shadow-lg: 0 2px 4px rgba(16, 40, 24, .06), 0 18px 40px rgba(16, 40, 24, .14);
  --container: 1180px;
  --header-h: 90px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
strong { color: var(--heading); font-weight: 600; }

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; padding: 0 32px; }
@media (max-width: 1080px) { .container-wide { padding: 0 20px; } }
@media (max-width: 600px) { .container, .container-wide { padding: 0 16px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--green-dark); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 72px; }

.brand { display: block; flex-shrink: 0; }
.brand img { height: 62px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 50px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  padding: 10px 13px;
  font-size: .9rem; font-weight: 600; color: #666; white-space: nowrap;
  text-decoration: none; border-radius: 6px;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--green-dark); background: var(--green-tint); }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--heading); }
.nav-link[aria-current="page"]::after, .nav-item.is-active > .nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px;
}
.nav-item.has-sub > .nav-link svg { width: 14px; height: 14px; opacity: .6; }

.nav-link.nav-cta {
  margin-left: 8px; color: #fff; background: var(--green);
  padding: 9px 18px; border-radius: 999px;
}
.nav-link.nav-cta:hover { background: var(--green-dark); color: #fff; }
.nav-link.nav-cta::after { display: none; }

.sub-toggle { display: none; }

.subnav {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover > .subnav, .nav-item:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: .9rem; color: var(--text); text-decoration: none;
}
.subnav a:hover { background: var(--green-tint); color: var(--green-dark); }
.subnav a[aria-current="page"] { color: var(--green-dark); font-weight: 600; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: var(--green-tint); color: var(--green-dark); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 1180px) {
  :root { --header-h: 76px; }
  .header-inner { padding: 0 20px; }
  .brand img { height: 50px; }
  .site-header.is-scrolled .header-inner { height: var(--header-h); }
  .site-header.is-scrolled .brand img { height: 50px; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto;
    padding: 12px 20px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  body.menu-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav-link { flex: 1; padding: 15px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover, .nav-item:focus-within > .nav-link { background: none; }
  .nav-link[aria-current="page"]::after, .nav-item.is-active > .nav-link::after { display: none; }
  .nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--green-dark); }
  .nav-item.has-sub > .nav-link svg { display: none; }

  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: none; color: var(--green-dark);
    cursor: pointer; border-radius: 8px;
  }
  .sub-toggle svg { width: 20px; height: 20px; transition: transform .25s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .subnav,
  .nav-item:hover > .subnav,
  .nav-item:focus-within > .subnav {
    position: static; flex-basis: 100%;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 12px 12px; min-width: 0;
    display: none;
  }
  .subnav.is-open, .nav-item:hover > .subnav.is-open { display: block; }
  .subnav a { padding: 9px 12px; font-size: 1rem; }

  .nav-item:last-child { border-bottom: 0; }
  .nav-link.nav-cta { margin: 20px 0 0; justify-content: center; padding: 14px; }
  .nav-link.nav-cta:hover { background: var(--green-dark); }
}

/* ---------- Hero slider ---------- */

.hero {
  position: relative; overflow: hidden;
  /* fixed 16:9 so the 4:3 / 3:2 photos keep most of their height */
  height: min(56.25vw, 1100px);
  min-height: 340px;
  background: #dfe6e0;
}
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.1s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--heading);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  transition: background-color .2s, transform .2s;
}
.hero-arrow {
  position: absolute; top: 50%; z-index: 2; margin-top: -21px;
}
.hero-prev { left: clamp(12px, 2.5vw, 32px); }
.hero-next { right: clamp(12px, 2.5vw, 32px); }
.hero-arrow:hover { background: #fff; transform: scale(1.06); }
@media (max-width: 600px) { .hero-arrow { width: 36px; height: 36px; margin-top: -18px; } }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-dots { display: flex; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.hero-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .55); transition: background-color .2s, transform .2s;
}
.hero-dot[aria-current="true"] { background: #fff; transform: scale(1.25); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}

.intro { text-align: center; max-width: 820px; margin: 0 auto; }
.intro h1 { margin-bottom: .3em; }
.intro .lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 0; }

.notice {
  display: flex; gap: 18px; align-items: flex-start; text-align: left;
  max-width: 760px; margin: 40px auto 0; padding: 24px 28px;
  background: var(--green-tint); border: 1px solid var(--green-tint-2);
  border-left: 4px solid var(--green); border-radius: var(--radius);
}
.notice-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
}
.notice-icon svg { width: 22px; height: 22px; }
.notice p { margin: 0 0 .5em; }
.notice p:last-child { margin: 0; }
.notice .notice-title { font-weight: 600; color: var(--heading); }
@media (max-width: 520px) { .notice { flex-direction: column; padding: 20px; gap: 12px; } }

/* Service chips */
.services {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  max-width: 1100px;
}
.services li {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 22px 14px 20px; background: #fff; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--heading); font-weight: 500; line-height: 1.4;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.services li:hover { border-color: var(--green-tint-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.services svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--green); }
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .services li { flex-direction: row; text-align: left; padding: 14px 18px; gap: 12px; }
  .services svg { width: 22px; height: 22px; }
}
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.services a { color: inherit; text-decoration: none; }
.services a:hover { color: var(--green-dark); }

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

.card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.card-body h2, .card-body h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: .5em; }
.card-body h3 a, .card-body h2 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover, .card-body h2 a:hover { color: var(--green-dark); }
.card-body p { font-size: .95rem; }
.card-body .more { margin-top: auto; }

.cards-sm { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 600px) { .cards-sm { grid-template-columns: 1fr; } }
.cards-sm .card-body { padding: 18px 20px 20px; }
.cards-sm .card-body h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .35em; }
.cards-sm .card-body p { font-size: .9rem; margin-bottom: .8em; }
.cards-sm .card-media { aspect-ratio: 3 / 2; }

.more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .92rem; color: var(--green-dark); text-decoration: none;
}
.more svg { width: 16px; height: 16px; transition: transform .2s; }
.more:hover svg { transform: translateX(3px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* About split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; z-index: 0; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-body h2 { margin-bottom: .5em; }
.split-body p { font-size: 1.05rem; }
.split-body .btn { margin-top: 10px; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 360px; margin: 0 auto 8px; }
}

/* CTA band */
.cta-band {
  background: var(--green-dark);
  color: rgba(255, 255, 255, .85);
  padding: clamp(28px, 3.5vw, 40px) 0;
  position: relative; overflow: hidden;
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: .15em; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page header (subpages) ---------- */

.page-header {
  padding: clamp(40px, 5vw, 64px) 0 0;
}
/* pull the first content section up so the title reads as part of the page */
.page-header + .section { padding-top: clamp(24px, 3vw, 36px); }
.page-header h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 600; color: var(--green-dark); margin: 0; text-align: center; }
.page-header h1, .article-title { hyphens: auto; overflow-wrap: break-word; }

/* ---------- Article layout ---------- */

.section-article { padding-top: clamp(40px, 5vw, 64px); }
.article {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "media title" "media body"; grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 64px); align-items: start;
}
.article-title { grid-area: title; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 600; color: var(--green-dark); margin: 0 0 .6em; }
.article-media { grid-area: media; display: grid; gap: 20px; position: sticky; top: 100px; }
.article-body { grid-area: body; }
.article-media figure { margin: 0; }
.article-media img { width: 100%; border-radius: var(--radius); }
.article-body { max-width: 720px; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article-body h3 { margin-top: 1.6em; }
.article-full { max-width: 860px; margin: 0 auto; }
@media (max-width: 860px) {
  .article { grid-template-columns: 1fr; grid-template-areas: "title" "media" "body"; grid-template-rows: auto; row-gap: 24px; }
  .article-title { margin: 0; }
  .article-media { position: static; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .article-media figure:only-child { grid-column: 1 / -1; }
  .article-media img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
}

.lead-text { font-size: 1.12rem; color: var(--heading); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006030' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 520px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 1.6em; padding: 0; list-style: none; counter-reset: rule; }
.rules li {
  counter-increment: rule;
  background: var(--green-tint); border-radius: var(--radius); padding: 18px 16px 16px;
  font-weight: 600; color: var(--heading); text-align: center; line-height: 1.35;
}
.rules li::before {
  content: counter(rule); display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .9rem;
}
.rules small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
@media (max-width: 520px) { .rules { grid-template-columns: 1fr; } }

.info-box {
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line); margin: 1.6em 0;
}
.info-box h3 { margin-top: 0; font-size: 1.05rem; }
.info-box p:last-child, .info-box ul:last-child { margin-bottom: 0; }
.info-box.warn { background: #fff8ec; border-color: #f3e2bf; }

/* Callouts: Tipp / Achtung */
.callout {
  --c-accent: var(--green);
  --c-bg: var(--green-tint);
  --c-border: var(--green-tint-2);
  --c-label: var(--green-dark);
  margin: 1.8em 0; padding: 22px 26px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.callout-warn {
  --c-accent: #d98a00;
  --c-bg: #fff7e8;
  --c-border: #f6e2b8;
  --c-label: #9a5b00;
}
.callout-label {
  margin: 2px 0 2px !important;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-label);
}
.callout-title { margin: 0 0 .35em !important; font-size: 1.1rem; font-weight: 600; color: var(--heading); line-height: 1.3; }
.callout p { margin-bottom: .6em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .check-list { margin-top: .3em; }
@media (max-width: 520px) { .callout { padding: 20px; } }

.related { margin-top: clamp(48px, 6vw, 72px); padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.4rem; margin-bottom: 20px; }
.pill-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--heading); font-size: .92rem; font-weight: 500; text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pill-nav a:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-tint); }
.pill-nav a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Timeline (Über mich) ---------- */

.timeline-group { margin-top: 64px; }
.timeline-group > h2 { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; margin-bottom: 20px; }
.badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; background: var(--green-tint); color: var(--green);
}
.badge svg { width: 22px; height: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 170px; top: 12px; bottom: 12px; width: 2px; background: var(--green-tint-2); }
.timeline li { display: grid; grid-template-columns: 170px 1fr; padding: 9px 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 165px; top: 17px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green);
}
.timeline .when { font-weight: 600; color: var(--green-dark); font-size: .9rem; text-align: right; padding-right: 28px; line-height: 1.5; padding-top: 3px; }
.timeline .what { padding-left: 28px; }
.timeline .what small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; line-height: 1.6; }
@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 30px; }
  .timeline li::before { left: 0; top: 15px; }
  .timeline .when { text-align: left; padding: 0; }
  .timeline .what { padding: 0; }
}

.about-intro { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.about-intro img { border-radius: var(--radius-lg); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about-intro h2 { margin-bottom: .5em; }
@media (max-width: 760px) { .about-intro { grid-template-columns: 1fr; gap: 28px; } .about-intro img { max-width: 300px; } }

.timeline-intro { margin: -6px 0 14px 56px; color: var(--muted); }
@media (max-width: 640px) { .timeline-intro { margin-left: 0; } }

/* ---------- Contact ---------- */

.contact-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.contact-card h2 { font-size: 1.4rem; margin-bottom: .2em; }
.contact-card .sub { color: var(--muted); margin-bottom: 1.6em; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-tint); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list .label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.contact-list a { color: var(--heading); text-decoration: none; font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-list a:hover { color: var(--green-dark); }
.contact-list address { font-style: normal; color: var(--heading); font-size: 1.05rem; line-height: 1.6; }

.contact-aside { display: flex; flex-direction: column; gap: 32px; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.contact-aside .logo-tiere { width: min(300px, 80%); }
.appointment { display: flex; align-items: center; gap: 18px; text-align: left; }
.appointment img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.appointment h3 { margin: 0 0 .15em; font-size: 1.15rem; }
.appointment p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Map (click to load) */
.map {
  position: relative; margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 7; min-height: 300px; background: var(--green-tint);
  border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
  background: var(--green-tint);
}
.map-consent .pin { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.map-consent .pin svg { width: 26px; height: 26px; }
.map-consent p { max-width: 460px; font-size: .88rem; color: var(--text); margin: 0; }
.map-consent strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 600px) { .map { aspect-ratio: auto; height: 380px; } }

/* Legal */
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1.5em; }
.legal dt { font-weight: 600; color: var(--heading); }
.legal dd { margin: 0; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: 10px; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 52px; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; } }
.footer-title { color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; margin: 0 0 14px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 .7em; }
.site-footer address { font-style: normal; margin-bottom: .9em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { font-size: .75rem; color: rgba(255, 255, 255, .6); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-top: 0; padding-bottom: 28px; }
.footer-bottom .container::before { content: ""; flex-basis: 100%; height: 1px; margin-bottom: 18px; background: rgba(255, 255, 255, .14); }
/* keep the credit clear of the fixed back-to-top button */
@media (max-width: 1500px) { .footer-bottom .credit { margin-right: 56px; } }
@media (max-width: 600px) { .footer-bottom .credit { margin-right: 0; } }
.footer-bottom .credit { color: rgba(255, 255, 255, .6); }
.footer-bottom .credit a { color: rgba(255, 255, 255, .75); }
.footer-bottom .credit a:hover { color: #fff; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */

[data-lightbox] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 500; margin: 0; padding: 0; border: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  background: rgba(10, 18, 13, .92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */

.error-page { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.error-page .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--green-tint-2); line-height: 1; margin-bottom: 10px; }

@media print {
  .site-header, .site-footer, .hero, .to-top, .cta-band, .map { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
