:root {
  color-scheme: light;
  --ink: #27252a;
  --muted: #514e53;
  --rust: #a63c16;
  --paper: #fffaf5;
  --rule: #e6d6ca;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 58rem 39rem at 4% 2%, #ffccaa, transparent 92%); }
.shell { width: min(100% - 3rem, 78rem); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header { min-height: 77px; justify-content: flex-end; border-bottom: 1px solid var(--rule); }
a { color: inherit; text-decoration: none; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2.6rem); color: var(--muted); }
nav a:hover, nav a:focus-visible { color: var(--rust); text-decoration: underline; }
.app-icon { display: block; width: clamp(8.4rem, 14vw, 12rem); height: auto; margin: -1.4rem 0 .1rem -1rem; filter: drop-shadow(0 10px 22px #8c330a36); }
main { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: 4rem clamp(1.6rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4.4rem) 4rem; }
.eyebrow { margin: 0 0 1.3rem; color: var(--rust); letter-spacing: .15em; font-size: .875rem; font-weight: 750; }
h1, .section-title { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.05em; }
h1 { margin: 0; font-size: clamp(3.6rem, 7.2vw, 7rem); line-height: .95; }
h1 em { color: var(--rust); }
.intro { max-width: 32ch; margin: 1.65rem 0; line-height: 1.65; color: var(--muted); font-size: 1.1rem; }
.cta, button { display: inline-block; border: 1px solid var(--rust); border-radius: 7px; padding: .68rem .95rem; font: inherit; font-weight: 650; cursor: pointer; }
.cta { background: #a63c16; border-color: #a63c16; color: #fff6e8; }
.cta:hover { background: #873013; }
.demo { border: 1px solid var(--rule); border-radius: 15px; overflow: hidden; background: #fffdfb; box-shadow: 0 20px 46px #6b3e2217; }
.demo-footer { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; }
.canvas { background-color: #f9fafc; background-image: radial-gradient(#d9dce2 1px, transparent 1px); background-size: 18px 18px; overflow-x: auto; }
svg { display: block; width: 100%; }
.node text, .movement text { text-anchor: middle; dominant-baseline: middle; }
.node text { fill: #292b38; font-size: 21px; font-weight: 650; }
.overline { text-decoration: overline; }
.trace { stroke-dasharray: 1; }
.branches path { stroke: #616775; stroke-width: 1.8; fill: none; }
.movement path { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.curve { stroke: #bc4619; }
.curve-tip { fill: #bc4619; }
.corner { stroke: #405c91; }
.corner-tip { fill: #405c91; }
.movement text { font-size: 17px; font-weight: 700; paint-order: stroke; stroke: #f9fafc; stroke-width: 5; stroke-linejoin: round; }
.curve-label { fill: #a63c16; }
.corner-label { fill: #314a7b; }
.grouping { fill: #c0481715; stroke: #c04817; stroke-width: 2.7; }
.demo-footer { justify-content: flex-end; border-top: 1px solid var(--rule); flex-wrap: wrap; }
button { color: var(--rust); background: transparent; font-size: .875rem; }
button:hover { background: #ffede0; }
[hidden] { display: none; }
.features { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 2rem; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.3rem); margin: 0 0 1rem; }
.features ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; margin: 0; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 1.65rem; color: var(--muted); line-height: 1.6; }
.features li::before { content: "–"; position: absolute; left: 0; color: var(--rust); font-weight: 800; }
.features strong { color: var(--ink); }
.footer { padding-block: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
@media (max-width: 880px) {
  main { grid-template-columns: minmax(0, 1fr); gap: 2.8rem; }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 2rem); }
  .header { font-size: .875rem; }
  .features ul { grid-template-columns: 1fr; }
}

.showcase { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 2rem; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.palette, .example { border: 1px solid var(--rule); border-radius: 12px; background: #fffdfb; }
.palette { padding: 1rem 1.15rem; }
.palette summary { cursor: pointer; font-weight: 700; }
.glyphs { display: grid; grid-template-columns: repeat(auto-fit, minmax(2.6rem, 1fr)); gap: .4rem; margin-top: .8rem; }
.glyphs span { display: grid; place-items: center; min-height: 2.65rem; border-radius: 5px; background: #fff0e5; color: #812d0f; font: 1.35rem Georgia, serif; }
.example { overflow: hidden; margin: 0; }
.example figcaption { padding: .75rem 1rem; font-weight: 700; background: #fff0e5; }
.example pre, .example-content { margin: 0; min-height: 10rem; padding: 1rem; line-height: 1.65; }
.example pre { overflow: auto; font-size: .95rem; }
.keyword { color: #78388e; }
.string { color: #286046; }
.search-fields { display: grid; gap: .5rem; margin-bottom: .8rem; }
.search-field { padding: .35rem .6rem; border: 1px solid var(--rule); border-radius: 5px; }
.search-field strong { display: inline-block; min-width: 5.6rem; }
mark { background: #ffd3ad; }
@media (max-width: 610px) {
  .panels { grid-template-columns: 1fr; }
  .header { flex-wrap: wrap; padding-block: .65rem; }
  nav { flex-wrap: wrap; }
}

main { grid-template-columns: minmax(0, 1fr); padding-top: 1.8rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.5rem, 5vw, 4rem);
  padding: clamp(1.4rem, 5vw, 4.25rem);
  border-radius: 18px;
  background-color: #8b3f1b;
  background-image: linear-gradient(100deg, #732e10a6, #873a1460 54%, #482216dc), url("rost-textur.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: white;
}
.hero h1 { font-size: clamp(3rem, 9vw, 7.3rem); }
.hero .eyebrow, .hero .intro { color: #fff3e9; }
.hero .intro { max-width: 47ch; }
.hero .cta { background: #fff8f1; color: #812d0f; border-color: #fff8f1; }
.hero .cta:hover { background: #ffdfc8; }
.hero .cta:focus-visible { outline-color: white; }
.hero .app-icon { width: clamp(6.5rem, 23vw, 19rem); margin: 0; }
.graphics .demo { width: min(100%, 57rem); margin-top: 1.4rem; }
.accordion { display: grid; gap: .55rem; }
.palette h3 { margin: 1rem 0 .45rem; font-size: .95rem; }
.glyphs { margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); }
.glyphs li {
  display: grid;
  place-items: center;
  min-height: 3.2rem;
  padding: .2em;
  border-radius: 5px;
  background: #fff0e5;
  color: #632b1a;
  font-family: "STIX Two Math", "Apple Symbols", "STIXGeneral", "Cambria Math", "Segoe UI Symbol", "DejaVu Sans", sans-serif;
  font-size: 1.45rem;
  line-height: 1.4;
}
.service-list { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; list-style: none; }
.showcase > p { color: var(--muted); max-width: 66ch; line-height: 1.65; }
@media (max-width: 580px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .app-icon { justify-self: end; margin-top: -.5rem; }
}

.features { scroll-margin-top: 1rem; }
.workbench {
  margin: 1.25rem 0 2rem;
  padding: .85rem clamp(.65rem, 2vw, 1.5rem) 1.25rem;
  min-inline-size: 0;
  border: 1px solid #efc5ac;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe9d8, #fff5ec 70%);
  box-shadow: 0 12px 34px #92513215;
}
.workbench legend { padding-inline: .55rem; color: #7b2c12; font-weight: 700; }
.workbench-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .48rem; }
.workbench-controls input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
.workbench-controls label {
  cursor: pointer;
  padding: .5em .85em;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #732e18;
  font-weight: 650;
  transition: background-color .18s ease, border-color .18s ease;
}
.workbench-controls label:hover { border-color: #c47249; }
.workbench-controls input:checked + label { background: #a63c16; color: white; }
.workbench-controls input:focus-visible + label { outline: 2px solid #873013; outline-offset: 3px; }
.workbench-page {
  display: none;
  width: 100%;
  min-width: 0;
  min-height: 15rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fffdfb;
}
#modus-text:checked ~ .page-text, #modus-code:checked ~ .page-code, #modus-tex:checked ~ .page-tex {
  display: block;
  animation: document-in .24s ease-out both;
}
@keyframes document-in {
  from { opacity: .45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .workbench-controls label { transition: none; }
  #modus-text:checked ~ .page-text, #modus-code:checked ~ .page-code, #modus-tex:checked ~ .page-tex { animation: none; }
}
.document-name { margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); color: var(--muted); font: .875rem ui-monospace, monospace; }
.document-title { margin: 1rem 0 .5rem; font: 1.75rem Georgia, serif; }
.workbench-page p:not(.document-name) { max-width: 65ch; }
.workbench-page p:last-child { margin-bottom: 0; line-height: 1.65; }
.workbench-page pre { overflow: auto; line-height: 1.5; }
.document-note { color: var(--muted); }
.category path { stroke: #292b38; stroke-width: 1.7; }

@media (min-width: 900px) {
  .features {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 1rem clamp(2rem, 4vw, 4.5rem);
    align-items: start;
  }
  .features .section-title { grid-column: 1 / -1; }
  .features .workbench { margin: 0; }
  .features ul { grid-template-columns: 1fr; gap: .8rem; }
}

.service-list a { display: inline-block; padding: .5rem .8rem; border: 1px solid var(--rule); border-radius: 6px; background: #fffdfb; font-weight: 650; }
.service-list a:hover, .service-list a:focus-visible { color: var(--rust); text-decoration: underline; }

.footer { flex-wrap: wrap; }

.imprint-trigger, .imprint-close {
  font: inherit;
  cursor: pointer;
}

.imprint-trigger {
  padding: .4rem 0;
  border: 0;
  background: transparent;
  color: var(--rust);
  text-decoration: underline;
}

.imprint {
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 5vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: .8rem;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.imprint::backdrop { background: rgb(39 37 42 / 58%); }
.imprint h2 { margin-top: 0; }
.imprint address { font-style: normal; }
.imprint a { color: var(--rust); text-decoration: underline; }
.imprint-close {
  padding: .55rem .85rem;
  border: 1px solid var(--rust);
  border-radius: .35rem;
  background: var(--paper);
  color: var(--rust);
}

.language-picker {
  position: relative;
  flex: 0 0 auto;
  margin-inline-start: auto;
  color: var(--ink);
  font-size: .9375rem;
}
.language-picker summary,
.language-options button {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
}
.language-picker summary {
  padding: .45rem .7rem;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fffdfb;
  font-weight: 650;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after {
  content: "";
  width: .42rem;
  height: .42rem;
  margin: -.2rem .2rem 0 .15rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.language-picker img {
  flex: 0 0 auto;
  object-fit: fill;
  border-radius: 2px;
  outline: 1px solid #27252a36;
}
.language-options {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0;
  top: calc(100% + .4rem);
  min-width: 100%;
  padding: .3rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: 0 10px 30px #6b3e2226;
}
.language-options button {
  width: 100%;
  padding: .4rem .65rem;
  border: 0;
  color: var(--ink);
  font-size: inherit;
  text-align: start;
}
.language-options button[aria-pressed="true"] { background: #ffede0; }
.header nav { flex-wrap: wrap; margin-inline-start: auto; }

@media (max-width: 680px) {
  .header { flex-wrap: wrap; gap: .5rem; padding-block: .65rem; }
  .header nav { order: 1; flex: 1 0 100%; margin: 0; }
}
