/* Self-hosted fonts (no connection to Google servers) — SIL Open Font License, see assets/fonts */
@font-face {
  font-family: "REHA MED Brand";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/jost-brand-600.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-wght.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght.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;
}

:root {
  --bg: #f3efe8;
  --paper: #faf7f1;
  --card: #f8f6f2;
  --white: #ffffff;
  /* Brand: deep charcoal for ink & dark surfaces, orange as precise accent */
  --ink: #26241f;
  --muted: #625d55;
  --line: #ddd5c8;
  --orange: #e8930b;
  --orange-bright: #f6a21c;
  --orange-soft: rgba(232, 147, 11, .14);
  --radius: 28px;
  --shadow: 0 18px 48px rgba(17, 17, 15, .06);
  --max: 1360px;
  /* Vertical rhythm */
  --sect-pad: clamp(72px, 9vw, 110px);
  --head-gap: clamp(36px, 5vw, 54px);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height, 120px) + 20px);
  overflow-x: hidden
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  /* hidden = universal fallback; clip (where supported) also blocks
     programmatic horizontal scrolling without creating a scroll container */
  overflow-x: hidden;
  overflow-x: clip
}

img {
  max-width: 100%;
  /* height:auto keeps the aspect ratio when CSS constrains only the width —
     without it, the HTML height attribute wins and distorts the image */
  height: auto;
  display: block
}

a {
  color: inherit
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(243, 239, 232, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 17, 15, .06)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 18px
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0
}

.brand img {
  width: 62px;
  height: auto;
  flex: 0 0 auto
}

.brand-text {
  min-width: 0
}

.brand-text strong {
  display: block;
  font: 900 17px/1 Archivo, sans-serif;
  letter-spacing: .03em
}

.brand-text span {
  display: block;
  color: var(--orange);
  font: 800 12px/1.2 Archivo, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 4px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px
}

.nav-links a {
  text-decoration: none;
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78
}

.nav-links a:hover {
  opacity: 1;
  color: var(--orange)
}

.nav-links .nav-cta {
  border: 1px solid rgba(17, 17, 15, .55);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 1
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase
}

.hero {
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden
}

.hero:before {
  content: "";
  position: absolute;
  right: -18%;
  top: 10%;
  width: 64%;
  height: 88%;
  border: 1px solid rgba(232, 147, 11, .35);
  border-radius: 50%;
  pointer-events: none
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .92fr;
  gap: 68px;
  align-items: center;
  position: relative
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--orange);
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase
}

/* Short orange rule in front of every section label — clear hierarchy marker */
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

h1 {
  margin: 0 0 26px;
  font: 900 clamp(58px, 8vw, 122px)/.9 Archivo, sans-serif;
  letter-spacing: -.07em
}

.lead {
  margin: 0 0 34px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.45;
  max-width: 720px;
  color: #24211d
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 22px;
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: .2s ease
}

.btn-dark {
  background: var(--ink);
  color: #fff
}

.btn-dark:hover {
  background: var(--orange)
}

.btn-light {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .38)
}

.btn-light:hover {
  border-color: var(--ink)
}

.hero-panel {
  position: relative;
  min-height: 620px;
  border-radius: 34px;
  background: linear-gradient(180deg, #f8f5ef 0%, #f1ece3 100%);
  border: 1px solid rgba(17, 17, 15, .07);
  box-shadow: var(--shadow);
  padding: 30px;
  overflow: hidden
}

.hero-panel:before {
  content: "";
  position: absolute;
  inset: auto -70px -120px auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--orange-soft), transparent 68%);
  border-radius: 50%
}

.hero-panel:after {
  content: "";
  position: absolute;
  left: -12%;
  top: 14%;
  width: 72%;
  height: 56%;
  border: 1px solid rgba(232, 147, 11, .22);
  border-radius: 50%;
  transform: rotate(-10deg)
}

.hero-mark {
  position: absolute;
  right: 14px;
  top: 14px;
  width: min(46%, 280px);
  opacity: .08;
  filter: grayscale(1)
}

.panel-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start
}

.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(17, 17, 15, .1);
  border-radius: 999px;
  padding: 10px 14px;
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .72)
}

.top-chip span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange)
}

.panel-card {
  position: relative;
  z-index: 2;
  margin-top: 78px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(17, 17, 15, .07);
  border-radius: 24px;
  padding: 28px;
  max-width: 430px
}

.panel-card h3,
.panel-card .panel-title {
  margin: 0 0 20px;
  font: 900 clamp(30px, 4vw, 50px)/.94 Archivo, sans-serif;
  letter-spacing: -.05em
}

.panel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px
}

.panel-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px
}

.panel-metric {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(17, 17, 15, .07);
  border-radius: 22px;
  padding: 20px
}

.panel-metric strong {
  display: block;
  font: 900 34px/1 Archivo, sans-serif;
  letter-spacing: -.04em;
  margin-bottom: 8px
}

.panel-metric span {
  display: block;
  color: var(--muted);
  font-size: 14px
}

section {
  padding: 96px 0
}

.white {
  background: var(--paper)
}

.section-head {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 42px
}

h2 {
  margin: 10px 0;
  font: 900 clamp(46px, 5.8vw, 90px)/.92 Archivo, sans-serif;
  letter-spacing: -.062em
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  max-width: 720px
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.metric-card {
  background: var(--card);
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 26px;
  padding: 28px;
  min-height: 230px;
  box-shadow: 0 10px 28px rgba(17, 17, 15, .03)
}

.metric-card .value {
  display: block;
  font: 900 clamp(36px, 4vw, 58px)/1 Archivo, sans-serif;
  color: var(--orange);
  letter-spacing: -.05em;
  margin-bottom: 18px
}

.metric-card h3 {
  margin: 0 0 10px;
  font: 900 22px/1.1 Archivo, sans-serif;
  letter-spacing: -.03em
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.service-card {
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 24px;
  padding: 30px;
  min-height: 255px;
  transition: .2s ease
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow)
}

.service-card span {
  display: block;
  color: var(--orange);
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase
}

.service-card h3 {
  margin: 38px 0 12px;
  font: 900 24px/1.04 Archivo, sans-serif;
  letter-spacing: -.025em
}

.service-card p {
  margin: 0;
  color: var(--muted)
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px
}

details {
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 22px;
  padding: 22px 24px
}

summary {
  list-style: none;
  cursor: pointer;
  font: 900 18px Archivo, sans-serif
}

summary::-webkit-details-marker {
  display: none
}

summary:after {
  content: "+";
  float: right;
  color: var(--orange)
}

details[open] summary:after {
  content: "–"
}

details ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted)
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px
}

.team-card {
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(17, 17, 15, .045);
  transition: transform .22s ease, box-shadow .22s ease
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(17, 17, 15, .09)
}

.portrait {
  aspect-ratio: 1.18/1;
  background: #ddd;
  overflow: hidden
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform .45s ease, filter .45s ease
}

.team-card:hover .portrait img {
  transform: scale(1.025);
  filter: grayscale(.55) contrast(1.02)
}

