/* Gesundheitspraxis Ternig - design system "Website KT" (see MIGRATION.md section 9) */

/* Fonts: Oxygen (as on the old site), self-hosted, latin + latin-ext only */
@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/oxygen-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/oxygen-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oxygen-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oxygen-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/oxygen-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/oxygen-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens */
:root {
  --surface: #fbfaf6;
  --surface-raised: #ffffff;
  --mint-soft: #e4f4ec;
  --sand: #efe6d6;
  --mint: #8fd3b6;
  --on-mint: #22302b;
  --teal: #2c7a68;
  --on-teal: #ffffff;
  --ink: #22302b;
  --ink-muted: #56645f;
  --line: #dbe5e0;
  --focus-ring: var(--teal);
  --link: var(--teal);
  --shadow-soft: 0 8px 24px rgba(34, 48, 43, 0.08);

  --font-heading: "Oxygen", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Oxygen", "Segoe UI", system-ui, sans-serif;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 96px);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --header-offset: 120px;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 50;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--on-teal);
  font-weight: 700;
}
.skip-link:focus { top: var(--space-4); color: var(--on-teal); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout */
.container { max-width: 1120px; margin: 0 auto; }
.section {
  scroll-margin-top: var(--header-offset);
  padding: var(--section-y) var(--gutter);
}
.section--mint { background: var(--mint-soft); }
.section--sand { background: var(--sand); }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--space-10);
  align-items: center;
}
.split--top { align-items: start; }
.grid { margin-top: var(--space-10); display: grid; gap: var(--space-6); }
.grid--offers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* Type */
.eyebrow, .label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow { margin: 0 0 var(--space-2); }
.h2 { font-weight: 400; font-size: clamp(28px, 4vw, 36px); line-height: 1.2; }
.h3 { font-weight: 700; font-size: 22px; line-height: 1.3; }
.lead { margin-top: var(--space-4); font-size: 20px; line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.lead--narrow { max-width: 44ch; }
.prose { max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: var(--space-4); }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.note { margin-top: var(--space-6); max-width: 68ch; }
.price { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--teal);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease-out, color .2s ease-out;
}
.btn--primary { background: var(--teal); color: var(--on-teal); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-teal); }
.btn--secondary { background: transparent; color: var(--teal); }
.btn--secondary:hover { background: var(--teal); color: var(--on-teal); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 16px; white-space: nowrap; }
.btn__icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--call { gap: 8px; }
@media (max-width: 480px) {
  .btn--call { width: 44px; padding: 0; }
  .btn--call .btn__label { display: none; }
}
.btn-row { margin-top: var(--space-10); display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--mint-soft);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease-out;
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }
.site-header__bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__name { font-family: var(--font-heading); font-weight: 700; font-size: 23px; line-height: 1.1; letter-spacing: -0.01em; color: var(--teal); }
@media (max-width: 420px) { .brand__name { font-size: 18px; } }
.brand__place { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1; color: var(--ink-muted); }
.site-nav-wrap { background: var(--surface-raised); border-top: 1px solid var(--line); }
.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
  /* fade at the right edge hints that the nav scrolls on small screens */
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--teal); border-bottom-color: var(--teal); }
.site-nav a:last-child { padding-right: 32px; }
@media (min-width: 1000px) { .site-nav { mask-image: none; } .site-nav a:last-child { padding-right: 0; } }

/* Hero */
.hero { overflow: hidden; padding-top: clamp(48px, 8vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero__title { font-weight: 400; font-size: clamp(36px, 5.6vw, 56px); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.hero__lead { margin-top: var(--space-6); font-size: 20px; line-height: 1.6; max-width: 34ch; text-wrap: pretty; }
.hero__meta { margin-top: var(--space-6); }
.hero__media { position: relative; padding: 32px 0 32px 32px; }
.hero__disc { position: absolute; right: -8%; top: 0; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--mint); }
.hero__arc { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--mint-soft); }
.hero__photo { position: relative; max-width: 440px; margin-left: auto; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }

/* Cards */
.card {
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.card--outlined { border: 1px solid var(--line); gap: 12px; }
.card--lift { transition: box-shadow .25s ease-out; }
.card--lift:hover { box-shadow: var(--shadow-soft); }
.card__body { flex: 1; }
.card__link { margin-top: var(--space-2); font-weight: 700; }
.card__media { margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-2); }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.offer-price { margin-top: var(--space-2); display: flex; align-items: baseline; gap: var(--space-2); }
.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--mint-soft);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* Cranio */
.person-card { flex-direction: row; gap: var(--space-6); align-items: center; }
.person-card__mark { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--mint); position: relative; }
.person-card__mark::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--mint-soft); }

