/* Patrick Smith · Website 2026
   Grundlage: Patrick Smith Brand System v1.1 (Navy + Weiß, Akzent Teal, Montserrat,
   rechteckige Geometrie, gefüllte Piktogramme). Lädt nach tokens.css und chrome.css. */

/* Schrift und Design-Tokens: tokens.css (wird vor dieser Datei geladen). */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: var(--navy);
  text-underline-offset: 4px;
}

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

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
  hyphens: manual;
}

h1 {
  font-size: clamp(1.95rem, 1.3rem + 2.4vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

@media (max-width: 640px) {
  h1,
  h2,
  h3 {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* Keep the homepage claim's compound break at the editorial soft hyphen. */
.hero #hero-title {
  hyphens: manual;
  -webkit-hyphens: manual;
  max-width: 23ch;
  font-size: clamp(1.95rem, 1.35rem + 2vw, 3.05rem);
  line-height: 1.16;
  overflow-wrap: break-word;
}

.hero #hero-title .mark {
  display: block;
  width: fit-content;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

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

/* Skip-Link und .container: chrome.css */

/* ---------- Header ----------
   Grundlagen (.site-header, Marke, .dot) stehen in chrome.css; hier nur die Navigation. */

.nav {
  display: flex;
  align-items: center;
  gap: 4px 24px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px 24px;
  list-style: none;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav__links a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--teal);
}

/* Sprachwechsel: chrome.css */

.nav__intro {
  display: none;
}

/* Desktop header: nothing in the bar may wrap. */
@media (min-width: 1180px) {
  .nav {
    flex: 0 0 auto;
  }

  .nav__links a,
  .nav .button,
  .brand__tagline {
    white-space: nowrap;
  }
}

/* In German the header tagline repeats the three navigation areas, so on desktop
   the navigation carries it. English keeps it where there is room. */
@media (min-width: 1180px) {
  html[lang="de"] .brand__tagline {
    display: none;
  }
}

@media (min-width: 1180px) and (max-width: 1299px) {
  .brand__tagline {
    display: none;
  }

  .site-header__inner {
    column-gap: 16px;
  }

  .nav,
  .nav__links {
    column-gap: 16px;
  }
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

@media (max-width: 1179px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(0, 38, 89, 0.12);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

  .nav__intro {
    display: grid;
    gap: 8px;
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__intro a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: var(--pale);
    border-left: 3px solid var(--teal);
    text-decoration: none;
    font-weight: 700;
  }

  .nav__intro a span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--blue);
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__links li {
    display: block;
  }

  .nav__links a {
    display: flex;
    width: 100%;
    min-height: 52px;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__links a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--teal);
    padding-left: 12px;
  }

  .nav .button {
    margin-top: 12px;
    justify-content: center;
  }
}

/* Telefon: Tagline ausblenden – chrome.css */

/* Keep both languages in the header, outside the collapsible navigation.
   Two rows on phones preserve the existing name and flower dimensions. */
@media (max-width: 640px) {
  :root { --header-h: 104px; }
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding-block: 8px;
  }
  .site-header .brand { grid-column: 1; grid-row: 1 / span 2; }
  .site-header .language-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header .menu-toggle { grid-column: 2; grid-row: 2; justify-self: end; padding-inline: 10px; }
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: box-shadow var(--motion-quick) var(--ease), background-color var(--motion-quick) var(--ease);
}

.button:hover {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.button--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

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

.button--outline:hover {
  color: var(--navy);
  background: var(--pale);
}

.button--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.button--light:hover {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.button--ghost-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.button--ghost-light:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform var(--motion-base) var(--ease);
}

.link-arrow:hover svg,
.card-link:hover .link-arrow svg {
  transform: translateX(4px);
}

.link-arrow--light {
  color: var(--white);
}

.link-arrow--light:hover {
  color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

/* ---------- Sections ---------- */

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

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

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section--flush-top {
  padding-top: 0;
}

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

.section--navy h2,
.section--navy h3,
.section--navy a:not(.button) {
  color: var(--white);
}

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

.rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 24px 48px;
}

.rail__label {
  position: relative;
  margin: 0;
  display: block;
  padding-left: 44px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  hyphens: manual;
  overflow-wrap: break-word;
}

.rail__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 32px;
  height: 3px;
  background: var(--teal);
}

.rail__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 1179px) {
  .rail {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .rail__label { font-size: 1.5rem; }
}

@media (max-width: 640px) {
  .rail__label { font-size: 1.375rem; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}

.section-head p {
  font-size: 1.125rem;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  font-weight: 500;
  max-width: 44em;
}

.muted {
  color: var(--blue);
}

.small {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.prose {
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.125rem;
}

.statement {
  max-width: 40em;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  font-weight: 600;
  padding-left: 20px;
  border-left: 3px solid var(--navy);
}

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

.hero {
  padding-block: clamp(40px, 5vw, 80px) clamp(48px, 6vw, 88px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px 64px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.identity::before {
  content: "";
  width: 32px;
  height: 3px;
  margin-right: 12px;
  background: var(--teal);
}

.mark {
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.32em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@keyframes mark-in {
  from {
    background-size: 0% 0.32em;
  }
  to {
    background-size: 100% 0.32em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mark {
    animation: mark-in var(--motion-slow) var(--ease) 300ms both;
  }
}

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--teal);
}

.portrait {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 470px);
}

.portrait picture,
.portrait img {
  display: block;
  width: 100%;
}

.portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 16%;
  border-radius: var(--radius);
}

.portrait::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 42%;
  height: 46%;
  border-right: 6px solid var(--teal);
  border-bottom: 6px solid var(--teal);
  pointer-events: none;
}

.portrait figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 38, 89, 0.12);
  line-height: 1.35;
}

