/* Gemeinsame Basis: Marken-Tokens, Reset, Store-Buttons, Sprachschalter, Footer */
@font-face {
  font-family: 'Acme';
  src: url('fonts/acme.woff2') format('woff2');
  font-display: swap;
}

:root {
  --green: #93B90D;
  --green-deep: #5d7700;
  --ink: #333333;
  --cream: #F8F7F4;
  --yellow: #FFD800;
  --head: 'Acme', 'Trebuchet MS', sans-serif;
  --body: 'Trebuchet MS', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); line-height: 1.4; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Store-Buttons */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: transform .12s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store small { font-size: 11px; opacity: .85; }
.store b { font-size: 19px; font-weight: 600; white-space: nowrap; }
.store--big { width: 100%; justify-content: center; padding: 12px 18px; border-radius: 16px; }
.store--big svg { width: 34px; height: 34px; }
.store--big b { font-size: 22px; }

.app-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.store-alt { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; opacity: .8; }

/* Fliegende Bücher im Hintergrund (Textfarbe je Version über --fly-text) */
.fly { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; opacity: var(--fly-opacity, .85); }
.fly__item { position: absolute; left: 50%; top: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 96px; }
/* Buch: farbiger Einband mit Buchrücken links, Seiten als heller Rand rechts unten, Symbol auf dem Einband */
.fly__icon {
  width: 48px; height: 60px;
  display: grid; place-items: center;
  padding-left: 6px;
  border: 1.5px solid rgba(0, 0, 0, .6);
  border-radius: 3px 6px 6px 3px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .3) 0 6px, rgba(255, 255, 255, .25) 6px 7px, transparent 7px),
    var(--book, #2f6fb5);
  box-shadow: 2px 2px 0 0 #f4f1e6, 3.5px 3.5px 0 0 rgba(0, 0, 0, .6), 0 8px 14px rgba(0, 0, 0, .25);
  font-size: 24px; line-height: 1;
  overflow: hidden;
}
.fly__icon img { width: 30px; height: 30px; object-fit: contain; }
.fly__label { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.15; color: var(--fly-text, #333); }

/* Sprachschalter */
.lang { display: inline-flex; border-radius: 999px; padding: 3px; background: rgba(128, 128, 128, .18); }
.lang button {
  border: 0;
  background: none;
  color: inherit;
  font: 700 12px var(--body);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  opacity: .65;
}
.lang button[aria-pressed="true"] { background: var(--green); color: #1c2400; opacity: 1; }

/* Footer */
.foot { margin-top: 28px; text-align: center; font-size: 13px; display: grid; gap: 8px; opacity: .8; }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; }

.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
