/* MusikRechner — "Dark Stage" design: charcoal + spotlight gold, staff-line motifs. */
:root {
  --char: #14161a; --char-deep: #0d0f12; --stage: #1d2026; --panel: #23262e;
  --gold: #e0a832; --gold-pale: #f6d98a; --gold-dim: #8a6a24;
  --paper: #ffffff; --ink: #e8e6df; --mut: #a7a398; --line: #33373f;
  --radius: 10px;
  --cond: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;
  --shadow: 0 8px 26px rgba(0,0,0,.45); --lift: 0 18px 48px rgba(0,0,0,.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--char); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 26px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 800; line-height: 1.15; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
header.site { background: rgba(13,15,18,.97); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--gold); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 15px 0; }
.brand { font-family: var(--cond); font-size: 1.45rem; font-weight: 800; color: #fff; text-decoration: none; display: inline-flex; align-items: center; text-transform: uppercase; letter-spacing: .05em; }
.brand .spot { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold-pale), var(--gold) 55%, var(--gold-dim)); margin-right: 12px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 22px rgba(224,168,50,.55); }
.brand .spot svg { width: 20px; height: 20px; fill: #14161a; }
.brand em { font-style: normal; color: var(--gold); }
nav.main a { color: var(--mut); text-decoration: none; margin-left: 22px; font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
nav.main a:hover { color: var(--gold); }
.hero { position: relative; padding: 110px 0 100px; background: url('../images/hero.webp') center/cover; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(13,15,18,.94) 30%, rgba(13,15,18,.55)); }
.hero .staffbg { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: .25; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero .kicker { display: inline-block; background: rgba(224,168,50,.14); border: 1px solid var(--gold); color: var(--gold-pale); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; padding: 9px 22px; margin-bottom: 22px; font-family: var(--mono); }
.hero h1 { font-size: 3.1rem; max-width: 720px; margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { color: var(--mut); font-size: 1.14rem; max-width: 640px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-gold { display: inline-block; background: linear-gradient(135deg, var(--gold-pale), var(--gold)); color: #14161a; text-decoration: none; padding: 16px 40px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 12px 30px rgba(224,168,50,.35); transition: transform .16s; font-family: var(--cond); font-size: 1.05rem; }
.btn-gold:hover { transform: translateY(-3px); }
.btn-ghost { display: inline-block; border: 2px solid var(--line); color: var(--ink); text-decoration: none; padding: 14px 38px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-family: var(--cond); font-size: 1.02rem; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.staffdiv { height: 34px; background: repeating-linear-gradient(180deg, transparent 0 5px, var(--gold-dim) 5px 6px, transparent 6px 11px); opacity: .4; margin: 0 auto; max-width: 1060px; }
section.block { padding: 70px 0; }
.sec-kicker { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-family: var(--mono); }
.sec-title { font-size: 2.4rem; margin: 10px 0 14px; }
.sec-sub { color: var(--mut); max-width: 720px; margin-bottom: 38px; font-size: 1.02rem; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.tcard { background: var(--stage); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-left: 5px solid var(--gold-dim); }
.tcard:hover { transform: translateY(-7px); box-shadow: var(--lift); border-left-color: var(--gold); }
.tcard .ph { height: 140px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.tcard .tx { padding: 22px 26px 26px; flex: 1; }
.tcard .no { font-family: var(--mono); font-size: .72rem; color: var(--gold); letter-spacing: .1em; font-weight: 700; }
.tcard .tx h3 { font-size: 1.25rem; margin: 8px 0 8px; }
.tcard .tx p { font-size: .93rem; color: var(--mut); margin-bottom: 14px; }
.tcard .go { font-weight: 800; color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; font-family: var(--cond); }
.tcard .go span { color: var(--gold); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; margin: 54px 0; }
.split.flip > div:first-child { order: 2; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--lift); display: block; border: 1px solid var(--line); }
.split h3 { font-size: 1.7rem; margin-bottom: 14px; }
.split p { color: var(--mut); margin-bottom: 12px; }
.split .more { font-weight: 800; color: var(--gold); text-decoration: none; border-bottom: 2px solid var(--gold); font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; font-family: var(--cond); }
.honest { background: var(--stage); border: 1px dashed var(--gold-dim); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; font-size: .93rem; color: var(--gold-pale); }
.honest strong { color: var(--gold); }
.crumbs { font-size: .85rem; color: var(--mut); margin: 24px 0 8px; font-family: var(--mono); }
.crumbs a { color: var(--gold); text-decoration: none; font-weight: 700; }
.pagehead { max-width: 800px; }
.pagehead h1 { font-size: 2.5rem; margin-bottom: 12px; }
.pagehead h1 .gold { color: var(--gold); }
.pagehead p { color: var(--mut); }
.pagehead .pimg { margin: 26px 0 0; max-width: 660px; }
.pagehead .pimg img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--lift); border: 1px solid var(--line); }
.calc { background: var(--stage); border-radius: var(--radius); padding: 38px; margin: 32px 0; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 740px; border-top: 5px solid var(--gold); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .88rem; color: var(--gold-pale); text-transform: uppercase; letter-spacing: .04em; font-family: var(--cond); }
.field input, .field select { width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 8px; font-size: 1rem; font-family: var(--mono); background: var(--char-deep); color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field input.invalid { border-color: #d9534f; background: #2a1512; }
.field .hint { font-size: .83rem; color: var(--mut); margin-top: 6px; }
.field .error { font-size: .83rem; color: #e88; margin-top: 6px; display: none; font-weight: 600; }
.btn-row { display: flex; gap: 12px; margin-top: 10px; }
button.calc-btn { background: linear-gradient(135deg, var(--gold-pale), var(--gold)); color: #14161a; border: none; padding: 16px 30px; border-radius: 8px; font-size: 1rem; font-weight: 800; cursor: pointer; flex: 1; text-transform: uppercase; letter-spacing: .05em; font-family: var(--cond); box-shadow: 0 10px 24px rgba(224,168,50,.3); transition: transform .15s; }
button.calc-btn:hover { transform: translateY(-2px); }
button.reset-btn { background: transparent; color: var(--mut); border: 2px solid var(--line); padding: 16px 26px; border-radius: 8px; cursor: pointer; font-weight: 700; text-transform: uppercase; font-family: var(--cond); }
button.reset-btn:hover { border-color: var(--mut); color: var(--ink); }
.result { display: none; margin-top: 28px; background: var(--char-deep); border-radius: 10px; padding: 30px; border: 1px solid var(--gold-dim); border-left: 6px solid var(--gold); }
.result.show { display: block; animation: encore .35s ease; }
.result .big { font-family: var(--mono); font-size: 2.1rem; font-weight: 700; color: var(--gold); }
.result .big small { font-size: 1rem; font-family: var(--sans); color: var(--mut); }
.result .rrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; font-family: var(--mono); }
.result .rrow:last-child { border-bottom: none; }
.result .rrow span:first-child { color: var(--mut); }
.result .rrow strong { color: var(--ink); }
.result .note { font-size: .85rem; color: var(--mut); margin-top: 12px; }
article.prose { margin: 40px 0; max-width: 820px; }
article.prose h2 { font-size: 1.6rem; margin: 36px 0 14px; }
article.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
article.prose p, article.prose li { margin-bottom: 10px; color: #c9c5b8; }
article.prose ul, article.prose ol { padding-left: 22px; }
article.prose a { color: var(--gold); font-weight: 700; }
table.ref { width: 100%; border-collapse: collapse; margin: 14px 0 26px; font-size: .93rem; background: var(--stage); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
table.ref th { background: var(--char-deep); color: var(--gold); padding: 12px 14px; text-align: left; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--cond); }
table.ref td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .88rem; }
table.ref tr:last-child td { border-bottom: none; }
table.ref tr:nth-child(even) td { background: #22252c; }
.example { background: #262019; border-radius: var(--radius); padding: 22px 26px; margin: 24px 0; border-left: 6px solid var(--gold); font-size: .93rem; font-family: var(--mono); color: #e8e6df; }
.example strong { color: var(--gold-pale); }
.tipbox { background: var(--stage); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; font-size: .92rem; color: var(--ink); border: 1px solid var(--line); }
.faq details { background: var(--stage); border-radius: var(--radius); margin-bottom: 12px; padding: 18px 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.faq summary { font-weight: 800; cursor: pointer; color: #fff; font-family: var(--cond); font-size: 1.08rem; text-transform: uppercase; letter-spacing: .03em; }
.faq p { margin-top: 10px; color: var(--mut); font-size: .94rem; }
.cta-band { background: linear-gradient(120deg, #0d0f12, #1d2026); border: 1px solid var(--gold-dim); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 58px 38px; text-align: center; color: var(--mut); margin: 64px 0; }
.cta-band h2 { color: #fff; font-size: 2.3rem; margin-bottom: 12px; }
.cta-band h2 .gold { color: var(--gold); }
.cta-band p { margin-bottom: 28px; }
footer.site { background: var(--char-deep); color: var(--mut); padding: 58px 0 30px; margin-top: 70px; font-size: .9rem; border-top: 3px solid var(--gold); }
footer.site .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
footer.site h4 { color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; font-family: var(--cond); }
footer.site a { color: var(--mut); text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: var(--gold); }
footer.site .brand { color: #fff; }
footer.site .bottom { border-top: 1px solid var(--line); padding-top: 22px; color: #6b675c; font-size: .82rem; font-family: var(--mono); }
@keyframes encore { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .hero { padding: 70px 0; } .hero h1 { font-size: 2.1rem; }
  .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > div:first-child { order: 0; }
  .calc { padding: 28px 22px; } .btn-row { flex-direction: column; }
  nav.main a { margin-left: 14px; } footer.site .fgrid { grid-template-columns: 1fr 1fr; }
  .pagehead h1 { font-size: 1.9rem; }
}
