/* ==========================================================================
   ProCareLink — design system
   Palette: navy #144870, teal #5996A2, grey #E8E7E7, white #FFFFFF
   Type: Fira Sans (text), Fira Mono (verifiable data: prices, stats, steps)
   ========================================================================== */

/* -- Fonts (self-hosted, zero third-party requests) ----------------------- */

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/fira-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/fira-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/fira-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/fira-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Mono";
  src: url("../fonts/fira-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Mono";
  src: url("../fonts/fira-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Mono";
  src: url("../fonts/fira-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -- Design tokens ---------------------------------------------------------
   All non-primary colours are derived from the four brand colours.
   Contrast checked against WCAG AA (verified with WCAG relative-luminance
   formula during build):
     navy on white   9.59:1   ink on white   14.88:1
     ink-muted white  6.21:1  ink-muted grey  5.03:1
     teal on white    3.33:1  (large text / UI only, never body copy)
   -------------------------------------------------------------------------- */

:root {
  --navy: #144870;
  --navy-dark: #0e3454;
  --navy-wash: rgba(20, 72, 112, 0.06);
  --teal: #5996a2;
  --teal-dark: #457884;
  --teal-text: #3d6873;
  --teal-wash: rgba(89, 150, 162, 0.12);
  --grey: #e8e7e7;
  --white: #ffffff;
  --ink: #23282c;
  --ink-muted: #5a6268;
  --error: #b3261e;
  --error-wash: #fbebe9;
  --success: #2e6b44;
  --success-wash: #eaf3ec;

  --font-body: "Fira Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "Fira Mono", "SFMono-Regular", Menlo, monospace;

  --container: 72rem;
  --container-narrow: 46rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --radius: 3px;
  --border: 1px solid rgba(20, 72, 112, 0.16);
}

/* -- Reset ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

/* -- Base -------------------------------------------------------------------- */

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  max-width: 62ch;
}

p + p {
  margin-top: var(--space-2);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink);
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  /* teal-text, not teal-dark: this label appears on both white and grey
     section backgrounds, and teal-dark only clears 4.5:1 on white (4.91:1)
     — on grey it drops to 3.98:1. teal-text clears both (6.13 / 4.97). */
  color: var(--teal-text);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}

.source {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* -- Focus & motion ----------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -- Layout helpers ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-6);
}

.section--tight {
  padding-block: var(--space-5);
}

.section--grey {
  background: var(--grey);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-5);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--space-2);
}

/* -- Buttons -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--navy-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--navy-wash);
}

.section--navy .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.section--navy .btn-secondary:hover,
.section--navy .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* -- Site header ------------------------------------------------------------------ */

.site-header {
  background: var(--grey);
  border-bottom: 1px solid rgba(20, 72, 112, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: 0.6rem;
  position: relative;
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 52px;
  width: auto;
}

/* Desktop: nav sits inline in the same row as the logo and actions, filling
   the space between them. The nested .container is neutralised here so it
   doesn't add a second layer of max-width/padding — it's only reinstated
   for the mobile dropdown panel below. */
#site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

#site-nav .container {
  padding-inline: 0;
  max-width: none;
  margin-inline: 0;
}

.site-header__links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-header__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}

.site-header__links a:hover,
.site-header__links a[aria-current="page"] {
  border-bottom-color: var(--teal);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
}

.site-header__phone:hover,
.site-header__phone:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.site-header__phone .icon {
  color: var(--white);
  width: 1rem;
  height: 1rem;
}

.contact-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.contact-hours .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--teal-dark);
  flex-shrink: 0;
}

.site-header__phone:hover .icon,
.site-header__phone:focus-visible .icon {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--navy);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 420px) {
  .site-header__phone {
    padding: 0.5rem;
  }

  .site-header__phone span {
    display: none;
  }

  .site-header__phone .icon {
    width: 1.15rem;
    height: 1.15rem;
  }
}

@media (max-width: 860px) {
  .site-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }

  .site-header__actions {
    display: contents;
  }

  .site-header__phone {
    grid-column: 2;
    justify-self: center;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  #site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--grey);
    border-top: 1px solid rgba(20, 72, 112, 0.12);
    border-bottom: 1px solid rgba(20, 72, 112, 0.12);
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: none;
  }

  #site-nav.is-open {
    display: block;
  }

  #site-nav .container {
    padding-inline: var(--space-3);
    padding-block: 0.4rem;
  }

  .site-header__links {
    flex-direction: column;
    gap: 0.2rem;
  }

  .site-header__links a {
    display: block;
    padding: 0.6rem 0.2rem;
  }
}