.portrait figcaption strong {
  font-size: 0.9375rem;
}

.portrait figcaption span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait {
    width: min(100%, 400px);
    justify-self: start;
  }

  .portrait img {
    aspect-ratio: 1 / 1;
    object-position: center 14%;
  }

  .portrait::after {
    right: -10px;
    bottom: -10px;
  }
}

/* ---------- Auftakt der Startseite (DE und EN) ----------
   Einmal beim Laden, nach gut einer Sekunde abgeschlossen. Überschrift und Porträt stehen sofort da;
   der größte Inhalt wird nie ausgeblendet. Unter „aus einer Hand.“ zieht sich die grüne Markierung
   (oben, .mark), dann folgen Einleitung, Aktionen und Qualifikationen. Der Teal-Winkel wächst aus der
   Ecke um das Porträt, die Bildunterschrift schiebt sich heran, die Marker der Qualifikationen setzen
   nacheinander ein. Nur Transform, Opacity und Zuschnitt: kein Layout Shift, Endzustand wie ohne
   Animation. Ohne Skript-Unterstützung oder bei reduzierter Bewegung bleibt alles wie bisher. */

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .hero__copy > .lead {
    animation: hero-rise var(--motion-slow) var(--ease) 80ms both;
  }

  .hero__copy > .actions {
    animation: hero-rise var(--motion-slow) var(--ease) 180ms both;
  }

  /* Die Trennlinie über den Qualifikationen zeichnet sich von links (gleiche Linie wie der Rahmen). */
  .hero .trust {
    border-top-color: transparent;
    background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat border-box;
    animation: hero-rise var(--motion-slow) var(--ease) 280ms both, hero-rule var(--motion-slow) var(--ease) 360ms both;
  }

  .hero .trust li::before {
    animation: hero-pop var(--motion-base) var(--ease) both;
  }

  .hero .trust li:nth-child(1)::before { animation-delay: 620ms; }
  .hero .trust li:nth-child(2)::before { animation-delay: 700ms; }
  .hero .trust li:nth-child(3)::before { animation-delay: 780ms; }

  /* Das Foto setzt sich ruhig in seinen Rahmen (nur Maßstab, keine Blende). */
  .hero .portrait picture {
    overflow: hidden;
    border-radius: var(--radius);
  }

  .hero .portrait img {
    animation: hero-settle 1200ms var(--ease) both;
  }

  .hero .portrait::after {
    animation: hero-frame var(--motion-slow) var(--ease) 260ms both;
  }

  .hero .portrait figcaption {
    animation: hero-slide var(--motion-slow) var(--ease) 460ms both;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-rule {
  from {
    background-size: 0% 1px;
  }
  to {
    background-size: 100% 1px;
  }
}

@keyframes hero-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: none;
  }
}

/* Der Winkel wächst aus der unteren rechten Ecke nach oben und nach links. */
@keyframes hero-frame {
  from {
    clip-path: inset(100% 0 0 100%);
  }
  to {
    clip-path: inset(0);
  }
}

@keyframes hero-slide {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Subpage hero */

.page-hero {
  padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-soft);
}

.hero-note {
  margin: 0;
  max-width: 44em;
  font-size: 0.9375rem;
  color: var(--blue);
}

/* Wide illustrative image under a page hero */
.page-media {
  position: relative;
  margin: clamp(32px, 4vw, 56px) 0 0;
}

.page-media picture,
.page-media img {
  display: block;
  width: 100%;
}

/* Photos are 3:2: a 2:1 window on wider screens, the full frame on phones (below). */
.page-media img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-media::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 22%;
  height: 42%;
  border-right: 6px solid var(--teal);
  border-bottom: 6px solid var(--teal);
  pointer-events: none;
}

@media (max-width: 720px) {
  .page-media img {
    aspect-ratio: 3 / 2;
  }
}

/* Contact person next to the enquiry form */
.contact-person {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.contact-person img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  border-bottom: 4px solid var(--teal);
}

.contact-person p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.contact-person span {
  font-size: 0.9375rem;
  color: var(--blue);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px 64px;
  align-items: start;
}

.page-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-hero__copy h1 {
  max-width: 18em;
}

.breadcrumb {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
}

.breadcrumb a {
  color: var(--blue);
}

/* Hover ergänzt (Phase 5): gleiche Sprache wie die übrigen Links – Navy und Teal-Unterstreichung. */
.breadcrumb a:hover {
  color: var(--navy);
  text-decoration-color: var(--teal);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--teal);
}

/* Page-area labels are a little stronger; small editorial eyebrows stay small. */
.page-hero .eyebrow {
  font-size: 1.375rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .page-hero .eyebrow { font-size: 1.25rem; }
}

.fact-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 26px 26px 10px;
  background: var(--pale);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
}

.fact-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}

.fact-panel__head h2 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

