/* Instrumenten-Seiten (/instrumente/…) – baut auf styles.css auf */

.ix { background: var(--bg); color: var(--fg); }
.ix-shell { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Kopfbereich: Markenviolett wie auf der Startseite ---------- */
.ix-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(ellipse 85% 70% at 70% 30%, oklch(0.62 0.21 320) 0%, oklch(0.42 0.20 295) 38%, oklch(0.26 0.14 285) 75%, oklch(0.18 0.10 285) 100%);
}
.ix-hero .hero-rays {
  background: repeating-conic-gradient(from 0deg at 72% 32%, rgba(255,255,255,0.10) 0deg 4deg, transparent 4deg 14deg, rgba(255,255,255,0.06) 14deg 17deg, transparent 17deg 28deg);
  -webkit-mask: radial-gradient(ellipse 80% 75% at 72% 32%, #000 10%, transparent 75%);
  mask: radial-gradient(ellipse 80% 75% at 72% 32%, #000 10%, transparent 75%);
}
.ix-hero .hero-glow {
  background:
    radial-gradient(ellipse 30% 30% at 72% 30%, oklch(0.78 0.18 340 / 0.45), transparent 70%),
    radial-gradient(circle 180px at 72% 28%, oklch(0.85 0.15 340 / 0.40), transparent 70%);
}
.ix-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .ix-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.ix-hero .pill {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
}
.ix-hero .pill .dot { background: oklch(0.88 0.16 340); box-shadow: 0 0 0 4px oklch(0.88 0.16 340 / 0.25); }
.ix-hero h1 {
  margin: 20px 0 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(38px, 5.4vw, 68px);
  text-wrap: balance;
  text-shadow: 0 1px 30px rgba(0,0,0,0.15);
}
.ix-hero .lead { color: rgba(255,255,255,0.80); margin: 22px 0 0; max-width: 34em; }
.ix-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ix-hero .btn-primary { background: #fff; color: oklch(0.26 0.14 285); }
.ix-hero .btn-primary:hover { background: rgba(255,255,255,0.92); }
.ix-hero .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); color: #fff; }
.ix-hero .btn-ghost:hover { background: rgba(255,255,255,0.16); }
.ix-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 13px; color: rgba(255,255,255,0.66); }
.ix-meta span::before { content: "✓"; margin-right: 8px; color: oklch(0.88 0.14 340); }

/* Animierte Saiten-Spuren */
.ix-lanes { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25)); }
.ix-lanes .g-card { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.20); }
.ix-lanes .lane { stroke: rgba(255,255,255,0.28); stroke-width: 1.5; }
.ix-lanes .line { fill: rgba(255,255,255,0.85); }
.ix-lanes .glow { fill: oklch(0.85 0.16 340 / 0.35); filter: blur(6px); }
.ix-lanes .str { fill: rgba(255,255,255,0.75); font: 600 14px var(--font-mono); text-anchor: middle; }
.ix-note { animation: ix-fall 4.8s linear infinite; animation-delay: var(--d); }
.ix-note rect { fill: rgba(255,255,255,0.9); animation: ix-lit 4.8s linear infinite; animation-delay: var(--d); }
.ix-note text { fill: oklch(0.30 0.14 285); font: 700 13px var(--font-sans); text-anchor: middle; }
@keyframes ix-fall {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  78% { transform: translateY(196px); opacity: 1; }
  92% { transform: translateY(196px); opacity: 1; }
  100% { transform: translateY(196px); opacity: 0; }
}
@keyframes ix-lit {
  0%, 76% { fill: rgba(255,255,255,0.9); }
  80%, 100% { fill: oklch(0.82 0.17 340); }
}

