/* Farben aus der App (soundassist/ui.html) */
:root {
  --bg: #1C2129;
  --bg-deep: #161A21;
  --panel: #252B35;
  --raised: #2E3542;
  --line: #3A4250;
  --text: #E4E7EB;
  --muted: #8E97A5;
  --accent: #E9A23B;
  --accent-ink: #1C2129;
  --ok: #62C370;
  --hot: #E1574C;
  --radius: 12px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--raised);
  padding: .1em .4em;
  border-radius: 5px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .75em 1.3em;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  font: inherit; font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #374050; border-color: #4a5364; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #F2B150; border-color: #F2B150; }
.btn-small { padding: .45em 1em; font-size: .92rem; }

.eyebrow {
  color: var(--accent);
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: .8em;
}

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(28, 33, 41, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav > a:not(.btn):hover { color: var(--text); }
@media (max-width: 1080px) {
  .nav > a:not(.btn) { display: none; }
}

/* Sprachmenü oben rechts */
.lang, .menu { position: relative; }
.lang summary, .menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px;
  padding: .45em .7em; border-radius: 9px; border: 1px solid var(--line);
  color: var(--muted); font-size: .88rem; font-weight: 700; letter-spacing: .04em;
}
.lang summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary, .menu summary:hover, .menu[open] summary { color: var(--text); border-color: #4a5364; }
.lang summary:focus-visible, .menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang summary svg, .menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul, .menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none; margin: 0; padding: 6px; min-width: 190px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .6);
}
.lang li a, .menu li a {
  display: block; padding: .5em .8em; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.lang li a:hover, .menu li a:hover { background: var(--raised); }
.lang li a[aria-current="true"], .menu li a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.menu ul { min-width: 230px; max-height: calc(100vh - 90px); overflow-y: auto; }
/* Kopfzeile: Download, Menü und Sprache gleich hoch – auch wenn das Menü nur das Symbol zeigt */
.nav > .btn-small, .lang summary, .menu summary { box-sizing: border-box; height: 38px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 520px) {
  .nav > .btn-small { display: none; }                   /* Download steht im Menü und groß darunter */
}
@media (max-width: 600px) {
  .menu summary span { display: none; }                  /* auf dem Handy nur das Symbol … */
  .menu summary { width: 38px; padding: 0; justify-content: center; }   /* … als quadratischer Knopf */
  .topbar-inner { gap: 10px; }
  .nav { gap: 10px; }
}
.legal-note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(233, 162, 59, .13), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(91, 141, 239, .08), transparent 60%);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) {
  .hero { padding: 96px 0 80px; }
  .hero-grid { grid-template-columns: 5fr 7fr; }
}
.lead { font-size: 1.15rem; color: #C4CAD3; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; margin: 0; }
.hero-meta span::before { content: "✓"; color: var(--ok); margin-right: .4em; }
.hero-meta #hero-version::before { content: none; }
.hero-shot { margin: 0; }
.hero-shot img, .shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .02);
}
@media (min-width: 980px) {
  .hero-shot { margin-right: -120px; }
}

/* Leiste mit Kurz-Vorteilen */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.strip-grid { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 640px) { .strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }
.strip strong { display: block; margin-bottom: 2px; }
.strip span { color: var(--muted); font-size: .93rem; }

/* Abschnitte */
.section { padding: 80px 0; }
@media (min-width: 980px) { .section { padding: 112px 0; } }
.section-alt { background: var(--bg-deep); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }

/* Funktionen */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: #4a5364; transform: translateY(-2px); }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.ico {
  width: 40px; height: 40px; padding: 8px;
  border-radius: 10px;
  background: rgba(233, 162, 59, .12);
  stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 14px;
}

/* Unterstützte Pulte */
.consoles { display: grid; gap: 16px; }
@media (min-width: 640px) { .consoles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .consoles { grid-template-columns: repeat(3, 1fr); } }
.console { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.console h3 { margin-bottom: 2px; }
.console-models { color: var(--accent); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.console p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }
.console-demo { border-style: dashed; }
.badge {
  display: inline-block; vertical-align: middle;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-ink); background: var(--accent); padding: .15em .55em; border-radius: 5px;
}
.consoles-note { color: var(--muted); font-size: .9rem; margin: 24px 0 0; max-width: 820px; }

/* Bild + Text */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; }
  .split-rev .split-copy { order: 2; }
}
.split-copy p { color: #C4CAD3; }
.shot { margin: 0; }
.devices { position: relative; padding-bottom: 6%; }
.devices img {
  border: 0; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .55));
}
.dev-ipad { width: 90%; }
.dev-iphone { position: absolute; right: 0; bottom: 0; width: 27%; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: #C4CAD3; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(98, 195, 112, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%2362C370' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; margin-bottom: 14px;
}
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Sicherheit */
.safety { display: grid; gap: 16px; }
@media (min-width: 820px) { .safety { grid-template-columns: repeat(3, 1fr); } }
.safety > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.safety p { color: var(--muted); margin: 14px 0 0; font-size: .95rem; }
.pill {
  display: inline-block; padding: .35em .9em; border-radius: 7px;
  background: var(--raised); border: 1px solid var(--line);
  font-weight: 700; font-size: .92rem;
}
.pill-stop { background: var(--raised); }
.pill-reset { background: var(--hot); border-color: var(--hot); color: #fff; }

/* Download */
.download {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(233, 162, 59, .10), transparent 65%),
    var(--bg);
}
.download .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.dl-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }
.dl {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 20px;
  text-align: center;
}
.dl.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -25px rgba(233, 162, 59, .45); }
.dl.is-current h3::after {
  content: attr(data-badge); display: inline-block; vertical-align: middle; margin-left: .6em;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-ink); background: var(--accent); padding: .2em .6em; border-radius: 5px;
}
.dl-ico { width: 44px; height: 44px; margin: 0 auto 4px; fill: var(--text); }
.dl h3 { margin: 0; font-size: 1.3rem; }
.dl-sub { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.dl-btn { width: 100%; }
.dl-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.dl-size { color: var(--muted); font-size: .82rem; margin: 0; min-height: 1.3em; }
.dl details { text-align: left; margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.dl summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.dl summary:hover { color: var(--text); }
.dl details p { font-size: .9rem; color: #C4CAD3; margin: 10px 0 0; }
.dl-note { text-align: center; color: var(--muted); font-size: .92rem; margin: 28px 0 0; }
.dl-note a { margin-left: .4em; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.5rem; font-weight: 400; transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: #C4CAD3; margin: 0 0 20px; }

/* Fußzeile */
.footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-deep); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-note { color: var(--muted); font-size: .85rem; margin: 0; flex: 1 1 320px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--text); }

/* Rechtliche Unterseiten */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: #C4CAD3; }
.todo { background: rgba(229, 197, 74, .12); border: 1px dashed #E5C54A; border-radius: 8px; padding: 12px 16px; color: #E5C54A; }