.team-info {
  padding: 24px 26px 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.role {
  margin: 0 0 12px;
  color: var(--orange);
  font: 800 11px/1.45 Archivo, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase
}

.team-info h3 {
  margin: 0 0 14px;
  font: 900 clamp(25px, 2.2vw, 34px)/1.02 Archivo, sans-serif;
  letter-spacing: -.045em
}

.team-info a {
  display: inline-block;
  margin-top: auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere
}

.team-info a:hover {
  color: var(--orange)
}

.team-note {
  margin-top: 28px;
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 26px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(17, 17, 15, .035)
}

.team-note h3 {
  margin: 0;
  font: 900 32px/1.05 Archivo, sans-serif;
  letter-spacing: -.04em
}

.team-note p {
  margin: 0;
  color: var(--muted);
  font-size: 18px
}


.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.panel {
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 10px 24px rgba(17, 17, 15, .04)
}

.panel h3 {
  margin: 0 0 14px;
  font: 900 28px Archivo, sans-serif;
  letter-spacing: -.03em
}

.panel p {
  margin: 0;
  color: var(--muted)
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted)
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.download-group {
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 10px 24px rgba(17, 17, 15, .04)
}

.download-group h3 {
  margin: 0 0 14px;
  font: 900 24px Archivo, sans-serif;
  letter-spacing: -.03em
}

.download-group a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--muted)
}

.download-group a b {
  color: var(--ink);
  font-size: 16px
}

.download-group em {
  font-style: normal;
  color: var(--orange);
  font: 800 11px Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 10px 24px rgba(17, 17, 15, .04)
}

.contact-card h3 {
  margin: 0 0 12px;
  font: 900 30px Archivo, sans-serif;
  letter-spacing: -.03em
}

.contact-item {
  padding: 15px 0;
  border-top: 1px solid var(--line)
}

.contact-item b {
  display: block;
  font-weight: 700;
  margin-bottom: 4px
}

.map {
  border-radius: 26px;
  overflow: hidden;
  height: 430px;
  border: 1px solid rgba(17, 17, 15, .08);
  box-shadow: 0 10px 24px rgba(17, 17, 15, .04)
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0
}

footer {
  background: #26241f;
  color: #fff;
  padding: 58px 0
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end
}

.foot h2 {
  color: #fff;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.05
}

.foot p {
  margin: 0;
  color: rgba(255, 255, 255, .64)
}

/* Scroll reveals are gated behind html.js (set by script.js) so content
   is never hidden if JavaScript fails to load */
html.js .reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
    transform .8s cubic-bezier(.22, 1, .36, 1);
}

html.js .reveal.on {
  opacity: 1;
  transform: none;
}

@media (max-width:1150px) {

  .hero-grid,
  .section-head,
  .contact-grid,
  .two {
    grid-template-columns: 1fr
  }

  .hero-panel {
    min-height: 520px
  }

  .metrics-grid,
  .grid-4,
  .team-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .details-grid,
  .downloads,
  .team-note {
    grid-template-columns: 1fr
  }

  .section-head {
    gap: 24px
  }
}

@media (max-width:860px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 84px;
    background: var(--paper);
    border: 1px solid rgba(17, 17, 15, .08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start
  }

  .nav-links.open {
    display: flex
  }

  .menu-btn {
    display: block
  }
}

@media (max-width:700px) {
  .container {
    width: min(calc(100% - 28px), var(--max))
  }

  .nav-inner {
    height: 76px
  }

  .brand img {
    width: 50px
  }

  .brand-text strong {
    font-size: 15px
  }

  .brand-text span {
    font-size: 10px
  }

  .hero {
    padding: 42px 0 62px
  }

  h1 {
    font-size: 56px
  }

  .lead {
    font-size: 18px
  }

  .hero-panel {
    min-height: auto;
    padding: 22px
  }

  .panel-card {
    margin-top: 60px
  }

  .panel-metrics {
    grid-template-columns: 1fr
  }

  section {
    padding: 74px 0
  }

  .metrics-grid,
  .grid-4,
  .team-grid {
    grid-template-columns: 1fr
  }

  .metric-card p,
  .section-head p {
    font-size: 17px
  }

  .foot {
    display: block
  }

  .foot h2 {
    font-size: clamp(22px, 6.5vw, 36px);
    margin-bottom: 12px
  }
}

/* --- Final structure update: old-style header logo + cleaner orange typography --- */
:root {
  --font-logo: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

.nav-inner {
  min-height: 108px;
  height: auto;
  padding: 12px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 230px;
  flex: 0 0 230px;
  text-align: center;
}

.brand .brand-mark {
  width: 88px;
  height: auto;
  object-fit: contain;
}

.brand-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-logo);
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
}

.brand-caption span {
  color: #737871;
  font-size: 14px;
}

.brand-caption strong {
  color: var(--orange);
  font-size: 16px;
  font-family: var(--font-logo);
  letter-spacing: .035em;
}

.eyebrow,
.role,
.service-card span,
.download-group em,
.top-chip {
  font-family: var(--font-logo);
  letter-spacing: .16em;
}

.eyebrow {
  font-weight: 800;
}

/* --- Downloads: prevent tight/overlapping text ---
   Scoped to desktop: an unscoped rule here overrode the mobile
   one-column collapse from the 1150px media query above */
@media (min-width:1151px) {
  .downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.download-group {
  min-width: 0;
}

.download-group h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.18;
  letter-spacing: -.02em;
  word-spacing: .04em;
  margin-bottom: 18px;
}

.download-group a {
  align-items: flex-start;
  min-width: 0;
}

