/* Deutsche Startseite und die neuen Unterseiten Michael und Projekte. */

.home-next :is(section, [id]) {
  scroll-margin-top: 124px;
}

.home-next .desktop-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 46rem;
  row-gap: 4px;
}

.home-next .hero {
  display: block;
  width: var(--page);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) 0 clamp(28px, 4vw, 48px);
}

.home-next .hero h1 {
  max-width: 17.8em;
  font-size: clamp(36px, 4.4vw, 60px);
}

.home-next .home-position {
  margin: 0 0 14px;
  color: var(--green, #153f36);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.home-next .method-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin: 26px 0 0;
  padding: 14px 18px 16px;
  border: 1px solid #153f3618;
  border-radius: 18px;
  background: var(--paper, #fffdf8);
  box-shadow: 0 14px 36px #153f360d;
  color: var(--ink, #17231f);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
}

.home-next .method-line .method-part {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
}

.home-next .method-line .op {
  color: var(--burgundy, #81344e);
  font-size: 0.85em;
}

.home-next .method-result {
  padding-bottom: 0.08em;
  border-bottom: 2px solid var(--gold, #bd913c);
}

.home-next .home-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0 0;
}

.home-next .home-paths a {
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 16px 18px;
  border: 1px solid #153f3618;
  border-radius: 18px;
  background: var(--paper, #fffdf8);
  color: var(--ink, #17231f);
  text-decoration: none;
  box-shadow: 0 10px 28px #153f360a;
}

.home-next .home-paths span {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.home-next .home-paths small {
  color: var(--ink-soft, #53635d);
  font-size: 15px;
  line-height: 1.35;
}

.home-next .home-place {
  max-width: 36rem;
  margin: 22px 0 0;
  color: var(--ink-soft, #53635d);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.home-next .model-section,
.home-next .bridge-section,
.home-next .examples-section,
.home-next .haltung-section {
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(20px, 3vw, 36px);
}

.home-next .home-intro {
  max-width: 40rem;
  margin-bottom: 28px;
}

.home-next .home-intro h2,
.home-next .bridge-section h2,
.home-next .examples-section h2,
.home-next .haltung-section h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.home-next .home-intro p:last-child,
.home-next .bridge-lead,
.home-next .example-note,
.home-next .haltung-lead {
  max-width: 40rem;
  margin: 14px 0 0;
  color: var(--ink-soft, #53635d);
  font-size: 18px;
  line-height: 1.55;
}

.home-next .model-board {
  display: grid;
  gap: 14px;
}

.home-next .model-node {
  min-width: 0;
  padding: 18px 18px 14px;
  border: 1px solid #153f3624;
  border-radius: 22px;
  background: var(--paper, #fffdf8);
}

.home-next .model-node h3 {
  margin: 6px 0 8px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-next .model-node > p {
  margin: 0;
  color: var(--ink-soft, #53635d);
  font-size: 18px;
  line-height: 1.5;
}

.home-next .node-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink, #17231f);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-next .swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.home-next .node-mensch {
  border-color: #153f3655;
  background: var(--green-light, #dce9df);
}

.home-next .node-mensch .swatch { background: var(--green, #153f36); }
.home-next .node-ort .swatch { background: var(--blue, #274f6e); }
.home-next .node-kreislauf .swatch { background: var(--burgundy, #81344e); }
.home-next .node-netzwerk .swatch { background: var(--gold, #bd913c); }

.home-next .node-ort { border-top: 4px solid var(--blue, #274f6e); }
.home-next .node-kreislauf { border-top: 4px solid var(--burgundy, #81344e); }
.home-next .node-netzwerk { border-top: 4px solid var(--gold, #bd913c); }

.home-next .model-node details {
  margin-top: 12px;
}

.home-next .model-node summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--green, #153f36);
  font-weight: 750;
  cursor: pointer;
}

.home-next .model-node li {
  margin: 0 0 6px;
  color: var(--ink, #17231f);
  font-size: 18px;
  line-height: 1.45;
}

.home-next .bridge-path {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.home-next .path-mark {
  position: relative;
  margin: 0;
  color: var(--ink, #17231f);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.home-next .bridge-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-next .bridge-steps li {
  position: relative;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid #153f3624;
  border-radius: 18px;
  background: var(--paper, #fffdf8);
}

.home-next .bridge-steps h3 {
  margin: 4px 0;
  font-size: 20px;
}

.home-next .bridge-steps p {
  margin: 0;
  color: var(--ink-soft, #53635d);
  font-size: 16px;
  line-height: 1.4;
}

.home-next .step-no {
  color: var(--burgundy, #81344e);
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  font-weight: 700;
}

.home-next .bridge-return {
  position: relative;
  margin-top: 12px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #153f36;
  color: #fffdf8;
}

.home-next .bridge-return h3 {
  margin: 4px 0;
  color: #fffdf8;
  font-size: 20px;
}

.home-next .bridge-return p,
.home-next .bridge-return a {
  color: #fffdf8;
}

.home-next .bridge-return p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.home-next .bridge-return a {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-next .example-grid,
.home-next .principle-list {
  display: grid;
  gap: 14px;
}

.home-next .example-card {
  min-width: 0;
  padding: 20px 18px 16px;
  border: 1px solid #153f361a;
  border-radius: 22px;
  background: var(--paper, #fffdf8);
  box-shadow: 0 10px 30px #153f360c;
}

.home-next .example-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-next .example-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.home-next .example-card div {
  display: grid;
  gap: 2px;
}

.home-next .example-card dt {
  color: var(--green, #153f36);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-next .example-card dd {
  margin: 0;
  color: var(--ink, #17231f);
  font-size: 16px;
  line-height: 1.4;
}

.home-next .example-way {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #153f3621;
  font-size: 16px;
}

.home-next .example-way span {
  display: block;
  margin-bottom: 2px;
  color: var(--burgundy, #81344e);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: none;
}

.home-next .principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-next .principle-list li {
  padding: 14px 0;
  border-bottom: 1px solid #153f3621;
  font-size: 18px;
  line-height: 1.45;
}

.home-next .principle-list strong {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
}

.home-next .stance-grid {
  margin-top: 28px;
}

.home-next .field-line,
.subpage .field-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home-next .field-line li,
.subpage .field-line li {
  padding: 6px 10px;
  border: 1px solid #153f3626;
  border-radius: 999px;
  background: var(--paper, #fffdf8);
  font-size: 14px;
}

.home-next :focus-visible {
  outline: 3px solid var(--gold, #bd913c);
  outline-offset: 3px;
}

@media (width <= 980px) {
  .home-next .stance-grid,
  .home-next .experience,
  .home-next .lolo,
  .home-next .social {
    grid-template-columns: 1fr;
  }

  .home-next .experience-copy {
    position: static;
  }
}

@media (min-width: 980px) {
  .home-next .example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

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

  .home-next .bridge-steps > li:nth-child(-n + 5):not(:nth-child(3))::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 27px;
    left: 58px;
    right: -12px;
    height: 2px;
    background: #153f3694;
  }

  .home-next .bridge-steps > li:nth-child(3)::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 27px;
    left: 58px;
    right: 16px;
    height: 2px;
    background: #153f3694;
  }

  .home-next .bridge-steps > li:nth-child(3)::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 27px;
    right: 16px;
    width: calc(300% - 50px);
    height: calc(100% - 27px + 8px);
    border-right: 2px solid #153f3694;
    border-bottom: 2px solid #153f3694;
    pointer-events: none;
  }

  .home-next .bridge-steps > li:nth-child(4)::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -8px;
    left: 56px;
    width: 2px;
    height: 36px;
    background: #153f3694;
  }

  .home-next .bridge-steps > li:nth-child(6)::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 27px;
    left: -12px;
    width: 26px;
    height: 2px;
    background: #153f3694;
  }

  .home-next .path-ist::after,
  .home-next .path-alltag::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 2px;
    margin: 0 10px;
    vertical-align: middle;
    background: #153f3694;
  }

  .home-next .path-alltag {
    justify-self: end;
  }

  .home-next .path-alltag::before {
    background: #bd913c;
  }

  .home-next .bridge-return::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 42px;
    width: 2px;
    height: 14px;
    background: #bd913c;
  }
}

@media (min-width: 900px) {
  .home-next .model-board {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      ". ort ."
      "kreislauf mensch netzwerk";
    gap: 28px 18px;
    padding: 18px 0 8px;
  }

  .home-next .model-board::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 18%;
    right: 18%;
    top: 8%;
    bottom: 6%;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 62%, transparent 46%, #bd913c55 47.2%, transparent 48.6%),
      radial-gradient(circle at 50% 62%, transparent 58%, #153f362e 59%, transparent 60.2%);
    pointer-events: none;
  }

  .home-next .model-node {
    position: relative;
    z-index: 1;
  }

  .home-next .node-mensch { grid-area: mensch; }
  .home-next .node-ort { grid-area: ort; }
  .home-next .node-kreislauf { grid-area: kreislauf; }
  .home-next .node-netzwerk { grid-area: netzwerk; }
}

@media (width < 900px) {
  .home-next .model-board {
    position: relative;
    padding-left: 18px;
  }

  .home-next .model-board::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 5px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(var(--green, #153f36), var(--gold, #bd913c));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-next .button:hover {
    transform: none;
  }
}

@media (width <= 820px) {
  .home-next .hero {
    width: min(100% - 30px, 700px);
  }
}

.subpage h1 {
  max-width: 16ch;
  margin: 8px 0 14px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.subpage .page-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-soft, #53635d);
  font-size: 18px;
  line-height: 1.55;
}

.subpage .page-open {
  padding-bottom: 12px;
}

.subpage .back-home {
  margin-top: 18px;
}

@media (width <= 980px) {
  .subpage .experience,
  .subpage .lolo,
  .subpage .social,
  .subpage .stance-grid {
    grid-template-columns: 1fr;
  }

  .subpage .experience-copy {
    position: static;
  }

  .subpage .project-card,
  .subpage .project-card.featured {
    grid-column: 1 / -1;
  }

  .subpage .abea-underway .abea-underway-grid {
    grid-template-columns: 1fr;
  }
}

.home-next .model-section,
.home-next .examples-section {
  position: relative;
  isolation: isolate;
}

.home-next .model-section::after,
.home-next .examples-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fffdf8;
}

.home-next .examples-section::after {
  background: #f3efe4;
}

.home-next .principle-list li {
  position: relative;
  padding-left: 22px;
}

.home-next .principle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold, #bd913c);
}

.home-next .example-card dl > div:last-child {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f1e7;
}

.home-next .step-no {
  font-size: 22px;
}

.home-next .bridge-return {
  border-top: 3px solid #bd913c;
}

@media (width < 980px) {
  .home-next .bridge-path {
    padding-left: 26px;
  }

  .home-next .bridge-path::before {
    content: "";
    position: absolute;
    top: 0.35em;
    bottom: 0.35em;
    left: 5px;
    width: 2px;
    border-radius: 2px;
    background: #153f3659;
  }

  .home-next .path-mark::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 0;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 2px solid #153f36;
    border-radius: 50%;
    background: #fffdf8;
  }

  .home-next .path-alltag::before {
    border-color: #bd913c;
    background: #bd913c;
  }

  .home-next .bridge-return::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 4px;
    width: 2px;
    height: 14px;
    background: #153f3659;
  }
}

@media (prefers-color-scheme: dark) {
  .home-next .bridge-return {
    background-color: #153f36;
    border-top-color: #bd913c;
    color: #fffdf8;
  }

  .home-next .bridge-return h3,
  .home-next .bridge-return p,
  .home-next .bridge-return a {
    color: #fffdf8;
  }
}

.desktop-nav a[aria-current="page"],
.mobile-nav nav a[aria-current="page"] {
  color: var(--green, #153f36);
  box-shadow: inset 0 -2px 0 var(--gold, #bd913c);
}

@media (min-width: 700px) {
  .home-next .home-paths {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .home-next .home-paths {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-next .principle-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
}

.subpage .section {
  padding: clamp(28px, 4vw, 56px) 0;
}

.subpage .page-open {
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: 4px;
}

.subpage .page-aside {
  max-width: 38rem;
  margin: 8px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--gold, #bd913c);
  border-radius: 0 16px 16px 0;
  background: var(--paper, #fffdf8);
  color: var(--ink, #17231f);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
}

.stay-page .section > h2 {
  max-width: 40rem;
  margin: 0 0 14px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.stay-page .competence-list p {
  font-size: 18px;
  line-height: 1.5;
}

.subpage .competence-list h2,
.subpage .project-card h2,
.subpage .memorial-card h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.subpage .abea-meaning {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 28px 24px;
  border: 1px solid #153f3614;
  border-radius: 22px;
  background: var(--paper, #fffdf8);
}

.subpage .abea-meaning .abea-letters span {
  background: none;
  color: var(--ink, #17231f);
  -webkit-text-fill-color: var(--ink, #17231f);
}

.subpage .stance-grid {
  grid-template-columns: 1fr;
}

.subpage .memorial-card {
  min-height: 0;
}

@media (min-width: 700px) {
  .subpage .abea-underway .abea-underway-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.subpage :focus-visible {
  outline: 3px solid var(--gold, #bd913c);
  outline-offset: 3px;
}
