/* ==========================================================================
   gitarrenunterricht-uslar.de
   Welt: ein markiertes Tab-Blatt – Saiten, Bundzahlen, Textmarker, Bleistift.
   ========================================================================== */

@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --paper: #f3f4ef;
  --paper-2: #e8eae2;
  --ink: #111210;
  --ink-2: #26282a;
  --pencil: #55584f;
  --marker: #e6ff2e;
  --marker-deep: #d4ee12;
  --pink: #ff4f9a;
  --line: rgb(17 18 16 / 0.62);
  --line-soft: rgb(17 18 16 / 0.18);

  --f-display: "Anybody", "Arial Narrow", sans-serif;
  --f-body: "Schibsted Grotesk", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;

  color-scheme: light;
}

/* ---------- Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--ink) var(--paper-2);
}

a, button, summary, label, input, select, textarea { touch-action: manipulation; }
body {
  -webkit-tap-highlight-color: rgb(230 255 46 / 0.35);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--pink);
}

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

::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper-2); border-radius: 8px; }

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

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

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

.num, .toc__num { font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--marker);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 1rem; }

.icon {
  width: 1.2em; height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Textmarker: wie mit dem Stift über die Zeile gezogen */
.mark {
  background: linear-gradient(100deg, transparent 0.2em, var(--marker) 0.25em, var(--marker) calc(100% - 0.2em), transparent calc(100% - 0.15em)) 0 62% / 100% 58% no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.15em;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--ink);
  --fg: var(--marker);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--marker);
  font: 700 1.05rem/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s;
  box-shadow: 0 1px 2px rgb(17 18 16 / 0.2);
}
.btn .icon { transition: transform 0.3s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgb(17 18 16 / 0.45); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgb(17 18 16 / 0.2); }
.btn--marker { background: var(--marker); color: var(--ink); }
.btn--sm { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* ---------- Kopfzeile ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--marker);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.top.is-scrolled { border-bottom-color: var(--ink); }
.top__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.brand__pick { width: 1.35rem; height: auto; fill: var(--ink); transform: rotate(-12deg); }
.brand__dot { color: var(--pink); padding-inline: 0.05em; }
.top__nav { display: flex; gap: 1.6rem; }
.top__nav a {
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
  padding-block: 0.2rem;
}
.top__nav a:hover { background-size: 100% 2px; }

@media (max-width: 860px) {
  .top__nav { display: none; }
  .brand { font-size: 0.98rem; }
}
@media (max-width: 480px) {
  .top .btn { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--marker);
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero__title { grid-column: 1 / -1; }
.hero__side { grid-column: 1 / -1; grid-template-columns: minmax(0, 40ch) auto; justify-content: space-between; align-items: end; }
@media (max-width: 860px) { .hero__side { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) { .hero__title > span { white-space: nowrap; } }
.hero__title {
  font-size: clamp(2.7rem, 1rem + 7.4vw, 6rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero__title > span { display: block; }
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circled svg {
  position: absolute;
  left: -6%; top: -16%;
  width: 112%; height: 138%;
  overflow: visible;
  pointer-events: none;
}
.circled path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}
.hero__side { display: grid; gap: 1.5rem; padding-bottom: 0.4rem; }
.hero__lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Tabulatur ---------- */

.tabfig { margin: 0; min-width: 0; }
.tabfig--hero { margin-top: clamp(2.5rem, 6vw, 4rem); }

.tab {
  --row: clamp(1.6rem, 1.2rem + 1.1vw, 2.1rem);
  --col: 2.1rem;
  --bg: var(--marker);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  font-family: var(--f-mono);
  font-size: clamp(0.82rem, 0.72rem + 0.4vw, 1.05rem);
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
}
.tab__names {
  display: grid;
  grid-template-rows: repeat(var(--strings), var(--row));
  padding-right: 0.6rem;
  color: var(--pencil);
  font-size: 0.78em;
  text-align: right;
}
.tab__names span { display: grid; align-items: center; }
.tab__scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.tab__body {
  position: relative;
  display: flex;
  min-width: 100%;
  width: max-content;
}
.tab__strings {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(var(--strings), var(--row));
  pointer-events: none;
}
.tab__string { position: relative; }
.tab__string::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  background: var(--line);
  transform-origin: left center;
}
/* tiefere Saiten sind dicker */
.tab__string:nth-last-child(1)::before { height: 2.6px; }
.tab__string:nth-last-child(2)::before { height: 2.2px; }
.tab__string:nth-last-child(3)::before { height: 1.9px; }
.tab__string.is-ringing::before { animation: ring 0.9s cubic-bezier(0.2, 0.6, 0.3, 1); }
@keyframes ring {
  0% { transform: translateY(0) scaleY(1); }
  8% { transform: translateY(-1.6px) scaleY(1.6); }
  18% { transform: translateY(1.3px) scaleY(1.4); }
  30% { transform: translateY(-0.9px) scaleY(1.25); }
  45% { transform: translateY(0.6px) scaleY(1.1); }
  65% { transform: translateY(-0.3px); }
  100% { transform: translateY(0); }
}

.tab__col {
  position: relative;
  z-index: 1;
  flex: 1 0 var(--col);
  display: grid;
  grid-template-rows: repeat(var(--strings), var(--row));
}
.tab__col > span { display: grid; place-items: center; }
.tab__note {
  min-width: 1.5em;
  padding: 0.1em 0.2em;
  background: var(--bg);
  color: var(--ink);
  border-radius: 3px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease-out);
}
.tab__note:hover { background: var(--ink); color: var(--bg); }
.tab__note.is-hit {
  background: var(--ink);
  color: var(--bg);
  transform: scale(1.18);
  transition-duration: 0.05s;
}
.tab__col--bar { flex: 0 0 1rem; }
.tab__col--bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--row) / 2);
  bottom: calc(var(--row) / 2);
  width: 1.5px;
  background: var(--line);
}
.tab__col--end { flex: 0 0 1.2rem; }
.tab__col--end::after,
.tab__col--end::before {
  content: "";
  position: absolute;
  top: calc(var(--row) / 2);
  bottom: calc(var(--row) / 2);
  background: var(--ink);
}
.tab__col--end::before { right: 7px; width: 1.5px; }
.tab__col--end::after { right: 0; width: 4px; }