.download-group a b {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* --- Team: more breathing room and no visual contact sidebar --- */
.team-grid {
  gap: 28px;
}

.team-card {
  min-width: 0;
}

.team-info {
  min-height: 180px;
  padding: 24px 26px 28px;
}

.team-info h3 {
  line-height: 1.05;
  margin-bottom: 14px;
}

.team-info a {
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.role {
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.team-note {
  margin-top: 30px;
}

/* --- Mobile polish --- */
@media(max-width:1050px) {
  .nav-inner {
    min-height: 92px;
  }

  .brand {
    width: auto;
    flex: 0 1 auto;
    align-items: flex-start;
  }

  .brand .brand-mark {
    width: 72px;
  }

  .brand-caption {
    justify-content: flex-start;
  }

  .brand-caption span {
    font-size: 12px;
  }

  .brand-caption strong {
    font-size: 14px;
  }
}

@media(max-width:860px) {
  .nav-links {
    top: 92px;
  }
}

@media(max-width:700px) {
  .brand .brand-mark {
    width: 62px;
  }

  .brand-caption {
    gap: 5px;
  }

  .brand-caption span {
    font-size: 10px;
  }

  .brand-caption strong {
    font-size: 12px;
  }

  .download-group h3 {
    font-size: 22px;
  }
}

/* ╔════════════════════════════════════════════════════╗
   ║  VISUAL UPGRADE — animations, polish, interactions ║
   ╚════════════════════════════════════════════════════╝ */

/* 1 · PAGE LOADER ─────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #26241f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity .45s ease, visibility .45s ease;
  /* Fail-safe: even if JS never runs, the loader fades itself out after ~1.1s
     and can never block the page underneath */
  animation: loaderAway .4s ease 1.1s forwards;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loaderAway {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loader-logo {
  width: 76px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: loaderLogoIn .45s ease .05s forwards;
}

@keyframes loaderLogoIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.94);
  }

  to {
    opacity: .92;
    transform: none;
  }
}

.loader-bar {
  width: 152px;
  height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 999px;
  animation: loaderFill .8s cubic-bezier(.4, 0, .2, 1) .15s forwards;
}

@keyframes loaderFill {
  to {
    width: 100%;
  }
}

/* 2 · SCROLL PROGRESS BAR ──────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #f0a832);
  z-index: 9997;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(232, 147, 11, .55);
  pointer-events: none;
}

/* 3 · NAV ─ scrolled state & active links ──────────── */
.nav {
  transition: background .3s ease, box-shadow .3s ease;
}

.nav.scrolled {
  background: rgba(243, 239, 232, .97);
  box-shadow: 0 2px 28px rgba(17, 17, 15, .09);
}

.nav-links a {
  position: relative;
  transition: color .22s, opacity .22s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
  border-radius: 999px;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  opacity: 1;
  color: var(--orange);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta {
  transition: background .22s, color .22s, border-color .22s, transform .22s, box-shadow .22s;
}

.nav-links .nav-cta:hover {
  background: #26241f;
  color: #fff;
  border-color: #26241f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 17, 15, .16);
}

/* 4 · HERO ENTRANCE — pure CSS, staggered via --i, runs without JS */
.hero-item {
  opacity: 0;
  animation: riseIn .75s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--i, 0) * .12s + .55s);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Orange accent word inside the H1 */
.h1-accent {
  color: var(--orange);
}

/* 6 · HERO PANEL entry ─────────────────────────────── */
.hero-panel-anim {
  opacity: 0;
  animation: panelIn .95s cubic-bezier(.22, 1, .36, 1) .8s forwards;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 7 · SECTION HEAD directional reveals ─────────────── */
.section-head.reveal {
  opacity: 1 !important;
  transform: none !important;
}

html.js .section-head.reveal>div {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity .85s cubic-bezier(.22, 1, .36, 1),
    transform .85s cubic-bezier(.22, 1, .36, 1);
}

html.js .section-head.reveal>p {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity .85s cubic-bezier(.22, 1, .36, 1) .15s,
    transform .85s cubic-bezier(.22, 1, .36, 1) .15s;
}

html.js .section-head.reveal.on>div,
html.js .section-head.reveal.on>p {
  opacity: 1;
  transform: none;
}

/* 8 · GRID STAGGER DELAYS ──────────────────────────── */
.metrics-grid .metric-card:nth-child(1) {
  transition-delay: .05s
}

.metrics-grid .metric-card:nth-child(2) {
  transition-delay: .13s
}

.metrics-grid .metric-card:nth-child(3) {
  transition-delay: .21s
}

.metrics-grid .metric-card:nth-child(4) {
  transition-delay: .29s
}

.grid-4 .service-card:nth-child(1) {
  transition-delay: .05s
}

.grid-4 .service-card:nth-child(2) {
  transition-delay: .13s
}

.grid-4 .service-card:nth-child(3) {
  transition-delay: .21s
}

.grid-4 .service-card:nth-child(4) {
  transition-delay: .29s
}

.team-grid .team-card:nth-child(1) {
  transition-delay: .04s
}

.team-grid .team-card:nth-child(2) {
  transition-delay: .10s
}

.team-grid .team-card:nth-child(3) {
  transition-delay: .16s
}

.team-grid .team-card:nth-child(4) {
  transition-delay: .22s
}

.team-grid .team-card:nth-child(5) {
  transition-delay: .28s
}

.team-grid .team-card:nth-child(6) {
  transition-delay: .34s
}

.team-grid .team-card:nth-child(7) {
  transition-delay: .40s
}

.team-grid .team-card:nth-child(8) {
  transition-delay: .46s
}

.team-grid .team-card:nth-child(9) {
  transition-delay: .52s
}

/* 9 · SERVICE CARD hover ───────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 147, 11, .1) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .38s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(17, 17, 15, .11),
    0 0 0 1px rgba(232, 147, 11, .24);
  border-color: rgba(232, 147, 11, .3);
}

/* 10 · METRIC CARD hover ───────────────────────────── */
.metric-card {
  transition: transform .32s ease, box-shadow .32s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(17, 17, 15, .08);
}

/* 11 · TEAM CARD portrait overlay ──────────────────── */
.portrait {
  position: relative;
}

.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 52%, rgba(232, 147, 11, .18));
  opacity: 0;
  transition: opacity .42s ease;
}

.team-card:hover .portrait::after {
  opacity: 1;
}

/* 12 · BUTTON shimmer ──────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .12);
  transform: translateX(-115%);
  transition: transform .4s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(232, 147, 11, .3);
  background: var(--orange-bright);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(17, 17, 15, .1);
}

/* 13 · ANIMATED LOCATION DOT ───────────────────────── */
.top-chip span {
  position: relative;
}

.top-chip span::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  opacity: 0;
  animation: dotRipple 3s ease infinite;
}

@keyframes dotRipple {
  0% {
    transform: scale(.6);
    opacity: .7;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* 14 · MARQUEE STRIP ───────────────────────────────── */
.marquee-strip {
  background: #26241f;
  padding: 15px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 102s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  font: 800 11px/1 Archivo, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .56);
}

.marquee-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 15 · DOWNLOAD hover ──────────────────────────────── */
.download-group a {
  transition: padding-left .22s ease;
}

.download-group a:hover {
  padding-left: 9px;
}

.download-group a:hover b {
  color: var(--orange);
}

/* 16 · DETAILS hover ───────────────────────────────── */
details {
  transition: box-shadow .3s ease;
}

details:hover {
  box-shadow: 0 12px 32px rgba(17, 17, 15, .06);
}

details[open] {
  box-shadow: 0 8px 24px rgba(17, 17, 15, .05);
}

/* 17 · AKADEMIE PANEL hover ────────────────────────── */
#akademie .panel {
  transition: transform .3s ease, box-shadow .3s ease;
}

#akademie .panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 62px rgba(17, 17, 15, .1);
}

/* 18 · CONTACT CARD hover ──────────────────────────── */
.contact-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(17, 17, 15, .09);
}

/* 19 · HERO CIRCLE animation ───────────────────────── */
.hero::before {
  animation: heroOrbit 9s ease-in-out infinite;
}

@keyframes heroOrbit {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  40% {
    transform: scale(1.025) translateY(-14px);
  }

  70% {
    transform: scale(.985) translateY(9px);
  }
}

/* 20 · FOOTER gradient headline ────────────────────── */
.foot h2 {
  background: linear-gradient(140deg, #ffffff 50%, rgba(232, 147, 11, .75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ╔════════════════════════════════════════════════════╗
   ║  PRAXIS IMAGERY — establishing banner + showcase   ║
   ╚════════════════════════════════════════════════════╝ */

/* A · CINEMATIC ESTABLISHING BANNER ─────────────────── */
.praxis-banner {
  position: relative;
  height: clamp(320px, 40vw, 500px);
  overflow: hidden;
  background: #26241f;
  display: flex;
  align-items: center;
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Legibility gradient over the cropped photo */
.praxis-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, .82) 0%, rgba(17, 17, 15, .42) 38%, rgba(17, 17, 15, .05) 68%, transparent 100%),
    linear-gradient(0deg, rgba(17, 17, 15, .45), transparent 55%);
}

.banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 12px/1 var(--font-logo);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}

.banner-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 147, 11, .28);
}

.banner-title {
  margin: 18px 0 0;
  color: #fff;
  font: 900 clamp(34px, 5.4vw, 66px)/.94 Archivo, sans-serif;
  letter-spacing: -.055em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.banner-btn {
  margin-top: 26px;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.banner-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .16);
}

@media (max-width:700px) {
  .banner-title {
    font-size: clamp(30px, 9vw, 44px);
  }
}

.banner-caption span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(232, 147, 11, .25);
}

/* B · STANDORTE SHOWCASE ─────────────────────────────── */
.places-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.place-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 15, .08);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
}

.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.place-card:hover img {
  transform: scale(1.045);
}

.place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 17, 15, .74), rgba(17, 17, 15, .14) 46%, transparent 68%);
  pointer-events: none;
}

.place-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 28px;
  color: #fff;
}

.place-meta .role {
  color: #f0a832;
  margin: 0 0 8px;
}

.place-meta h3 {
  margin: 0 0 7px;
  font: 900 clamp(24px, 2.4vw, 36px)/1 Archivo, sans-serif;
  letter-spacing: -.04em;
}

.place-meta p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.45;
  max-width: 34ch;
}

@media (max-width:760px) {
  .places-grid {
    grid-template-columns: 1fr;
  }
}

/* ╔════════════════════════════════════════════════════╗
   ║  SINGLE LOCATION, FORM & A11Y REFINEMENTS          ║
   ╚════════════════════════════════════════════════════╝ */

/* C · VERTICAL RHYTHM — one consistent scale for all sections */
section {
  padding: var(--sect-pad) 0;
}

.section-head {
  margin-bottom: var(--head-gap);
}

/* D · SKIP LINK — visible only when focused via keyboard */
.skip-link {
  position: fixed;
  left: 18px;
  top: -64px;
  z-index: 10001;
  background: var(--ink);
  color: #fff;
  padding: 13px 20px;
  border-radius: 0 0 16px 16px;
  text-decoration: none;
  font: 700 14px/1 Inter, Arial, sans-serif;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
}

/* E · FOCUS VISIBILITY — clear keyboard outlines site-wide */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

/* F · PRAXIS SHOWCASE — one house, image leads, facts support */
.place-showcase {
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.place-card-wide {
  aspect-ratio: auto;
  min-height: 480px;
}

.place-facts {
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 10px 24px rgba(17, 17, 15, .04);
  display: flex;
  flex-direction: column;
}

.place-facts h3 {
  margin: 0 0 12px;
  font: 900 30px/1.05 Archivo, sans-serif;
  letter-spacing: -.035em;
}

.place-facts ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.place-facts li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.place-facts li b {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 3px;
}

.place-facts a {
  text-decoration: none;
}

.place-facts a:hover {
  color: var(--orange);
}

.place-facts .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width:1150px) {
  .place-showcase {
    grid-template-columns: 1fr;
  }

  .place-card-wide {
    min-height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* G · CONTACT FORM — DSGVO consent stays required */
.contact-form {
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 10px 24px rgba(17, 17, 15, .04);
}

.contact-form h3 {
  margin: 0 0 18px;
  font: 900 30px Archivo, sans-serif;
  letter-spacing: -.03em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  margin-bottom: 16px;
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font: 700 14px/1.3 Inter, Arial, sans-serif;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  font: 400 16px/1.5 Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 18px;
}

.form-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--orange);
}

.form-consent label {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.form-hint {
  white-space: nowrap;
  color: var(--orange);
  font-weight: 600;
}

.form-error {
  margin: 0 0 14px;
  color: #b3261e;
  font-size: 14px;
}

.contact-form .btn {
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

#kontakt .map {
  margin-top: 22px;
}

@media (max-width:700px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .place-facts {
    padding: 26px 22px;
  }
}

/* ╔════════════════════════════════════════════════════╗
   ║  VISIBLE DESIGN PASS — cards, buttons, nav, hero   ║
   ╚════════════════════════════════════════════════════╝ */

/* H · HERO — warm wash + stronger first impression */
.hero {
  background:
    radial-gradient(1100px 520px at 82% 8%, rgba(232, 147, 11, .09), transparent 62%),
    linear-gradient(180deg, #f7f3ec 0%, var(--bg) 70%);
}

.lead {
  color: #3a362f;
}

/* I · CARDS — larger radii, softer/deeper shadows, clear hover lift */
.metric-card,
.team-card,
.panel,
.contact-card,
.contact-form,
.place-facts {
  border-radius: 30px;
}

.service-card,
.download-group,
details {
  border-radius: 26px;
}

.metric-card,
.service-card,
.download-group,
.panel {
  box-shadow: 0 14px 40px rgba(38, 36, 31, .055);
}

.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(38, 36, 31, .12);
}

.service-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 32px 72px rgba(38, 36, 31, .13),
    0 0 0 1px rgba(232, 147, 11, .26);
}

.team-card {
  box-shadow: 0 16px 44px rgba(38, 36, 31, .06);
}

.team-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 34px 76px rgba(38, 36, 31, .14);
}

.panel:hover,
.download-group:hover {
  box-shadow: 0 24px 56px rgba(38, 36, 31, .09);
}

.panel,
.download-group {
  transition: box-shadow .3s ease;
}

/* J · TEAM PORTRAITS — grayscale to full colour on hover */
.team-card:hover .portrait img {
  transform: scale(1.05);
  filter: none;
}

/* K · BUTTONS — roomier, and a true orange primary CTA */
.btn {
  padding: 17px 28px;
  letter-spacing: .15em;
  transition: transform .22s ease, box-shadow .22s ease,
    background .22s ease, color .22s ease, border-color .22s ease;
}

.btn-primary {
  background: var(--orange);
  color: #26241f;
  /* transparent border matches .btn-light's 1px border → identical heights */
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(232, 147, 11, .32);
}

.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(232, 147, 11, .42);
}