/* -- Site footer -------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--space-5) var(--space-4);
}

.site-footer a {
  color: var(--white);
}

.site-footer__wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  display: block;
  margin-bottom: var(--space-1);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.site-footer__grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__grid a,
.site-footer__contact {
  text-decoration: none;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__grid a:hover {
  text-decoration: underline;
}

.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.site-footer__contact-item .icon {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* -- Hero ------------------------------------------------------------------------- */

.hero {
  padding-block: var(--space-7) var(--space-6);
  background: var(--white);
}

.hero__inner {
  max-width: 44rem;
}

.hero h1 {
  margin-bottom: var(--space-3);
}

.hero .lede {
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.hero__phone {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.hero__phone .icon {
  color: var(--teal-dark);
}

/* -- Stat grid ("Sie kennen die Lage") ---------------------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.stat {
  border-top: 3px solid var(--teal);
  padding-top: var(--space-3);
}

.stat__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--teal-dark);
  display: block;
  margin-bottom: var(--space-2);
}

.stat__figure {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  color: var(--navy);
  display: block;
  margin-bottom: 0.4rem;
}

.stat__label {
  color: var(--ink);
  margin-bottom: 0.6rem;
}

/* -- Recognition list ("Und Sie kennen wahrscheinlich auch das") -------------------- */

.recognition-list {
  display: flex;
  flex-direction: column;
}

.recognition-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: var(--border);
}

.recognition-item:last-child {
  border-bottom: var(--border);
}

.recognition-item__num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--teal);
  font-weight: 500;
}

.recognition-item h3 {
  margin-bottom: 0.5rem;
}

.recognition-item p {
  color: var(--ink);
}

/* -- Three-block promise section ---------------------------------------------------- */

.block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.promise-block {
  background: var(--white);
  border: var(--border);
  border-top: 3px solid var(--navy);
  padding: var(--space-4);
}

.promise-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy-wash);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.promise-block__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.promise-block h3 {
  margin-bottom: var(--space-2);
}

/* -- Person feature (Zala) ------------------------------------------------------------ */

.person-feature {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: var(--space-5);
  align-items: start;
}

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

.portrait-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--navy-wash);
  border: 1px solid rgba(20, 72, 112, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Real photo: no forced crop box — width matches the other placeholders,
   height follows the photo's own natural proportions. */
.portrait-placeholder--photo {
  aspect-ratio: auto;
  background: none;
  border: none;
  display: block;
}

.portrait-placeholder__initials {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
}

.portrait-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.person-feature__credentials {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

/* -- Truth ledger (signature element) -------------------------------------------------- */

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(20, 72, 112, 0.16);
  border: 1px solid rgba(20, 72, 112, 0.16);
}

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

.ledger__col {
  background: var(--white);
  padding: var(--space-4);
}

.ledger__col--promise {
  border-top: 4px solid var(--navy);
}

.ledger__col--limits {
  border-top: 4px solid var(--teal);
}

.ledger__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}

.ledger__col--promise .ledger__heading .icon {
  color: var(--navy);
}

.ledger__col--limits .ledger__heading .icon {
  color: var(--teal-dark);
}

.ledger__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ledger__item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding-block: 0.5rem;
  border-top: 1px solid rgba(20, 72, 112, 0.1);
}

.ledger__item:first-child {
  border-top: none;
}

.ledger__item .icon {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.ledger__col--promise .ledger__item .icon {
  color: var(--navy);
}

.ledger__col--limits .ledger__item .icon {
  color: var(--teal-dark);
}

.ledger__warning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(20, 72, 112, 0.14);
}

.ledger__warning .icon {
  color: var(--error);
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.ledger__warning p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}

/* -- Guide / Leitfaden callout ---------------------------------------------------------- */

