@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172f35;
  --accent: #396558;
  --muted: #40595e;
  --teal: #12383d;
  --pale: #eef4f3;
  --paper: #fbfdfc;
  --lime: #daf29c;
  --line: #cddbd9;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
section[id] { scroll-margin-top: 2rem; }
:focus-visible { outline: 3px solid #356a55; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.container { width: min(82rem, calc(100% - 8rem)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid #e0e9e7; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 5.4rem; }
.brand { display: inline-flex; align-items: center; gap: 1.15rem; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 8rem; height: auto; }
.brand span { color: var(--muted); border-left: 1px solid var(--line); padding-left: 1.15rem; font-size: 0.92rem; }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem 1.9rem; }
.nav-text { text-decoration: none; font-size: 0.94rem; font-weight: 520; }
.nav-text:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.65rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.button-primary { background: var(--lime); color: var(--ink); }
.button-primary:hover { background: #e8f7c5; }
.button-header { min-height: 2.8rem; padding-inline: 1.2rem; background: var(--teal); color: white; font-size: 0.93rem; }
.button-header:hover { background: #245757; }
.button:disabled { opacity: 0.65; cursor: default; }
.text-link { display: inline-block; font-weight: 650; text-underline-offset: 0.24em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { background: #f5f9f8; padding: clamp(3rem, 5.7vw, 5.65rem) 0 clamp(2.1rem, 4.2vw, 4rem); }
.hero-intro { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 0.78fr); align-items: end; gap: 3rem; }
.eyebrow { margin-bottom: 1rem; color: var(--accent); font-size: 0.82rem; font-weight: 750; letter-spacing: 0.105em; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 6.2vw, 6.4rem); font-weight: 580; line-height: 0.99; letter-spacing: -0.069em; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.4rem, 4.75vw, 4.65rem); font-weight: 580; line-height: 1.025; letter-spacing: -0.065em; }
h3 { font-size: clamp(1.27rem, 1.7vw, 1.65rem); font-weight: 675; line-height: 1.16; letter-spacing: -0.035em; }
.hero-copy { max-width: 26rem; padding-bottom: 0.25rem; }
.hero-copy p { color: var(--muted); font-size: clamp(1.08rem, 1.55vw, 1.28rem); line-height: 1.5; text-wrap: pretty; }
.hero-copy .button { margin-top: 1.55rem; }
.hero-photo { position: relative; margin-top: clamp(2rem, 4vw, 3.75rem); }
.hero-photo img { width: 100%; height: clamp(17rem, 34vw, 34.5rem); object-fit: cover; object-position: 50% 53%; border-radius: 1.5rem; }
.hero-photo figcaption { position: absolute; left: 1.25rem; bottom: 1.25rem; display: grid; gap: 0.05rem; padding: 0.8rem 1.1rem; border-radius: 0.9rem; background: var(--paper); color: var(--muted); font-size: 0.88rem; }
.hero-photo figcaption span:first-child { color: var(--ink); font-weight: 750; }

.section { padding: clamp(3.5rem, 7vw, 7.25rem) 0; }
.section-grid, .therapy-grid, .apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6.25rem); }
.section-grid h2 { max-width: 10.5ch; }
.prose { align-self: end; }
.prose p, .therapy-copy > p:not(.eyebrow), .apply-copy > p:not(.eyebrow) { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.17rem); line-height: 1.64; text-wrap: pretty; }
.prose p + p, .therapy-copy p + p, .apply-copy p + p { margin-top: 1rem; }
.therapy { background: var(--pale); }
.therapy-grid { align-items: center; }
.therapy-photo img { width: 100%; height: auto; aspect-ratio: 1.24; object-fit: cover; object-position: 57% center; border-radius: 1.4rem; }
.therapy-photo figcaption { margin-top: 0.7rem; font-size: 0.86rem; color: var(--muted); }
.therapy-copy h2, .apply-copy h2 { margin-bottom: 1.35rem; }
.therapy-copy .text-link, .apply-copy .text-link { margin-top: 1.25rem; }
.work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem, 3.5vw, 3.75rem); margin-top: clamp(1.75rem, 3.8vw, 3.75rem); }
.work-grid > div { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.work-grid p { margin-top: 0.6rem; color: var(--muted); font-size: 1.05rem; }

.apply { background: var(--teal); color: white; }
.apply-copy .eyebrow { color: var(--lime); }
.apply-copy h2 { max-width: 11ch; }
.apply-copy > p:not(.eyebrow) { color: #e1edeb; }
.apply-email { color: var(--lime); }
.apply-email:focus-visible { outline-color: var(--lime); }
.application-form { background: var(--paper); color: var(--ink); padding: clamp(1.25rem, 3.4vw, 2.65rem); border-radius: 1.4rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.15rem; }
.field label { font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 2.9rem; padding: 0.65rem 0.8rem; border: 1px solid #9fb5b2; border-radius: 0.55rem; background: white; color: var(--ink); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field small, .form-privacy { color: var(--muted); font-size: 0.9rem; }
.form-privacy { margin-block: 0.85rem 1.15rem; }
.form-privacy a { text-underline-offset: 0.18em; }
.form-status:not(:empty) { margin-top: 0.85rem; font-size: 0.95rem; color: #2d6548; font-weight: 650; }
.form-status[data-state="error"] { color: #8c3528; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.site-footer { padding: 2rem 0 2.6rem; background: var(--paper); }
.footer-inner { flex-wrap: wrap; }
.site-footer strong { font-size: 1.05rem; }
.site-footer p, .site-footer a { color: var(--muted); font-size: 0.93rem; }
.site-footer a { text-decoration: none; }

.legal { max-width: 51rem; }
.legal .eyebrow { margin-top: 2rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.legal h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); letter-spacing: -0.035em; margin: 2rem 0 0.55rem; }
.legal p { margin-top: 0.7rem; overflow-wrap: anywhere; }

@media (max-width: 65rem) {
  .container { width: calc(100% - 5rem); }
  .hero-intro { gap: 1.8rem; }
  .site-header nav { gap: 1.1rem; }
}

@media (max-width: 48rem) {
  .container { width: calc(100% - 3rem); }
  .header-inner { min-height: 4.55rem; }
  .hero-intro, .section-grid, .therapy-grid, .apply-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { max-width: 34rem; }
  .hero-photo img { height: clamp(17.5rem, 57vw, 27rem); border-radius: 1.05rem; }
  .hero-photo figcaption { left: 0.6rem; bottom: 0.6rem; padding: 0.55rem 0.75rem; }
  .therapy-photo { grid-row: 2; }
  .therapy-photo img { aspect-ratio: 1.6; }
  .section-grid h2, .apply-copy h2 { max-width: 16ch; }
  .site-header .nav-text { display: none; }
}

@media (max-width: 33rem) {
  .container { width: calc(100% - 2.25rem); }
  .brand { gap: 0.65rem; }
  .brand img { width: 6.35rem; }
  .brand span { padding-left: 0.65rem; font-size: 0.79rem; }
  .header-inner { gap: 0.6rem; }
  h1 { font-size: clamp(2.38rem, 11.3vw, 3.7rem); }
  .work-grid { grid-template-columns: 1fr; }
  .site-footer nav { gap: 0.55rem 1rem; }
}

@media (max-width: 24rem) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Two-practice recruitment page */
.location-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); align-items: center; gap: clamp(1.6rem, 4vw, 4.25rem); margin-top: clamp(1.5rem, 3vw, 3rem); scroll-margin-top: 1rem; }
.locations { background: #f5f9f8; }
.location { border-top: 1px solid var(--line); padding-block: 1rem; scroll-margin-top: 1rem; }
.location:target { border-color: var(--accent); }
.location address { margin-top: .35rem; color: var(--muted); font-style: normal; }
.location p { margin-top: .3rem; }
.location-links { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; margin-top: .6rem; }
.location-map { position: relative; overflow: hidden; border-radius: 1.2rem; border: 1px solid var(--line); background: var(--pale); }
.location-map img { width: 100%; height: auto; aspect-ratio: 2; }
.location-map figcaption { position: absolute; bottom: .4rem; right: .5rem; background: var(--paper); color: var(--muted); padding: .1rem .4rem; border-radius: .25rem; font-size: .76rem; }
.map-marker { position: absolute; display: inline-flex; align-items: center; gap: .35rem; padding: .36rem .7rem .36rem .4rem; border-radius: 2rem; border: 1px solid var(--line); transform: translate(-.86rem, -50%); background: var(--paper); box-shadow: 0 3px 11px #12383d2e; font-size: .88rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.map-marker:hover { background: var(--lime); }
.map-marker span { width: .88rem; height: .88rem; border: 2px solid var(--lime); border-radius: 50%; background: var(--teal); }
.marker-koeln { left: 33.52%; top: 32.45%; }
.marker-alzenau { left: 57.66%; top: 63.66%; }
.apply-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-practices { display: flex; flex-wrap: wrap; gap: .85rem 1.75rem; }
@media (max-width: 48rem) {
  .location-grid { grid-template-columns: minmax(0, 1fr); }
}