.fact-panel__head svg {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.fact-panel > img {
  width: 100%;
  max-width: 260px;
  margin: 4px 0 14px;
}

.fact-panel dl,
.fact-panel ul {
  margin: 0;
  list-style: none;
}

.fact-panel dl > div,
.fact-panel li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.fact-panel dt {
  font-weight: 700;
}

.fact-panel dd {
  margin: 2px 0 0;
  color: var(--blue);
}

@media (max-width: 900px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.area-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.area-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.area-card--psych {
  border-top-color: var(--light-blue);
}

.area-card--safety {
  border-top-color: var(--teal);
}

.area-card--learning {
  border-top-color: var(--green);
}

/* Photo at the top of an area card (home) */
.area-card__media {
  margin: -28px -26px 6px;
}

.area-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.area-card__name {
  font-size: 1rem;
  font-weight: 700;
}

.nobr {
  white-space: nowrap;
}

.area-card__topics {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

.area-card__top svg {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.area-card h3 {
  font-size: 1.375rem;
  line-height: 1.25;
}

.area-card .link-arrow {
  margin-top: auto;
}

/* „Drei Bereiche, die zusammengehören“: Beim Hereinscrollen zieht sich die farbige Oberkante von
   Karte zu Karte wie eine durchgehende Linie, scrollgesteuert wie .process__line. Bis dahin steht
   dort die graue Kartenkante. Texte und Bilder sind die ganze Zeit sichtbar. */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  @supports (animation-timeline: view()) {
    .area-card {
      position: relative;
      border-top-color: var(--line);
    }

    .area-card::before {
      content: "";
      position: absolute;
      top: -3px;
      left: -1px;
      right: -1px;
      height: 3px;
      border-radius: var(--radius) var(--radius) 0 0;
      background: var(--teal);
      transform-origin: left center;
      pointer-events: none;
      animation: draw-line linear both;
      /* Bezug ist die Linie selbst im Fenster (cover 10 % = Kartenkante bei 90 % der Fensterhöhe). */
      animation-timeline: view();
      animation-range: cover 10% cover 35%;
    }

    .area-card--learning::before {
      background: var(--green);
    }

    .area-card--psych::before {
      background: var(--light-blue);
    }
  }
}

/* Nebeneinander: die drei Abschnitte der Linie nacheinander, von links nach rechts. */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) and (min-width: 901px) {
  @supports (animation-timeline: view()) {
    .grid--3 > .area-card:nth-child(1)::before {
      animation-range: cover 10% cover 24%;
    }

    .grid--3 > .area-card:nth-child(2)::before {
      animation-range: cover 24% cover 38%;
    }

    .grid--3 > .area-card:nth-child(3)::before {
      animation-range: cover 38% cover 52%;
    }
  }
}

.ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--blue);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--teal);
}

.ticks--navy li {
  color: var(--navy);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section--pale .panel {
  background: var(--white);
}

.panel--pale {
  background: var(--pale);
}

.panel h3 {
  font-size: 1.1875rem;
}

.panel p {
  font-size: 1rem;
  line-height: 1.6;
}

.panel svg.pictogram {
  width: 36px;
  height: 36px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
}

.audience-card:hover {
  color: var(--navy);
  background: #eaf1f8;
}

.audience-card__for {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

.audience-card strong {
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--navy);
}

.audience-card p {
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 500;
}

.audience-card .link-arrow {
  margin-top: auto;
  text-decoration: none;
}

.note-line {
  padding: 16px 20px;
  background: var(--white);
  border-left: 3px solid var(--teal);
  font-size: 1rem;
  line-height: 1.6;
}

.section--pale .note-line {
  background: var(--white);
}

/* ---------- Process ---------- */

.process {
  position: relative;
  padding-top: 26px;
}

.process__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--navy);
  transform-origin: left center;
}

@keyframes draw-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .process__line {
      animation: draw-line linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}

.process ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}

.process li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.process li::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: var(--navy);
}

.process li.is-key {
  background: var(--pale-teal);
  border: 2.5px solid var(--teal);
}

.process li.is-key::before {
  background: var(--teal);
  width: 18px;
  height: 18px;
  top: -36px;
  left: 19px;
}

.process__no {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

.process strong {
  font-size: 1.2rem;
  line-height: 1.3;
}

.process p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--blue);
}

.process .is-key p {
  color: var(--navy);
}

.process__meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 700px) {
  .process {
    padding-top: 0;
    padding-left: 26px;
  }

  .process__line {
    right: auto;
    width: 3px;
    bottom: 0;
    height: auto;
    transform-origin: center top;
  }

  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .process__line {
        animation-name: draw-line-v;
      }
    }
  }

  .process li::before {
    top: 26px;
    left: -33px;
  }

  .process li.is-key::before {
    top: 25px;
    left: -34px;
  }
}

@keyframes draw-line-v {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* ---------- Vorgehen (Startseite, seit 15.11.2026) ----------
   Kreislauf und Liste bilden ein Element: Die nummerierten Schritte sind die Punkte auf dem Ring,
   die Liste daneben erklärt sie. Alle vier Schritte sind gleich gewichtet. Der Abschnitt steht auf
   Weiß zwischen den hellen Flächen von Leistungen und Profil. Ohne JavaScript (oder ohne Unterstützung
   von (scripting)) bleibt nur die Liste. Der Ring zeichnet sich beim Scrollen einmal von 01 bis zum
   Rückweg nach 01; bei reduzierter Bewegung steht er sofort vollständig da. */

.section--approach {
  padding-block: clamp(72px, 9vw, 136px);
}

.approach {
  display: grid;
  gap: 40px;
  margin-top: 8px;
}

@media (scripting: enabled) and (min-width: 901px) {
  .approach {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 88px);
    align-items: start;
  }
}