/* Nav CTA becomes a solid charcoal pill; flips to orange on hover */
.nav-links .nav-cta {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.nav-links .nav-cta:hover {
  background: var(--orange);
  color: #26241f;
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(232, 147, 11, .35);
}

/* L · NAV — shrinks and gains a clear shadow once you scroll */
.nav {
  border-bottom-color: transparent;
}

.nav-inner {
  transition: min-height .35s ease;
}

.nav.scrolled {
  background: rgba(250, 247, 241, .94);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(38, 36, 31, .08);
  box-shadow: 0 8px 32px rgba(38, 36, 31, .1);
}

.nav.scrolled .nav-inner {
  min-height: 84px;
}

.nav-links a::after {
  height: 3px;
  bottom: -6px;
}

/* N · MOBILE OVERFLOW FIXES ───────────────────────────
   Grid children may not shrink below their content (min-width:auto),
   so allow every column child to shrink, and let long words break */
.two>*,
.contact-grid>*,
.downloads>*,
.metrics-grid>*,
.grid-4>*,
.details-grid>* {
  min-width: 0;
}

.panel li,
.panel p,
.contact-item,
.section-head p {
  overflow-wrap: break-word;
}

@media (max-width:700px) {

  /* Horizontal pre-reveal shifts caused right-edge overflow on mobile
     Safari (transforms extend scrollable overflow; overflow-x on html is
     not reliably honored there) — reveal vertically instead */
  html.js .section-head.reveal>div,
  html.js .section-head.reveal>p {
    transform: translateY(26px);
  }

  /* German headings can exceed narrow viewports — allow hyphenation */
  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
    hyphens: manual;
  }

  /* Downloads: single readable column, comfortable rows & tap targets */
  .download-group {
    padding: 22px 20px;
  }

  .download-group a {
    padding: 14px 0;
    gap: 12px;
    min-height: 44px;
  }

  .download-group em {
    flex: 0 0 auto;
    margin-top: 3px;
  }

  .download-group a:hover {
    padding-left: 0;
  }
}

/* M · HERO CTAs — equal full-width pair on mobile, unchanged on desktop */
@media (max-width:700px) {
  .hero .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .actions .btn {
    width: 100%;
  }
}

/* 21 · REDUCED MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-item,
  .hero-panel-anim {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html.js .reveal,
  html.js .section-head.reveal>div,
  html.js .section-head.reveal>p {
    opacity: 1 !important;
    transform: none !important;
  }

  .loader {
    display: none;
  }
}

/* Use the same orange and typeface as the header wordmark for brand text. */
.brand-name {
  color: var(--orange);
  font-family: var(--font-logo);
  font-weight: 800;
  font-style: normal;
  letter-spacing: .035em;
  white-space: nowrap;
  -webkit-text-fill-color: var(--orange);
}

/* Touch devices show the original colours without requiring hover. */
@media (hover: none), (pointer: coarse) {
  .portrait img,
  .team-card:hover .portrait img {
    filter: none;
  }
}

/* ╔════════════════════════════════════════════════════╗
   ║  RELEASE ADDITIONS — map consent, legal links      ║
   ╚════════════════════════════════════════════════════╝ */

/* Map: Google Maps is only loaded after an explicit click (DSGVO) */
.map {
  position: relative;
  background: #26241f;
}

.map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 15, .88) 0%, rgba(17, 17, 15, .62) 55%, rgba(17, 17, 15, .35) 100%);
  pointer-events: none;
}

.map.loaded::after,
.map.loaded .map-bg {
  display: none;
}

.map-consent {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(26px, 5vw, 56px);
  color: #fff;
  max-width: 640px;
}

.map-consent h3 {
  margin: 16px 0 12px;
  font: 900 clamp(26px, 3.4vw, 40px)/1 Archivo, sans-serif;
  letter-spacing: -.04em;
}

.map-consent p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.6;
}

.map-consent a:not(.btn) {
  color: #fff;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map-actions .banner-btn {
  margin-top: 0;
}

.map-actions button {
  cursor: pointer;
  font-family: Archivo, sans-serif;
}

.map iframe {
  position: relative;
  z-index: 2;
  display: block;
}

/* Footer: contact + legal links */
.foot-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.foot-side a {
  text-decoration: none;
}

.foot-side a:hover {
  color: var(--orange);
}

.foot-legal {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.foot-legal a {
  color: rgba(255, 255, 255, .82);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-note p a,
.form-consent label a {
  color: inherit;
  text-underline-offset: 3px;
}

.team-note p a:hover,
.form-consent label a:hover {
  color: var(--orange);
}

@media (max-width:700px) {
  .map {
    height: auto;
    min-height: 430px;
  }

  .map iframe {
    height: 430px;
  }

  .foot-side {
    margin-top: 22px;
  }

  .map-actions .btn {
    width: 100%;
  }
}

/* ── Legal pages (Impressum / Datenschutz) ── */
.legal {
  padding: clamp(48px, 7vw, 88px) 0 var(--sect-pad);
}

.legal .container {
  max-width: 860px;
}

.legal h1 {
  font-size: clamp(44px, 7vw, 84px);
  margin-bottom: 14px;
}

.legal .legal-lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 40px;
}

.legal h2 {
  font: 900 clamp(24px, 3vw, 32px)/1.1 Archivo, sans-serif;
  letter-spacing: -.03em;
  margin: 44px 0 12px;
}

.legal h3 {
  font: 800 19px/1.3 Archivo, sans-serif;
  margin: 26px 0 8px;
}

.legal p,
.legal li,
.legal dd {
  color: #3a362f;
  font-size: 17px;
  line-height: 1.7;
}

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

.legal dl {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 10px 24px;
  margin: 0;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 24px;
}

.legal dt {
  font-weight: 700;
  font-size: 15px;
  padding-top: 3px;
}

.legal dd {
  margin: 0;
}

.legal a {
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--orange);
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .78;
}

.back-link:hover {
  opacity: 1;
  color: var(--orange);
}

@media (max-width:700px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 20px;
  }

  .legal dd {
    margin-bottom: 12px;
  }
}

/* ╔════════════════════════════════════════════════════╗
   ║  MOBILE / iOS REFINEMENTS                          ║
   ╚════════════════════════════════════════════════════╝ */

/* iOS Safari colours <button> text system-blue unless a colour is set */
.menu-btn {
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
  border-color: var(--ink);
}

/* One continuous warm background behind header AND hero (no visible seam) */
body.home {
  background:
    radial-gradient(1100px 620px at 82% 150px, rgba(232, 147, 11, .09), transparent 62%) no-repeat,
    linear-gradient(180deg, #f7f3ec 0, var(--bg) 1100px) no-repeat,
    var(--bg);
}

body.home .hero {
  background: transparent;
}

/* At the very top the header is see-through; it turns solid as soon as you scroll */
html.js body.home .nav:not(.scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
}

/* Logo centred above the wordmark on tablet & phone, block stays top-left */
@media (max-width:1050px) {
  .brand {
    align-items: center;
  }

  .brand-caption {
    justify-content: center;
  }
}

/* ╔════════════════════════════════════════════════════╗
   ║  KURSE & AKTUELLES                                 ║
   ╚════════════════════════════════════════════════════╝ */
section.dark {
  background: #26241f;
  color: #fff;
}

section.dark .section-head p {
  color: rgba(255, 255, 255, .7);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 22px;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  transition: transform .3s ease, box-shadow .3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .3);
}

.course-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}