.tab__clef {
  position: absolute;
  z-index: 1;
  left: 0.4rem;
  top: calc(var(--row) / 2);
  bottom: calc(var(--row) / 2);
  display: grid;
  align-content: space-evenly;
  justify-items: center;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 90%;
  line-height: 1;
  font-size: 1.3em;
}
.tab__clef span { background: var(--bg); padding: 0.05em 0.1em; }
.tab__col--clef { flex: 0 0 2.6rem; }
.tab__col--clef::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--row) / 2);
  bottom: calc(var(--row) / 2);
  width: 2px;
  background: var(--ink);
}

.tab__head {
  position: absolute;
  z-index: 2;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--pink);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.tab.is-playing .tab__head { opacity: 1; }

.tabfig__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}
.pencil {
  font-style: italic;
  color: var(--pencil);
  max-width: 52ch;
  font-size: 0.95rem;
}
.hero .pencil { color: var(--ink-2); }

.play {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.5rem 1.15rem 0.5rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 0.98rem/1 var(--f-body);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.play .icon {
  width: 1.9rem; height: 1.9rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: var(--ink);
  fill: var(--marker);
  stroke: none;
}
.play:hover { background: var(--ink); color: var(--marker); }
.play:hover .icon { background: var(--marker); fill: var(--ink); }
.play .icon--stop { display: none; }
.play[aria-pressed="true"] .icon--play { display: none; }
.play[aria-pressed="true"] .icon--stop { display: block; }
.play--sm { min-height: 2.5rem; font-size: 0.9rem; }
.play--sm .icon { width: 1.6rem; height: 1.6rem; }

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

.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.7); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--marker { background: var(--marker); }