.approach__steps {
  list-style: none;
  border-top: 2px solid var(--navy);
}

.approach__steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 12px;
  padding: 22px 16px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.approach__steps li > :not(.approach__no) {
  grid-column: 2;
}

.approach__no {
  grid-row: 1 / span 3;
  padding-top: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue);
}

.approach__steps strong {
  font-size: 1.2rem;
  line-height: 1.3;
}

.approach__steps p {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--blue);
}

.approach__meta {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
}

/* Gewählter Schritt oder Bereich: Die passenden Zeilen bekommen eine türkise Kante. */
.approach__steps li.is-related {
  background: var(--pale-teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.cycle {
  display: none;
}

@media (scripting: enabled) {
  .cycle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
}

.cycle__ring {
  --ring: clamp(232px, 24vw, 300px);
  position: relative;
  width: min(100%, var(--ring));
  aspect-ratio: 1;
}

.cycle__graphic {
  position: absolute;
  inset: 0;
}

.cycle__graphic svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Strichstärke in Grafik-Einheiten: rund 3 px bei 300 px Ringgröße. (Keine non-scaling-stroke:
   Chrome rechnet die Strichlänge sonst in Bildschirm-Pixeln, und beim Zeichnen bleiben Reste stehen.) */
.cycle__seg {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.2;
}

.cycle__head {
  fill: var(--navy);
  transform-box: fill-box;
  transform-origin: center;
}

/* Die Schritte sind die Punkte des Rings: 01 oben, 02 rechts, 03 unten, 04 links. */
.cycle__step {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.cycle__step--n { left: 50%; top: 10%; }
.cycle__step--e { left: 90%; top: 50%; }
.cycle__step--s { left: 50%; top: 90%; }
.cycle__step--w { left: 10%; top: 50%; }

/* Der Titel bleibt im Namen der Schaltfläche; sichtbar steht er in der Liste daneben. */
.cycle__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cycle__areas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Wie die Bereichsfilter auf /leistungen */
.cycle__chip {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.cycle__step:hover,
.cycle__chip:hover {
  border-color: var(--teal);
}

.cycle__step.is-related,
.cycle__chip.is-related {
  border-color: var(--teal);
  background: var(--pale-teal);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.cycle__step[aria-pressed="true"],
.cycle__chip[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--teal);
}

@media (prefers-reduced-motion: no-preference) {
  .cycle__step,
  .cycle__chip {
    transition: border-color var(--motion-quick) var(--ease), background-color var(--motion-quick) var(--ease), color var(--motion-quick) var(--ease), box-shadow var(--motion-quick) var(--ease);
  }

  .approach__steps li {
    transition: background-color var(--motion-base) var(--ease), box-shadow var(--motion-base) var(--ease);
  }

  @supports (animation-timeline: view()) {
    .cycle__graphic {
      view-timeline-name: --cycle;
    }

    .cycle__seg {
      stroke-dasharray: 1;
      animation: cycle-draw linear both;
      animation-timeline: --cycle;
    }

    .cycle__head {
      animation: cycle-pop linear both;
      animation-timeline: --cycle;
    }

    /* 01 → 02 → 03 → 04, zuletzt der Rückweg; fertig, wenn der Ring etwa mittig steht. */
    .cycle__seg--1 { animation-range: cover 3% cover 13%; }
    .cycle__head--1 { animation-range: cover 12% cover 14%; }
    .cycle__seg--2 { animation-range: cover 14% cover 24%; }
    .cycle__head--2 { animation-range: cover 23% cover 25%; }
    .cycle__seg--3 { animation-range: cover 25% cover 35%; }
    .cycle__head--3 { animation-range: cover 34% cover 36%; }
    .cycle__seg--4 { animation-range: cover 37% cover 47%; }
    .cycle__head--4 { animation-range: cover 46% cover 48%; }
  }
}

@keyframes cycle-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cycle-pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Untereinander: Ring mittig, die Bereiche in einer Zeile darunter, dann die Liste. */
@media (max-width: 900px) {
  .cycle__areas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Telefon: die Bereiche gleich breit untereinander wie auf dem Desktop, statt versetzt umzubrechen. */
@media (max-width: 560px) {
  .cycle__areas {
    flex-direction: column;
    width: min(100%, 320px);
  }

  .approach__steps li {
    padding-inline: 12px 4px;
  }
}

/* GB Psych steps with outcome */

.stepper {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--navy);
}

.stepper > li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

/* Linie zwischen den Schrittnummern, gezeichnet wie .process__line (Phase 5): jedes Stück
   wächst, während sein Schritt durch die Bildschirmmitte läuft. */
.stepper > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21.5px;
  top: 72px;
  width: 3px;
  height: calc(100% - 46px);
  background: var(--navy);
  transform-origin: center top;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .stepper > li {
      view-timeline-name: --step;
    }

    .stepper > li:not(:last-child)::after {
      animation: draw-line-v linear both;
      animation-timeline: --step;
      animation-range: cover 25% cover 50%;
    }
  }
}

.stepper__no {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.stepper > li:last-child .stepper__no {
  background: var(--teal);
  color: var(--navy);
}

.stepper h3 {
  font-size: 1.25rem;
}

.stepper__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stepper__text p {
  font-size: 1.0625rem;
  color: var(--blue);
}

.stepper__gda {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
}

.stepper__result {
  align-self: start;
  padding: 14px 16px;
  background: var(--pale);
  border-left: 3px solid var(--teal);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.stepper__result span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
}

.stepper__result strong {
  font-weight: 700;
}

@media (max-width: 800px) {
  .stepper > li {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .stepper__result {
    grid-column: 2;
  }
}

/* ---------- Work tile ---------- */

.work-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--navy);
}

.work-tile:hover {
  color: var(--navy);
  border-color: var(--muted);
}

.work-tile__visual {
  min-height: 300px;
  padding: 28px 24px;
  justify-content: center;
  background: var(--pale-teal);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-screen__bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.mini-screen__bar span:last-child {
  color: var(--green);
}

.mini-screen__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(96px, auto);
  gap: 8px;
}

.mini-screen__grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
}

.mini-screen__grid > div:first-child {
  border: 2px solid var(--teal);
}

.mini-screen__grid b {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--blue);
}