.course-tag {
  color: var(--orange);
  font: 800 11px/1.4 var(--font-logo);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.course-badge {
  background: var(--orange-soft);
  color: #7a4a00;
  border-radius: 999px;
  padding: 7px 12px;
  font: 700 12px/1.2 Inter, Arial, sans-serif;
}

.course-card h3 {
  margin: 0 0 14px;
  font: 900 clamp(26px, 2.4vw, 32px)/1.04 Archivo, sans-serif;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
  hyphens: manual;
}

.course-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.course-facts {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.course-facts li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: #3a362f;
  font-size: 15px;
  line-height: 1.55;
}

.course-facts li b {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.course-facts a {
  text-decoration: none;
}

.course-facts a:hover {
  color: var(--orange);
}

.course-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.course-link {
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding: 4px 0;
}

.course-link:hover {
  color: var(--orange);
}

/* Kostenersatz callout in the patient section */
.cost-note {
  margin-top: 28px;
  background: #fff;
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 30px;
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: 0 14px 40px rgba(38, 36, 31, .055);
}

.cost-note .eyebrow {
  margin-bottom: 12px;
}

.cost-note h3 {
  margin: 0 0 10px;
  font: 900 clamp(26px, 2.6vw, 34px)/1.05 Archivo, sans-serif;
  letter-spacing: -.04em;
}

.cost-note p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 760px;
}

.download-group-wide {
  grid-column: 1 / -1;
}

@media (max-width:860px) {
  .cost-note {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .cost-note .btn {
    justify-self: start;
  }
}

@media (max-width:700px) {
  .course-card {
    padding: 26px 22px;
  }

  .cost-note .btn,
  .course-actions .btn {
    width: 100%;
  }
}

/* ╔════════════════════════════════════════════════════╗
   ║  TEAM POP-UP (Steckbrief)                          ║
   ╚════════════════════════════════════════════════════╝ */
.team-card.is-interactive {
  cursor: pointer;
}

.team-more {
  margin-top: 16px;
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid var(--orange);
  background: none;
  color: var(--ink);
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.team-more:hover {
  color: var(--orange);
}

html.dialog-open {
  overflow: hidden;
}

.person-dialog {
  /* never taller than twice the photo column is wide, so the photo always shows the whole head */
  --pd-h: min(90vh, 820px, calc(80vw - 26px));
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: var(--pd-h);
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.person-dialog::backdrop {
  background: rgba(38, 36, 31, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.person-dialog[open] {
  animation: pdIn .38s cubic-bezier(.22, 1, .36, 1);
}

.person-dialog[open]::backdrop {
  animation: pdFade .3s ease;
}

@keyframes pdIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.98);
  }
}

@keyframes pdFade {
  from {
    opacity: 0;
  }
}

.pd-inner {
  position: relative;
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: min(560px, 80vh, var(--pd-h));
  max-height: var(--pd-h);
}

.pd-media {
  background: #ddd;
  overflow: hidden;
}

.pd-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.pd-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* built-in pop-up photos are cut so the person stands in the middle */
.pd-media.has-foto img {
  object-position: 50% 15%;
}

.pd-body {
  display: flex;
  flex-direction: column;
  padding: 46px 44px 0;
  overflow-y: auto;
  min-width: 0;
  max-height: var(--pd-h);
  overscroll-behavior: contain;
}

.person-dialog h2 {
  margin: 0 0 10px;
  font: 900 clamp(32px, 3.6vw, 48px)/1 Archivo, sans-serif;
  letter-spacing: -.05em;
}

.pd-title {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.pd-facts {
  margin: 0 0 28px;
}

.pd-facts dt {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--orange);
  font: 800 11px/1.4 var(--font-logo);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pd-facts dd {
  margin: 6px 0 16px;
  color: #3a362f;
  font-size: 16.5px;
  line-height: 1.6;
}

.pd-actions {
  /* always the same: button on top, e-mail address below */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: auto;
}

.pd-mail {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.pd-mail:hover {
  color: var(--orange);
}

.pd-nav {
  /* stays visible at the bottom while a long Steckbrief scrolls */
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding: 14px 0 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.pd-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 28px;
  background: linear-gradient(to bottom, rgba(250, 247, 241, 0), var(--paper));
  pointer-events: none;
}

/* Steckbrief */
.pd-sb {
  margin: 4px 0 30px;
}

.pd-sec + .pd-sec {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pd-sec h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--ink);
  font: 800 12px/1.4 Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pd-sec h3::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.pd-sec-body {
  color: #3a362f;
  font-size: 16px;
  line-height: 1.62;
}

.pd-sec-body p {
  margin: 0 0 10px;
}

.pd-sec-body > :last-child {
  margin-bottom: 0;
}

.pd-sec-body ul,
.pd-sec-body ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.pd-sec-body li {
  margin: 3px 0;
  padding-left: 2px;
}

.pd-sec-body li::marker {
  color: var(--orange);
}

.pd-sec-body a {
  color: inherit;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.pd-nav button {
  border: 0;
  background: none;
  color: var(--ink);
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  -webkit-appearance: none;
  appearance: none;
}

.pd-nav button:hover {
  color: var(--orange);
}

.pd-count {
  color: var(--muted);
  font-size: 13px;
}

.pd-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 15, .1);
  background: rgba(250, 247, 241, .92);
  color: var(--ink);
  font: 400 26px/1 Arial, sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.pd-close:hover {
  background: var(--orange);
  color: #26241f;
}

@media (max-width:760px) {
  .person-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
  }

  .pd-inner {
    display: block;
    height: auto;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }

  .pd-media {
    aspect-ratio: 1 / 1;
  }

  .pd-body {
    padding: 28px 22px 0;
    overflow: visible;
    max-height: none;
  }

  .pd-nav {
    padding-bottom: 16px;
  }

  .pd-actions .btn {
    width: 100%;
  }

  .pd-nav button span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .person-dialog[open],
  .person-dialog[open]::backdrop {
    animation: none;
  }
}

#pd-name:focus {
  outline: none;
}

/* ╔════════════════════════════════════════════════════╗
   ║  WORDMARK „REHA MED“ — like the original logo      ║
   ║  (Futura Bold → Jost 600, original logo colours)   ║
   ╚════════════════════════════════════════════════════╝ */
:root {
  --font-brand: "REHA MED Brand", "Futura", "Trebuchet MS", Arial, sans-serif;
  --brand-orange: #ec7703;
  --brand-gray: #818e97;
}

.brand-caption,
.brand-caption span,
.brand-caption strong,
.brand-name {
  font-family: var(--font-brand);
  font-weight: 600;
  font-style: normal;
  letter-spacing: .04em;
  font-synthesis: none;
}

.brand-caption {
  gap: .34em;
}

.brand-caption span {
  color: var(--brand-gray);
  font-size: 15px;
}

.brand-caption strong {
  font-size: 15px;
}

.brand-caption strong,
.brand-name {
  color: var(--brand-orange);
  -webkit-text-fill-color: var(--brand-orange);
}

@media (max-width:1050px) {

  .brand-caption span,
  .brand-caption strong {
    font-size: 13px;
  }
}

@media (max-width:700px) {

  .brand-caption span,
  .brand-caption strong {
    font-size: 11.5px;
  }
}

/* ╔════════════════════════════════════════════════════╗
   ║  HINWEIS-BANNER (managed in WordPress)             ║
   ╚════════════════════════════════════════════════════╝ */
.site-notice {
  position: relative;
  z-index: 1001;
  background: var(--ink);
  color: #fff;
  font: 500 15px/1.45 Inter, Arial, sans-serif;
}

.site-notice.is-orange {
  background: var(--brand-orange, #ec7703);
  color: #1f1d19;
}

.site-notice .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 44px 10px 0;
  position: relative;
}

.site-notice p {
  margin: 0;
  text-align: center;
}

.site-notice p::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand-orange, #ec7703);
  vertical-align: 1px;
}

.site-notice.is-orange p::before {
  background: #1f1d19;
}

.site-notice a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 3px;
  margin-left: 6px;
  white-space: nowrap;
}

.site-notice-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: inherit;
  font: 400 20px/34px Arial, sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}