.head {
  display: grid;
  gap: 1.25rem;
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.head--row {
  max-width: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 4rem;
}
.head__lead { color: var(--pencil); max-width: 44ch; font-size: 1.08em; }
@media (max-width: 760px) { .head--row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Unterricht: drei Spuren ---------- */

.tracks { display: grid; }
.track {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
}
.track:last-child { border-bottom: 2px solid var(--ink); }
.track__text { display: grid; gap: 0.9rem; }
.track__text p { max-width: 46ch; }
.track .tab { --bg: var(--paper); --row: 1.55rem; --col: 1.9rem; font-size: 0.85rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.tags li {
  padding: 0.25rem 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
@media (max-width: 760px) {
  .track { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Für wen: Akkorddiagramme ---------- */

.chords {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  margin: 0; padding: 0; list-style: none;
}
.chord figure { margin: 0; display: grid; gap: 1.1rem; }
.chord__diagram svg { width: 100%; max-width: 9.5rem; height: auto; overflow: visible; }
.chord figcaption { display: grid; gap: 0.35rem; color: var(--pencil); font-size: 0.97rem; }
.chord figcaption strong { color: var(--ink); font-size: 1.08rem; }
.chord__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}
.chord:nth-child(4) .chord__name { position: relative; }
.chord__diagram .dot { fill: var(--ink); }
.chord__diagram .barre { fill: var(--ink); }
.chord__diagram .grid { stroke: var(--ink); stroke-width: 1.5; }
.chord__diagram .nut { stroke: var(--ink); stroke-width: 6; }
.chord__diagram .open { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.chord__diagram .mute { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.chord:hover .dot, .chord:hover .barre { fill: var(--pink); }
.chord .dot, .chord .barre { transition: fill 0.25s; }
@media (max-width: 900px) { .chords { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Hausbesuch ---------- */

.hb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.hb__text { display: grid; gap: 1.5rem; }
.hb__text h2 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem); color: var(--marker); }
.hb__text > p { max-width: 48ch; color: #d6d8d0; }
.song { display: grid; gap: 0; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: none; }
.song li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.9rem;
  border-top: 1px solid rgb(243 244 239 / 0.22);
  color: #d6d8d0;
}
.song strong { color: var(--paper); }
.song__mark {
  display: inline-grid;
  place-items: center;
  width: 1.9rem; height: 1.9rem;
  border: 2px solid var(--marker);
  color: var(--marker);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.05rem;
  transform: translateY(0.35rem);
}

.hb__check { display: grid; gap: 1rem; }
.check {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--marker);
  color: var(--ink);
  border-radius: 6px;
}
.check__label {
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 110%;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.05;
}
.check__row { display: flex; gap: 0.5rem; }
.check__row input { flex: 1; min-width: 0; }
.check__row .btn { background: var(--ink); color: var(--marker); }
.check__result { min-height: 1.6em; font-weight: 600; }
.check__result.is-yes::before,
.check__result.is-maybe::before {
  content: "";
  display: inline-block;
  width: 0.7em; height: 0.7em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: 0.05em;
}
.check__result.is-maybe::before { background: transparent; border: 2px solid var(--ink); }

.stops__label { margin-top: 1rem; color: #a9ac9f; font-size: 0.9rem; }
.stops { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: 0; padding: 0; list-style: none; }
.stops li {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 1.12rem;
  color: var(--paper);
  transition: color 0.2s;
}
.stops li.is-match { color: var(--marker); text-decoration: underline 3px var(--pink); text-underline-offset: 0.2em; }
.stops li::after { content: " /"; color: #6c6f64; font-weight: 400; }
.stops li:last-child::after { content: ""; }

@media (max-width: 860px) { .hb { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Formularelemente ---------- */

input, select, textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.4 var(--f-body);
  transition: box-shadow 0.2s, border-color 0.2s;
}
textarea { resize: vertical; min-height: 7rem; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111210' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}
input::placeholder, textarea::placeholder { color: #6e7166; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pink);
}
[aria-invalid="true"] { border-color: #c4004f; box-shadow: 0 0 0 1px #c4004f; }

/* ---------- Preise: Inhaltsverzeichnis eines Tab-Buchs ---------- */

.preise { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(3rem, 7vw, 7rem); }
.preise .head { margin-bottom: 0; align-content: start; }
.preise h2 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.5rem); hyphens: manual; }
.toc { display: grid; }
.toc__row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 1.05rem;
}
.toc__row > span:first-child {
  display: grid;
  justify-items: start;
  flex: 0 1 auto;
}
.toc__row > span:first-child small { color: var(--pencil); font-size: 0.88rem; }
.toc__row strong { font-size: 1.15rem; }
/* gepunktete Führungslinie */
.toc__row::after {
  content: "";
  order: 1;
  flex: 1 1 2rem;
  min-width: 2rem;
  border-bottom: 2px dotted var(--ink);
  transform: translateY(-0.3rem);
  align-self: flex-start;
  margin-top: 1rem;
}
.toc__num {
  order: 2;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
  text-align: right;
}
.toc__num small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 0.8rem; color: var(--pencil); }
.toc__row--head {
  padding-block: 0 0.7rem;
  border-bottom: 2px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.toc__row--head::after { display: none; }
.toc__row--head .toc__num { font-family: var(--f-body); font-size: 0.82rem; margin-left: auto; }
.toc__row--hi strong,
.toc__row--hi .toc__num {
  background: var(--marker);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.2em;
  margin-inline: -0.2em;
}
.toc__note { grid-column: 2; margin-top: 0.4rem; color: var(--pencil); font-size: 0.92rem; max-width: 56ch; }
@media (max-width: 860px) { .preise { grid-template-columns: minmax(0, 1fr); } .toc__note { grid-column: 1; } }

/* ---------- Über mich: Tab-Kopf als Steckbrief ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.sheet {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgb(17 18 16 / 0.08), 0 18px 40px -18px rgb(17 18 16 / 0.35);
  transform: rotate(-1.5deg);
}
/* sechs Saiten am Fuß des Blatts */
.sheet::after {
  content: "";
  display: block;
  height: 3.3rem;
  margin-top: 1.5rem;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1.5px, transparent 1.5px 1.1rem);
}
.sheet__photo {
  position: relative;
  margin: 0 0 1.5rem;
}
.sheet__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 38%;
  border-radius: 2px;
  background: var(--ink);
}
/* Klebestreifen aus Textmarker-Gelb */
.sheet__photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -0.9rem;
  left: 50%;
  width: 7rem;
  height: 1.8rem;
  background: rgb(230 255 46 / 0.82);
  transform: translateX(-50%) rotate(3deg);
  box-shadow: 0 1px 2px rgb(17 18 16 / 0.15);
}
.sheet__meta { display: grid; gap: 0; margin: 0; }
.sheet__meta div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
}
.sheet__meta dt {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--pencil);
  padding-top: 0.2rem;
}
.sheet__meta dd { margin: 0; font-weight: 600; }
.sheet__meta div:first-child dd {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
}
.about__text { display: grid; gap: 1.2rem; }
.about__text p { max-width: 58ch; }
@media (max-width: 860px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .sheet { transform: rotate(-1deg); }
}
@media (max-width: 420px) {
  .sheet__meta div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

/* ---------- Stimmen: Bleistiftnotizen am Rand ---------- */

.quotes {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  margin: 0; padding: 0; list-style: none;
}
.quote { display: grid; gap: 1rem; align-content: start; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.quote:first-child blockquote p { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.1; }
.quote__who { font-style: italic; color: var(--pencil); font-size: 0.95rem; }
.quote__who::before { content: ""; display: inline-block; width: 1.5rem; height: 2px; background: var(--pink); margin-right: 0.6rem; vertical-align: 0.3em; }
@media (max-width: 860px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(3rem, 7vw, 7rem); }
.faq__list { border-top: 2px solid var(--ink); }
details { border-bottom: 2px solid var(--ink); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.2rem;
  font-weight: 700;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 0.8rem 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 0.8rem no-repeat;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
details[open] summary::after { transform: rotate(45deg); background-color: var(--marker); }
summary:hover::after { background-color: var(--marker); }
details p { padding: 0 3rem 1.4rem 0; color: var(--pencil); max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact__intro { display: grid; gap: 1.3rem; }
.contact__intro h2 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); }
.contact__intro > p { max-width: 40ch; }
.direct { display: grid; gap: 0.2rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.direct a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.direct a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.1rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 24px 50px -28px rgb(17 18 16 / 0.55);
}
.field { display: grid; gap: 0.4rem; align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 0.4rem; }
.opt { font-weight: 400; color: var(--pencil); }
.field__err { min-height: 0; color: #b0003f; font-size: 0.88rem; font-weight: 600; }
.field__err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.45rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}
.chip:hover span { background: var(--paper-2); }
.chip input:checked + span { background: var(--ink); color: var(--marker); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--pink); }

.form__foot { display: grid; gap: 0.8rem; justify-items: start; margin-top: 0.4rem; }
.form__note { font-size: 0.85rem; color: var(--pencil); max-width: 52ch; }
.form__status { font-weight: 700; }
.form__status:empty { display: none; }
.form__status.is-ok {
  padding: 0.7rem 1rem;
  background: var(--marker);
  border-radius: var(--radius);
}

@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form { grid-template-columns: minmax(0, 1fr); } }

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

.foot { background: var(--ink); color: #c9cbc2; padding-block: 3rem; font-size: 0.95rem; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.foot__brand { font-family: var(--f-display); font-weight: 800; color: var(--paper); font-size: 1.1rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-left: auto; }
.foot a { color: var(--paper); }
.foot__copy { width: 100%; color: #8e9186; }

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero .tab__string::before { animation: draw 1.1s var(--ease-out) both; }
  .js .hero .tab__string:nth-child(2)::before { animation-delay: 0.06s; }
  .js .hero .tab__string:nth-child(3)::before { animation-delay: 0.12s; }
  .js .hero .tab__string:nth-child(4)::before { animation-delay: 0.18s; }
  .js .hero .tab__string:nth-child(5)::before { animation-delay: 0.24s; }
  .js .hero .tab__string:nth-child(6)::before { animation-delay: 0.3s; }
  .js .hero .tab__string.is-ringing::before { animation: ring 0.9s cubic-bezier(0.2, 0.6, 0.3, 1); }
  .js .circled path { animation: circle 0.9s 0.6s var(--ease-out) backwards; }
}
@keyframes draw { from { transform: scaleX(0); } }
@keyframes circle { from { stroke-dashoffset: 1000; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Rechtliches ---------- */

.legal { display: grid; gap: 1.2rem; max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.2rem); margin-bottom: 1rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }

/* ---------- Metal: dasselbe Tab-Blatt, nur mit Licht aus ---------- */

.metal {
  --line: rgb(243 244 239 / 0.5);
  background: var(--ink);
  color: var(--paper);
}
.metal ::selection { background: var(--pink); color: var(--ink); }
.metal__head {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.metal h2 {
  font-size: clamp(2.8rem, 1.2rem + 6vw, 6rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.metal__hot { color: var(--pink); }
.metal__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 5vw, 4rem);
  max-width: 62rem;
  color: #cfd1c8;
}
@media (max-width: 760px) { .metal__lead { grid-template-columns: minmax(0, 1fr); } }

.tabfig--metal { margin-bottom: clamp(3rem, 7vw, 5rem); }
.tabfig__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin: 0 0 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: #b9bcb2;
}
.metal .tab { --bg: var(--ink); color: var(--paper); }
.metal .tab__names { color: #9a9d93; }
.metal .tab__note { color: var(--paper); }
.metal .tab__note:hover,
.metal .tab__note.is-hit { background: var(--pink); color: var(--ink); }
.metal .tab__col--clef::before,
.metal .tab__col--end::before,
.metal .tab__col--end::after { background: var(--paper); }
.metal .tab__head { background: var(--marker); }
.metal .pencil { color: #b9bcb2; }
.metal .play { border-color: var(--paper); color: var(--paper); }
.metal .play .icon { background: var(--pink); fill: var(--ink); }
.metal .play:hover { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.metal .play:hover .icon { background: var(--ink); fill: var(--pink); }
.metal :focus-visible { outline-color: var(--pink); }

.setlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  margin: 0; padding: 0; list-style: none;
}
.setlist li {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding-block: 1.1rem 1.5rem;
  border-top: 2px solid rgb(243 244 239 / 0.25);
}
.setlist strong {
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 105%;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.1;
}
.setlist span { color: #b9bcb2; font-size: 0.95rem; }
@media (max-width: 900px) {
  .setlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .setlist { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Instrumenten-Service: Werkstattzettel ---------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.service__text { display: grid; gap: 1.3rem; }
.service__text > p { max-width: 54ch; color: var(--pencil); }
.service__list { margin: 0.5rem 0 0; display: grid; }
.service__list div {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.4rem 2rem;
  padding-block: 1.1rem;
  border-top: 2px solid var(--ink);
}
.service__list div:last-child { border-bottom: 2px solid var(--ink); }
.service__list dt {
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 105%;
  font-size: 1.25rem;
  line-height: 1.15;
}
.service__list dd { margin: 0; color: var(--pencil); }
@media (max-width: 600px) { .service__list div { grid-template-columns: minmax(0, 1fr); } }

.ticket {
  position: relative;
  justify-self: center;
  width: min(100%, 20rem);
  padding: 3.2rem 1.6rem 1.8rem;
  background: var(--marker);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(17 18 16 / 0.15), 0 24px 40px -22px rgb(17 18 16 / 0.5);
  transform: rotate(3deg);
}
.ticket__hole {
  position: absolute;
  top: 1.1rem; left: 50%;
  width: 1.1rem; height: 1.1rem;
  margin-left: -0.55rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.ticket__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 110%;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 1.1rem;
}
.ticket__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  padding-block: 0.35rem;
  border-bottom: 1.5px solid rgb(17 18 16 / 0.35);
  font-family: var(--f-mono);
  font-size: 0.7rem;
}
.ticket__hand { font-family: var(--f-body); font-style: italic; font-weight: 700; font-size: 1.05rem; }
.ticket__checks { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; }
.ticket__checks li { display: flex; align-items: center; gap: 0.6rem; }
.ticket__checks li::before {
  content: "";
  flex: none;
  width: 1.05rem; height: 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
}
.ticket__checks li.is-done { position: relative; }
.ticket__checks li.is-done::after {
  content: "";
  position: absolute;
  left: 0.32rem; top: 50%;
  width: 0.42rem; height: 0.8rem;
  border: solid var(--pink);
  border-width: 0 3.5px 3.5px 0;
  transform: translateY(-70%) rotate(40deg);
}
.ticket__note {
  margin-top: 1.1rem;
  font-style: italic;
  font-weight: 700;
  text-decoration: underline 3px var(--pink);
  text-underline-offset: 0.25em;
  transform: rotate(-2deg);
}
@media (max-width: 860px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .ticket { transform: rotate(2deg); }
}

/* ---------- Extras: Werkzeug + Gutschein ---------- */

.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.extra {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.7rem;
  min-height: 21rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.extra:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -26px rgb(17 18 16 / 0.6); }
.extra__title {
  position: relative;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.extra__text { position: relative; max-width: 36ch; }
.extra__go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-weight: 700;
}
.extra__go .icon { transition: transform 0.3s var(--ease-out); }
.extra:hover .extra__go .icon { transform: translateX(4px); }

.extra--tools { background: var(--ink); color: var(--paper); }
.extra--tools .extra__text { color: #cfd1c8; }
.extra--tools .extra__go { color: var(--marker); }
/* Stimmgerät-Skala */
.extra__dial {
  position: absolute;
  top: 2.2rem; right: 2.2rem;
  width: 13rem; height: 6.5rem;
}
.extra__dial::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 13rem 13rem 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgb(243 244 239 / 0.75) 0 1deg, transparent 1deg 9deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 50%, #000 51%);
          mask: radial-gradient(circle at 50% 100%, transparent 50%, #000 51%);
}
.extra__dial::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -0.45rem;
  width: 0.9rem; height: 0.9rem;
  margin-left: -0.45rem;
  border-radius: 50%;
  background: var(--marker);
}
.extra__dial span {
  position: absolute;
  left: 50%; bottom: 0;
  width: 3px; height: 96%;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--marker);
  transform-origin: 50% 100%;
  transform: rotate(-24deg);
  transition: transform 0.6s var(--ease-out);
}
.extra--tools:hover .extra__dial span { transform: rotate(0deg); }

.extra--gift {
  --rx: calc(100% - 4.5rem);
  --ry: 4.5rem;
  background:
    linear-gradient(90deg, transparent calc(var(--rx) - 0.9rem), var(--ink) calc(var(--rx) - 0.9rem) calc(var(--rx) + 0.9rem), transparent calc(var(--rx) + 0.9rem)),
    linear-gradient(transparent calc(var(--ry) - 0.9rem), var(--ink) calc(var(--ry) - 0.9rem) calc(var(--ry) + 0.9rem), transparent calc(var(--ry) + 0.9rem)),
    var(--pink);
  color: var(--ink);
  padding-right: clamp(6.5rem, 12vw, 8rem);
}
/* Schleife auf der Kreuzung des Geschenkbands */
.extra__bow {
  position: absolute;
  z-index: 1;
  left: calc(100% - 4.5rem); top: 4.5rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.extra__bow::before,
.extra__bow::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -0.6rem;
  width: 3.2rem; height: 2.2rem;
  border: 0.55rem solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
}
.extra__bow::before { right: 1rem; transform: rotate(18deg); }
.extra__bow::after { left: 1rem; transform: rotate(-18deg); }
.extra--gift .extra__title { margin-top: 5rem; }
@media (max-width: 760px) {
  .extras { grid-template-columns: minmax(0, 1fr); }
  .extra { min-height: 18rem; }
}

/* ---------- Werkzeugkasten ---------- */

.tools-hero { background: var(--marker); padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.tools-hero h1 {
  font-size: clamp(2.4rem, 0.6rem + 8vw, 6rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.tools-hero p { margin-top: 1rem; max-width: 46ch; font-size: 1.1rem; }

.tuner { background: var(--ink); color: var(--paper); }
.tuner :focus-visible { outline-color: var(--marker); }
.tuner__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(3rem, 7vw, 6rem);
  align-items: start;
}
.tuner__side { display: grid; gap: 1.4rem; justify-items: start; }
.tuner__side h2 { color: var(--marker); }
.tuner__hint { color: #cfd1c8; max-width: 44ch; }
.tuner__tunings { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip--dark span { border-color: rgb(243 244 239 / 0.6); color: var(--paper); }
.chip--dark:hover span { background: rgb(243 244 239 / 0.1); }
.chip--dark input:checked + span { background: var(--marker); color: var(--ink); border-color: var(--marker); }
.tuner__mic[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.tuner__status { color: #ffb3d1; font-weight: 600; max-width: 44ch; }
.tuner__status:empty { display: none; }

.readout {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px solid rgb(243 244 239 / 0.25);
  border-radius: 10px;
  transition: border-color 0.3s, background-color 0.3s;
}
.readout[data-state="tuned"] { border-color: var(--marker); background: rgb(230 255 46 / 0.06); }
.readout__note {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(5rem, 3rem + 8vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.readout[data-state="idle"] .readout__note { color: #8d9086; }
.readout[data-state="tuned"] .readout__note { color: var(--marker); }
.readout__note sup { font-size: 0.32em; vertical-align: top; margin-left: 0.08em; color: #9a9d93; }
.readout__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: #b9bcb2;
}
.meter { margin-top: 1.5rem; }
.meter__scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: #8d9086;
  margin-bottom: 0.5rem;
}
.meter__track {
  container-type: inline-size;
  position: relative;
  height: 3.2rem;
  background:
    repeating-linear-gradient(90deg, rgb(243 244 239 / 0.35) 0 1.5px, transparent 1.5px 10%) 0 50% / 100% 40% no-repeat,
    linear-gradient(rgb(243 244 239 / 0.6), rgb(243 244 239 / 0.6)) 0 50% / 100% 2px no-repeat;
}
.meter__zone {
  position: absolute;
  left: 46%; right: 46%;
  top: 0; bottom: 0;
  background: rgb(230 255 46 / 0.16);
  border-inline: 1.5px solid rgb(230 255 46 / 0.6);
}
.meter__needle {
  position: absolute;
  left: calc(50% - 2px);
  top: -0.2rem; bottom: -0.2rem;
  width: 4px;
  border-radius: 2px;
  background: var(--pink);
  transition: transform 0.12s linear;
}
.readout[data-state="tuned"] .meter__needle { background: var(--marker); }
.readout[data-state="idle"] .meter__needle { background: #5d6058; }
.readout__verdict { margin-top: 1.2rem; font-weight: 700; font-size: 1.1rem; min-height: 1.6em; }

.strings {
  display: grid;
  margin-top: 1.5rem;
  border-top: 1px solid rgb(243 244 239 / 0.15);
}
.string-btn {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgb(243 244 239 / 0.1);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.string-btn__line {
  position: absolute;
  left: 4rem; right: 0.5rem; top: 50%;
  height: var(--thick);
  background: rgb(243 244 239 / 0.5);
  transform: translateY(-50%);
  transition: background-color 0.2s;
}
.string-btn__name {
  position: relative;
  width: 3.4rem;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding-left: 0.4rem;
}
.string-btn__name sub { font-size: 0.65em; color: #9a9d93; }
.string-btn:hover .string-btn__line { background: var(--paper); }
.string-btn.is-target .string-btn__line { background: var(--pink); }
.string-btn.is-target .string-btn__name { color: var(--pink); }
.string-btn.is-tuned .string-btn__line { background: var(--marker); }
.string-btn.is-tuned .string-btn__name { color: var(--marker); }
.string-btn.is-ringing .string-btn__line { animation: ring 0.9s cubic-bezier(0.2, 0.6, 0.3, 1); }

@media (max-width: 900px) { .tuner__grid { grid-template-columns: minmax(0, 1fr); } }

.metro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(3rem, 7vw, 6rem);
  align-items: start;
}
.metro__grid h2 { margin-bottom: 1.2rem; }
.metro__hint { color: var(--pencil); max-width: 44ch; }
.metro__panel {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
}
.bpm { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bpm__value {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.bpm__value output { font-size: clamp(3.8rem, 2.4rem + 5vw, 6.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.bpm__value span { font-size: 0.9rem; color: var(--pencil); }
.bpm__step {
  display: grid;
  place-items: center;
  width: 3.4rem; height: 3.4rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}
.bpm__step:hover { background: var(--marker); }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 0;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.range:focus-visible { box-shadow: none; outline: 3px solid var(--ink); outline-offset: 2px; }
.range::-webkit-slider-runnable-track { height: 3px; background: var(--ink); border-radius: 2px; }
.range::-moz-range-track { height: 3px; background: var(--ink); border-radius: 2px; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.6rem; height: 1.6rem;
  margin-top: calc(-0.8rem + 1.5px);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--marker);
  cursor: grab;
}
.range::-moz-range-thumb {
  width: 1.3rem; height: 1.3rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--marker);
  cursor: grab;
}

/* Schläge als Takt: Kästchen zwischen Taktstrichen */
.beats {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-inline: 3px solid var(--ink);
}
.beats span {
  height: 3.2rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  transition: background-color 0.08s;
}
.beats span.is-accent { border-width: 3.5px; }
.beats span.is-on { background: var(--ink); }
.beats span.is-accent.is-on { background: var(--pink); }

.metro__controls { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; }
.metro__meter { width: 7rem; }
.metro__meter label { font-size: 0.85rem; }
#metro-toggle[aria-pressed="true"] { background: var(--pink); color: var(--ink); border-color: var(--ink); }

@media (max-width: 900px) { .metro__grid { grid-template-columns: minmax(0, 1fr); } }

.tools-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.tools-cta h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); max-width: 22ch; }

/* ---------- Gutschein ---------- */

.gift__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.gift__form { display: grid; gap: 1.3rem; }
.gift__actions { display: grid; gap: 0.8rem; justify-items: start; margin-top: 0.4rem; }
.gift__preview { position: sticky; top: 6rem; }

.voucher {
  --line: rgb(17 18 16 / 0.5);
  position: relative;
  display: grid;
  gap: 1rem;
  aspect-ratio: 297 / 210;
  padding: clamp(1.25rem, 3.5cqw, 2.5rem);
  container-type: inline-size;
  background: var(--marker);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(17 18 16 / 0.15), 0 30px 50px -28px rgb(17 18 16 / 0.6);
  overflow: hidden;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}
.voucher__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.voucher__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(0.8rem, 2.4cqw, 1.05rem);
}
.voucher__brand svg { width: 1.1em; fill: var(--ink); transform: rotate(-12deg); }
.voucher__occasion {
  font-style: italic;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.6cqw, 1.15rem);
  text-decoration: underline 3px var(--pink);
  text-underline-offset: 0.25em;
}
.voucher__title {
  font-size: clamp(2.8rem, 15cqw, 7rem);
  font-weight: 900;
  font-stretch: 120%;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.voucher__what { font-size: clamp(0.95rem, 3cqw, 1.3rem); max-width: 34ch; line-height: 1.3; }
.voucher__staff {
  position: relative;
  height: clamp(3.6rem, 13cqw, 5.5rem);
  background: repeating-linear-gradient(to bottom, var(--line) 0 1.5px, transparent 1.5px calc(100% / 6));
  border-left: 2px solid var(--ink);
  border-right: 4px double var(--ink);
}
.voucher__staff span {
  position: absolute;
  left: var(--x);
  top: calc((var(--y) - 1) * (100% / 6) + 0.75px);
  transform: translate(-50%, -50%);
  padding: 0 0.2em;
  background: var(--marker);
  font-family: var(--f-mono);
  font-size: clamp(0.6rem, 2cqw, 0.85rem);
  font-weight: 600;
  line-height: 1;
}
.voucher__names { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; }
.voucher__names div { border-bottom: 2px solid var(--ink); padding-bottom: 0.3rem; }
.voucher__names dt { font-family: var(--f-mono); font-size: clamp(0.6rem, 1.8cqw, 0.75rem); }
.voucher__names dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 4.2cqw, 1.9rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.voucher__msg { font-style: italic; font-size: clamp(0.85rem, 2.6cqw, 1.1rem); min-height: 1.3em; }
.voucher__redeem {
  align-self: end;
  font-family: var(--f-mono);
  font-size: clamp(0.5rem, 1.6cqw, 0.7rem);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .voucher { aspect-ratio: auto; }
}
@media (max-width: 900px) {
  .gift__grid { grid-template-columns: minmax(0, 1fr); }
  .gift__preview { position: static; order: -1; }
}

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .gift-page .skip,
  .gift-page .top,
  .gift-page .gift-hero,
  .gift-page .gift__form,
  .gift-page .foot { display: none !important; }
  .gift-page { background: #fff; }
  .gift-page .section { padding: 0; }
  .gift-page .wrap { max-width: none; padding: 0; }
  .gift-page .gift__grid { display: block; }
  .gift-page .gift__preview { position: static; }
  .gift-page .voucher { box-shadow: none; border-radius: 0; width: 100%; break-inside: avoid; }
}
.legal { overflow-wrap: anywhere; }
.legal h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
}
.legal h3 { font-size: 1.2rem; margin-top: 0.6rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul.index { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.legal ul.m-elements { padding-left: 1.2rem; }
.legal a { text-decoration-thickness: 1.5px; }

/* ---------- 404: Falscher Bund ---------- */

.lost {
  min-height: calc(100vh - 4rem);
  display: grid;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--marker);
}
.lost__code {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  height: 7rem;
  margin-bottom: 2.5rem;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1.5px, transparent 1.5px calc(100% / 6));
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(2rem, 1rem + 4vw, 3.5rem);
  line-height: 1;
}
.lost__code span { background: var(--marker); padding-inline: 0.15em; }
.lost__code span:nth-child(2) { transform: translateY(1.15rem); background: var(--pink); }
.lost h1 {
  font-size: clamp(2.8rem, 1rem + 7.4vw, 6rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.lost__text { margin-top: 1.2rem; max-width: 44ch; font-size: 1.15rem; }
.lost__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.lost .play { padding-left: 1.15rem; text-decoration: none; }

/* ---------- WhatsApp ---------- */

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--marker); }

.wa-float {
  position: fixed;
  z-index: 60;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.4rem;
  padding: 0.8rem 1.3rem 0.8rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--marker);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgb(17 18 16 / 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem) scale(0.96);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s;
}
.wa-float:hover { background: var(--ink); color: var(--marker); }
.wa-float .icon { width: 1.4em; height: 1.4em; }
@media print { .wa-float { display: none; } }

/* ---------- Wartungsseite ---------- */

.brand--static { margin-bottom: clamp(2rem, 6vw, 4rem); }
.tune {
  position: relative;
  width: min(100%, 26rem);
  height: 3rem;
  margin-bottom: 2rem;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 10%) 0 50% / 100% 50% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat;
}
.tune::after {
  content: "";
  position: absolute;
  left: calc(50% - 1rem); width: 2rem;
  top: 0; bottom: 0;
  background: rgb(17 18 16 / 0.12);
}
.tune__needle {
  position: absolute;
  z-index: 1;
  left: calc(50% - 2px);
  top: -0.3rem; bottom: -0.3rem;
  width: 4px;
  border-radius: 2px;
  background: var(--pink);
  transform: translateX(-5.5rem);
}
@media (prefers-reduced-motion: no-preference) {
  .tune__needle { animation: tuning 3.2s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate; }
}
@keyframes tuning {
  0% { transform: translateX(-5.5rem); }
  55% { transform: translateX(1.2rem); }
  80% { transform: translateX(-0.6rem); }
  100% { transform: translateX(0); }
}
.lost .play { gap: 0; }
.wartung__legal { margin-top: 3rem; font-size: 0.9rem; }
.wartung-page { background: var(--marker); }
.wartung-page .lost { min-height: 100vh; }