.mini-screen__grid i {
  display: block;
  height: 5px;
  background: #c9d5e4;
}

.mini-screen__tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 2px 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--green);
}

.work-tile__copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge {
  align-self: flex-start;
  padding: 3px 9px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--pale-teal);
  border: 1px solid var(--teal);
  color: var(--navy);
}

.work-tile h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.work-tile__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.work-tile__meta dt {
  font-weight: 700;
}

.work-tile__meta dd {
  margin: 0;
  color: var(--blue);
}

.work-tile .link-arrow {
  margin-top: auto;
}

@media (max-width: 800px) {
  .work-tile {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-tile__visual {
    min-height: 240px;
  }
}

/* ---------- Profile ---------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
}

.profile__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile__copy p {
  font-size: 1.125rem;
}

.facts {
  margin: 0;
  border-top: 2px solid var(--navy);
}

.facts > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue);
}

.facts dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 600;
}

@media (max-width: 900px) {
  .profile {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Check teaser ---------- */

.teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 26px 28px;
  background: var(--pale-teal);
  border: 1px solid #cfeaec;
  border-radius: var(--radius);
}

.teaser__copy {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teaser h3 {
  font-size: 1.25rem;
}

/* ---------- Topic tiles (home) ---------- */

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

.topic-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  padding: 18px 18px 16px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  transition: background-color var(--motion-quick) var(--ease), border-color var(--motion-quick) var(--ease),
    color var(--motion-quick) var(--ease);
}

/* Auf Navy: heller Grund mit dunkler Schrift. Die Navy-Regel für Links (.section--navy a) hielt die
   Schrift sonst weiß auf weißem Grund. */
.topic-link:hover,
.topic-link:focus-visible,
.section--navy .topic-link:hover,
.section--navy .topic-link:focus-visible {
  background: var(--white);
  border-color: var(--teal);
  color: var(--navy);
}

.topic-link strong {
  font-size: 1.0625rem;
  line-height: 1.3;
}

.topic-link span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #c9d7ea;
}

.topic-link:hover span,
.topic-link:focus-visible span {
  color: var(--blue);
}

/* ---------- Final CTA ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px 48px;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta__copy p {
  font-size: 1.125rem;
  max-width: 38em;
}

.cta .actions {
  justify-content: flex-end;
}

.cta__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 1rem;
  font-weight: 600;
}

.cta__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Hover ergänzt (Phase 5): auf dunklem Grund wird die Unterstreichung Teal. */
.cta__contact a:hover {
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
}

@media (max-width: 900px) {
  .cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta .actions {
    justify-content: flex-start;
  }
}

/* ---------- Format sheets (Leistungen) ---------- */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter button {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.filter button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

/* Hover ergänzt (Phase 5), wie .button--outline und .button der Website */
.filter button {
  transition: background-color var(--motion-quick) var(--ease), box-shadow var(--motion-quick) var(--ease);
}

.filter button:hover {
  background: var(--pale);
}

.filter button[aria-pressed="true"]:hover {
  background: var(--navy);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.filter-status {
  font-size: 0.9375rem;
  color: var(--blue);
}

.area-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.area-block + .area-block {
  margin-top: 28px;
}

.area-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy);
}

.area-block__head > svg {
  width: 36px;
  height: 36px;
}

.area-block__head h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
}

.area-block__head a {
  margin-left: auto;
}

.sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sheet h3 {
  font-size: 1.25rem;
}

.sheet dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.sheet dl > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sheet dt {
  font-weight: 700;
}

.sheet dd {
  margin: 0;
  color: var(--blue);
}

.sheet .actions {
  margin-top: auto;
  padding-top: 4px;
}

@media (max-width: 520px) {
  .sheet dl > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.guide {
  list-style: none;
  border-top: 2px solid var(--navy);
}

.guide li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 6px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.guide a {
  font-weight: 700;
}

@media (max-width: 700px) {
  .guide li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
}

tbody th {
  font-weight: 700;
  width: 30%;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--blue);
}


@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    width: auto;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table-wrap tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .table-wrap tr:last-child {
    border-bottom: 0;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 3px 0;
    border: 0;
  }

  .table-wrap tbody th {
    width: auto;
    font-size: 1.0625rem;
  }

  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--navy);
  }
}

/* ---------- Definition list (law, standards) ---------- */

.law {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.law li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.law b {
  font-size: 0.9375rem;
  color: var(--blue);
}

@media (max-width: 640px) {
  .law li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Method chips (GB Psych) ---------- */

.methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0;
  border-top: 2px solid var(--navy);
}

.methods > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--line);
}

