/* Rynkeby Hesteklinik: site styles.
   No framework: plain CSS with custom properties. Mobile first. */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #1f5c9e;
  --blue-dark: #174a82;
  --blue-logo: #3277be;
  --blue-50: #eef4fb;
  --blue-100: #dbe8f6;
  --navy: #0e2236;
  --navy-2: #16314d;
  --ink: #142231;
  --text: #34414e;
  --muted: #5f6b78;
  --sand: #f7f3ec;
  --sand-2: #efe8dc;
  --line: #e5ded2;
  --copper: #b8743a;
  --copper-ink: #94571f;
  --white: #fff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgb(14 34 54 / 6%), 0 2px 8px rgb(14 34 54 / 5%);
  --shadow: 0 1px 2px rgb(14 34 54 / 6%), 0 10px 30px rgb(14 34 54 / 9%);
  --shadow-lg: 0 30px 70px rgb(14 34 54 / 20%);
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue-logo); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 560;
  letter-spacing: -.015em;
  font-variation-settings: "SOFT" 50;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong, b { color: var(--ink); font-weight: 650; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; color: var(--white); }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 .9rem;
  color: var(--copper-ink);
  font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgb(31 92 158 / 28%); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--sand); color: var(--navy); }
.btn--outline { border-color: var(--blue-100); color: var(--blue); background: var(--white); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgb(255 255 255 / 82%); font-size: .875rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; min-height: 40px; align-items: center; }
.topbar-list { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: .4rem 0; list-style: none; }
.topbar-list li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-list .icon { color: #8fb8e6; width: 1rem; height: 1rem; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 1099px) { .hide-md { display: none !important; } }
@media (max-width: 639px) { .hide-sm { display: none !important; } }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgb(14 34 54 / 8%); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: auto; height: 46px; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; }
.nav-link {
  display: block; padding: .6rem .75rem; border-radius: 999px;
  color: var(--ink); font-weight: 550; font-size: .98rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-link:hover { color: var(--blue); background: var(--blue-50); }
.nav-item.is-active > .nav-link,
.nav-item.is-active > .nav-row > .nav-link { color: var(--blue); }
.nav-item.is-active > .nav-link::after,
.nav-item.is-active > .nav-row > .nav-link::after {
  content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--copper);
}
.sub-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.5rem;
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 10;
  min-width: 270px; padding: .6rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
.sub-menu ul { margin: 0; padding: 0; list-style: none; }
.sub-menu a {
  display: block; padding: .6rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; line-height: 1.35;
}
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--sand); color: var(--blue); }
.sub-menu strong { display: block; font-weight: 600; color: inherit; }
.sub-menu small { display: block; color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.sub-menu--mega { width: min(720px, 90vw); padding: 1rem; }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .15rem .5rem; }
.mega-all {
  display: flex !important; align-items: center; gap: .4rem;
  margin-top: .5rem; padding: .8rem !important; border-top: 1px solid var(--line); border-radius: 0 !important;
  color: var(--blue) !important; font-weight: 600;
}
.mega-all:hover { background: none !important; }
.person-link { display: flex !important; align-items: center; gap: .8rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.nav-contact { display: none; }
.header-cta { flex: none; }
.nav-toggle {
  display: none; align-items: center; gap: .4rem;
  min-height: 44px; padding: .5rem .9rem; margin-left: auto;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--ink); font: 600 .95rem var(--font-sans); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1100px) {
  .nav-item.has-sub:hover > .sub-menu,
  .nav-item.has-sub:focus-within > .sub-menu,
  .nav-item.has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-item.has-sub:hover .sub-toggle .icon,
  .nav-item.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
  .nav-item.is-mega > .sub-menu { left: auto; right: -220px; transform: translateY(6px); }
  .nav-item.is-mega:hover > .sub-menu,
  .nav-item.is-mega:focus-within > .sub-menu,
  .nav-item.is-mega.is-open > .sub-menu { transform: translateY(0); }
}
@media (max-width: 1239px) and (min-width: 1100px) {
  .header-cta { display: none; }
}

