:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --paper: #fffefa;
  --paper-muted: #f1f0ea;
  --ink: #171817;
  --muted: #54584f;
  --faint: #777b70;
  --line: #d9d7ce;
  --line-strong: #b9b7ad;
  --accent: #6b7265;
  --accent-soft: #e7e9e2;
  --shadow: 0 18px 48px rgba(26, 28, 25, 0.055);
  --header-bg: rgba(247, 246, 241, 0.94);
  --max: 1180px;
  --narrow: 760px;
  --radius: 18px;
  --radius-small: 10px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.35rem;
  --space-5: 1.8rem;
  --space-6: 2.6rem;
  --space-7: 4rem;
  --space-8: 5.75rem;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 34rem),
    linear-gradient(180deg, var(--bg), #fbfaf6 48%, var(--bg));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 24, 23, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 23, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent 68%);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

::selection {
  background: var(--accent-soft);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-small);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 215, 206, 0.85);
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
}

.brand-mark {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.brand-sub {
  color: #373b34;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1.35;
  max-width: 30rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.nav a {
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  color: #3b3f38;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.58rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: var(--space-8) 0;
  position: relative;
  scroll-margin-top: 82px;
}

#systeme,
#rahmenwechsel,
#begriffe,
#grenzen,
#kontakt {
  padding-top: clamp(3.2rem, 5vw, 4.35rem);
}

#systeme .section-header,
#rahmenwechsel .section-header,
#begriffe .section-header,
#grenzen .section-header,
#kontakt .section-header {
  margin-bottom: clamp(1.6rem, 3vw, 2.35rem);
}

.hero {
  align-items: center;
  display: grid;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  padding-top: clamp(3.6rem, 6vw, 6.8rem);
  padding-bottom: clamp(3.6rem, 6vw, 6.8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: clamp(2rem, 5vw, 4.4rem);
  align-items: center;
}

.hero-copy {
  max-width: 830px;
}

.kicker,
.eyebrow,
.panel-label,
.system-number,
.status-tag,
.frame-current-label,
.frame-code,
.card-index,
.contact-label {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 var(--space-2);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4.9rem, 14.2vw, 11.8rem);
  line-height: 0.84;
  letter-spacing: -0.09em;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  border-left: 1px solid var(--ink);
  font-size: clamp(1.32rem, 2.7vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  max-width: 680px;
  padding-left: var(--space-4);
}


.hero-statement {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.85vw, 1.36rem);
  line-height: 1.43;
  max-width: 680px;
}

.boundary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: var(--space-4) 0;
}

.boundary-strip span {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  padding: 0.42rem 0.68rem;
}

.lead {
  color: var(--ink);
  font-size: 1.06rem;
  max-width: var(--narrow);
}

.next-cue {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: inline-grid;
  font-family: var(--mono);
  gap: 0.28rem 0.7rem;
  grid-template-columns: auto auto;
  margin-top: clamp(2.35rem, 5vh, 4.2rem);
  padding-top: var(--space-3);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease;
}

.next-cue span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.next-cue strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.next-cue em {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: grid;
  font-style: normal;
  grid-column: 2;
  height: 1.72rem;
  place-items: center;
  width: 1.72rem;
}

.next-cue:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.next-cue-mobile {
  display: none !important;
}

.system-panel,
.definition-card,
.system-card,
.frame-stage,
.term-card,
.contact-card,
.boundary-statement,
.boundary-field {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: var(--radius);
  padding: var(--space-5);
}

.panel-label {
  color: var(--muted);
  font-size: 0.7rem;
  margin-bottom: var(--space-5);
}

.panel-thesis {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  margin: var(--space-4) 0 var(--space-5);
  padding: var(--space-4) 0;
}

.panel-thesis span {
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.panel-thesis p {
  font-size: clamp(1.28rem, 2.1vw, 1.82rem);
  letter-spacing: -0.035em;
  line-height: 1.14;
  margin: 0;
}

.loop-diagram {
  counter-reset: loop;
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.loop-diagram li {
  counter-increment: loop;
  display: grid;
  grid-template-columns: 2.15rem 1fr;
  gap: var(--space-3);
  align-items: center;
  min-height: 3rem;
  position: relative;
}

.loop-diagram li::before {
  content: counter(loop, decimal-leading-zero);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--muted);
  display: grid;
  font-family: var(--mono);
  font-size: 0.66rem;
  height: 2.15rem;
  place-items: center;
  width: 2.15rem;
}

.loop-diagram li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.08rem;
  top: 2.34rem;
  width: 1px;
  height: 0.95rem;
  background: var(--line-strong);
}

.loop-diagram span {
  border-bottom: 1px solid var(--line);
  display: block;
  padding-bottom: 0.55rem;
}

.microcopy {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.quiet-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  margin-bottom: var(--space-6);
  max-width: 920px;
}

.section-header.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-5);
  max-width: none;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 0.65rem;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin-bottom: 0;
}

h3 {
  font-size: clamp(1.32rem, 1.9vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-3);
}

h4 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.section-note {
  color: var(--muted);
  max-width: 430px;
  margin-bottom: 0;
}

.section-note.wide {
  max-width: 760px;
  margin-top: var(--space-3);
}

.card-grid {
  display: grid;
  gap: var(--space-4);
}

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

.definition-card {
  border-radius: var(--radius);
  min-height: 220px;
  padding: var(--space-5);
  position: relative;
}

.card-index {
  color: var(--faint);
  display: inline-block;
  font-size: 0.7rem;
  margin-bottom: var(--space-4);
}

.definition-card p,
.system-map p,
.term-card p,
.boundary-statement p {
  color: var(--muted);
  margin-bottom: 0;
}

.system-card {
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3.5vw, 2.65rem);
}

.system-card-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
}

.system-number {
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 0.35rem;
}

.system-card h3 {
  font-size: clamp(2.5rem, 6.5vw, 5.6rem);
  letter-spacing: -0.08em;
  margin-bottom: 0;
}

.status-tag {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0.45rem 0.65rem;
  white-space: nowrap;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.system-map > div {
  background: rgba(255, 254, 250, 0.96);
  min-height: 148px;
  padding: var(--space-4);
}

.nyx-map > div {
  min-height: 142px;
}

.system-question {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-4);
}

.system-question span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-question p {
  font-size: clamp(1.08rem, 1.85vw, 1.38rem);
  line-height: 1.35;
  margin-bottom: 0;
}

