:root {
  --ink: #374d59;
  --ink-deep: #2b4049;
  --muted: #617077;
  --paper: #f7f6f2;
  --paper-light: #fdfcf9;
  --sand: #efede6;
  --blue: #6f8e9c;
  --sage: #899678;
  --line: rgba(55, 77, 89, 0.16);
  --line-strong: rgba(55, 77, 89, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --content: min(720px, calc(100vw - 48px));
  --wide: min(1120px, calc(100vw - 48px));
  --header-height: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

body[data-language="de"] .lang-en,
body[data-language="en"] .lang-de {
  display: none !important;
}

::selection {
  color: var(--paper-light);
  background: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--blue);
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--ink-deep);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.15rem, 4.5vw, 2.65rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 27px;
  font-size: clamp(1.85rem, 4vw, 2.05rem);
  line-height: 1.2;
}

h3 {
  color: var(--ink-deep);
  font-size: 1rem;
  line-height: 1.45;
}

.page-shell {
  width: var(--content);
  margin-inline: auto;
}

#start,
#psychotherapie,
#ablauf,
#ueber-mich,
#kosten,
#kontakt,
#notfall,
#rechtliches,
#impressum,
#datenschutz {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

:focus-visible {
  outline: 2px solid var(--ink-deep);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--ink-deep);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: var(--paper-light);
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(247, 246, 242, 0.94);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 22px rgba(43, 64, 73, 0.045);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(247, 246, 242, 0.84);
    backdrop-filter: blur(12px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  width: var(--wide);
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--ink-deep);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-deep);
}

.brand-symbol {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 70px;
  height: 48px;
  overflow: hidden;
}

.brand-symbol img {
  width: 111px;
  height: 111px;
  max-width: none;
  transform: translate(-21px, -19px);
  mix-blend-mode: multiply;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 25px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover {
  color: var(--ink-deep);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--line-strong);
  font-size: 0.72rem;
}

.language-switch button {
  padding: 4px 1px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink-deep);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  color: var(--ink-deep);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.menu-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 13px;
}

.menu-icon i {
  position: absolute;
  left: 0;
  width: 19px;
  height: 1px;
  background: currentColor;
  transition: top 180ms ease, transform 180ms ease;
}

.menu-icon i:first-child {
  top: 3px;
}

.menu-icon i:last-child {
  top: 10px;
}

.nav-open .menu-icon i:first-child {
  top: 7px;
  transform: rotate(45deg);
}

.nav-open .menu-icon i:last-child {
  top: 7px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

.hero-content {
  padding-top: clamp(72px, 10vw, 104px);
  padding-bottom: clamp(78px, 11vw, 112px);
}

.section-label,
.eyebrow {
  margin-bottom: 17px;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.65;
}

.hero-audience {
  max-width: 630px;
  margin-bottom: 30px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 10px 18px;
  border: 1px solid var(--ink-deep);
  color: var(--paper-light);
  background: var(--ink-deep);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--ink-deep);
  background: transparent;
}

.hero-location {
  margin-top: 42px;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Main editorial column */
.content-section,
.legal-section {
  padding-block: clamp(53px, 6.75vw, 66px);
  border-bottom: 1px solid var(--line);
}

.content-section:nth-of-type(odd) {
  background: transparent;
}

.prose-section > p:not(.section-label):not(.qualification):not(.policy-note),
.crisis-content > p:not(.section-label) {
  max-width: 68ch;
  color: var(--muted);
}

.prose-section > p:not(:last-child),
.crisis-content > p:not(:last-child) {
  margin-bottom: 19px;
}

.prose-section > :last-child {
  margin-bottom: 0;
}

body[data-language="de"] .prose-section > .lang-de:nth-last-child(2),
body[data-language="de"] .crisis-content > .lang-de:nth-last-child(2) {
  margin-bottom: 0;
}

.prose-section > h2 + p,
.crisis-content > h2 + p {
  margin-top: 0;
}

.qualification {
  margin-bottom: 25px;
  color: var(--ink-deep);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.6;
}

.biography,
.policy-note {
  margin-top: 31px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.policy-note {
  color: var(--ink-deep) !important;
  font-weight: 620;
}

.email-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--ink-deep);
  font-size: 1.08rem;
  font-weight: 650;
  text-decoration-color: var(--blue);
}

.practice-details {
  margin-top: 43px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.practice-details .section-label {
  margin-bottom: 13px;
}

.practice-details h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.practice-details p {
  margin-bottom: 10px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 5px;
  color: var(--ink-deep);
  font-size: 0.88rem;
  font-weight: 650;
}

/* Emergency: the only deliberately highlighted content section */
.crisis-section {
  padding-block: clamp(53px, 6.75vw, 66px);
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}

.crisis-content h2 {
  max-width: 650px;
}

.emergency-links {
  margin-block: 30px;
  border-top: 1px solid var(--line-strong);
}

.emergency-links a {
  display: block;
  padding: 17px 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-deep);
  text-decoration: none;
}