.methods > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.methods h3 {
  font-size: 1.1875rem;
}

.methods p {
  font-size: 1rem;
  color: var(--blue);
}

@media (max-width: 760px) {
  .methods > div + div {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 2px solid var(--navy);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

/* Hover ergänzt (Phase 5) */
.faq summary:hover {
  color: var(--blue);
}

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

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--motion-base) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq details > div {
  padding: 0 0 20px;
  max-width: 46em;
  font-size: 1.0625rem;
  color: var(--blue);
}

/* ---------- Area cross-links ---------- */

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

.card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
}

.card-link:hover {
  color: var(--navy);
  border-color: var(--muted);
}

.card-link > svg {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

.card-link strong {
  font-size: 1.125rem;
}

.card-link span {
  font-size: 1rem;
  color: var(--blue);
}

.card-link span.link-arrow {
  color: var(--navy);
}

.card-link .link-arrow {
  margin-top: auto;
  min-height: 32px;
  text-decoration: none;
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px 64px;
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-aside .facts dd a {
  font-weight: 700;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-aside {
    order: 2;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(0, 38, 89, 0.06);
}

.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
}

.topic-option {
  position: relative;
  display: block;
}

.topic-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.topic-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  min-height: 84px;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}

.topic-option span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
}

.topic-option small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
}

.topic-option input:hover + span {
  border-color: var(--muted);
}

.topic-option input:checked + span {
  border-color: var(--navy);
  background: var(--pale);
}

.topic-option input:checked + span::before {
  background: radial-gradient(circle, var(--navy) 0 4px, var(--white) 4.5px);
}

.topic-option input:focus-visible + span {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.topic-option--quiet span {
  min-height: 0;
  font-weight: 600;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.field--wide {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--muted);
  border-radius: var(--radius);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
}

.field__hint {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--blue);
}

.form-note {
  padding: 12px 14px;
  background: var(--pale);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-status {
  padding: 12px 14px;
  border-left: 3px solid var(--navy);
  background: var(--pale);
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-status--error {
  border-left-color: #b42318;
  background: #fff4f2;
  color: #7a1a12;
}

.form-status--success {
  border-left-color: var(--teal);
  background: var(--pale-teal);
}

.form-status[hidden] {
  display: none;
}

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.form__submit p {
  flex: 1 1 260px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--blue);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-shell:empty {
  display: none;
}

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

.legal {
  max-width: 46em;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal h2 {
  margin-top: 22px;
  font-size: 1.3rem;
}

.legal p {
  font-size: 1.0625rem;
}

.legal code {
  font-size: 0.95em;
}

/* ---------- Footer: chrome.css ---------- */

/* ---------- Arbeitsprobe (Storyboard-Nachbau) ---------- */

.notice {
  background: var(--pale-teal);
  border-block: 1px solid #cfeaec;
}

.notice .container {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 18px;
}

.notice svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 3px;
}

.notice p {
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin: 0;
  border-top: 2px solid var(--navy);
}

.spec > div {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

.spec dd {
  margin: 6px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.objectives {
  list-style: none;
  counter-reset: obj;
}

.objectives li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.objectives li:last-child {
  border-bottom: 1px solid var(--line);
}

.objectives li::before {
  counter-increment: obj;
  content: "0" counter(obj);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--blue);
}

.objectives strong {
  display: block;
  font-size: 1.125rem;
}

.objectives span {
  display: block;
  font-size: 1rem;
  color: var(--blue);
}

.scenes {
  border-top: 1px solid var(--line);
}

.scenes__row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.scenes__phase span {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

.scenes__phase strong {
  font-size: 1.125rem;
}

.scenes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.scene {
  flex: 1 1 140px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  color: var(--navy);
}

.scene small {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
}

a.scene {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

a.scene:hover {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--teal);
}

a.scene small {
  color: var(--green);
}

a.scene em {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 6px;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--green);
  color: var(--navy);
}

@media (max-width: 760px) {
  .scenes__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: start;
}

@media (max-width: 1080px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
  }
}

.screen {
  background: var(--white);
  border: 1px solid #c9d5e4;
  box-shadow: 0 18px 40px rgba(0, 38, 89, 0.08);
}

.screen__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
}

.screen__bar span:last-child {
  color: var(--green);
}

.screen__body {
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.screen__body h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1.2;
}

.annot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
}

.with-annot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.desk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--pale);
  border: 1px solid var(--line);
}

.desk__time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.desk__time svg {
  width: 20px;
  height: 20px;
}

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

.desk__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--line-soft);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.widget.is-evidence {
  border-color: var(--teal);
}

.widget__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
}

.widget__row {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
}

.widget__prio {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1.5px solid var(--navy);
}

.widget__msg {
  padding: 8px 10px;
  background: var(--pale);
  font-size: 1rem;
}

.widget__bar {
  height: 6px;
  background: var(--line-soft);
}

.widget__bar span {
  display: block;
  width: 38%;
  height: 6px;
  background: var(--light-blue);
}

.tag-green {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--green);
  color: var(--navy);
}

.tag-teal {
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--teal);
  color: var(--navy);
}

.screen__question {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 700;
}

.screen__cue {
  font-size: 1.0625rem;
  color: var(--blue);
}

