/* KeyboardBacklight – Website
   Farben aus dem App-Icon: Nachthimmel (Indigo) und warmes Tastenlicht (Bernstein). */

@property --b {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --bg: #07091a;
  --bg-2: #0c1030;
  --indigo: #2a3170;
  --surface: rgb(255 255 255 / 0.035);
  --surface-2: rgb(255 255 255 / 0.06);
  --border: rgb(255 255 255 / 0.09);
  --text: #eef0fa;
  --muted: #a4aac8;
  --faint: #6f7596;
  --amber: #ffd27a;
  --amber-2: #ffb347;
  --glow: #ffe9b8;
  --mac-blue: #0a84ff;
  --radius: 18px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 50% -180px, rgb(42 49 112 / 0.75), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap-narrow { --wrap: 780px; }
.ic { width: 18px; height: 18px; flex: none; }

/* Tastenkappen im Fließtext */
.kc {
  display: inline-grid; place-items: center;
  width: 1.7em; height: 1.45em; margin: 0 0.1em;
  vertical-align: -0.3em;
  background: linear-gradient(#26272e, #17181c);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.3em;
  box-shadow: 0 0 14px rgb(255 210 122 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.07);
  color: var(--glow);
}
.kc svg { width: 0.95em; height: 0.95em; filter: drop-shadow(0 0 4px rgb(255 220 160 / 0.8)); }
.k {
  display: inline-block; min-width: 1.6em; padding: 0 0.35em; margin: 0 0.08em;
  font: 600 0.82em/1.6 var(--font); text-align: center;
  background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #221603;
  background: linear-gradient(180deg, var(--glow), var(--amber) 45%, var(--amber-2));
  box-shadow: 0 8px 30px rgb(255 179 71 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.6);
}
.btn-primary:hover { box-shadow: 0 10px 38px rgb(255 179 71 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.6); }
.btn-ghost { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.1); }
.btn-sm { padding: 7px 14px; font-size: 14px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(7 9 26 / 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
/* Sprachwahl DE | EN */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.lang-switch a { padding: 3px 9px; border-radius: 999px; color: var(--muted); }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current] { color: var(--bg); background: var(--amber); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 480px) {
  .nav-inner { gap: 12px; }
  .nav-inner > .btn { padding: 7px 9px; }
  .nav-inner > .btn span { display: none; }
}

/* Hero */
.hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: hidden; }
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 83% 31%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 81%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 83%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 19% 47%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 51% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 12%, #fff 50%, transparent 51%);
  mask-image: linear-gradient(#000 40%, transparent);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-icon {
  width: 152px; height: 152px; margin-bottom: 26px;
  filter: drop-shadow(0 18px 50px rgb(255 179 71 / 0.28));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.eyebrow {
  color: var(--amber); font-size: 14px; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(34px, 7.4vw, 76px); font-weight: 750; letter-spacing: -0.035em; hyphens: manual; overflow-wrap: break-word; }
.glow-text {
  background: linear-gradient(180deg, #fff6e0, var(--amber) 60%, var(--amber-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgb(255 190 90 / 0.35));
}
.lead { max-width: 690px; margin-top: 22px; color: var(--muted); font-size: clamp(17px, 2.1vw, 20px); line-height: 1.6; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.meta { margin-top: 20px; color: var(--faint); font-size: 14px; }

/* Abschnitte */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 720; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 18px; }
.section-head-left { text-align: left; margin: 0; }

.card {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 16px; }

/* ——— Demo ——— */
.demo-section { padding-top: 56px; }
.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start;
}
@media (max-width: 980px) {
  .demo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .device { width: 100%; }
}

.device { container: device / inline-size; --b: 0.375; }

.screen {
  position: relative;
  aspect-ratio: 16 / 7;
  border: clamp(5px, 1.1cqi, 10px) solid #0a0b0f;
  border-bottom-width: clamp(8px, 2cqi, 18px);
  border-radius: clamp(10px, 2.4cqi, 22px) clamp(10px, 2.4cqi, 22px) 4px 4px;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 50% 120%, rgb(255 179 71 / 0.35), transparent 70%),
    radial-gradient(50% 80% at 85% 10%, rgb(94 92 230 / 0.35), transparent 70%),
    linear-gradient(180deg, #2a3170 0%, #151a45 55%, #0b0d1e 100%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 80px rgb(0 0 0 / 0.5);
  font-size: clamp(8px, 1.45cqi, 13px);
}
.menubar {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 2.05em; padding: 0 0.9em;
  background: rgb(10 12 30 / 0.35);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: #fff; white-space: nowrap;
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 1.25em; }
.mb-left strong { font-weight: 700; }
.mb-right { gap: 1em; }
.notch {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 15%; height: 100%; background: #0a0b0f; border-radius: 0 0 0.7em 0.7em;
}
.mb-ic { width: 1.35em; height: 1.35em; }
.mb-ic.mb-sq { width: 1.25em; height: 1.25em; }
.mb-ic.mb-bat { width: 2em; }
.mb-app {
  display: grid; place-items: center;
  width: 2.3em; height: 1.6em; padding: 0; border: 0; border-radius: 0.35em;
  background: transparent; color: #fff; cursor: pointer;
}
.mb-app:hover, .mb-app.is-active { background: rgb(255 255 255 / 0.2); }
.mb-app svg { width: 1.9em; height: 1.4em; }
.mb-app[hidden] { display: none; }
@container device (max-width: 560px) {
  .mb-extra { display: none; }
  .mb-left { gap: 0.9em; }
}

.hud {
  position: absolute; left: 50%; bottom: 9%;
  width: 21cqi; aspect-ratio: 1; min-width: 72px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9%;
  border-radius: 11%;
  background: rgb(40 40 48 / 0.62);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: #f2f2f5;
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.hud.is-visible { opacity: 1; transition: none; }
.hud-ic { width: 44%; height: auto; aspect-ratio: 1; }
.hud-bar { display: flex; gap: 1.1%; width: 72%; justify-content: center; }
.hud-bar i { flex: 1; aspect-ratio: 1; background: currentColor; opacity: 0.18; max-width: 7.5%; }
.hud-bar i.on { opacity: 1; }

.hinge {
  height: clamp(4px, 0.9cqi, 8px);
  margin: 0 -1.5%;
  background: linear-gradient(#3a414f, #1c2028);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.deck {
  position: relative;
  margin: 0 -1.5%;
  padding-top: clamp(10px, 2.2cqi, 22px);
  background: linear-gradient(180deg, #2b313d, #20242d 60%, #1c2028);
  border-radius: 0 0 clamp(12px, 3cqi, 28px) clamp(12px, 3cqi, 28px);
  overflow: hidden;
  display: flex; justify-content: center;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}
@container device (max-width: 620px) {
  .deck {
    -webkit-mask-image: linear-gradient(#000 60%, transparent 100%), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(#000 60%, transparent 100%), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-composite: intersect;
  }
}

/* Tastatur: Breite mindestens 620 px, auf schmalen Bildschirmen mittig um F6/F7 beschnitten */
.kb {
  flex: none;
  width: max(96%, 620px);
  container: kb / inline-size;
  padding-bottom: 8px;
  transition: --b 0.28s ease-out;
}
.kb-inner {
  position: relative;
  display: flex; flex-direction: column; gap: 0.8cqi;
  padding: 1.1cqi;
  background: #121419;
  border-radius: 1.3cqi 1.3cqi 0 0;
  font-size: 1.28cqi;
}
/* Lichtschein unter den Tasten */
.kb-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 90% at 50% 40%, rgb(255 244 225 / 0.26), transparent 75%);
  opacity: var(--b);
}
.row { display: flex; gap: 0.8cqi; }
.key {
  --lit: rgb(255 250 240 / calc(0.26 + var(--b) * 0.74));
  position: relative; flex: var(--w, 1) 1 0; min-width: 0;
  height: 5.55cqi;
  padding: 0; border: 0; border-radius: 0.6cqi;
  background: linear-gradient(180deg, #1d1e23, #141519);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 0.12cqi 0 rgb(0 0 0 / 0.7),
    0 0 calc(var(--b) * 1.8cqi) rgb(255 240 215 / calc(var(--b) * 0.32));
  color: var(--lit);
  font: 500 1em/1 var(--font);
  text-shadow: 0 0 calc(var(--b) * 0.7em) rgb(255 236 200 / calc(var(--b) * 0.95));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.06s, background 0.1s;
}
.key:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.key.is-pressed { transform: translateY(0.12cqi); background: linear-gradient(180deg, #17181c, #111215); }
.key .lg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.key .lg2 { flex-direction: column; gap: 0.35em; font-size: 0.92em; }
.key .lg-l { justify-content: flex-start; align-items: flex-end; padding: 0 0 0.7em 0.8em; font-size: 0.9em; }
.key .lg-r { justify-content: flex-end; align-items: flex-end; padding: 0 0.8em 0.7em 0; font-size: 1.05em; }
.key .lg-big { font-size: 1.25em; }
.key.fn .lg { flex-direction: column; justify-content: center; gap: 0.3em; }
.key.fn svg {
  width: 1.8cqi; height: 1.8cqi;
  filter: drop-shadow(0 0 calc(var(--b) * 0.5cqi) rgb(255 236 200 / calc(var(--b) * 0.9)));
}
.key.fn small { font-size: 0.72em; opacity: 0.85; }
.key.touchid { cursor: default; background: linear-gradient(180deg, #16171b, #101114); }
.key.touchid::after {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.06);
}
/* ISO-Enter über zwei Reihen */
.key.enter-top { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.key.enter-top::after {
  content: ""; position: absolute; left: 25.5%; right: 0; top: 100%; height: 0.9cqi;
  background: #141519;
}
.key.enter-bottom { border-top-left-radius: 0; border-top-right-radius: 0; background: #141519; }

/* Belegte Tasten */
.key .tag {
  display: none;
  position: absolute; left: 50%; bottom: calc(100% + 0.55cqi); transform: translateX(-50%);
  padding: 0.18cqi 0.7cqi; border-radius: 99px;
  background: var(--amber); color: #2a1a00;
  font: 700 max(9px, 1.05cqi)/1.35 var(--font); letter-spacing: 0.01em; white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 0 1.6cqi rgb(255 190 90 / 0.55);
  z-index: 2;
}
.key.is-bound { box-shadow: 0 0 0 0.16cqi rgb(255 210 122 / 0.75), 0 0 1.6cqi rgb(255 190 90 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.06); }
.key.is-bound .tag { display: block; }
.key.enter-bottom .tag { display: none !important; }
.key.tag-left .tag { left: auto; right: 0; transform: none; }
.key.tag-right .tag { left: 0; transform: none; }
.key.tag-left.tag-right .tag { left: 50%; right: auto; transform: translateX(-50%); }
.kb.is-learning .key:not(.touchid):hover { box-shadow: 0 0 0 0.16cqi var(--mac-blue); }
.kb.hint .key.is-bound { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  50% { box-shadow: 0 0 0 0.3cqi rgb(255 210 122 / 0.9), 0 0 3cqi rgb(255 190 90 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.06); }
}

.demo-status {
  margin-top: 16px; min-height: 1.6em;
  color: var(--muted); font-size: 15px; text-align: center;
}
.demo-status b { color: var(--text); font-weight: 600; }

/* Einstellungsfenster wie in macOS (dunkel) */
.popover-wrap { position: relative; }
.popover-caption { margin: 0 0 10px 4px; color: var(--faint); font-size: 14px; }
.popover {
  width: 300px; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  background: rgb(38 38 44 / 0.9);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 12px;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.8), 0 24px 60px rgb(0 0 0 / 0.55);
  color: #e9e9ee;
  font: 13px/1.3 var(--font);
  transition: box-shadow 0.3s;
}
.popover.is-flash { box-shadow: 0 0 0 2px var(--mac-blue), 0 24px 60px rgb(0 0 0 / 0.55); }
.popover strong { font-weight: 700; }
.popover hr { width: 100%; height: 1px; margin: 0; border: 0; background: rgb(255 255 255 / 0.1); }
.po-row { display: flex; align-items: center; gap: 8px; }
.po-head { justify-content: space-between; }
.po-sub { font-weight: 600 !important; }
.po-ic { width: 16px; height: 16px; color: #9a9aa3; flex: none; }
.po-slider output { width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.po-caption { color: #9a9aa3; font-size: 11px; }
.po-indent { margin: 2px 0 0 20px; }
.po-buttons { display: flex; gap: 8px; }
.po-footer { justify-content: space-between; }
/* Unteroption „Wieder einschalten nach“ mit Aufklappmenü wie in macOS */
.po-subopt { margin: -4px 0 0 20px; gap: 6px; }
.po-select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 12px; color: #fff; cursor: pointer;
  border: 0; border-radius: 5px; padding: 2px 22px 2px 8px;
  background: rgb(255 255 255 / 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.5 4.5L4 2l2.5 2.5M1.5 7.5L4 10l2.5-2.5' fill='none' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center / 7px 11px;
}
.po-select option { color: #000; }
.po-select:disabled { opacity: 0.4; cursor: default; }
.po-select:focus-visible { outline: 2px solid var(--mac-blue); outline-offset: 2px; }

.popover input[type="range"] {
  --pct: 37.5%;
  flex: 1; min-width: 0; height: 18px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.popover input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--mac-blue) var(--pct), rgb(255 255 255 / 0.18) var(--pct));
}
.popover input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.18); }
.popover input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--mac-blue); }
.popover input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: #e6e6ea; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.4), 0 1px 3px rgb(0 0 0 / 0.5);
}
.popover input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border: 0; border-radius: 50%;
  background: #e6e6ea; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.4), 0 1px 3px rgb(0 0 0 / 0.5);
}

.check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  position: relative; width: 14px; height: 14px; flex: none; border-radius: 3.5px;
  background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.25);
}
.check input:checked + .box { background: var(--mac-blue); box-shadow: none; }
.check input:checked + .box::after {
  content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(40deg);
}
.check input:focus-visible + .box { outline: 2px solid var(--mac-blue); outline-offset: 2px; }

.mbtn {
  padding: 3px 11px; border: 0; border-radius: 5px;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.15), 0 0.5px 1px rgb(0 0 0 / 0.4);
  color: #ececf0; font: 13px/1.3 var(--font); cursor: pointer;
}
.mbtn:hover { background: rgb(255 255 255 / 0.22); }
.mbtn:active { background: rgb(255 255 255 / 0.3); }
.mbtn-sm { padding: 1px 8px; font-size: 11px; }
.mbtn-default { background: var(--mac-blue); color: #fff; }
.mbtn-default:hover { background: #2b93ff; }

.keyrow { display: flex; align-items: baseline; gap: 6px; }
.keyrow-title { width: 60px; flex: none; }
.keyrow-label { flex: 1; min-width: 0; color: #9a9aa3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.keyrow-label.is-learning { color: var(--mac-blue); }

/* Früher / heute */
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.story-card-hl { border-color: rgb(255 210 122 / 0.35); background: linear-gradient(180deg, rgb(255 210 122 / 0.09), rgb(255 210 122 / 0.02)); }
.story-keys { display: flex; gap: 10px; margin-bottom: 12px; }
.fk {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 64px; height: 60px; border-radius: 10px;
  background: linear-gradient(180deg, #1f2026, #151619);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 2px 0 rgb(0 0 0 / 0.6);
  color: #8e92a6;
}
.fk svg { width: 22px; height: 22px; }
.fk small { font-size: 10px; }
.fk-lit { color: #fff8ec; box-shadow: 0 0 0 1.5px rgb(255 210 122 / 0.75), 0 0 22px rgb(255 190 90 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.07); }
.fk-lit svg { filter: drop-shadow(0 0 5px rgb(255 226 170 / 0.9)); }
.fk em {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font: 700 11px/1.4 var(--font); font-style: normal; padding: 1px 8px; border-radius: 99px;
  background: var(--amber); color: #2a1a00; white-space: nowrap;
}
.story-card-hl .story-keys { margin-bottom: 34px; }
.story-card:not(.story-card-hl) .story-keys { margin-bottom: 34px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s, transform 0.2s; }
.feature:hover { border-color: rgb(255 210 122 / 0.3); transform: translateY(-2px); }
.f-ic {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 6px; border-radius: 11px;
  background: rgb(255 210 122 / 0.1); color: var(--amber);
  box-shadow: inset 0 0 0 1px rgb(255 210 122 / 0.2);
}
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Download */
.download {
  display: flex; align-items: center; gap: 24px;
  max-width: 880px; margin: 0 auto 18px; padding: 24px 28px;
  border-color: rgb(255 210 122 / 0.35);
  background: linear-gradient(180deg, rgb(255 210 122 / 0.09), rgb(255 210 122 / 0.02));
}
.download img { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 10px 24px rgb(255 179 71 / 0.25)); }
.download-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.download-text h3 { font-size: 21px; }
.download-text p { font-size: 15px; }
.download-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.download-more { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .download { flex-direction: column; text-align: center; padding: 26px 22px; }
}

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 880px; display: flex; flex-direction: column; gap: 18px; }
.step { position: relative; padding: 28px; display: flex; gap: 22px; min-width: 0; }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  flex: none; background: linear-gradient(180deg, var(--glow), var(--amber-2)); color: #2a1a00; font-weight: 750;
  box-shadow: 0 0 22px rgb(255 179 71 / 0.35);
}
.step .hint { font-size: 14px; color: var(--faint); }
.path { color: var(--text) !important; font-size: 15px !important; font-weight: 550; }
@media (max-width: 560px) { .step { flex-direction: column; gap: 14px; padding: 22px; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Kaffee-Hinweis unter den Installationsschritten */
.support { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; text-align: center; color: var(--muted); }
/* Buy-Me-a-Coffee-Bild (gleiches Bild wie im About-Fenster der App) */
.bmc { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.15s, filter 0.15s; }
.bmc img { display: block; width: 214px; height: auto; }
.bmc:hover { transform: translateY(-1px); filter: brightness(1.05); }
.bmc-sm img { width: 150px; }

/* Footer */
.footer { padding: 48px 0 56px; border-top: 1px solid rgb(255 255 255 / 0.06); color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer .fine { font-size: 12.5px; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .hero-icon { width: 120px; height: 120px; }
  .section { padding: 64px 0; }
  .popover { width: min(300px, 100%); }
  .popover-wrap { width: 100%; max-width: 300px; }
}

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