.frame-section {
  padding-bottom: var(--space-8);
}

.frame-switcher {
  display: block;
}

.frame-controls {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.52);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
  padding: 0.5rem;
}

.frame-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 0.62rem 0.78rem;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.frame-button:hover,
.frame-button.is-active {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.frame-stage {
  border-radius: calc(var(--radius) + 4px);
  min-height: 460px;
  padding: clamp(1.25rem, 3.5vw, 2.65rem);
}

.frame-meta {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
}

.frame-current-label,
.frame-code {
  color: var(--muted);
  font-size: 0.7rem;
}

.frame-code {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.36rem 0.6rem;
}

.frame-stage h3 {
  font-size: clamp(1.9rem, 3.8vw, 3.55rem);
  letter-spacing: -0.065em;
  max-width: 820px;
}

.fixed-text {
  border-left: 1px solid var(--line-strong);
  margin: var(--space-5) 0;
  max-width: 780px;
  padding-left: var(--space-5);
}

.fixed-text p {
  font-size: clamp(1.04rem, 1.65vw, 1.2rem);
  margin-bottom: var(--space-3);
}

.fixed-text p:last-child {
  margin-bottom: 0;
}

.frame-observation {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-muted);
  max-width: 780px;
  padding: var(--space-4);
}

.frame-observation span {
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.frame-observation p {
  margin-bottom: 0;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.term-card {
  border-radius: var(--radius);
  min-height: 205px;
  padding: var(--space-4);
}

.term-card h3 {
  font-size: 1.36rem;
  letter-spacing: -0.035em;
}

.term-card span {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  text-transform: uppercase;
}

.boundaries {
  max-width: 1030px;
  min-height: calc(100svh - 82px + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(7rem, 10vw, 9.5rem);
}

.boundary-field {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  padding: clamp(1rem, 2.6vw, 1.6rem);
}

.boundary-field-head {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
}

.boundary-field-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary-field-head p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.42vw, 1.08rem);
  line-height: 1.5;
  margin: 0;
  max-width: 650px;
}

.boundary-lines {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.82rem;
  position: relative;
}

.boundary-line {
  background: rgba(255, 254, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  display: block;
  min-height: 0;
  padding: clamp(0.9rem, 1.85vw, 1.18rem);
}

.boundary-line:nth-child(1),
.boundary-line:nth-child(4) {
  grid-column: 1 / span 3;
}

.boundary-line:nth-child(2),
.boundary-line:nth-child(5) {
  grid-column: 4 / span 3;
}

.boundary-line:nth-child(3) {
  grid-column: 2 / span 4;
}

.boundary-marker {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--muted);
  display: inline-grid;
  font-family: var(--mono);
  font-size: 0.66rem;
  height: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
  place-items: center;
  width: 2rem;
}

.boundary-copy {
  display: block;
}

.boundary-line p {
  margin: 0;
}

.boundary-off {
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  letter-spacing: -0.032em;
  line-height: 1.18;
}

.boundary-work {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.92rem, 1.12vw, 0.99rem);
  line-height: 1.46;
  margin-top: 0.68rem !important;
  padding-top: 0.68rem;
}

.boundary-statement {
  border-radius: var(--radius);
  margin-top: var(--space-4);
  padding: clamp(1rem, 2.4vw, 1.45rem);
}

.boundary-statement-line {
  box-shadow: none;
}

.boundary-statement p:first-child {
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: var(--space-3);
}

.contact-section {
  padding-bottom: var(--space-7);
}

.contact-card {
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 1px;
}

.contact-card > div {
  background: rgba(255, 254, 250, 0.96);
  min-height: 135px;
  padding: var(--space-4);
}

.contact-label {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  margin-bottom: var(--space-3);
}

.contact-card p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0 auto;
  padding: var(--space-5) 1rem;
  width: min(100%, var(--max));
}