.answer {
  padding: 18px 20px;
  background: var(--pale-teal);
  border: 2px solid var(--teal);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.answer[hidden],
[data-reveal][hidden] {
  display: none;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tablist button {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.tablist button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

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

.lenses {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lens {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 3px 12px;
  padding: 10px 12px;
  border: 2px solid var(--line-soft);
  background: var(--white);
}

.lens__no {
  grid-row: span 3;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1.5px solid currentColor;
}

.lens strong {
  font-size: 0.9375rem;
}

.lens span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--blue);
}

.lens em {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 8px;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--green);
  color: var(--navy);
}

.lens.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.lens.is-on span {
  color: var(--white);
}

.steps3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.steps3 > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.steps3 > div:last-child {
  background: var(--pale-teal);
  border: 2px solid var(--teal);
  font-weight: 600;
}

.steps3 b {
  font-size: 0.8125rem;
  color: var(--blue);
}

.steps3 > div:last-child b {
  color: var(--navy);
}

.result-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: var(--pale-teal);
  border: 2px solid var(--teal);
}

.person-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: var(--white);
  border: 2px dashed var(--light-blue);
}

.case-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-progress__bars {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.case-progress__bars > span {
  display: inline-flex;
  gap: 4px;
}

.case-progress__bars i {
  display: inline-block;
  width: 36px;
  height: 6px;
  background: var(--line);
}

.case-progress__bars i.is-on {
  background: var(--navy);
}

.text-button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.evidence {
  padding: 6px 18px 4px;
  background: var(--pale);
  border: 1px solid var(--line);
}

.evidence__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
}

.evidence__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.evidence__item > span {
  padding-top: 3px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
}

.evidence__item p {
  font-size: 1.0625rem;
  line-height: 1.55;
}

.evidence__item em {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--green);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  border: 2px solid #c9d5e4;
  border-radius: 2px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.0625rem;
  line-height: 1.45;
  cursor: pointer;
}

.option:disabled {
  cursor: default;
}

.option__letter {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
}

.option__tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--line-soft);
}

.option.is-picked {
  border-color: var(--navy);
}

.option.is-best {
  border-color: var(--teal);
  background: var(--pale-teal);
}

.option.is-best .option__tag {
  background: var(--green);
}

.feedback {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.feedback > div {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback--retry {
  background: var(--pale);
  border: 2px solid var(--light-blue);
}

.feedback--done {
  background: var(--pale-teal);
  border: 2px solid var(--teal);
}

.debrief {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  background: var(--navy);
  color: var(--white);
}

.debrief b {
  font-size: 0.8125rem;
  color: var(--green);
}

.debrief p:first-of-type {
  font-size: 1.2rem;
  font-weight: 600;
}

.spaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 8px;
  padding: 8px;
  background: var(--pale);
  border: 1px solid var(--line);
}

.space {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 2px dashed var(--muted);
  background: var(--white);
}

.space strong {
  font-size: 0.875rem;
}

.space span {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--blue);
}

.space b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
}

.space.is-on {
  border-style: solid;
  border-color: var(--teal);
  background: var(--pale-teal);
}

.decisions {
  display: flex;
  flex-direction: column;
}

.decisions h3 {
  margin-bottom: 4px;
  font-size: 0.9375rem;
  color: var(--blue);
}

.decision {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.decision:last-child {
  border-bottom: 1px solid var(--line);
}

.decision strong {
  display: block;
  font-size: 1.0625rem;
}

.decision div > span {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--blue);
}

.standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  background: var(--white);
  border: 1px solid var(--line);
}

.standards > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-right: 1px solid var(--line-soft);
}

.standards > div:last-child {
  border-right: 0;
}

.standards h3 {
  font-size: 1.25rem;
}

/* ---------- WHL ---------- */

.whl-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: center;
}

.whl-intro img {
  width: min(100%, 420px);
  justify-self: center;
}

.dimensions {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0 32px;
  border-top: 2px solid var(--navy);
}

.dimensions li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.dimensions b {
  font-size: 0.9375rem;
  color: var(--blue);
}

.dimensions strong {
  display: block;
  font-size: 1.0625rem;
}

.dimensions span {
  display: block;
  font-size: 1rem;
  color: var(--blue);
}

.evidence-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.evidence-cards--single {
  max-width: 760px;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
}

.evidence-card__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

.evidence-card h3 {
  font-size: 1.25rem;
}

.evidence-card p {
  font-size: 1rem;
}

.big-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.big-number strong {
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem);
  line-height: 1;
}

.big-number span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue);
}

.share-bar {
  height: 14px;
  background: var(--line-soft);
}

.share-bar span {
  display: block;
  height: 14px;
  width: 4%;
  background: var(--teal);
}

.share-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.9375rem;
}

.share-legend small {
  display: block;
  color: var(--blue);
}

.source {
  font-size: 0.875rem;
  color: var(--blue);
}

/* Hover ergänzt (Phase 5): gleiche Sprache wie die übrigen Links – Navy und Teal-Unterstreichung. */
.source:hover {
  color: var(--navy);
  text-decoration-color: var(--teal);
}

.steps6 {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
}

.steps6 li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.steps6 b {
  font-size: 0.875rem;
  color: var(--green);
}

.steps6 strong {
  font-size: 1.125rem;
}

.steps6 span {
  font-size: 0.9375rem;
  color: #c9d7ea;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
}

.case-study__preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.case-study__preview img {
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 38, 89, 0.08);
}

.case-study__preview span {
  font-size: 0.9375rem;
  font-weight: 700;
}