.site-notice.is-orange .site-notice-close {
  background: rgba(0, 0, 0, .1);
}

@media (max-width:700px) {
  .site-notice {
    font-size: 14px;
  }

  .site-notice p {
    text-align: left;
  }
}

.course-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
}

.course-empty a {
  color: #fff;
}

/* ── Fehlerseite (404) ── */
.legal .eyebrow {
  margin-bottom: 18px;
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
}

.legal ul.nf-links {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nf-links a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  color: var(--ink);
  font: 700 15px/1.2 Inter, sans-serif;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}

.nf-links a:hover,
.nf-links a:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

.legal a[href^="tel:"] {
  white-space: nowrap;
}


/* ── Praxisgemeinschaft (im Team-Bereich und im Impressum) ── */
.pg-block {
  margin-top: 28px;
  background: var(--paper);
  border: 1px solid rgba(17, 17, 15, .08);
  border-radius: 26px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  gap: 24px 44px;
}

.pg-head h3 {
  margin: 12px 0 14px;
  font: 900 clamp(26px, 3vw, 32px)/1.05 Archivo, sans-serif;
  letter-spacing: -.04em;
}

.pg-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.pg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  align-content: start;
}

.legal ul.pg-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.pg-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.legal .pg-item {
  margin: 0;
}

.pg-name {
  font: 800 17px/1.3 Archivo, sans-serif;
  letter-spacing: -.01em;
  color: var(--ink);
}

.pg-meta {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.pg-sitz {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .pg-block {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

@media (max-width: 560px) {
  .pg-list {
    grid-template-columns: 1fr;
  }
}

/* Tablet: the navigation folds into the menu button before it gets crowded */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 92px;
    background: var(--paper);
    border: 1px solid rgba(17, 17, 15, .08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

/* Themen on the team cards */
.team-tags {
  list-style: none;
  margin: -2px 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: #3a362f;
  font: 600 12.5px/1.2 Inter, sans-serif;
}

/* Steckbrief sections that are still empty */
.pd-sec-empty {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

/* ╔════════════════════════════════════════════════════╗
   ║  STARTSEITE: die Praxen als Bühne                  ║
   ║  Große Fotos (Originalqualität), Story-Fortschritt, ║
   ║  rollendes Gründungsjahr, Liste aller Praxen.      ║
   ╚════════════════════════════════════════════════════╝ */
.hero.px {
  padding: clamp(12px, 2.2vw, 32px) 0 clamp(44px, 5vw, 76px);
}

.hero.px::before {
  display: none;
}

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

.px-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 1fr);
  gap: clamp(28px, 3.4vw, 60px);
  align-items: stretch;
}

.px-stage {
  grid-column: 1;
  grid-row: 1;
}

.px-side {
  grid-column: 2;
  grid-row: 1;
}

/* ── the stage ── */
.px-stage {
  position: relative;
  height: clamp(500px, calc(100svh - 168px), 720px);
  border-radius: 32px;
  overflow: hidden;
  background: #2b2722;
  isolation: isolate;
  box-shadow: 0 46px 90px -44px rgba(38, 36, 31, .6);
  -webkit-tap-highlight-color: transparent;
}

.px-slides {
  position: absolute;
  inset: 0;
}

.px-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  visibility: hidden;
}

.px-slide.is-active {
  visibility: visible;
  z-index: 2;
}

.px-slide.is-leaving {
  visibility: visible;
  z-index: 1;
}

/* slides that are not on stage take no part in rendering, so their photos load only when needed */
html.js .px-slide:not(.is-active):not(.is-leaving) {
  display: none;
}

.px-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform-origin: 50% 32%;
}

.px-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 21, 18, .44) 0%, rgba(24, 21, 18, 0) 19%, rgba(24, 21, 18, 0) 44%, rgba(24, 21, 18, .52) 66%, rgba(24, 21, 18, .9) 100%);
}

.px-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 72%;
  padding: 0 clamp(24px, 3vw, 44px) clamp(26px, 3vw, 42px);
  color: #fff;
}

.px-cap .px-sr {
  color: #fff;
}

.px-name {
  margin: 0 0 16px;
  font: 900 clamp(34px, 3.7vw, 62px)/.94 Archivo, sans-serif;
  letter-spacing: -.05em;
  color: #fff;
  text-wrap: balance;
}

.px-pre {
  font-weight: 300;
  letter-spacing: -.035em;
}

.px-tags {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.px-tags li {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 600 13.5px/1.2 Inter, sans-serif;
}

.px-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 800 12px Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.px-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  transform: translateY(-1px);
}

.px-btn-glass {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.px-btn:focus-visible,
.px-row:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* story progress: one bar per practice */
.px-hud {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 26px;
  right: 26px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.px-hud span {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .32);
  overflow: hidden;
}

.px-hud i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.px-hud .is-done i {
  transform: scaleX(1);
}

.px-hud .is-active i {
  animation: pxProgress var(--px-dur, 6500ms) linear forwards;
}

.px.is-paused .px-hud .is-active i {
  animation-play-state: paused;
}

.px.is-stopped .px-hud .is-active i {
  animation: none;
  transform: scaleX(1);
}

@keyframes pxProgress {
  to {
    transform: scaleX(1);
  }
}

/* the founding year rolls like a counter when the practice changes */
.px-since {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 3vw, 42px);
  bottom: clamp(24px, 3vw, 40px);
  color: #fff;
  text-align: right;
  pointer-events: none;
}

.px-since-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .8);
  font: 600 13px/1.2 Inter, sans-serif;
}