.site-footer p {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero-grid,
  .system-map,
  .term-grid,
  .contact-card,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

  .section-header.split {
    align-items: start;
    flex-direction: column;
  }


  .boundary-field-head {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .boundary-lines {
    grid-template-columns: 1fr;
  }

  .boundary-line,
  .boundary-line:nth-child(1),
  .boundary-line:nth-child(2),
  .boundary-line:nth-child(3),
  .boundary-line:nth-child(4),
  .boundary-line:nth-child(5) {
    grid-column: 1;
  }
}


@media (max-width: 720px) {
  :root {
    --space-8: 4.6rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3) 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .brand-sub {
    font-size: 0.63rem;
    line-height: 1.35;
    max-width: 100%;
  }

  .nav a {
    font-size: 0.68rem;
    padding: 0.35rem 0.55rem;
  }

  .hero {
    min-height: auto;
  }

  .next-cue {
    margin-top: var(--space-4);
  }

  h1 {
    font-size: clamp(4.1rem, 25vw, 7rem);
  }

  .hero-subtitle {
    padding-left: var(--space-3);
  }

 .panel-thesis p {
    font-size: 1.28rem;
  }

  .system-card-head,
  .system-question,
  .site-footer {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .system-card-head {
    display: block;
  }

  .status-tag {
    display: inline-block;
    margin-top: var(--space-3);
  }

  .frame-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .frame-button {
    text-align: left;
  }

  .fixed-text {
    padding-left: var(--space-3);
  }

  .definition-card,
  .term-card,
  .system-map > div,
  .frame-stage,
  .boundary-statement,
  .contact-card > div {
    padding: var(--space-4);
  }

  .boundary-field {
    padding: var(--space-4);
  }

  .boundary-line {
    padding: var(--space-4);
  }
}

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


.boundary-protocol {
  padding: clamp(1.1rem, 2.3vw, 1.5rem);
}

.boundary-protocol-head {
  align-items: baseline;
  gap: var(--space-4);
  grid-template-columns: minmax(150px, 0.26fr) minmax(0, 1fr);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
}

.boundary-protocol-head p {
  max-width: 620px;
}

.boundary-protocol-list {
  display: grid;
}

.boundary-entry {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
}

.boundary-entry:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.boundary-marker {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0;
}

.boundary-entry-copy {
  display: grid;
  gap: 0.3rem;
}

.boundary-off {
  font-size: clamp(1.02rem, 1.22vw, 1.12rem);
  line-height: 1.2;
}

.boundary-work {
  border-top: 0;
  margin-top: 0 !important;
  padding-top: 0;
  max-width: 700px;
}

.boundary-protocol-note {
  border-top: 1px solid var(--line);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
}

.boundary-protocol-note p {
  color: var(--muted);
  margin: 0;
}

.boundary-protocol-note p:first-child {
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

@media (max-width: 980px) {
  .boundary-protocol-head {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}


/* v0.11: Grenzen als feines Protokoll mit seitlichen Systemspuren */
.boundaries {
  max-width: var(--max);
}

.boundary-shell {
  display: grid;
  grid-template-columns: minmax(88px, 0.17fr) minmax(0, 0.86fr) minmax(88px, 0.17fr);
  gap: clamp(0.9rem, 2.2vw, 1.6rem);
  align-items: stretch;
}

.boundary-rail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-3);
  min-height: 100%;
  padding: 1rem 0;
}

.boundary-rail span,
.boundary-rail p,
.boundary-type,
.boundary-protocol-note span {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary-rail span {
  font-size: 0.68rem;
}

.boundary-rail i {
  background: var(--line);
  display: block;
  justify-self: start;
  width: 1px;
}

.boundary-rail p {
  font-size: 0.62rem;
  line-height: 1.35;
  margin: 0;
  max-width: 8rem;
}

.boundary-rail-right {
  text-align: right;
}

.boundary-rail-right i {
  justify-self: end;
}

.boundary-rail-right p {
  justify-self: end;
}

.boundary-protocol {
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.05rem, 2.1vw, 1.45rem);
}

.boundary-protocol-head {
  align-items: baseline;
  gap: var(--space-4);
  grid-template-columns: minmax(150px, 0.26fr) minmax(0, 1fr);
  margin-bottom: 0;
  padding-bottom: var(--space-3);
}

.boundary-protocol-head p {
  max-width: 650px;
}

.boundary-protocol-list {
  display: grid;
}

.boundary-entry {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 2.1rem minmax(0, 1fr);
  padding: 1rem 0;
}

.boundary-entry:first-child {
  padding-top: 1rem;
}

.boundary-marker {
  height: 2.1rem;
  margin-bottom: 0;
  width: 2.1rem;
}

.boundary-entry-copy {
  display: grid;
  grid-template-columns: minmax(105px, 0.24fr) minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: var(--space-4);
  align-items: baseline;
}

.boundary-type {
  color: var(--faint);
  font-size: 0.66rem;
}

.boundary-off {
  color: var(--ink);
  font-size: clamp(1.14rem, 1.65vw, 1.36rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0;
}

.boundary-work {
  border-top: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.13vw, 1.02rem);
  line-height: 1.45;
  margin: 0 !important;
  padding-top: 0;
}

.boundary-protocol-note {
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(105px, 0.22fr) minmax(0, 1fr);
  margin-top: 0.15rem;
  padding-top: var(--space-4);
}

.boundary-protocol-note span {
  color: var(--faint);
  font-size: 0.66rem;
}

.boundary-protocol-note p {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.boundary-protocol-note p:first-of-type {
  color: var(--ink);
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

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

.publish-card > div {
  min-height: 165px;
}

.publish-card small {
  border-top: 1px solid var(--line);
  color: var(--faint);
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.035em;
  line-height: 1.45;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .boundary-shell {
    grid-template-columns: 1fr;
  }

  .boundary-rail {
    display: none;
  }

  .boundary-entry-copy,
  .boundary-protocol-note,
  .boundary-protocol-head {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .publish-card {
    grid-template-columns: 1fr;
  }
}


.boundary-protocol-note {
  align-items: start;
}

.boundary-protocol-note-copy {
  display: grid;
  gap: 0.55rem;
}

.boundary-protocol-note-copy p {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.boundary-protocol-note-copy p:first-child {
  color: var(--ink);
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.minimal-publish-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.minimal-publish-card > div {
  min-height: 175px;
}

@media (max-width: 980px) {
  .minimal-publish-card {
    grid-template-columns: 1fr;
  }
}


/* v0.13: Kontakt-Anker stabilisieren.
   Der Kontaktbereich bekommt genug eigene Höhe, damit beim Klick auf Kontakt
   nicht der vorherige Grenzen-Block im oberen Sichtfeld stehen bleibt. */
#kontakt.contact-section {
  min-height: calc(100svh - 82px);
  padding-bottom: clamp(8rem, 16vh, 12rem);
  scroll-margin-top: 72px;
}


/* v0.14 Feinjustierung */

/* Begriffskarten: Meta-Trennlinie in allen Karten einheitlich tiefer setzen. */
.term-card {
  display: flex;
  flex-direction: column;
}

.term-card p {
  margin-bottom: 0;
}

.term-card span {
  margin-top: auto;
  padding-top: var(--space-3);
}

/* Grenzen: Kopf- und Schluss-Setzung typografisch beruhigen. */
.boundary-headline-note {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.05vw, 0.98rem) !important;
  line-height: 1.45;
  max-width: 560px !important;
}

.boundary-note-main {
  color: var(--ink) !important;
  font-size: clamp(0.98rem, 1.18vw, 1.08rem) !important;
  letter-spacing: -0.012em !important;
  line-height: 1.42 !important;
}

.boundary-note-sub {
  color: var(--muted) !important;
  font-size: clamp(0.92rem, 1.04vw, 0.98rem) !important;
  line-height: 1.45 !important;
}

/* Kontakt: kleine Systemzeile überall auf gleicher Höhe und deutlich reduzierter. */
.minimal-publish-card > div {
  display: flex;
  flex-direction: column;
  min-height: 168px;
}

.minimal-publish-card small {
  margin-top: auto;
  min-height: 2.35rem;
  display: flex;
  align-items: flex-start;
  padding-top: var(--space-3);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
}

.minimal-publish-card p {
  margin-bottom: var(--space-3);
}


/* v0.16 Rahmenwechsel als ruhige Versuchsanordnung */

.nav a.is-current {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.nav a.is-current::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 1px;
  margin-right: 0.36rem;
  vertical-align: middle;
  background: var(--line-strong);
}

.frame-lab {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-lab-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.22fr) minmax(240px, 0.82fr);
  min-height: 510px;
}

.frame-panel {
  padding: clamp(1rem, 2.5vw, 1.65rem);
}

.frame-panel:not(:last-child) {
  border-right: 1px solid var(--line);
}

.frame-panel-label {
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.frame-choices {
  background: rgba(247, 246, 241, 0.34);
}

.frame-choice {
  appearance: none;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  width: 100%;
  padding: 0.9rem 0;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

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

.frame-choice span {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--faint);
  display: grid;
  font-family: var(--mono);
  font-size: 0.64rem;
  height: 2.05rem;
  letter-spacing: 0.05em;
  place-items: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  width: 2.05rem;
}

.frame-choice strong {
  color: inherit;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.frame-choice:hover,
.frame-choice.is-active {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(231, 233, 226, 0.64), rgba(255, 255, 255, 0));
}

.frame-choice.is-active span {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.frame-object {
  background: rgba(255, 254, 250, 0.93);
}

.frame-object-text {
  border-left: 1px solid var(--line-strong);
  margin: 0;
  max-width: 680px;
  padding-left: clamp(1.15rem, 2.6vw, 1.8rem);
}

.frame-object-text p {
  color: var(--ink);
  font-size: clamp(1.07rem, 1.55vw, 1.24rem);
  line-height: 1.52;
  margin: 0 0 0.78rem;
}

.frame-object-text p:last-child {
  margin-bottom: 0;
}

.frame-effect {
  background: rgba(241, 240, 234, 0.45);
  display: flex;
  flex-direction: column;
}

.frame-effect-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
}

.frame-effect-head .frame-panel-label {
  margin-bottom: var(--space-3);
}

.frame-effect h3 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin-bottom: var(--space-4);
}

.frame-effect p {
  color: var(--muted);
  font-size: clamp(1rem, 1.26vw, 1.09rem);
  line-height: 1.52;
  margin-bottom: 0;
}

.frame-lab .frame-code {
  display: inline-block;
  font-size: 0.64rem;
}

.frame-closing {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  line-height: 1.45;
  margin: 0;
  padding: var(--space-4) clamp(1rem, 2.5vw, 1.65rem);
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .frame-lab-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .frame-panel:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .frame-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .frame-choices .frame-panel-label {
    grid-column: 1 / -1;
  }

  .frame-choice:nth-of-type(odd) {
    padding-right: var(--space-3);
  }

  .frame-choice:nth-of-type(even) {
    padding-left: var(--space-3);
  }
}

@media (max-width: 720px) {
  .frame-choices {
    grid-template-columns: 1fr;
  }

  .frame-choice:nth-of-type(odd),
  .frame-choice:nth-of-type(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .nav a.is-current::before {
    display: none;
  }
}


/* v0.17 Feinjustierung Rahmenwechsel / Grenzen / Navigation */
.nav a.is-current::before {
  content: "/";
  display: inline-block;
  width: auto;
  height: auto;
  margin-right: 0.34rem;
  vertical-align: baseline;
  background: none;
  color: var(--line-strong);
}

.frame-object {
  position: relative;
}

.frame-object-text {
  max-width: 560px;
  padding-left: clamp(1rem, 2.2vw, 1.45rem);
}

.frame-object-text p {
  font-size: clamp(0.98rem, 1.18vw, 1.08rem);
  line-height: 1.48;
  margin: 0 0 0.58rem;
}

.frame-flow-note {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 0.55rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.frame-flow-note i {
  background: var(--line);
  display: block;
  flex: 1;
  height: 1px;
}

.frame-flow-note b {
  color: var(--ink);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1;
}

@media (min-width: 981px) {
  .frame-object::after {
    content: "→";
    position: absolute;
    right: -0.72rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    font-family: var(--mono);
    font-size: 0.88rem;
    background: var(--paper);
    padding: 0.1rem 0.18rem;
    z-index: 2;
  }
}

.boundary-protocol-head {
  grid-template-columns: minmax(138px, 0.24fr) minmax(0, 1fr);
}

.boundary-headline-note {
  font-size: clamp(0.84rem, 0.96vw, 0.92rem) !important;
  line-height: 1.42;
  max-width: 520px !important;
}

.boundary-entry {
  gap: 0.75rem;
  padding: 0.82rem 0;
}

.boundary-entry-copy {
  gap: 0.18rem;
}

.boundary-type {
  font-size: 0.60rem;
  letter-spacing: 0.075em;
}

.boundary-off {
  font-size: clamp(0.9rem, 1.03vw, 0.98rem) !important;
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 28rem;
}

.boundary-work {
  font-size: clamp(0.89rem, 1vw, 0.95rem);
  line-height: 1.42;
  margin-top: 0.48rem !important;
  padding-top: 0.5rem;
  max-width: 620px;
}

.boundary-note-main {
  font-size: clamp(0.94rem, 1.08vw, 1rem) !important;
  line-height: 1.38 !important;
  max-width: 620px;
}

.boundary-note-sub {
  font-size: clamp(0.88rem, 0.98vw, 0.94rem) !important;
}

@media (max-width: 980px) {
  .frame-object::after {
    display: none;
  }

  .frame-flow-note {
    margin-top: var(--space-3);
  }
}


/* v0.18: Rahmenwechsel wieder als ruhige Versuchsanordnung, ohne Pfeil-Mechanik. */

.nav a.is-current::before {
  content: "/";
  margin-right: 0.12rem;
  color: var(--line-strong);
  background: none;
  width: auto;
  height: auto;
  vertical-align: baseline;
}

/* Der Abschnitt bekommt mehr eigenen Atem, damit beim Navigieren nicht sofort
   die nächste Überschrift sichtbar wird. */
#rahmenwechsel.frame-section {
  min-height: calc(100svh - 82px + clamp(4.5rem, 8vw, 7rem));
  padding-bottom: clamp(8rem, 12vw, 11rem);
}

/* Pfeile und Zusatzspur aus v0.17 neutralisieren. */
.frame-object::after,
.frame-flow-note {
  display: none !important;
  content: none !important;
}

.frame-lab-grid {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.08fr) minmax(250px, 0.94fr);
  min-height: 500px;
}

.frame-panel-label {
  margin-bottom: var(--space-3);
}

.frame-object {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(255, 254, 250, 0.9));
}

.frame-object-text {
  border-left: 0;
  max-width: 620px;
  padding-left: 0;
}

.frame-object-text p {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.92rem, 1.02vw, 1rem);
  line-height: 1.42;
  margin: 0;
  padding: 0.58rem 0;
}

.frame-object-text p:first-child {
  color: var(--ink);
  border-top-color: var(--line-strong);
}

.frame-object-text p:last-child {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.frame-effect {
  background: rgba(241, 240, 234, 0.58);
}

.frame-effect h3 {
  font-size: clamp(1.42rem, 2.45vw, 2.08rem);
}

.frame-effect p {
  color: var(--ink);
}

/* Grenzen: Innenraum weiter beruhigen. Die Ausschlussbegriffe bekommen
   eine breitere, weniger chaotische Zeile. */
.boundary-entry {
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.72rem 0;
}

.boundary-marker {
  height: 1.9rem;
  width: 1.9rem;
  font-size: 0.6rem;
}

.boundary-entry-copy {
  align-items: baseline;
  display: grid;
  grid-template-columns: minmax(92px, 0.18fr) minmax(0, 1fr);
  gap: 0.18rem 0.9rem;
}

.boundary-type {
  color: var(--faint);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  grid-row: 1;
}

.boundary-off {
  color: var(--ink);
  font-size: clamp(0.9rem, 1vw, 0.98rem) !important;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.22;
  grid-column: 2;
  margin: 0;
}

.boundary-work {
  border-top: 1px solid var(--line);
  color: var(--muted);
  grid-column: 2;
  font-size: clamp(0.86rem, 0.94vw, 0.91rem);
  line-height: 1.42;
  margin-top: 0.44rem !important;
  padding-top: 0.46rem;
  max-width: 650px;
}

.boundary-protocol-note {
  grid-template-columns: minmax(92px, 0.18fr) minmax(0, 1fr);
}

@media (max-width: 980px) {
  #rahmenwechsel.frame-section {
    min-height: auto;
    padding-bottom: var(--space-8);
  }

  .frame-lab-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .boundary-entry-copy,
  .boundary-protocol-note {
    grid-template-columns: 1fr;
  }

  .boundary-off,
  .boundary-work {
    grid-column: 1;
  }
}


/* v0.19: Navigation ohne Zwischenaktivierung / Rahmenwechsel als lesbare Versuchsanordnung */

.nav a {
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.nav a.is-current::before {
  content: "/";
  display: inline-block;
  width: auto;
  height: auto;
  margin-right: 0.1rem;
  vertical-align: baseline;
  background: none;
  color: var(--line-strong);
}

/* Linke Rahmenwahl bleibt im Hintergrund, Textkörper und Kontaktwirkung treten vor. */
.frame-lab {
  background: rgba(255, 254, 250, 0.9);
}

.frame-lab-grid {
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.13fr) minmax(260px, 1fr);
  min-height: 520px;
}

.frame-choices {
  background: rgba(247, 246, 241, 0.28);
}

.frame-choices .frame-panel-label,
.frame-choice {
  opacity: 0.86;
}

.frame-choice.is-active {
  opacity: 1;
}

.frame-object,
.frame-effect {
  background: rgba(255, 254, 250, 0.98);
}

.frame-object {
  box-shadow: inset 0 0 0 1px rgba(185, 183, 173, 0.18);
}

.frame-effect {
  box-shadow: inset 0 0 0 1px rgba(185, 183, 173, 0.24);
}

.frame-object .frame-panel-label,
.frame-effect .frame-panel-label {
  color: #3b3f38;
}

.frame-object-text {
  border-left: 1px solid var(--line-strong);
  max-width: 670px;
  padding-left: clamp(1rem, 2vw, 1.35rem);
}

.frame-object-text p {
  border-top: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.22vw, 1.1rem);
  line-height: 1.5;
  margin: 0 0 0.62rem;
  padding: 0;
}

.frame-object-text p:first-child {
  border-top: 0;
}

.frame-object-text p:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.frame-effect-head {
  border-bottom-color: var(--line-strong);
}

.frame-effect h3 {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  letter-spacing: -0.052em;
  max-width: 24rem;
}

.frame-effect p {
  color: var(--ink);
  font-size: clamp(1.03rem, 1.32vw, 1.12rem);
  line-height: 1.5;
  max-width: 28rem;
}

.frame-lab .frame-code {
  background: rgba(255, 254, 250, 0.7);
}

/* Der mittlere Text bleibt stabil: keine visuelle Führungsspur, kein Pfeil. */
.frame-object::after,
.frame-flow-note {
  display: none !important;
  content: none !important;
}

@media (max-width: 980px) {
  .frame-lab-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .frame-object-text {
    max-width: 100%;
  }

  .frame-effect h3,
  .frame-effect p {
    max-width: 100%;
  }
}


/* v0.20: Rahmenwechsel: mittlerer Textblock strukturell an Kontaktwirkung ausrichten.
   Grenzen: störende Binnen-Trennstriche entfernen. */

.frame-object-head {
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
}

.frame-object-head .frame-panel-label {
  margin-bottom: var(--space-3);
}

.frame-object-head .frame-code {
  display: inline-block;
  font-size: 0.64rem;
  background: rgba(255, 254, 250, 0.7);
}

.frame-object-text {
  border-left: 0;
  max-width: 660px;
  padding-left: 0;
}

.frame-object-text p {
  color: var(--ink);
  font-size: clamp(1rem, 1.16vw, 1.08rem);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
}

.frame-object-text p:last-child {
  margin-bottom: 0;
}

.frame-object-text p:nth-child(2) {
  color: #2f332e;
}

.frame-object-text p:nth-child(3) {
  color: var(--ink);
}

/* Mitte und rechts bleiben die tragenden Bereiche; links bleibt Navigationsrahmen. */
.frame-object,
.frame-effect {
  background: rgba(255, 254, 250, 0.98);
}

.frame-effect-head {
  border-bottom-color: var(--line-strong);
}

.frame-effect h3 {
  font-size: clamp(1.6rem, 2.55vw, 2.18rem);
  margin-bottom: var(--space-4);
}

.frame-effect p {
  font-size: clamp(1rem, 1.22vw, 1.08rem);
}

/* Grenzen: Der Binnenstrich zwischen Ausschluss und Kontaktwirkung war zu laut.
   Die Linie bleibt nur auf Ebene der Einträge. */
.boundary-work {
  border-top: 0 !important;
  margin-top: 0.22rem !important;
  padding-top: 0 !important;
}

.boundary-entry {
  padding: 0.78rem 0;
}

.boundary-entry-copy {
  row-gap: 0.2rem;
}


/* v0.21: Volltreffer-Feinschliff: Rahmenwechsel und Grenzen */

/* Rahmenwechsel: alle drei Spalten erhalten dieselbe Kopf-Logik.
   Links bleibt leiser, aber nicht mehr falsch ausgerichtet. */
.frame-choices-head,
.frame-object-head,
.frame-effect-head {
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
}

.frame-choices-head .frame-panel-label,
.frame-object-head .frame-panel-label,
.frame-effect-head .frame-panel-label {
  margin-bottom: var(--space-3);
}

.frame-choices-head .frame-code {
  display: inline-block;
  font-size: 0.64rem;
  opacity: 0.72;
}

.frame-choices > .frame-panel-label {
  display: none;
}

.frame-lab-grid {
  grid-template-columns: minmax(215px, 0.62fr) minmax(0, 1.12fr) minmax(260px, 1fr);
  min-height: 530px;
}

.frame-panel {
  padding-top: clamp(1.1rem, 2.6vw, 1.75rem);
  padding-bottom: clamp(1.1rem, 2.6vw, 1.75rem);
}

.frame-choices {
  background: rgba(247, 246, 241, 0.28);
}

.frame-choices .frame-code {
  border-color: rgba(217, 215, 206, 0.82);
}

.frame-choice {
  padding: 0.78rem 0;
}

.frame-choice strong {
  font-size: 0.735rem;
}

/* Der stabile Textkörper soll sichtbar werden, aber nicht schreien:
   gleiche Kopfstruktur wie rechts, danach etwas tiefer und ruhiger gesetzter Inhalt. */
.frame-object {
  background: rgba(255, 254, 250, 0.985);
}

.frame-object-text {
  border-left: 1px solid var(--line-strong);
  margin-top: clamp(0.45rem, 1.4vw, 0.9rem);
  max-width: 650px;
  padding-left: clamp(1rem, 1.9vw, 1.35rem);
}

.frame-object-text p {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.18vw, 1.1rem);
  line-height: 1.56;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.frame-object-text p:last-child {
  margin-bottom: 0;
}

.frame-object-text p:nth-child(2) {
  color: var(--muted);
}

.frame-object-text p:nth-child(3) {
  color: var(--ink);
}

/* Rechte Spalte bleibt die Auswertung, aber nicht lauter als nötig. */
.frame-effect {
  background: rgba(255, 254, 250, 0.96);
}

.frame-effect h3 {
  font-size: clamp(1.62rem, 2.55vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.frame-effect p {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.22vw, 1.1rem);
  line-height: 1.5;
}

/* Auf Mobile bleibt die Kopfstruktur bestehen, aber ohne gedrängte Spaltenlogik. */
@media (max-width: 980px) {
  .frame-lab-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .frame-choices-head,
  .frame-object-head,
  .frame-effect-head {
    margin-bottom: var(--space-4);
  }
}

/* Grenzen: minimal größer, ohne die erreichte Ruhe wieder zu verlieren. */
.boundary-protocol-head {
  grid-template-columns: minmax(140px, 0.24fr) minmax(0, 1fr);
}

.boundary-headline-note {
  font-size: clamp(0.9rem, 1.02vw, 0.98rem) !important;
  line-height: 1.44;
}

.boundary-entry {
  padding: 0.86rem 0;
}

.boundary-marker {
  font-size: 0.62rem;
}

.boundary-type {
  font-size: 0.61rem;
}

.boundary-off {
  font-size: clamp(0.98rem, 1.1vw, 1.06rem) !important;
  font-weight: 500;
  line-height: 1.24;
}

.boundary-work {
  border-top: 0 !important;
  color: var(--muted);
  font-size: clamp(0.93rem, 1.02vw, 0.99rem);
  line-height: 1.45;
  margin-top: 0.26rem !important;
  padding-top: 0 !important;
}

.boundary-note-main {
  font-size: clamp(0.98rem, 1.12vw, 1.05rem) !important;
}

.boundary-note-sub {
  font-size: clamp(0.92rem, 1.02vw, 0.98rem) !important;
}


/* v0.22: Rahmenwechsel: Lesbarkeit und Kopfgewicht ohne Stilbruch.
   Grenzen: Kopfsatz dezent stärker setzen. */

/* Gesamter Rahmenwechsel: etwas klarere Tinte, ohne lauter zu werden. */
.frame-lab {
  background: rgba(255, 254, 250, 0.94);
}

.frame-panel-label {
  color: #2d312b;
  font-size: 0.73rem;
  letter-spacing: 0.085em;
}

/* Die drei Spaltenköpfe sollen sofort als Ordnung erkennbar sein. */
.frame-choices-head .frame-panel-label,
.frame-object-head .frame-panel-label,
.frame-effect-head .frame-panel-label {
  color: #20231f;
  font-size: 0.755rem;
  letter-spacing: 0.088em;
}

.frame-choices-head,
.frame-object-head,
.frame-effect-head {
  border-bottom-color: #b7b5ac;
}

/* Codes bleiben leise, aber nicht mehr zu blass. */
.frame-code,
.frame-object-head .frame-code,
.frame-choices-head .frame-code,
.frame-effect-head .frame-code {
  color: #3f453d;
  border-color: #c7c5bc;
  background: rgba(255, 254, 250, 0.86);
  font-size: 0.665rem;
}

/* Linke Auswahl: weiterhin Hintergrund, aber lesbarer. */
.frame-choices .frame-panel-label,
.frame-choice {
  opacity: 1;
}

.frame-choice {
  color: #4a5048;
}

.frame-choice strong {
  color: inherit;
  font-size: 0.765rem;
  letter-spacing: 0.047em;
}

.frame-choice span {
  color: #5f665c;
  border-color: #c7c5bc;
}

.frame-choice:hover,
.frame-choice.is-active {
  color: #171817;
}

.frame-choice.is-active span {
  border-color: #aaa89f;
  color: #171817;
}

/* Mittlerer Textkörper: minimal bessere Lesbarkeit, ohne Dominanz. */
.frame-object-text {
  border-left-color: #b7b5ac;
}

.frame-object-text p {
  color: #1f221f;
  font-size: clamp(1.04rem, 1.22vw, 1.12rem);
}

.frame-object-text p:nth-child(2) {
  color: #454b42;
}

/* Rechte Kontaktwirkung: klare Auswertung, aber nicht schreiend. */
.frame-effect h3 {
  color: #171817;
}

.frame-effect p {
  color: #252925;
}

/* Schlusssatz im Modul ist Teil der Setzung, nicht nur Fußnote. */
.frame-closing {
  color: #4a5048;
}

/* Grenzen: diesen Kopfsatz leicht hervorheben, aber nicht als neue Headline. */
.boundary-headline-note {
  color: #2f332e !important;
  font-size: clamp(0.94rem, 1.07vw, 1.02rem) !important;
  line-height: 1.46;
  max-width: 600px !important;
}

.boundary-protocol-head {
  border-bottom-color: #c7c5bc;
}


/* v0.23: Feinschliff Rahmenwechsel / Grenzen */

/* Rahmenwechsel: Schlusssatz stärker lesbar, aber weiterhin als Setzung unterhalb
   der Versuchsanordnung, nicht als neue Hauptaussage. */
.frame-closing {
  color: #2f332e;
  background: rgba(255, 254, 250, 0.72);
  border-top-color: #c7c5bc;
  font-size: clamp(0.76rem, 0.92vw, 0.84rem);
  letter-spacing: 0.062em;
  line-height: 1.5;
}

/* Grenzen: Setzungsblock an die innere Protokoll-Logik angleichen.
   Der Text rückt visuell in dieselbe Achse wie die oberen Grenztexte. */
.boundary-protocol-note {
  border-top-color: #c7c5bc;
  grid-template-columns: 1.9rem minmax(92px, 0.18fr) minmax(0, 1fr);
  column-gap: 0.8rem;
  align-items: start;
  margin-top: 0.55rem;
  padding-top: 0.88rem;
}

.boundary-protocol-note::before {
  content: "//";
  border: 1px solid #c7c5bc;
  border-radius: var(--radius-small);
  color: #3f453d;
  display: grid;
  font-family: var(--mono);
  font-size: 0.58rem;
  height: 1.9rem;
  letter-spacing: 0.04em;
  place-items: center;
  width: 1.9rem;
}

.boundary-protocol-note > span {
  color: #2f332e;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding-top: 0.12rem;
}

.boundary-protocol-note-copy {
  padding-top: 0.02rem;
}

.boundary-note-main {
  color: #252925 !important;
  font-size: clamp(0.95rem, 1.05vw, 1.02rem) !important;
  line-height: 1.42 !important;
  max-width: 660px;
}

.boundary-note-sub {
  color: #4a5048 !important;
  font-size: clamp(0.88rem, 0.96vw, 0.94rem) !important;
  line-height: 1.45 !important;
  max-width: 620px;
}

/* Mobile: Setzungsblock nicht künstlich dreispaltig erzwingen. */
@media (max-width: 980px) {
  .boundary-protocol-note {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    row-gap: 0.4rem;
  }

  .boundary-protocol-note > span,
  .boundary-protocol-note-copy {
    grid-column: 2;
  }
}


/* v0.24: Rahmenwechsel: fünf Rahmen, Versuchsanordnung als Ergebnis.
   Die linke Auswahl bleibt ruhig; die reduzierte Zahl erhält mehr Atem. */
.frame-choice {
  padding-top: 0.98rem;
  padding-bottom: 0.98rem;
}

.frame-closing {
  color: #252925;
  font-size: clamp(0.78rem, 0.96vw, 0.88rem);
}


/* v0.25: Testverdichtung Systeme / Nyx.
   Ziel: Auf großen Desktop-Ansichten soll der Systeme-Abschnitt geschlossener wirken,
   ohne Schriftart, Grunddesign oder Mobile-Layout zu verändern. */
@media (min-width: 981px) {
  #systeme {
    padding-top: clamp(2.75rem, 4.1vw, 3.65rem);
    padding-bottom: clamp(4.2rem, 6.2vw, 5.2rem);
  }

  #systeme .section-header {
    margin-bottom: clamp(1.15rem, 2.1vw, 1.65rem);
  }

  #systeme .section-note {
    max-width: 360px;
  }

  #systeme .system-card {
    padding: clamp(1.05rem, 2.45vw, 2.05rem);
  }

  #systeme .system-card-head {
    margin-bottom: clamp(1rem, 2vw, 1.45rem);
    padding-bottom: clamp(1rem, 2vw, 1.45rem);
  }

  #systeme .system-card h3 {
    font-size: clamp(2.35rem, 5.7vw, 5.05rem);
  }

  #systeme .system-map > div {
    min-height: 122px;
    padding: clamp(0.88rem, 1.65vw, 1.12rem);
  }

  #systeme .nyx-map > div {
    min-height: 118px;
  }

  #systeme .system-map h4 {
    margin-bottom: 0.38rem;
  }

  #systeme .system-map p {
    line-height: 1.48;
  }

  #systeme .system-question {
    margin-top: clamp(1rem, 2vw, 1.4rem);
    padding: clamp(0.95rem, 1.75vw, 1.18rem);
  }

  #systeme .system-question p {
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.32;
  }
}