.guide-panel {
  background: var(--white);
  border: var(--border);
  border-left: 4px solid var(--teal);
  padding: var(--space-4);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(240px, 400px) minmax(320px, 1fr);
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 860px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* /wissen/ only: split the text column into named areas so the mockup can
   be reordered on mobile (intro copy, then mockup, then checklist/form)
   without touching the homepage's guide-grid, which keeps its own layout. */
/* Desktop: .guide-text is a normal block holding intro+rest stacked exactly
   as before — identical to the original two-item layout (mockup | text). */
@media (max-width: 860px) {
  /* Mobile only: dissolve the wrapper so intro/mockup/rest become direct
     flow items and can be reordered independently. */
  .guide-grid--wissen .guide-text {
    display: contents;
  }

  .guide-grid--wissen .guide-intro {
    order: 1;
  }

  .guide-grid--wissen .guide-mockup {
    order: 2;
  }

  .guide-grid--wissen .guide-rest {
    order: 3;
  }
}

.guide-mockup {
  display: flex;
  justify-content: center;
}

.guide-mockup img {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.guide-checklist {
  margin-block: var(--space-3) var(--space-4);
}

/* -- Forms -------------------------------------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 34rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.form-row .hint {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-row input,
.form-row textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(20, 72, 112, 0.35);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 1px;
}

.form-row--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-row--checkbox input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-row--checkbox label {
  font-weight: 400;
  color: var(--ink);
  font-size: 0.95rem;
}

.form-row--checkbox a {
  color: var(--navy);
}

/* honeypot field, hidden from sighted users and screen readers */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* -- Checklist (with icons — permitted context) ------------------------------------------- */

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-block: var(--space-2);
  border-top: 1px solid rgba(20, 72, 112, 0.12);
}

.checklist li:first-child {
  border-top: none;
}

.checklist .icon {
  color: var(--navy);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* -- Workload proportion bar (für Einrichtungen) — states the 7:2 split visually,
   fills in on scroll via the existing .reveal mechanism (see main.js) ------------- */

.workload {
  margin-block: var(--space-4) var(--space-5);
  max-width: 32rem;
}

.workload__bar {
  display: flex;
  height: 1rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(20, 72, 112, 0.16);
}

.workload__bar.reveal {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s ease;
}

.workload__bar.reveal.is-visible {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .workload__bar.reveal {
    transform: none;
  }
}

.workload__segment--wir {
  background: var(--navy);
}

.workload__segment--sie {
  background: var(--teal-dark);
}

.workload__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.workload__labels .dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
}

.workload__labels .dot--wir {
  background: var(--navy);
}

.workload__labels .dot--sie {
  background: var(--teal-dark);
}

.workload__labels strong {
  color: var(--ink);
}

/* -- Process flow (für Einrichtungen) — vertical scroll-animated timeline,
   replaces the old horizontal chip strip + separate table with one component.
   The line fills and each step sharpens into focus as it's scrolled to,
   driven by main.js (IntersectionObserver + a lightweight scroll listener). --- */

.process-flow {
  position: relative;
}

.process-flow__track,
.process-flow__progress {
  position: absolute;
  left: 27px;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
}

.process-flow__track {
  background: rgba(20, 72, 112, 0.16);
}

.process-flow__progress {
  background: var(--navy);
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
}

@media (prefers-reduced-motion: reduce) {
  .process-flow__progress {
    transform: scaleY(1);
  }
}

.process-flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process-flow__step {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.process-flow__marker {
  flex-shrink: 0;
  width: 56px;
  display: flex;
  justify-content: center;
  padding-top: 0.6rem;
}

.process-flow__node {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--white);
  border: 2px solid rgba(20, 72, 112, 0.25);
  color: var(--ink-muted);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.process-flow__step.is-active .process-flow__node {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: scale(1.08);
}

.process-flow__step[data-who="sie"].is-active .process-flow__node {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.process-flow__card {
  flex: 1;
  background: var(--white);
  border: 1px solid rgba(20, 72, 112, 0.14);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-block: 0.6rem;
  opacity: 0.5;
  transform: translateX(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-flow__step.is-active .process-flow__card {
  opacity: 1;
  transform: none;
}

.process-flow__step[data-who="sie"] .process-flow__card {
  border-left: 3px solid var(--teal);
  background: var(--teal-wash);
}

@media (prefers-reduced-motion: reduce) {
  .process-flow__node,
  .process-flow__card {
    transition: none;
  }
}

.process-flow__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.process-flow__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--navy-wash);
  color: var(--navy);
  white-space: nowrap;
}

.process-flow__tag--sie {
  background: var(--white);
  color: var(--teal-text);
  border: 1px solid var(--teal);
}

.process-flow__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  white-space: nowrap;
  opacity: 0.65;
}

.process-flow__duration .icon {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.process-flow__card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.callout {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  border-left: 4px solid var(--teal);
  padding-left: var(--space-3);
  margin-block: var(--space-4);
  max-width: 42rem;
}

.pull-quote {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-4);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 46rem;
}

/* -- Pricing panel --------------------------------------------------------------------------- */

.price-panel {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-5);
}

.price-panel__total {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.price-panel__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.price-panel__split div {
  border-top: 3px solid rgba(255, 255, 255, 0.6);
  padding-top: 0.6rem;
}

.price-panel__amount {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

/* Conditional third fee — deliberately quiet: a footnote-scale aside, not
   a third tier alongside the two guaranteed payments above it. Sits outside
   .price-panel__split so it never reads as "item 3 in the same list". */
.price-panel__conditional {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 38rem;
  font-size: 0.85rem;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

.price-panel__conditional-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
}

.price-panel__emphasis {
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 40rem;
}

.price-terms {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.price-terms li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.price-terms .icon {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.price-terms strong {
  color: var(--white);
}

/* -- Team cards -------------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-card__credentials {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-block: var(--space-2);
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-block: var(--space-2) var(--space-3);
}

.credential-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.credential-list .icon {
  color: var(--navy);
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.team-card h3 {
  margin-top: var(--space-3);
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 0.2rem;
}

/* -- Warum Georgien reasons ----------------------------------------------------------------------- */

/* Desktop-only header background — the media query means non-matching
   viewports (mobile) never even fetch this image. */
@media (min-width: 860px) {
  .warum-hero {
    position: relative;
    overflow: hidden;
    padding-block: var(--space-6) 7rem;
  }

  .warum-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/img/ProCareLink_Header_Georgien_1920.webp");
    background-repeat: no-repeat;
    background-position: center 55%;
    background-size: min(1400px, 92%) auto;
    opacity: 0.5;
    pointer-events: none;
  }

  .warum-hero > .container {
    position: relative;
    z-index: 1;
  }
}

.reason {
  padding-block: var(--space-5);
  border-top: var(--border);
}

.reason:first-child {
  border-top: none;
}

.reason__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-2);
}

.reason__head .icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--navy);
  flex-shrink: 0;
}

