/* Klavierstimmerei Auenhall — Beispiel-Website, Stil aus MXL-027 (Mika UX Library) */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-opsz.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f7f5ef;
  --surface: #ffffff;
  --ink: #11130f;
  --muted: #666b61;       /* MXL-027 Muted #72776D, für AA auf Warmweiß abgedunkelt */
  --rule: #11130f;
  --rule-soft: #cfcdc4;
  --signal: #1c1c1c;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 520px;
  --section: clamp(80px, 10vw, 120px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s6);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--canvas); }

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent);
  transition: text-decoration-color 180ms var(--ease-out);
}
a:hover { text-decoration-color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--f-mono);
  font-size: 12px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.skip-link:focus { top: var(--s3); }

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

/* ---------- Raster ---------- */

.sheet {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s5);
}

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Kopf: Programmheft-Umschlag ---------- */

.masthead {
  padding-top: var(--s5);
}
.masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding-bottom: var(--s3);
}
.masthead__top .label { margin: 0; }
.masthead__top .label:last-child { text-align: right; }
.wordmark {
  display: block;
  padding: var(--s4) 0 var(--s3);
  border-top: 1px solid var(--rule);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  font-variation-settings: "opsz" 96;
}
.wordmark span { font-weight: 400; color: var(--muted); }

.nav-bar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 3px 0 -2px var(--rule);
  margin-bottom: 3px;
}
.nav-toggle { display: none; }
.nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s1);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }

@media (max-width: 760px) {
  .js .nav-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: 500 15px/1 var(--f-text);
    cursor: pointer;
  }
  .nav-toggle__state { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: var(--s3); }
  .nav li + li { border-top: 1px solid var(--rule-soft); }
  .nav a { width: 100%; font-size: 17px; }
  .masthead__top .label:nth-child(2) { display: none; }
}

/* ---------- Programmfolge (Startseite) ---------- */

.overture {
  padding-top: var(--s8);
  padding-bottom: var(--section);
  row-gap: var(--s6);
}
.overture__margin {
  grid-column: 1 / 4;
  align-self: start;
}
.overture__margin dl { margin: 0; }
.overture__margin dt { color: var(--muted); }
.overture__margin dd {
  margin: 0 0 var(--s4);
  color: var(--ink);
}
.overture__main { grid-column: 4 / 13; }

.display {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.display em { font-style: normal; font-weight: 700; }

.programme {
  margin: var(--s8) 0 0;
  padding: 0;
  list-style: none;
  max-width: 820px;
  border-top: 1px solid var(--rule);
}
.programme__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  column-gap: var(--s5);
  align-items: baseline;
  padding: var(--s5) 0 var(--s4);
  border-bottom: 1px solid var(--rule-soft);
}
.programme__no {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1;
  font-variation-settings: "opsz" 28;
}
.programme__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 40;
}
.programme__tempo {
  display: block;
  font-family: var(--f-text);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: var(--s2);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}
.programme__time {
  font-family: var(--f-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.programme__bar {
  grid-column: 2 / 4;
  height: 1px;
  margin-top: var(--s4);
  background: var(--ink);
  width: calc(var(--min) / 75 * 100%);
  transform-origin: left center;
}
.programme__item--interval .programme__title { font-weight: 400; color: var(--muted); }
.programme__item--interval .programme__bar {
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 8px);
}

@media (prefers-reduced-motion: no-preference) {
  .js .programme--play .programme__bar {
    animation: play-bar calc(var(--min) * 28ms + 400ms) var(--ease-out) both;
    animation-delay: var(--delay, 0ms);
  }
}
@keyframes play-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.overture__note {
  grid-column: 4 / 10;
  max-width: var(--measure);
}
.overture__aside {
  grid-column: 10 / 13;
  align-self: end;
}

.lead {
  margin: 0;
  font-size: clamp(19px, 1.2vw + 12px, 22px);
  line-height: 1.45;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 40;
}
.prose h2 { font-size: clamp(30px, 4.5vw, 52px); margin: var(--s8) 0 var(--s4); }
.prose h3 { font-size: 26px; margin: var(--s7) 0 var(--s3); }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--muted); }

/* ---------- Aktion ---------- */

.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 52px;
  padding: 0 var(--s5);
  background: var(--signal);
  color: var(--canvas);
  border: 1px solid var(--signal);
  border-radius: 2px;
  font: 500 16px/1.2 var(--f-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.action:hover { background: var(--canvas); color: var(--ink); }
.action svg { width: 18px; height: 18px; flex: none; }
.action--quiet { background: transparent; color: var(--ink); }
.action--quiet:hover { background: var(--ink); color: var(--canvas); }
.action[disabled] { opacity: 0.45; cursor: not-allowed; }

.action-note { margin: var(--s3) 0 0; }

/* ---------- Abschnitte ---------- */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}
.section__head {
  grid-column: 1 / 4;
}
.section__head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 40;
}
.section__head .label { margin-top: var(--s3); }
.section__body { grid-column: 5 / 13; }
.section__body--measure { grid-column: 5 / 10; }