/* v0.26: Rahmenwechsel als Satz-Objekt.
   Der Mittelblock ist jetzt kein erklärender Textkörper mehr,
   sondern ein stabiler Satz, an dem die Rahmen arbeiten. */

.frame-object {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.99), rgba(255, 254, 250, 0.94));
}

.frame-object-head {
  border-bottom-color: #b7b5ac;
}

.frame-sentence-object {
  align-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(247, 246, 241, 0.34));
  display: flex;
  justify-content: center;
  min-height: clamp(250px, 33vh, 340px);
  max-width: none;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.frame-sentence-object p {
  color: #171817;
  font-size: clamp(2.15rem, 4.8vw, 4.2rem);
  letter-spacing: -0.07em;
  line-height: 1.02;
  margin: 0;
  max-width: 8.4em;
}

.frame-effect p {
  color: #1f221f;
}

.frame-closing {
  color: #252925;
  font-size: clamp(0.78rem, 0.98vw, 0.88rem);
}

/* Auf kleineren Bildschirmen soll der Satz groß bleiben, aber nicht erdrücken. */
@media (max-width: 980px) {
  .frame-sentence-object {
    min-height: 220px;
  }

  .frame-sentence-object p {
    font-size: clamp(2rem, 10vw, 3.35rem);
  }
}