.reason__head h2 {
  margin: 0;
}

.reason h2 {
  margin-bottom: var(--space-2);
}

.reason .source {
  display: block;
  margin-top: var(--space-2);
}

/* -- Route graphic (Germany–Georgia connection, hand-built vector) --------------------------------- */

.route-graphic {
  background: var(--white);
  border: var(--border);
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.route-graphic__svg {
  width: 100%;
  height: auto;
  display: block;
  margin-top: var(--space-2);
}

.route-graphic__svg text {
  font-family: var(--font-mono);
  fill: var(--ink);
}

.route-graphic__stat {
  font-size: 19px;
  font-weight: 700;
  fill: var(--navy);
}

.route-graphic__label {
  font-size: 13px;
  fill: var(--ink-muted);
}

.route-graphic__city {
  font-size: 15px;
  font-weight: 700;
  fill: var(--navy);
}

.route-graphic__country {
  font-size: 12px;
  fill: var(--ink-muted);
}

.route-graphic__caption {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: var(--space-2);
}

/* -- Bridge motif divider (used once, per brand guidance) ------------------------------------------ */

.bridge-divider {
  display: flex;
  justify-content: center;
  padding-block: var(--space-4);
}

.bridge-divider img {
  width: 519px;
  max-width: 100%;
  height: auto;
}

/* -- Legal pages ------------------------------------------------------------------------------------- */

.legal-notice {
  background: var(--error-wash);
  border-left: 4px solid var(--error);
  padding: var(--space-3);
  color: var(--ink);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.legal-content h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  max-width: 68ch;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.legal-content dl {
  max-width: 68ch;
}

.legal-content dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: var(--space-2);
}

/* -- Form confirmation pages --------------------------------------------------------------------------- */

.confirm {
  text-align: center;
  padding-block: var(--space-7);
}

.confirm .icon {
  width: 3rem;
  height: 3rem;
  color: var(--success);
  margin-bottom: var(--space-3);
}

/* -- OFFEN marker ----------------------------------------------------------------------------------------- */

.offen {
  background: #fff6e0;
  border: 1px dashed #a87b00;
  color: #7a5b00;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  display: inline-block;
}

/* -- Utility ------------------------------------------------------------------------------------------------ */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