/* ---------- Instrument-Wahl ---------- */
.ix-switch { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 0; }
.ix-switch a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.ix-switch a:hover { border-color: var(--accent); color: var(--fg); }
.ix-switch a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Abschnitte Text + Bild ---------- */
.ix-row {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .ix-row { grid-template-columns: 1fr 1fr; }
  .ix-row.flip .ix-visual { order: -1; }
}
.ix-tag { font: 500 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.ix-row h2, .ix-block h2 {
  margin: 12px 0 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-size: clamp(28px, 3.2vw, 42px);
  text-wrap: balance;
}
.ix-row .lead { margin: 16px 0 0; }
.ix-row p { color: var(--fg-soft); line-height: 1.6; }
.ix-row p a, .ix-block p a { color: var(--accent); }
.ix-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
}
.ix-visual::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.ix-visual > * { position: relative; }
.ix-visual img { width: 100%; max-width: 520px; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.ix-visual figcaption { margin-top: 14px; font-size: 13px; color: var(--fg-muted); text-align: center; }
.ix-visual svg { width: 100%; max-width: 460px; height: auto; display: block; }

/* Griffbrett */
.ix-board .wood { fill: #2a2530; }
.ix-board .nut { fill: #e9e3d6; }
.ix-board .string { stroke: #d9d1bf; }
.ix-board .lbl { fill: var(--fg-muted); font: 600 13px var(--font-mono); text-anchor: middle; }
.ix-board .g-dot { fill: rgba(255,255,255,0.18); }
.ix-board .g-dot-t { fill: rgba(255,255,255,0.55); font: 600 11px var(--font-sans); text-anchor: middle; }
.ix-board .lit { fill: var(--accent); filter: drop-shadow(0 0 8px color-mix(in oklab, var(--accent) 70%, transparent)); }
.ix-board .lit-t { fill: #fff; font: 700 13px var(--font-sans); text-anchor: middle; }
.ix-pulse { animation: ix-pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ix-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Stimmgerät */
.ix-tuner .arc { fill: none; stroke: var(--line-strong); stroke-width: 10; stroke-linecap: round; }
.ix-tuner .ok { fill: none; stroke: oklch(0.72 0.15 160); stroke-width: 10; stroke-linecap: round; }
.ix-tuner .tick { stroke: var(--fg-faint); stroke-width: 2; }
.ix-tuner .needle { stroke: var(--fg); stroke-width: 3; stroke-linecap: round; transform-origin: 180px 170px; animation: ix-needle 3.2s ease-in-out infinite; }
.ix-tuner .hub { fill: var(--fg); }
.ix-tuner .g-note { fill: var(--fg); font: 700 44px var(--font-sans); text-anchor: middle; }
.ix-tuner .hz { fill: var(--fg-muted); font: 500 12px var(--font-mono); text-anchor: middle; }
.ix-tuner .chip { fill: var(--bg-elev); stroke: var(--line-strong); }
.ix-tuner .chip-on { fill: var(--accent); stroke: var(--accent); }
.ix-tuner .chip-t { fill: var(--fg-soft); font: 600 13px var(--font-mono); text-anchor: middle; }
.ix-tuner .chip-on-t { fill: #fff; }
@keyframes ix-needle {
  0% { transform: rotate(-28deg); }
  45% { transform: rotate(6deg); }
  60%, 100% { transform: rotate(0deg); }
}

/* ---------- Schritte / Instrument-Karten ---------- */
.ix-block { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.ix-block > .lead { margin: 14px 0 0; max-width: 40em; }
.ix-cards { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .ix-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .ix-cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ix-cards.four { grid-template-columns: repeat(4, 1fr); } }
.ix-card {
  display: block;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
a.ix-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.ix-num {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 15px var(--font-mono);
}
.ix-card h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.ix-card p { margin: 0; color: var(--fg-soft); line-height: 1.55; font-size: 15px; }
.ix-strings { display: flex; gap: 6px; margin-top: 16px; }
.ix-strings span {
  min-width: 28px; padding: 4px 6px;
  border-radius: 6px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  font: 600 12px var(--font-mono);
  text-align: center;
  color: var(--fg-soft);
}
.ix-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- Fragen ---------- */
.ix-faq .faq { max-width: 820px; }

/* ---------- Abschluss ---------- */
.ix-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: clamp(56px, 8vw, 96px) 0;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-xl);
  color: #fff;
  background: radial-gradient(ellipse 90% 120% at 85% 0%, oklch(0.62 0.21 320) 0%, oklch(0.42 0.20 295) 45%, oklch(0.24 0.13 285) 100%);
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) { .ix-cta { grid-template-columns: 1fr auto; } }
.ix-cta h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.ix-cta p { margin: 12px 0 0; color: rgba(255,255,255,0.78); }
.ix-cta .btn-primary { background: #fff; color: oklch(0.26 0.14 285); }
.ix-cta .btn-primary:hover { background: rgba(255,255,255,0.92); }

@media (prefers-reduced-motion: reduce) {
  .ix-note, .ix-note rect, .ix-pulse, .ix-tuner .needle { animation: none; }
  .ix-note { transform: translateY(var(--y, 0)); opacity: 1; }
}

/* Symbole in den Funktions-Karten */
.ix-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.ix-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Google Play: Hinweis, solange die App dort noch nicht steht (wie Startseite) */
.ix-cta .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); color: #fff; }
.ix-cta .btn-ghost:hover { background: rgba(255,255,255,0.16); }
.ix-cta .ix-ctas { margin-top: 0; }

/* Kopfzeile der Startseite (fest, transparent über dem violetten Kopfbereich) */
.ix-hero { padding-top: calc(clamp(56px, 8vw, 104px) + 64px); }

/* ---------- Kategorien und Übersicht (Okt. 2026) ---------- */
.ix-cards.two { }
@media (min-width: 720px) { .ix-cards.two { grid-template-columns: repeat(2, 1fr); } .ix-cards.one { grid-template-columns: 1fr; } }
.ix-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ix-chips span { padding: 4px 10px; border-radius: 999px; background: var(--bg-sunk); border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-soft); }

/* Kacheln im Kopf der Übersicht */
.ix-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .ix-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ix-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 92px; padding: 14px; border-radius: 16px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; text-decoration: none; backdrop-filter: blur(8px);
  transition: background .15s, transform .15s;
}
.ix-tile:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.ix-tile-n { font-weight: 600; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.ix-tile-c { font: 500 11.5px var(--font-mono); color: rgba(255,255,255,0.66); }

/* Kopf-Grafiken auf Violett */
.ix-lanes .h-key { fill: rgba(255,255,255,0.92); stroke: rgba(40,20,80,0.25); }
.ix-lanes .h-black { fill: #241a3d; }
.ix-note.l rect { fill: oklch(0.78 0.12 240); animation: none; }
.ix-lanes .h-tine { fill: rgba(255,255,255,0.78); }
.ix-lanes .h-hole { fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 2; }
.ix-lanes .h-hole-c { fill: #fff; }
.ix-lanes .h-tube { fill: rgba(255,255,255,0.14); stroke: rgba(255,255,255,0.55); stroke-width: 1.5; }
.ix-lanes .h-big { fill: #fff; font: 700 52px var(--font-sans); text-anchor: middle; }
.ix-lanes .h-chip { fill: rgba(255,255,255,0.10); stroke: rgba(255,255,255,0.28); }
.ix-lanes .h-chip-t { fill: #fff; font: 600 13px var(--font-sans); text-anchor: middle; }
.ix-lanes .h-pos { fill: oklch(0.82 0.17 340); }
.ix-lanes .h-pos-t { fill: oklch(0.26 0.14 285); font: 700 13px var(--font-sans); text-anchor: middle; }
.ix-lanes .h-voice { fill: rgba(255,255,255,0.7); font: 600 14px var(--font-sans); }
.ix-lanes .h-voice-on { fill: #fff; }
.ix-lanes .h-bar { fill: rgba(255,255,255,0.45); }
.ix-lanes .h-bar-on { fill: oklch(0.82 0.17 340); }
.ix-lanes .h-bar-off { fill: rgba(255,255,255,0.14); }
.ix-lanes .h-bar, .ix-lanes .h-bar-on { transform-box: fill-box; transform-origin: center; animation: ix-pegel 1.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ix-pegel { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1.15); } }
.h-blink { animation: ix-blink 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes ix-blink { 0%, 100% { opacity: 0.35; } 20%, 45% { opacity: 1; } }
.ix-lanes .h-tine.h-blink { fill: oklch(0.82 0.17 340); }
.ix-lanes .h-chip.h-blink { fill: rgba(255,255,255,0.22); animation-duration: 2.4s; }
.ix-hero-tuner { background: var(--bg-elev); border-radius: 22px; padding: 18px; max-width: 420px; margin: 0 auto; box-shadow: 0 30px 60px rgba(0,0,0,0.25); }

/* Grafiken in den Abschnitten */
.ix-board .fret { stroke: #8f8798; stroke-width: 2; }
.ix-board .inlay { fill: rgba(255,255,255,0.35); }
.nn-svg .g-left { fill: oklch(0.62 0.13 240); }
.nn-svg .g-key-left { fill: oklch(0.62 0.13 240); }
.nn-svg .g-num { fill: var(--fg-muted); font: 600 12px var(--font-mono); text-anchor: middle; }
.nn-svg .g-num-dot { fill: var(--fg); }
.nn-svg .g-hl { fill: var(--accent-soft); }
.nn-svg .g-hole { fill: none; stroke: var(--fg); stroke-width: 1.6; }
.nn-svg .g-hole-c { fill: var(--fg); }
.nn-svg .g-tube { fill: var(--bg-sunk); stroke: var(--fg-muted); stroke-width: 1.4; }
.nn-svg .g-big { fill: var(--accent); font: 700 34px var(--font-sans); text-anchor: middle; }
.nn-svg .g-kz { fill: var(--fg); font: 600 20px var(--font-mono); text-anchor: middle; }
.nn-svg .g-kz-dot { fill: var(--fg); }
.nn-svg .g-tabtxt { fill: var(--fg); font: 500 15px var(--font-mono); text-anchor: start; }
.nn-svg .g-voice { fill: var(--fg-soft); font: 600 13px var(--font-sans); text-anchor: start; }
.nn-svg .g-voice-on { fill: var(--accent); }
.nn-svg .g-track { stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; }
.nn-svg .g-track-on { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.nn-svg .g-track-mid { stroke: var(--fg-muted); stroke-width: 4; stroke-linecap: round; }
.nn-svg .g-knob { fill: var(--bg-elev); stroke: var(--fg-muted); stroke-width: 1.5; }
.nn-svg .g-knob-on { fill: var(--accent); }
.nn-svg .g-sw { fill: var(--line-strong); }
.nn-svg .g-sw-on { fill: oklch(0.72 0.15 160); }
.nn-svg .g-sw-k { fill: #fff; }
.nn-svg .g-pedal { fill: var(--bg-sunk); stroke: var(--line-strong); }
.nn-svg .g-pedal-k { fill: var(--bg-elev); stroke: var(--line-strong); }
.nn-svg .g-pedal-on { fill: var(--accent-soft); stroke: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .h-blink, .ix-lanes .h-bar, .ix-lanes .h-bar-on { animation: none; opacity: 1; }
}
.ix-lanes .str-dot { fill: rgba(255,255,255,0.8); }

/* Verlinkte Instrumente in den Familienkarten (Übersicht) */
.ix-chips a { padding: 4px 10px; border-radius: 999px; background: var(--bg-sunk); border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-soft); text-decoration: none; transition: border-color .15s, color .15s; }
.ix-chips a:hover { border-color: var(--accent); color: var(--fg); }
.ix-card h3 a { color: inherit; text-decoration: none; }
.ix-card h3 a:hover { color: var(--accent); }
.ix-card a.ix-more { text-decoration: none; }