.outcomes__title {
  margin: 0 0 -12px;
  font-size: 1.125rem;
}

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

.outcomes div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--pale);
  border-left: 3px solid var(--teal);
}

.outcomes strong {
  font-size: 1.9rem;
  line-height: 1;
}

.outcomes span {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--blue);
}

@media (max-width: 900px) {
  .whl-intro,
  .case-study {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 404 / Danke ---------- */

.simple {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.simple nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
}

.table-sub {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

.sheet--stacked dl > div {
  grid-template-columns: minmax(0, 1fr);
}

/* Sechs Schritte (WHL): senkrechte Zeitleiste in allen Breiten. Sechs Karten brechen sonst auf
   zwei Reihen um, und eine waagerechte Linie verbände nur die erste (Phase 5). */
.process--vertical {
  padding-top: 0;
  padding-left: 26px;
}

.process--vertical .process__line {
  right: auto;
  width: 3px;
  bottom: 0;
  height: auto;
  transform-origin: center top;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .process--vertical .process__line {
      animation-name: draw-line-v;
    }
  }
}

.process--vertical ol {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.process--vertical li {
  display: grid;
  grid-template-columns: 2.5rem minmax(8rem, 13rem) minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 16px;
  padding: 16px 20px;
}

.process--vertical li::before {
  top: 21px;
  left: -33px;
}

.process--vertical li.is-key::before {
  top: 20px;
  left: -34px;
}

@media (max-width: 700px) {
  .process--vertical li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Very narrow screens (≈320 px): let the demo screens wrap long German compounds. */
@media (max-width: 420px) {
  .demo {
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .evidence__item {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Seitenübergänge (Phase 5) ----------
   Cross-Document View Transitions: Der Header bleibt stehen, der Inhalt blendet kurz über.
   Das Foto einer Bereichskarte auf der Startseite wächst in dasselbe Foto unter dem Kopf der
   Zielseite (gemeinsamer Name photo-<Bild>, gesetzt in common.py). Browser ohne Unterstützung
   wechseln die Seite wie bisher; bei reduzierter Bewegung gibt es keinen Übergang. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

.site-header {
  view-transition-name: site-header;
}

::view-transition-group(*) {
  animation-duration: var(--motion-page);
  animation-timing-function: var(--ease);
}

/* Karte (3:2) und Seitenfoto (2:1) haben unterschiedliche Formate: füllen statt verzerren. */
::view-transition-old(photo-arbeitsschutz-psa-und-pruefung),
::view-transition-new(photo-arbeitsschutz-psa-und-pruefung),
::view-transition-old(photo-qualifizierung-elearning-tablet),
::view-transition-new(photo-qualifizierung-elearning-tablet),
::view-transition-old(photo-gb-psych-arbeitsgestaltung),
::view-transition-new(photo-gb-psych-arbeitsgestaltung) {
  height: 100%;
  object-fit: cover;
  overflow: clip;
}

/* ---------- GB-Psych-Prozesslandkarte (Phase 6) ----------
   Übersicht über dem Stepper. Nur mit Skript sichtbar; ab 801 px bleibt sie beim Lesen unter dem
   Header stehen. Die Linie füllt sich bis zum aktuellen Schritt (--progress, gesetzt in gdamap.js). */

.gdamap {
  display: none;
}

@media (scripting: enabled) {
  .gdamap {
    display: block;
    z-index: 5;
    padding: 12px 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
}

.gdamap ol {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gdamap ol::before,
.gdamap ol::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  right: calc(25% - 18px);
  height: 3px;
  background: var(--line);
}

.gdamap ol::after {
  background: var(--navy);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform var(--motion-base) var(--ease);
}

.gdamap a {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
}

.gdamap__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  transition: background-color var(--motion-quick) var(--ease), color var(--motion-quick) var(--ease), border-color var(--motion-quick) var(--ease);
}

.gdamap__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.gdamap a:hover .gdamap__no {
  border-color: var(--teal);
}

.gdamap a:hover .gdamap__title {
  text-decoration: underline;
  text-decoration-color: var(--teal);
}

.gdamap a.is-done .gdamap__no {
  background: var(--pale-teal);
  border-color: var(--teal);
}

.gdamap a[aria-current="step"] .gdamap__no {
  background: var(--navy);
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.gdamap a[aria-current="step"] .gdamap__title {
  font-weight: 700;
}

/* GDA-Bezug und Ergebnis als Marker (ohne neue Texte) */
.stepper__gda {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.stepper__gda::before,
.stepper__result span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--teal);
}

.stepper__result span::before {
  margin-right: 8px;
}

.stepper__result {
  transition: background-color var(--motion-base) var(--ease), border-color var(--motion-base) var(--ease);
}

.stepper > li.is-current .stepper__result {
  background: var(--pale-teal);
  border-left-color: var(--navy);
}

@media (min-width: 801px) {
  .gdamap {
    position: sticky;
    top: var(--header-h);
  }

  .stepper > li {
    scroll-margin-top: calc(var(--header-h) + 110px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.gdamap) {
    scroll-behavior: smooth;
  }
}

/* Telefon und Tablet: nur die Nummern; die Titel stehen direkt darunter im Stepper. */
@media (max-width: 800px) {
  .gdamap a {
    justify-items: center;
  }

  .gdamap ol::before,
  .gdamap ol::after {
    left: calc(12.5% - 6px);
    right: calc(12.5% - 6px);
  }

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