/* Öffentliches ABeA-Übergangsmodell. Dieselbe Geometrie auf Deutsch und Englisch. */

.transition-model {
  --tm-ink: #2a2218;
  --tm-sienna: #9e4b2e;
  --tm-olive: #4f5d3c;
  --tm-parchment: #f3ebe0;
  --tm-cream: #faf6f0;
  margin: 0;
  padding: clamp(48px, 7vw, 88px) 22px clamp(56px, 8vw, 96px);
  color: var(--tm-ink);
  background:
    radial-gradient(ellipse at 18% 20%, rgba(158, 75, 46, 0.08), transparent 28rem),
    radial-gradient(ellipse at 82% 78%, rgba(79, 93, 60, 0.1), transparent 26rem),
    var(--tm-parchment);
}

.tm-head,
.tm-map,
.tm-bridge,
.tm-result,
.tm-close {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.tm-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.tm-head h2,
.tm-lead {
  max-width: 22em;
}

.transition-model h2,
.transition-model h3 {
  margin: 0;
  color: var(--tm-ink);
  font-family: var(--serif, Georgia, "Iowan Old Style", serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.transition-model h2 {
  font-size: clamp(34px, 4.4vw, 56px);
}

.tm-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 14px 18px 16px;
  border: 1px solid rgba(42, 34, 24, 0.14);
  border-radius: 18px 22px 18px 26px;
  background: var(--tm-cream);
  font-family: var(--serif, Georgia, "Iowan Old Style", serif);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.3;
}

.tm-part {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}

.tm-op {
  color: var(--tm-sienna);
}

.tm-word {
  padding-bottom: 0.04em;
  border-bottom: 2px solid var(--tm-sienna);
}

.tm-lead,
.tm-close,
.tm-node p,
.tm-centre p,
.tm-result p,
.tm-steps li span {
  font-size: 18px;
  line-height: 1.5;
}

.tm-lead {
  max-width: 62ch;
  margin: 18px 0 0;
}

.tm-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(168px, 0.78fr) minmax(0, 1.15fr);
  grid-template-areas:
    "human . place"
    "human centre place"
    "network centre cycle"
    "network . cycle";
  gap: 22px 28px;
  align-items: stretch;
  padding: 42px 36px 40px;
}

.tm-lines,
.tm-arc {
  display: block;
  overflow: visible;
}

.tm-lines {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tm-node,
.tm-centre {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(42, 34, 24, 0.16);
  background: var(--tm-cream);
}

.tm-human { grid-area: human; border-radius: 28px 18px 32px 22px; background: linear-gradient(180deg, rgba(158, 75, 46, 0.1), var(--tm-cream) 42%); }
.tm-place { grid-area: place; border-radius: 18px 30px 20px 28px; background: linear-gradient(180deg, rgba(79, 93, 60, 0.12), var(--tm-cream) 46%); }
.tm-cycle { grid-area: cycle; border-radius: 22px 18px 30px 16px; background: linear-gradient(180deg, rgba(42, 34, 24, 0.06), var(--tm-cream) 40%); }
.tm-network { grid-area: network; border-radius: 18px 26px 18px 32px; background: linear-gradient(180deg, rgba(79, 93, 60, 0.08), var(--tm-cream) 48%); }

.tm-centre {
  grid-area: centre;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  min-height: 188px;
  padding: 28px 16px;
  border: 1.5px solid var(--tm-olive);
  border-radius: 46% 54% 48% 52% / 42% 46% 54% 58%;
  background:
    radial-gradient(circle at 50% 42%, rgba(250, 246, 240, 0.2), transparent 70%),
    var(--tm-parchment);
  text-align: center;
}

.tm-kicker {
  margin: 0 0 8px;
  color: var(--tm-sienna);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transition-model h3 {
  font-size: clamp(22px, 2vw, 30px);
}

.tm-node h3,
.tm-centre h3,
.tm-result h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.tm-node p,
.tm-centre p {
  margin: 8px 0 0;
}

.tm-node ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tm-node li {
  position: relative;
  margin: 0;
  padding: 4px 0 4px 16px;
  font-size: 16px;
  line-height: 1.45;
}

.tm-node li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--tm-olive);
  border-radius: 50%;
  background: transparent;
}

.tm-bridge {
  margin-top: 36px;
}

.tm-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-steps li {
  min-width: 0;
  margin: 0;
  padding: 12px 10px 14px;
  border-top: 2px solid var(--tm-sienna);
  background: rgba(250, 246, 240, 0.72);
  border-radius: 0 0 16px 16px;
}

.tm-steps strong,
.tm-steps span {
  display: block;
}

.tm-steps strong {
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.tm-steps span {
  margin-top: 4px;
  font-size: 16px;
}

.tm-arc {
  width: min(1120px, 100%);
  height: 54px;
  margin: 8px auto 0;
}

.tm-result {
  max-width: 68ch;
  margin-top: 8px;
  padding: 22px 22px 8px;
  text-align: center;
}

.tm-result::before {
  content: none;
}

.tm-result p,
.tm-close {
  margin: 10px auto 0;
  max-width: 62ch;
}

.tm-close {
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 900px) and (min-width: 760px) {
  .tm-map {
    grid-template-columns: minmax(0, 1fr) minmax(176px, 0.95fr) minmax(0, 1fr);
    gap: 16px 12px;
    padding: 34px 26px 30px;
  }

  .tm-node,
  .tm-centre {
    padding: 14px 12px;
  }

  .tm-centre h3,
  .tm-node h3 {
    font-size: 18px;
  }

  .tm-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .tm-formula {
    flex-wrap: nowrap;
    width: max-content;
    max-width: 100%;
  }
}

@media (max-width: 759px) {
  .transition-model {
    padding-inline: 16px;
  }

  .tm-map {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .tm-lines,
  .tm-arc {
    display: none;
  }

  .tm-centre { order: 1; }
  .tm-human { order: 2; }
  .tm-place { order: 3; }
  .tm-cycle { order: 4; }
  .tm-network { order: 5; }

  .tm-map {
    gap: 14px;
  }

  .tm-centre::after,
  .tm-human::after,
  .tm-place::after,
  .tm-cycle::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    margin: 16px auto 2px;
    border-right: 1.5px solid var(--tm-olive);
    border-bottom: 1.5px solid var(--tm-olive);
    transform: rotate(45deg);
  }

  .tm-node,
  .tm-centre {
    border-radius: 20px;
  }

  .tm-centre {
    align-self: stretch;
    min-height: 0;
    margin-bottom: 4px;
  }

  .tm-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tm-steps li {
    border-top: 0;
    border-left: 2px solid var(--tm-sienna);
    border-radius: 0 14px 14px 0;
  }

  .tm-bridge {
    margin-top: 18px;
  }

  .tm-result::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    margin: 4px auto 14px;
    border-right: 1.5px solid var(--tm-olive);
    border-bottom: 1.5px solid var(--tm-olive);
    transform: rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .transition-model * {
    scroll-behavior: auto;
  }
}