/* Lists */
.dot-list {
  margin: 0;
  padding: var(--space-6);
  list-style: none;
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.dot-list li { display: flex; gap: var(--space-4); align-items: baseline; }
.dot-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); transform: translateY(-1px); }
.chips { margin: var(--space-6) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { background: var(--surface-raised); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 14px; line-height: 1.5; }

/* About */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: start; }
.portrait { position: relative; max-width: 400px; width: 100%; padding: 0 var(--space-6) var(--space-6) 0; }
.portrait::before { content: ""; position: absolute; right: 0; bottom: 0; width: calc(100% - 24px); height: calc(100% - 24px); border-radius: var(--radius-md); background: var(--mint); }
.portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }
.about__text { margin-top: var(--space-4); }
.signoff { margin-top: 32px; font-family: var(--font-heading); font-weight: 400; font-size: 22px; line-height: 1.3; }

/* Gallery */
.gallery {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-6);
}
.gallery figure { margin: 0; position: relative; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: 14px;
  line-height: 1.4;
}

/* Contact */
.contact-list { margin: 32px 0 0; font-style: normal; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4) var(--space-6); }
.contact-list .label { padding-top: 2px; }
.contact-list a { overflow-wrap: anywhere; }
.map { margin: 0; }
.map__frame { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; }
.map__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--surface-raised);
  box-shadow: 0 0 0 10px rgba(143, 211, 182, .6), 0 0 0 22px rgba(143, 211, 182, .3);
}
.map figcaption { margin-top: var(--space-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); }

/* Footer */
.site-footer { background: var(--mint-soft); padding: var(--space-10) var(--gutter); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.site-footer__name { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 19px; line-height: 1.3; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: 14px; line-height: 1.5; }
.social { margin: 0; padding: 0; list-style: none; display: flex; gap: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-raised); color: var(--teal); transition: background-color .2s ease-out, color .2s ease-out; }
.social a:hover { background: var(--teal); color: var(--on-teal); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--ink); }

/* Consent banner */
.consent {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 30;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.consent[hidden] { display: none; }
.consent__title { font-family: var(--font-heading); font-weight: 700; font-size: 19px; line-height: 1.3; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.consent__actions button {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--teal);
  background: var(--surface-raised);
  color: var(--teal);
  font: 700 16px var(--font-sans);
  cursor: pointer;
}
.consent__actions button:hover { background: var(--teal); color: var(--on-teal); }

/* Legal pages */
.legal { padding: var(--section-y) var(--gutter); }
.legal .container { max-width: 760px; }
.legal h1 { font-weight: 400; font-size: clamp(32px, 5vw, 44px); line-height: 1.15; }
.legal h2 { margin-top: var(--space-10); font-weight: 400; font-size: 24px; line-height: 1.3; }
.legal h3 { margin-top: var(--space-6); font-weight: 700; font-size: 19px; line-height: 1.3; }
.legal p, .legal ul { margin: var(--space-4) 0 0; }
.legal ul { padding-left: 1.2em; }
.legal a { overflow-wrap: anywhere; }
.legal .legal__stand { margin-top: var(--space-10); }
.legal .back { display: inline-block; margin-bottom: var(--space-6); font-weight: 700; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Content additions: price list, quote, stacked cards */
.price-list { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-2); }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.price-list dt { margin: 0; }
.price-list dt .small { margin-left: 6px; }
.price-list dd { margin: 0; white-space: nowrap; }
.quote { margin: var(--space-6) 0 0; padding: 0 0 0 var(--space-6); border-left: 3px solid var(--mint); font-family: var(--font-heading); font-weight: 300; font-size: 20px; line-height: 1.5; max-width: 52ch; }
.stack { display: flex; flex-direction: column; gap: var(--space-6); }
.dot-list--plain { padding: 0; background: none; border-radius: 0; margin-top: var(--space-2); gap: 12px; }
.person-card { margin-top: var(--space-10); }
.contact-list--after-lead { margin-top: var(--space-6); }