.emergency-links a:hover strong {
  color: var(--blue);
}

.emergency-links strong {
  display: inline-block;
  min-width: 145px;
  color: var(--ink-deep);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease;
}

.emergency-links a > span {
  color: var(--muted);
  font-size: 0.88rem;
}

.crisis-content > p:last-child {
  margin-bottom: 0;
  font-size: 0.88rem;
}

/* Legal information */
.legal-section {
  background: var(--paper-light);
}

.legal-heading {
  margin-bottom: 34px;
}

.legal-heading h2 {
  margin-bottom: 0;
}

.legal-accordions {
  border-top: 1px solid var(--line-strong);
}

.legal-accordions details {
  border-bottom: 1px solid var(--line-strong);
}

.legal-accordions summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  color: var(--ink-deep);
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 650;
  list-style: none;
}

.legal-accordions summary::-webkit-details-marker {
  display: none;
}

.details-icon {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.details-icon::before,
.details-icon::after {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 13px;
  height: 1px;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease;
}

.details-icon::after {
  transform: rotate(90deg);
}

details[open] .details-icon::after {
  transform: rotate(0);
}

.legal-content {
  padding: 5px 0 38px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.72;
}

.legal-content h3 {
  margin: 28px 0 7px;
  font-size: 0.86rem;
}

.legal-content h3:first-child,
.legal-content p:first-child + h3 {
  margin-top: 4px;
}

.legal-content p,
.legal-content ul {
  max-width: 75ch;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content strong {
  color: var(--ink-deep);
}

/* Footer */
.site-footer {
  padding: 58px 0 28px;
  color: rgba(253, 252, 249, 0.74);
  background: var(--ink-deep);
  font-size: 0.82rem;
  line-height: 1.65;
}

.site-footer a {
  color: rgba(253, 252, 249, 0.88);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-grid {
  display: block;
}

.footer-grid > div + div {
  margin-top: 26px;
}

.footer-grid strong {
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.footer-grid p {
  margin: 7px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 23px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(253, 252, 249, 0.16);
  color: rgba(253, 252, 249, 0.54);
  font-size: 0.72rem;
}

/* Compact navigation */
@media (max-width: 1040px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 18px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: calc(100dvh - var(--header-height));
    margin: 0;
    padding: 23px max(24px, calc((100vw - 720px) / 2)) 31px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-light);
    box-shadow: 0 18px 32px rgba(43, 64, 73, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-9px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .no-js .site-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --content: calc(100vw - 32px);
    --wide: calc(100vw - 32px);
    --header-height: 70px;
  }

  body {
    font-size: 16px;
    line-height: 1.68;
  }

  .header-inner {
    gap: 14px;
  }

  .brand {
    gap: 7px;
  }

  .brand-symbol {
    width: 58px;
    height: 44px;
  }

  .brand-symbol img {
    width: 97px;
    height: 97px;
    transform: translate(-18px, -15.5px);
  }

  .brand-text > span {
    display: none;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .menu-toggle > .lang-de,
  .menu-toggle > .lang-en {
    display: none !important;
  }

  .menu-toggle {
    padding-inline: 2px;
  }

  .language-switch {
    gap: 4px;
  }

  .site-nav {
    padding-inline: 16px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 9vw, 2.25rem);
  }

  h2 {
    margin-bottom: 23px;
    font-size: 1.75rem;
  }

  .hero-content {
    padding-top: 57px;
    padding-bottom: 66px;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-audience {
    margin-bottom: 25px;
  }

  .hero-location {
    margin-top: 35px;
    padding-top: 17px;
  }

  .content-section,
  .crisis-section,
  .legal-section {
    padding-block: 44px;
  }

  .biography,
  .policy-note {
    margin-top: 27px;
    padding-top: 21px;
  }

  .email-link {
    overflow-wrap: anywhere;
  }

  .practice-details {
    margin-top: 36px;
    padding-top: 27px;
  }

  .emergency-links strong {
    display: block;
    min-width: 0;
    margin-bottom: 3px;
  }

  .emergency-links a > span {
    display: block;
  }

  .legal-content {
    font-size: 0.8rem;
  }

  .site-footer {
    padding-top: 49px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    --content: 100%;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .button,
  .skip-link,
  .footer-bottom a {
    display: none !important;
  }

  .hero,
  .content-section,
  .crisis-section,
  .legal-section {
    padding: 28px 0;
    border-color: #bbb;
    background: #fff;
  }

  .legal-accordions details {
    display: block;
  }

  .legal-accordions details > * {
    display: block;
  }

  .details-icon {
    display: none;
  }

  .site-footer {
    padding: 30px 0;
    color: #000;
    background: #fff;
  }

  .site-footer a,
  .site-footer strong {
    color: #000;
  }
}
