/* ==========================================================================
   MorseFlash – Ergänzung zu ../../css/style.css (Grundlayout, Schriften, Kopf, Fuß)
   Farben aus der App (morseflash-ios/styles.js)
   ========================================================================== */

:root {
  --mf-base: #141516;
  --mf-panel: #1e2022;
  --mf-raised: #2e3033;
  --mf-border: #383a3d;
  --mf-text: #f5f3ec;
  --mf-muted: #a7a9ae;
  --mf-amber: #ffca42;
  --mf-amber-deep: #9a6f00;
  --mf-ink: #262114;
  --mf-mint: #94e7bd;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.site-header .home-link { font-weight: 600; text-decoration: none; color: var(--slate); }
.site-header .home-link:hover { color: var(--blue); }

/* Kopfbereich in den Farben der App */
.mf-hero { background: var(--mf-base); color: var(--mf-text); padding: clamp(3rem, 8vw, 6rem) 0; overflow: hidden; }
.mf-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.mf-app { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.mf-app img { width: 4.5rem; height: 4.5rem; border-radius: 22%; box-shadow: 0 0 0 1px var(--mf-border); }
.mf-app p { margin: 0; color: var(--mf-muted); font-weight: 500; line-height: 1.4; }

/* Wortmarke wie in der App: ·−· morseflash. – der Punkt blinkt SOS */
.mf-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em .45em; margin: 0 0 1rem;
  font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--mf-text); }
.mf-title .mark { color: var(--mf-amber); letter-spacing: .02em; font-size: .9em; }
.mf-title .dot { color: var(--mf-amber); text-shadow: 0 0 .35em rgba(255, 202, 66, .9), 0 0 1em rgba(255, 202, 66, .5);
  animation: mf-sos 5.1s step-end infinite; }
.mf-claim { font-family: var(--mono); font-size: clamp(.85rem, 2vw, 1rem); letter-spacing: .08em; color: var(--mf-amber); margin-bottom: .35rem; }
.mf-claim-code { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--mf-muted); margin-bottom: 1.6rem; word-break: break-word; }
.mf-hero .hero-lead { color: #cfcdc6; font-size: 1.15rem; max-width: 36rem; margin-bottom: 2rem; }
.mf-hero .soon { background: var(--mf-panel); border-color: var(--mf-border); }
.mf-hero .soon p { color: var(--mf-text); }

@keyframes mf-sos {
  0.00%, 2.89% { opacity: 1; }
  2.94% { opacity: .22; }
  5.88%, 8.77% { opacity: 1; }
  8.82% { opacity: .22; }
  11.76%, 14.66% { opacity: 1; }
  14.71% { opacity: .22; }
  23.53%, 32.30% { opacity: 1; }
  32.35% { opacity: .22; }
  35.29%, 44.07% { opacity: 1; }
  44.12% { opacity: .22; }
  47.06%, 55.83% { opacity: 1; }
  55.88% { opacity: .22; }
  64.71%, 67.60% { opacity: 1; }
  67.65% { opacity: .22; }
  70.59%, 73.48% { opacity: 1; }
  73.53% { opacity: .22; }
  76.47%, 79.36% { opacity: 1; }
  79.41% { opacity: .22; }
  100% { opacity: .22; }
}

@media (prefers-reduced-motion: reduce) {
  .mf-title .dot { animation: none; }
}

/* Gerät mit Screenshot */
.mf-phone { margin: 0 auto; width: min(100%, 20rem); padding: .6rem; border-radius: 2.6rem; background: #2a2c2f;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(255, 202, 66, .25), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mf-phone img { width: 100%; height: auto; border-radius: 2.1rem; display: block; }

/* Abschnitts-Kicker: das Wort und darunter dasselbe Wort als Morsecode */
.section-head .mf-kicker { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--mf-amber-deep); margin-bottom: .25rem; }
.section-head .mf-kicker-code { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: var(--slate); margin-bottom: .9rem; word-break: break-word; }

/* Tempo-Legende */
.mf-paces { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.mf-paces li { padding: .35rem .8rem; border-radius: 8px; background: var(--mf-base); color: var(--mf-text); font-size: .85rem; font-weight: 600; }
.mf-paces li.on { background: var(--mf-amber); color: var(--mf-ink); }

/* Screenshots: waagerecht wischbar */
.mf-shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 16rem); gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; margin: 0; list-style: none; }
.mf-shots li { scroll-snap-align: start; }
.mf-shots figure { margin: 0; }
.mf-shots img { width: 100%; height: auto; display: block; border-radius: 1.4rem; background: var(--mf-base);
  box-shadow: 0 24px 40px -26px rgba(20, 21, 22, .8), 0 0 0 1px var(--line); }
.mf-shots figcaption { margin-top: .9rem; }
.mf-shots strong { display: block; font-weight: 700; }
.mf-shots span { color: var(--slate); font-size: .95rem; }

/* Fragen */
.mf-faq { max-width: 48rem; }
.mf-faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.mf-faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.mf-faq details p { color: var(--slate); margin: .7rem 0 0; }

.mf-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Weitere Apps */
.mf-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.mf-more li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.25rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; }
.mf-more img, .mf-more-noicon { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.mf-more-noicon { display: grid; place-items: center; background: var(--blue-deep); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; }
.mf-more h3 { font-size: 1.15rem; font-weight: 700; margin: .1rem 0 .35rem; }
.mf-more p { color: var(--slate); font-size: .98rem; margin: 0 0 .8rem; }
.mf-store { font-weight: 600; color: var(--blue); text-decoration: none; }
.mf-store::after { content: " →"; }
.mf-store:hover { text-decoration: underline; }
.mf-wip { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .65rem; border-radius: 999px;
  background: var(--board); color: #fff; font-size: .8rem; font-weight: 700; }
.mf-wip i { width: .45rem; height: .45rem; border-radius: 50%; background: #f5c542; }
.mf-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 900px) {
  .mf-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .mf-phone { width: min(100%, 17rem); }
}