.px-odo {
  display: inline-flex;
  font: 900 clamp(56px, 6.2vw, 106px)/1 Archivo, sans-serif;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.px-dg {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.px-reel {
  display: flex;
  flex-direction: column;
  transition: transform 1.05s cubic-bezier(.65, 0, .35, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.px-reel span {
  display: block;
  height: 1em;
  line-height: 1;
}

/* ── the list of practices ── */
.px-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.px-title {
  margin: 0 0 14px;
  font: 900 clamp(46px, 4.4vw, 78px)/.9 Archivo, sans-serif;
  letter-spacing: -.065em;
}

.px-line {
  display: block;
}

.px-lead {
  margin: 0 0 18px;
  max-width: 30em;
  color: #3a362f;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.5;
}

.px-list {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.px-row {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 16px 9px 9px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.px-row:hover {
  background: rgba(255, 255, 255, .6);
}

.px-row.is-active {
  background: #fff;
  border-color: rgba(17, 17, 15, .06);
  box-shadow: 0 14px 34px rgba(38, 36, 31, .09);
}

.px-ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px transparent, 0 0 0 4px transparent;
  transition: box-shadow .3s ease;
}

.px-row.is-active .px-ava {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange);
}

.px-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.px-row-name {
  overflow: hidden;
  font: 800 17px/1.2 Archivo, sans-serif;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.px-row-meta {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font: 500 13.5px/1.3 Inter, sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.px-row-year {
  color: var(--muted);
  font: 800 13px/1 Archivo, sans-serif;
  letter-spacing: .02em;
  transition: color .25s ease;
}

.px-row.is-active .px-row-year {
  color: #a85f00; /* the brand orange, darkened to stay readable on white */
}

.px-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.px-cta .btn {
  flex: none;
}

.px-cta p {
  margin: 0;
  color: var(--muted);
  font: 500 13.5px/1.45 Inter, sans-serif;
}

.px-cta a[href^="tel:"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.px-cta a[href^="tel:"]:hover {
  color: var(--orange);
}

/* ── motion: one entrance, then the stage tells the story ── */
html.js .px-stage {
  clip-path: inset(100% 0 0 0 round 32px);
  animation: pxStageIn 1.15s cubic-bezier(.77, 0, .18, 1) .45s forwards;
}

@keyframes pxStageIn {
  to {
    clip-path: inset(0 0 0 0 round 32px);
  }
}

html.js .px-list li {
  opacity: 0;
  animation: pxRowIn .7s cubic-bezier(.22, 1, .36, 1) .8s forwards;
}

html.js .px-list li:nth-child(2) { animation-delay: .87s; }
html.js .px-list li:nth-child(3) { animation-delay: .94s; }
html.js .px-list li:nth-child(4) { animation-delay: 1.01s; }
html.js .px-list li:nth-child(5) { animation-delay: 1.08s; }
html.js .px-list li:nth-child(n+6) { animation-delay: 1.15s; }

@keyframes pxRowIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.px-slide.is-active .px-img {
  animation: pxKen 9s cubic-bezier(.22, 1, .36, 1) both;
}

.px.is-paused .px-slide.is-active .px-img {
  animation-play-state: paused;
}

@keyframes pxKen {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

.px-slide.is-entering {
  animation: pxWipe 1s cubic-bezier(.77, 0, .18, 1) both;
}

@keyframes pxWipe {
  from {
    clip-path: inset(100% 0 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.px-slide.is-leaving .px-img {
  transform: scale(1.07);
  filter: brightness(.7);
  transition: transform 1s cubic-bezier(.77, 0, .18, 1), filter 1s ease;
}

.px-slide.is-entering .px-cap > *,
html.js .px-slide.is-first .px-cap > * {
  animation: pxRise .85s cubic-bezier(.22, 1, .36, 1) both;
}

.px-slide.is-entering .px-cap > :nth-child(2) { animation-delay: .32s; }
.px-slide.is-entering .px-cap > :nth-child(3) { animation-delay: .42s; }
.px-slide.is-entering .px-cap > :nth-child(4) { animation-delay: .52s; }
html.js .px-slide.is-first .px-cap > :nth-child(2) { animation-delay: 1.2s; }
html.js .px-slide.is-first .px-cap > :nth-child(3) { animation-delay: 1.3s; }
html.js .px-slide.is-first .px-cap > :nth-child(4) { animation-delay: 1.4s; }

@keyframes pxRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* without JavaScript: every practice as its own card */
html:not(.js) .px-stage {
  height: auto;
  overflow: visible;
  background: none;
  box-shadow: none;
}

html:not(.js) .px-slides {
  position: static;
  display: grid;
  gap: 10px;
}

html:not(.js) .px-slide {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 28px;
  visibility: visible;
}

html:not(.js) .px-hud,
html:not(.js) .px-since {
  display: none;
}

/* ── tablet ── */
@media (max-width: 1100px) {
  .px-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .px-side {
    display: contents;
  }

  .px-title {
    order: 1;
  }

  .px-lead {
    order: 2;
  }

  .px-stage {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    height: auto;
    aspect-ratio: 16 / 11;
    margin: 6px 0 16px;
  }

  .px-list {
    order: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    margin: 0;
  }

  .px-cta {
    order: 5;
  }

  .px-cap {
    max-width: 78%;
  }
}

/* ── phone: the stage becomes a story you can tap through ── */
@media (max-width: 760px) {
  .px-title {
    font-size: clamp(44px, 13vw, 60px);
  }

  .px-lead {
    margin-bottom: 14px;
  }

  .px-stage {
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    margin: 2px 0 14px;
  }

  html.js .px-stage {
    clip-path: inset(100% 0 0 0 round 26px);
  }

  @keyframes pxStageIn {
    to {
      clip-path: inset(0 0 0 0 round 26px);
    }
  }

  .px-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .px-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 7px 14px 7px 7px;
  }

  .px-ava {
    width: 44px;
    height: 44px;
  }

  .px-slide::after {
    background: linear-gradient(180deg, rgba(24, 21, 18, .46) 0%, rgba(24, 21, 18, 0) 21%, rgba(24, 21, 18, 0) 38%, rgba(24, 21, 18, .58) 60%, rgba(24, 21, 18, .93) 100%);
  }

  .px-cap {
    max-width: none;
    padding: 0 20px 20px;
  }

  .px-name {
    margin-bottom: 10px;
    font-size: 34px;
  }

  /* on the phone the topics read as one quiet line instead of pills, so the face stays free */
  .px-tags {
    display: block;
    margin: 0 0 16px -1.3em;
    font: 600 13.5px/1.55 Inter, sans-serif;
    /* each topic carries its separator in front; the one at the start of a line is clipped away */
    clip-path: inset(0 0 0 1.3em);
  }

  .px-tags li {
    display: inline-block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font: inherit;
    color: rgba(255, 255, 255, .94);
  }

  .px-tags li::before {
    content: "·";
    display: inline-block;
    width: 1.3em;
    text-align: center;
    color: rgba(255, 255, 255, .6);
  }

  .px-actions {
    gap: 8px;
  }

  .px-btn {
    flex: 1 1 0;
    padding: 14px 12px;
  }

  .px-long {
    display: none;
  }

  .px-hud {
    top: 16px;
    left: 18px;
    right: 18px;
  }

  .px-since {
    top: 34px;
    right: 20px;
    bottom: auto;
  }

  .px-odo {
    font-size: 52px;
  }

  .px-since-label {
    font-size: 12px;
  }

  .px-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .px-stage,
  html.js .px-list li {
    animation: none;
    clip-path: none;
    opacity: 1;
  }

  .px-slide.is-active .px-img,
  .px-slide.is-entering,
  .px-slide.is-entering .px-cap > *,
  html.js .px-slide.is-first .px-cap > * {
    animation: none;
  }

  .px-reel,
  .px-slide.is-leaving .px-img {
    transition: none;
  }
}

/* ── Kontakt: Social Media als schlichte Pillen ── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 800 11.5px/1 Archivo, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.social-link span {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0;
  transition: transform .2s ease;
}

.social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.social-link:hover span {
  transform: translate(2px, -2px);
}

.social-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .social-link span {
    transition: none;
  }
}