/* v0.27: Rahmenwechsel: Satz-Objekt typografisch leichter und präziser ausrichten.
   Keine neue Schriftart. Die Größe bleibt tragend, aber die Schrift wird dünner,
   weniger gedrängt und ruhiger im Feld positioniert. */

.frame-sentence-object {
  align-items: center;
  justify-content: flex-start;
  min-height: clamp(250px, 33vh, 340px);
  padding:
    clamp(1.35rem, 3vw, 2.1rem)
    clamp(1.35rem, 3vw, 2.3rem);
}

.frame-sentence-object p {
  color: #1f221f;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.65vw, 4.05rem);
  letter-spacing: -0.048em;
  line-height: 1.06;
  max-width: 7.7em;
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  .frame-sentence-object p {
    max-width: 7.4em;
  }
}

.frame-object-head {
  margin-bottom: clamp(1.05rem, 2.2vw, 1.45rem);
}

/* Auf kleineren Bildschirmen bleibt der Satz groß, aber nicht massiv. */
@media (max-width: 980px) {
  .frame-sentence-object {
    min-height: 210px;
    justify-content: flex-start;
  }

  .frame-sentence-object p {
    font-size: clamp(1.95rem, 9.2vw, 3.2rem);
    letter-spacing: -0.044em;
    max-width: 8em;
  }
}