.statement {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}

/* ---------- Stimmkurve ---------- */

.curve {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}
.curve figure { margin: 0; }
.curve__frame {
  width: 100%;
  margin-top: var(--s6);
  overflow: hidden;
}
.curve svg { width: 100%; height: auto; }
.curve .axis { stroke: var(--ink); stroke-width: 1; }
.curve .grid-line { stroke: var(--rule-soft); stroke-width: 1; }
.curve .trace { fill: none; stroke: var(--ink); stroke-width: 2; }
.curve .key-tick { stroke: var(--ink); stroke-width: 1; }
.curve text {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--muted);
}
.curve figcaption {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s5);
  margin-top: var(--s4);
}
.curve figcaption .label { grid-column: 1 / 5; }
.curve figcaption p { grid-column: 5 / 10; margin: 0; max-width: var(--measure); }

@media (prefers-reduced-motion: no-preference) {
  .js .curve .trace.is-waiting { stroke-dashoffset: var(--len); }
  .js .curve .trace { stroke-dasharray: var(--len); transition: stroke-dashoffset 1400ms var(--ease-out); }
}

/* ---------- Register / Index ---------- */

.register {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.register caption {
  text-align: left;
  padding-bottom: var(--s4);
}
.register th, .register td {
  padding: var(--s4) var(--s4) var(--s4) 0;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: baseline;
}
.register thead th {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.register td.num, .register th.num { text-align: right; padding-right: var(--s5); white-space: nowrap; }
.register .mono { font-family: var(--f-mono); font-size: 13px; }
.register .instr {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.15;
  font-variation-settings: "opsz" 24;
}

/* ---------- Leistungen ---------- */

.service {
  padding-block: var(--s8);
  border-top: 1px solid var(--rule);
  row-gap: var(--s5);
}
.service:first-of-type { border-top: 0; }
.service__no {
  grid-column: 1 / 2;
  font-family: var(--f-display);
  font-size: 40px;
  line-height: 1;
}
.service__title {
  grid-column: 2 / 8;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}
.service__title .programme__tempo { font-family: var(--f-text); font-size: 17px; letter-spacing: 0; }
.service__ticket {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
  align-self: start;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.service__ticket div {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.service__ticket dt { color: var(--muted); }
.service__ticket dd { margin: 0; text-align: right; color: var(--ink); }
.service__text { grid-column: 2 / 8; max-width: var(--measure); }
.service__text p { margin: 0 0 1em; }

/* ---------- Stimmkalender ---------- */

.calendar {
  padding-bottom: var(--section);
  row-gap: var(--s7);
}
.calendar__form { grid-column: 1 / 7; }
.calendar__result { grid-column: 8 / 13; }

fieldset {
  margin: 0 0 var(--s6);
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
  margin-bottom: var(--s3);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  font-variation-settings: "opsz" 28;
}
.field-row { display: flex; gap: var(--s4); flex-wrap: wrap; }
.field { display: grid; gap: var(--s2); flex: 1 1 180px; }
.field label { font-size: 15px; font-weight: 500; }

select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.4 var(--f-text);
  caret-color: var(--ink);
  accent-color: var(--ink);
}
select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2311130F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
textarea { min-height: 140px; resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #8a1c12; box-shadow: inset 0 0 0 1px #8a1c12; }

.choices { display: grid; gap: 0; border-top: 1px solid var(--rule-soft); }
.choice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s3);
  align-items: start;
  min-height: 48px;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
}
.choice input {
  width: 18px; height: 18px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}
.choice strong { display: block; font-weight: 500; }
.choice span span { display: block; color: var(--muted); font-size: 15px; }

.result {
  position: sticky;
  top: var(--s6);
  border-top: 2px solid var(--ink);
  padding-top: var(--s5);
}
.result__date {
  margin: var(--s2) 0 var(--s4);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}
.result__status {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s4);
  font-weight: 500;
}
.result__status svg { width: 16px; height: 16px; }
.result dl { margin: 0 0 var(--s5); border-top: 1px solid var(--rule-soft); }
.result dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.result dt { color: var(--muted); }
.result dd { margin: 0; font-family: var(--f-mono); font-size: 13px; text-align: right; }

.drift { margin: 0 0 var(--s5); }
.drift__scale {
  position: relative;
  height: 32px;
  border-bottom: 1px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / 5)) bottom / 100% 8px no-repeat;
}
.drift__mark {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 32px;
  background: var(--ink);
  left: calc(var(--pos, 0) * 1% - 1px);
  transition: left 220ms var(--ease-out);
}
.drift__labels { display: flex; justify-content: space-between; margin-top: var(--s2); }

.update-flash { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .update-flash { animation: settle 360ms var(--ease-out); }
}
@keyframes settle {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Kammerton ---------- */

.tone {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}
.tone__row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s3); }
.segmented { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 var(--s4);
  font-family: var(--f-mono);
  font-size: 13px;
}
.segmented label + label span { border-left: 1px solid var(--ink); }
.segmented input:checked + span { background: var(--ink); color: var(--canvas); }
.segmented input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- Frequenztafel ---------- */