/* Mobile menu */
@media (max-width: 1099px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .header-cta { display: none; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 40;
    display: flex; flex-direction: column;
    margin: 0; padding: 1rem var(--gutter) 2rem;
    background: var(--white); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-row { justify-content: space-between; }
  .nav-link { padding: 1rem .25rem; font-size: 1.15rem; border-radius: 0; }
  .nav-link:hover { background: none; }
  .nav-item.is-active > .nav-link::after,
  .nav-item.is-active > .nav-row > .nav-link::after { display: none; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; background: var(--sand); }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .sub-menu {
    position: static; display: none; width: auto; min-width: 0; margin: 0 0 1rem; padding: .25rem;
    border: 0; box-shadow: none; background: var(--sand);
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .sub-menu--mega { width: auto; }
  .nav-item.is-open > .sub-menu { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-grid small { display: none; }
  .nav-contact { display: block; margin-top: 1.5rem; }
  .nav-contact p { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: rgb(255 255 255 / 80%); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: #e3a96f; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head.section-head-row { max-width: none; }
.section-head-row > div { max-width: 720px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 82vh, 780px);
  display: grid; align-items: center;
  padding-block: 96px 140px;
  color: var(--white);
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 25 41 / 92%) 0%, rgb(10 25 41 / 72%) 42%, rgb(10 25 41 / 10%) 75%),
    linear-gradient(0deg, rgb(10 25 41 / 55%) 0%, transparent 40%);
}
.hero-content { max-width: 640px; animation: rise .8s var(--ease) both; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 em { white-space: nowrap; font-style: italic; color: #f0c48f; font-weight: 500; }
.hero .eyebrow { color: #f0c48f; }
.hero .lead { color: rgb(255 255 255 / 86%); max-width: 34em; }
.hero .btn--ghost { color: var(--white); }
.hero .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 719px) {
  .hero { padding-block: 72px 120px; }
  .hero::before { background: linear-gradient(0deg, rgb(10 25 41 / 92%) 10%, rgb(10 25 41 / 55%) 100%); }
  .hero-media img { object-position: 80% 35%; }
}

.info-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: -72px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.info-strip > div { display: flex; gap: 1rem; align-items: flex-start; padding: 1.6rem 1.75rem; }
.info-strip > div + div { border-left: 1px solid var(--line); }
.info-strip .icon-badge { flex: none; }
.info-strip h2 { font: 650 1rem/1.3 var(--font-sans); letter-spacing: 0; margin: .15rem 0 .2rem; }
.info-strip p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.info-strip a { font-weight: 600; text-decoration: none; }
@media (max-width: 899px) {
  .info-strip { grid-template-columns: 1fr; }
  .info-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .info-strip > div { padding: 1.25rem 1.35rem; }
}
.icon-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--blue-50); color: var(--blue);
}
.icon-badge .icon { width: 22px; height: 22px; }

/* ---------- "Vi hjælper dig, når" ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--even { grid-template-columns: 1fr 1fr; align-items: center; }
  .split-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
}
.symptom-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.symptom-list a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); text-decoration: none; font-weight: 550; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.symptom-list a:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateX(4px); }
.symptom-list .check {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px;
  border-radius: 50%; background: var(--blue-50); color: var(--blue);
}
.symptom-list .check .icon { width: 18px; height: 18px; }
.symptom-list .go { margin-left: auto; color: var(--muted); }
.symptom-list small { display: block; color: var(--muted); font-weight: 400; font-size: .875rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: clamp(16px, 2vw, 24px); margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  overflow: hidden; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--sand-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card--link:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.card-body h3 { margin-bottom: .35rem; }
.card-body p { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.card-body .eyebrow { margin-bottom: .5rem; font-size: .72rem; }
.card-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; color: var(--blue); font-weight: 600; font-size: .95rem; }
.card-more .icon { transition: transform .2s var(--ease); }
.card--link:hover .card-more .icon { transform: translateX(4px); }

.article-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) {
  .card--wide > a { flex-direction: row; }
  .card--wide .card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
  .card--wide .card-body { padding: 1.75rem 2rem; }
}

/* ---------- Values (navy) ---------- */
.values { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { padding: 2rem; border-radius: var(--radius); background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%); }
.values .icon-badge { background: rgb(255 255 255 / 9%); color: #f0c48f; margin-bottom: 1.25rem; }
.values h3 { font-family: var(--font-serif); font-weight: 560; font-size: 1.5rem; margin-bottom: .4rem; }
.values p { margin: 0; }

.values-photo { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; }
.values-photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 719px) { .values-photo img { aspect-ratio: 16 / 10; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.75rem 4rem; min-height: 3.5rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.2rem;
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue); color: var(--blue);
  font: 600 1.05rem var(--font-serif);
}
.steps li::after {
  content: ""; position: absolute; left: calc(1.3rem - 1px); top: 2.6rem; bottom: .1rem;
  width: 2px; background: var(--blue-100);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .97rem; }

.panel { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.panel h3 { margin-top: 1rem; font-family: var(--font-serif); font-weight: 560; font-size: 1.5rem; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: .85rem; padding: .45rem 0; color: var(--ink); font-weight: 550; line-height: 1.4; }
.check-list .check, .symptom-list .check {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px;
  border-radius: 50%; background: var(--blue-50); color: var(--blue);
}
.check-list .check .icon { width: 16px; height: 16px; }
.panel-note { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 550; }

/* ---------- Team ---------- */
.team-photo { margin: 0 0 clamp(32px, 4vw, 56px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-photo img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; object-position: 50% 30%; }
.team-grid { display: grid; gap: clamp(16px, 2vw, 24px); margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.person-card a { display: block; color: inherit; text-decoration: none; }
.person-photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; background: var(--sand-2); margin-bottom: 1rem; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.person-card a:hover img { transform: scale(1.05); }
.person-card .eyebrow { margin-bottom: .3rem; font-size: .72rem; }
.person-card h3 { margin-bottom: .25rem; }
.person-card a:hover h3 { color: var(--blue); }
.person-card p:last-child { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* ---------- About + map ---------- */
.facts-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.facts-row li { display: flex; flex-direction: column; }
.facts-row strong { font: 560 2rem/1.1 var(--font-serif); color: var(--blue); }
.facts-row span { color: var(--muted); font-size: .92rem; }

.map {
  position: relative; overflow: hidden; display: grid; place-items: center;
  min-height: 360px; border-radius: var(--radius); box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / 65%), transparent 60%),
    repeating-linear-gradient(45deg, var(--blue-50) 0 18px, #e6eef8 18px 36px);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card { position: relative; max-width: 340px; margin: 1.5rem; padding: 1.5rem; text-align: center;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-card .icon-badge { margin-bottom: .75rem; }
.map-card p { margin-bottom: 1rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.map-card address { font-style: normal; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--sand); padding-block: clamp(40px, 6vw, 80px); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgb(184 116 58 / 10%), transparent 70%); pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero:not(.has-media) .page-hero-text { max-width: 800px; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); margin-bottom: .3em; }
.page-hero .lead { margin: 0; max-width: 36em; }
@media (min-width: 900px) {
  .page-hero.has-media .page-hero-inner { grid-template-columns: 1.1fr .9fr; }
}
.page-hero-media { position: relative; }
.page-hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: calc(var(--radius) + 4px);
  background: var(--blue-100);
}
.page-hero-media img {
  position: relative; width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.page-hero-media.is-portrait { max-width: 400px; justify-self: center; width: 100%; }
.page-hero-media.is-portrait img { aspect-ratio: 1; }
@media (max-width: 899px) {
  .page-hero-media { margin-right: 18px; }
  .page-hero-media img { aspect-ratio: 16 / 10; }
  .page-hero-media.is-portrait img { aspect-ratio: 1; }
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #b6ad9f; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Page body: article + sidebar ---------- */
.page-body { display: grid; gap: clamp(40px, 5vw, 72px); padding-block: clamp(48px, 6vw, 88px); }
@media (min-width: 960px) {
  .page-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.sidebar { display: grid; gap: 1.25rem; }
.side-card { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.side-card--book { background: var(--navy); border-color: var(--navy); color: rgb(255 255 255 / 80%); }
.side-card--book .eyebrow { color: #f0c48f; margin-bottom: .4rem; }
.side-card--book h2 { color: var(--white); font-size: 1.6rem; margin-bottom: .6rem; }
.big-phone { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  color: var(--white); font: 600 1.7rem/1.2 var(--font-serif); text-decoration: none; }
.big-phone:hover { color: #f0c48f; }
.big-phone .icon { width: 1.4rem; height: 1.4rem; color: #8fb8e6; }
.facts { margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: .93rem; line-height: 1.45; }
.facts li { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; }
.facts .icon { margin-top: .1rem; color: #8fb8e6; }
.side-card--book .btn--outline { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 35%); }
.side-card--book .btn--outline:hover { border-color: var(--white); color: var(--white); }
.side-title { font: 650 .8rem/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.link-list, .people-list, .toc { margin: 0; padding: 0; list-style: none; }
.link-list a {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.link-list li:last-child a { border-bottom: 0; }
.link-list .icon { color: var(--muted); width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.link-list a:hover { color: var(--blue); }
.link-list a:hover .icon { transform: translateX(3px); color: var(--blue); }
.people-list a { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; color: var(--ink); text-decoration: none; line-height: 1.3; }
.people-list strong { display: block; font-weight: 600; }
.people-list small { color: var(--muted); }
.people-list a:hover strong { color: var(--blue); }
.toc { counter-reset: toc; }
.toc a { display: flex; gap: .7rem; padding: .45rem 0; color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--copper-ink); font-feature-settings: "tnum"; font-size: .85rem; padding-top: .1rem; }
.toc a:hover { color: var(--blue); }
@media (max-width: 959px) { .side-card--toc { display: none; } }

/* ---------- Prose (page content) ---------- */
.prose { max-width: 72ch; font-size: 1.075rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2.1rem); margin: 1.9em 0 .55em; }
.prose h3 { font-size: 1.2rem; margin: 2em 0 .5em; }
.prose p.intro { font-size: 1.25rem; line-height: 1.6; color: var(--ink); font-family: var(--font-serif); font-weight: 420; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--copper); }
.prose ul.checks { list-style: none; padding: 0; }
.prose ul.checks li { position: relative; padding-left: 2rem; }
.prose ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5c9e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.prose ul.cols { columns: 2 220px; column-gap: 2rem; }
.prose ul.cols li { break-inside: avoid; }
.prose figure { margin: 2.25em 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose figure.small img { max-width: min(100%, 420px); }
.prose img.crop { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prose figcaption { margin-top: .75rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.prose .figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.prose .figure-pair img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.note {
  margin: 2em 0; padding: 1.25rem 1.5rem; border-radius: var(--radius-sm);
  background: var(--blue-50); border-left: 4px solid var(--blue); color: var(--ink);
}
.note p:last-child { margin: 0; }
.note--warm { background: #faf1e7; border-left-color: var(--copper); }
.quote {
  position: relative; margin: 2.25em 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius);
  background: var(--sand); color: var(--ink);
}
.quote::before { content: "“"; position: absolute; top: -.15em; left: .25em; font: 600 6rem/1 var(--font-serif); color: var(--copper); opacity: .35; }
.quote blockquote { margin: 0; font: italic 400 clamp(1.15rem, 1rem + .6vw, 1.4rem)/1.55 var(--font-serif); }
.quote figcaption { margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.quote-row { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 2em; }
.quote-row .quote { margin: 0; }
@media (min-width: 640px) { .quote-row { grid-template-columns: 1.6fr 1fr; } }
.quote-row img { border-radius: var(--radius-sm); }

.byline { display: flex; align-items: center; gap: .8rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline span { line-height: 1.35; font-size: .95rem; color: var(--muted); }
.byline a { font-weight: 600; text-decoration: none; }

.timeline { list-style: none; padding: 0 !important; margin: 1em 0 0; border-left: 2px solid var(--blue-100); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.5rem; margin: 0 !important; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); }
.timeline time { display: block; font-weight: 650; color: var(--blue); font-size: .9rem; letter-spacing: .02em; }

.feature-grid { display: grid; gap: 1rem; margin: 1.5em 0 2em; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-grid > div { padding: 1.35rem 1.5rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); }
.feature-grid h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.feature-grid ul { margin: 0; }

/* Price cards */
.price-cards { display: grid; gap: 1rem; margin: 1.5em 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .price-cards { grid-template-columns: repeat(3, 1fr); } }
.price-cards li { display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin: 0 !important; }
.price-cards li.is-featured { background: var(--navy); border-color: var(--navy); color: rgb(255 255 255 / 75%); }
.price-cards h3 { margin: 0 0 1.25rem; font-size: 1rem; }
.price-cards .is-featured h3 { color: var(--white); }
.price-cards .price { margin: auto 0 0; font: 560 2rem/1.1 var(--font-serif); color: var(--blue); }
.price-cards .is-featured .price { color: #f0c48f; }
.price-cards small { display: block; margin-top: .3rem; font-size: .85rem; }

/* FAQ */
.faq { margin: 1.5em 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sand); color: var(--blue); font: 400 1.4rem/1 var(--font-sans); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; padding-right: 3rem; }

/* ---------- Price list ---------- */
.price-intro { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 900px) { .price-intro { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.price-groups { columns: 2 420px; column-gap: 1.25rem; }
.price-group { break-inside: avoid; margin-bottom: 1.25rem; padding: clamp(20px, 2.5vw, 32px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.price-group h2 { display: flex; align-items: center; gap: .75rem; font-size: 1.4rem; margin-bottom: .75rem; }
.price-group h2 a, .feature-grid h3 a { color: inherit; text-decoration: none; }
.price-group h2 a:hover, .feature-grid h3 a:hover { color: var(--blue); }
.price-group table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.price-group td { padding: .75rem 0; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.price-group tr:first-child td { border-top: 0; }
.price-group td:last-child { padding-left: 1rem; text-align: right; white-space: nowrap; font-weight: 650; color: var(--ink); font-feature-settings: "tnum"; }
.price-group td small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.surcharge { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 900px) { .surcharge { grid-template-columns: 1fr 1fr 1fr; } }
.surcharge > div { padding: 1.5rem; border-radius: var(--radius); background: var(--sand); }
.surcharge h3 { margin-bottom: .75rem; }
.surcharge ul { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.surcharge li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.surcharge li:last-child { border-bottom: 0; }
.surcharge li span:last-child { font-weight: 650; color: var(--ink); white-space: nowrap; }
.surcharge p { margin: 0; font-size: .95rem; }
.big-number { font: 560 2.2rem/1.1 var(--font-serif); color: var(--blue); margin: .25rem 0 .5rem !important; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(24px, 4vw, 56px); padding-block: clamp(48px, 6vw, 88px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-cards { display: grid; gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.contact-cards a, .contact-cards div {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; line-height: 1.4;
}
.contact-cards a:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.contact-cards small { display: block; color: var(--muted); font-size: .85rem; }
.contact-cards strong { font-weight: 600; }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h2 { font-size: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; color: var(--ink); font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfbf8; color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgb(31 92 158 / 14%); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-error { display: block; margin-top: .35rem; color: #b42318; font-size: .88rem; font-weight: 550; }
.field.has-error input, .field.has-error textarea { border-color: #d92d20; }
.form-status { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: var(--radius-sm); background: #fef3f2; color: #b42318; font-weight: 550; }
.form-status[hidden] { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.form-foot p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Plain pages (404, tak) ---------- */
.plain-page { padding-block: clamp(72px, 12vw, 160px); background: var(--sand); text-align: center; }
.plain-page .icon-badge { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 1.5rem; }
.plain-page .icon-badge .icon { width: 32px; height: 32px; }
.plain-page .actions { justify-content: center; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(48px, 6vw, 88px); }
.cta-inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 55%, var(--blue-logo));
  color: rgb(255 255 255 / 86%);
}
.cta-inner::after {
  content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 16%), transparent 70%);
}
.cta-inner h2 { color: var(--white); margin-bottom: .4rem; }
.cta-inner p { margin: 0; max-width: 40em; }
.cta-inner .actions { margin: 0; }
.cta-inner .btn--ghost { color: var(--white); }
.cta-inner .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--blue-dark); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }
.layout-plain .cta-band, .page-kontakt .cta-band { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgb(255 255 255 / 72%); font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(48px, 6vw, 80px); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr .8fr; } }
.footer-brand img { width: 190px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 30em; }
.footer-title { font: 650 .8rem/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: .6rem; line-height: 1.5; }
.site-footer a { color: rgb(255 255 255 / 85%); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / 8%); }
.social a:hover { background: var(--white); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 10%); font-size: .875rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .sidebar { display: none; }
}
