/* Funkelbuch website – plain CSS, no external fonts, no JavaScript. */
:root {
  --night: #151a48;
  --night-2: #232a66;
  --violet: #463482;
  --gold: #ffd66b;
  --gold-deep: #f2b93b;
  --rose: #ffb4c8;
  --paper: #fff8ec;
  --ink: #2a2350;
  --ink-soft: #5b5480;
  --white: #ffffff;
  --muted: #c9c6ec;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(10, 8, 40, .35);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--white); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.accent { color: var(--gold); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* starry backgrounds (pure CSS) */
.stars {
  background-color: var(--night);
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 32% 72%, #fffbe6 60%, transparent),
    radial-gradient(1.8px 1.8px at 58% 28%, #fff 60%, transparent),
    radial-gradient(1.1px 1.1px at 74% 64%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 88% 14%, #fffbe6 60%, transparent),
    radial-gradient(1.2px 1.2px at 46% 92%, #fff 60%, transparent),
    radial-gradient(1px 1px at 22% 48%, #fff 60%, transparent),
    radial-gradient(1.3px 1.3px at 92% 82%, #fff 60%, transparent),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--violet) 100%);
  background-size: 420px 420px, 380px 380px, 460px 460px, 340px 340px, 500px 500px, 360px 360px, 300px 300px, 440px 440px, 100% 100%;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(21, 26, 72, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--white); color: var(--ink); }
.btn-soft { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-soft:hover { background: rgba(255, 255, 255, .2); color: var(--white); }
.header-cta { padding: 9px 18px; font-size: .95rem; white-space: nowrap; }

/* language switcher (DE | EN) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1);
}
.lang-switch a {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4;
}
.lang-switch a:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.lang-switch a[aria-current="true"] { background: var(--gold); color: var(--ink); }

/* hero */
.hero { padding: 72px 0 90px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 28px 0 22px; }
.store-badge img { height: 56px; width: auto; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li {
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12);
  padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--paper);
}
.facts li::before { content: "✦ "; color: var(--gold); }
.device {
  border-radius: 28px; padding: 12px; background: #0c0f2e;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: rotate(1.5deg);
}
.device img { border-radius: 18px; }
.moon {
  position: absolute; right: 6%; top: 40px; width: 90px; height: 90px; border-radius: 50%;
  box-shadow: -22px 10px 0 0 var(--gold); transform: rotate(-20deg); opacity: .9;
}

/* sections */
section { padding: 84px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.light { background: var(--paper); color: var(--ink); }
.light .lead, .light p { color: var(--ink-soft); }
.light .eyebrow { color: #b27a00; }
.light a { color: #6a45c2; }

/* free badge strip */
.free { background: linear-gradient(90deg, #ffe7a3, #ffd0dd); color: var(--ink); padding: 34px 0; }
.free .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.free strong { font-size: 1.35rem; }
.free ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.free li { background: rgba(255, 255, 255, .7); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 84px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip > :first-child { order: 2; }
.shot { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(42, 35, 80, .22); }
.feature ul { padding-left: 1.2em; margin: 0; }
.feature li { margin-bottom: .4em; }

/* cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); padding: 26px;
}
.light .card { background: var(--white); border: 1px solid #efe6d4; box-shadow: 0 8px 24px rgba(42, 35, 80, .06); }
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* books */
.books { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.book { text-decoration: none; color: inherit; }
.book img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.book .tag {
  display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  background: rgba(255, 214, 107, .18); color: var(--gold); padding: 3px 10px; border-radius: 999px;
}
.book .tag.free-tag { background: var(--gold); color: var(--ink); }
.book h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.book p { font-size: .92rem; color: var(--muted); margin: 0; }
.pictures { grid-template-columns: repeat(6, 1fr); }
.pictures .book img { aspect-ratio: 3 / 4; }

/* kino */
.episodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.episode img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.episode h3 { margin: 16px 0 6px; }
.episode p { color: var(--muted); margin: 0; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid #efe6d4; display: flex; flex-direction: column; }
.price .amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; margin: 10px 0 14px; }
.price .amount small { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.price ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); }
.price.best { background: var(--ink); color: var(--white); border: 0; box-shadow: 0 20px 50px rgba(42, 35, 80, .35); position: relative; }
.price.best .amount, .price.best h3 { color: var(--gold); }
.price.best ul { color: var(--muted); }
.price .ribbon {
  position: absolute; top: -14px; right: 22px; background: var(--gold); color: var(--ink);
  font-size: .8rem; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.note { font-size: .95rem; margin-top: 26px; }

/* faq */
details { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.light details { background: var(--white); border-color: #efe6d4; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
details p { margin: 12px 0 0; }

/* cta */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 26px; }
.cta .hero-actions { justify-content: center; }

/* legal / plain pages */
.page { padding: 64px 0 90px; }
.page .wrap { max-width: 860px; }
.page h2 { font-size: 1.5rem; margin-top: 1.8em; }
.page h3 { font-size: 1.15rem; margin-top: 1.4em; }
.page p, .page li { color: var(--paper); }
.page .card { margin: 24px 0; }

/* footer */
.site-footer { background: #0e1238; color: var(--muted); padding: 46px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* responsive */
@media (max-width: 980px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 34px; }
  .feature.flip > :first-child { order: 0; }
  .books { grid-template-columns: repeat(3, 1fr); }
  .pictures { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4, .prices { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  section { padding: 60px 0; }
  .hero { padding: 44px 0 64px; }
  .books, .pictures { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .prices, .episodes { grid-template-columns: 1fr; }
  .moon { display: none; }
  .site-header .wrap { gap: 10px; }
  .brand { font-size: 1.1rem; gap: 8px; min-width: 0; }
  .brand img { width: 34px; height: 34px; }
  .lang-switch a { padding: 4px 8px; }
  .header-cta { padding: 8px 14px; font-size: .9rem; }
}