.table-wrap { overflow-x: auto; }
details.appendix { border-top: 1px solid var(--rule); }
details.appendix summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 24px;
  font-variation-settings: "opsz" 24;
}
details.appendix summary::-webkit-details-marker { display: none; }
details.appendix summary::after {
  content: "";
  width: 14px; height: 14px;
  flex: none;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
details.appendix[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.freq {
  columns: 4 220px;
  column-gap: var(--s6);
  column-rule: 1px solid var(--rule-soft);
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 2;
  font-variant-numeric: tabular-nums;
}
.freq li { display: grid; grid-template-columns: 28px 52px 1fr auto; gap: var(--s2); break-inside: avoid; }
.freq .n { color: var(--muted); }
.freq .c { color: var(--muted); text-align: right; }
.freq li.ref { background: var(--surface); outline: 1px solid var(--ink); padding: 0 var(--s2); margin-inline: calc(var(--s2) * -1); }

/* ---------- Seitenkopf Unterseiten ---------- */

.page-head {
  padding-top: var(--s8);
  padding-bottom: var(--s8);
  row-gap: var(--s5);
}
.page-head__margin { grid-column: 1 / 4; }
.page-head__title { grid-column: 4 / 13; }
.page-head__lead { grid-column: 4 / 10; max-width: var(--measure); }

/* ---------- Kontakt ---------- */

.contact { padding-bottom: var(--section); row-gap: var(--s7); }
.contact__form { grid-column: 4 / 10; max-width: 620px; }
.contact__aside { grid-column: 10 / 13; }
.contact__aside address { font-style: normal; }
.form-stack { display: grid; gap: var(--s5); }
.form-hint { margin: var(--s2) 0 0; }
.form-status { min-height: 1.6em; margin: var(--s3) 0 0; font-weight: 500; }

/* ---------- Schluss / Fuß ---------- */

.encore {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
  row-gap: var(--s6);
  align-items: end;
}
.encore__title { grid-column: 1 / 9; }
.encore__action { grid-column: 9 / 13; justify-self: start; }

.footer {
  padding-block: var(--s7) var(--s6);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -3px 0 -2px var(--rule);
  row-gap: var(--s5);
}
.footer__name {
  grid-column: 1 / 5;
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1.1;
  font-variation-settings: "opsz" 24;
}
.footer__links { grid-column: 5 / 9; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer__meta { grid-column: 9 / 13; }
.footer__meta p { margin: 0 0 var(--s3); }

/* ---------- Mobil: klare Lesereihenfolge ---------- */

@media (max-width: 900px) {
  .overture__margin, .overture__main, .overture__note, .overture__aside,
  .section__head, .section__body, .section__body--measure,
  .calendar__form, .calendar__result,
  .page-head__margin, .page-head__title, .page-head__lead,
  .contact__form, .contact__aside,
  .encore__title, .encore__action,
  .footer__name, .footer__links, .footer__meta,
  .service__no, .service__title, .service__ticket, .service__text {
    grid-column: 1 / -1;
  }
  .service__ticket { grid-row: auto; }
  .overture { padding-top: var(--s6); }
  .overture__margin dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
  .overture__margin dd { margin-bottom: var(--s3); }
  .curve figcaption .label, .curve figcaption p { grid-column: 1 / -1; }
  .curve figcaption p { margin-top: var(--s2); }
  .result { position: static; }
  .section__head { margin-bottom: var(--s5); }
}

@media (max-width: 560px) {
  .programme__item { grid-template-columns: 36px minmax(0, 1fr); }
  .programme__no { font-size: 22px; }
  .programme__time { grid-column: 2; margin-top: var(--s2); }
  .programme__bar { grid-column: 2; }
  .register thead { display: none; }
  .register tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s4) 0; border-bottom: 1px solid var(--rule-soft); }
  .register td { border: 0; padding: 0; }
  .register td.instr { grid-column: 1 / -1; margin-bottom: var(--s2); }
  .register td.note { grid-column: 1 / -1; margin-top: var(--s2); color: var(--muted); }
  .masthead__top { flex-wrap: wrap; }
}

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

/* Mobil: Überschrift zuerst, Marginalien danach */
@media (max-width: 900px) {
  .overture__main { order: 1; }
  .overture__note { order: 2; }
  .overture__aside { order: 3; }
  .overture__margin { order: 4; border-top: 1px solid var(--rule-soft); padding-top: var(--s4); }
  .page-head__title { order: 1; }
  .page-head__lead { order: 2; }
  .page-head__margin { order: 3; }
  .contact .page-head__margin { order: 0; }
}

.section--appendix { border-top: 0; padding-top: 0; }
@media (max-width: 760px) {
  .curve__frame { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .curve__frame svg { width: 820px; max-width: none; }
  .curve__hint { display: block; }
}
.curve__hint { display: none; margin-top: var(--s2); }