/* v0.28: Grenzen: Ausschlusszeilen minimal stärker greifen lassen.
   Kein Umbau, keine neue Typografie: nur etwas mehr Präsenz durch Größe, Farbe und Gewicht. */

.boundary-entry {
  padding: 0.9rem 0;
}

.boundary-type {
  color: #5b6258;
}

.boundary-off {
  color: #171817 !important;
  font-size: clamp(1.04rem, 1.18vw, 1.14rem) !important;
  font-weight: 560;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.boundary-work {
  color: #3f453d !important;
  font-size: clamp(0.96rem, 1.06vw, 1.02rem) !important;
  line-height: 1.44;
  margin-top: 0.28rem !important;
}

.boundary-marker {
  border-color: #bebbb2;
  color: #4f554d;
}


/* v0.29: finale Upload-Korrektur:
   fehlende feine Trennlinie zwischen Systeme und Rahmen ergänzen. */
#rahmenwechsel.frame-section {
  border-top: 1px solid var(--line);
}

/* v0.31: Systeme als sichtbares Systemfeld.
   Keine Tabs: System 001 und System 002 bleiben gleichzeitig sichtbar.
   Keine neue Schrift, keine neue Grundgestaltung. */
.systems-section .section-header {
  margin-bottom: clamp(1.1rem, 2vw, 1.55rem);
}

.systems-principle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.62);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
}

.systems-principle span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.systems-principle p {
  color: #252925;
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
  line-height: 1.36;
  margin: 0;
}

.systems-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.systems-ledger .system-card {
  min-width: 0;
}

.systems-ledger .system-card h3 {
  font-size: clamp(2.05rem, 3.7vw, 4.15rem);
  letter-spacing: -0.072em;
}

.systems-ledger .system-card-head {
  min-height: 128px;
}

.systems-ledger .system-map {
  grid-template-columns: 1fr;
}

.systems-ledger .system-map > div {
  min-height: auto;
}

.system-card-secondary {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.78), rgba(241, 240, 234, 0.72));
}

.system-card-secondary .status-tag {
  background: rgba(231, 233, 226, 0.58);
}

.systems-ledger .system-question {
  grid-template-columns: 118px minmax(0, 1fr);
}

.systems-ledger .system-question p {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.system-map a {
  color: var(--ink);
  text-decoration-thickness: 1px;
}

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

  .systems-ledger .system-card-head {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .systems-principle {
    grid-template-columns: 1fr;
  }

  .systems-ledger .system-question {
    grid-template-columns: 1fr;
  }
}


/* v0.33: System 002 als ANLASS.
   System 001 und System 002 bleiben gleichzeitig sichtbar und erhalten gleiches Gewicht.
   Keine Tabs, keine neue Schrift, keine neue Grundgestaltung. */
.systems-ledger .system-card {
  background: rgba(255, 254, 250, 0.82);
}

.systems-ledger .system-card-secondary {
  background: rgba(255, 254, 250, 0.82);
}

.system-subtitle {
  color: var(--muted);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.45;
  margin: 0.55rem 0 0;
  max-width: 34rem;
}

.systems-ledger .system-card-head > div {
  min-width: 0;
}

.systems-ledger .anlass-card h3 {
  font-size: clamp(2.05rem, 3.7vw, 4.15rem);
  letter-spacing: -0.072em;
}

.systems-ledger .system-map p + p {
  margin-top: 0.65rem;
}

.anlass-card .system-map > div,
.system-card-primary .system-map > div {
  background: rgba(255, 254, 250, 0.96);
}

.anlass-question p {
  max-width: 56rem;
}

@media (max-width: 1120px) {
  .systems-ledger .anlass-card h3 {
    font-size: clamp(2.5rem, 7.8vw, 5.6rem);
  }
}


/* v0.35/v0.37/v0.38: C.3.5 Kontaktoperator im Fliesstext.
   › ist fuer echte Uebergaenge vorgesehen. // bleibt Label- und Systemzeichen. */
.c35-operator {
  color: #b9b7ad;
  font-family: var(--mono);
  font-size: 0.96em;
  letter-spacing: 0.02em;
  margin: 0 0.32em;
  white-space: nowrap;
}

/* v0.40: Rahmenwechsel iPad-Hochformat.
   Nur Responsive-Feinkorrektur: Die Rahmen-Auswahl wird auf Tablet-Zwischenbreiten einspaltig,
   damit die fünf Auswahlpunkte im Hochformat nicht gedrängt wirken.
   Keine HTML- oder Script-Änderung. */
@media (max-width: 860px) {
  .frame-choices {
    grid-template-columns: 1fr;
  }

  .frame-choice:nth-of-type(odd),
  .frame-choice:nth-of-type(even) {
    padding-left: 0;
    padding-right: 0;
  }
}


/* v0.42: Weiter-Hinweis auf gestapelten Hero-Layouts unter das Schwellenpanel setzen.
   Die !important-Regeln sichern die Umschaltung gegen zwischengespeicherte/alte Display-Werte ab. */
@media (max-width: 980px) {
  .next-cue-desktop {
    display: none !important;
  }

  .next-cue-mobile {
    display: inline-grid !important;
    justify-self: start;
    margin-top: 0;
  }
}
