/* rocklit.app: same "Eisglitzer" look as the app. Fonts are served from this site, not Google. */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/Fredoka_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('fonts/Fredoka_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('fonts/Nunito_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('fonts/Nunito_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/Nunito_800ExtraBold.ttf') format('truetype'); }

:root {
  --paper: #EEF6FF;
  --surface: #FFFFFF;
  --sunk: #DCEBFF;
  --ink: #17183B;
  --muted: #545B7F;
  --line: #D3E2F6;
  --accent: #2F7BFF;
  --accent-text: #1F5FD6;
  --pink-text: #CC3590;
  --lilac-soft: #ECE8FF;
  --display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --text: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
/* No lone word on a last line: browsers that support it rebalance the last lines of every paragraph. */
p, li, dd { text-wrap: pretty; }
.page h1 { text-wrap: balance; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 26px/1 var(--display); color: var(--accent); text-decoration: none; }
.logo svg { width: 38px; height: 38px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { font-weight: 800; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent-text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px; padding-block: 48px 72px; }
/* Room for three lines so the page doesn't jump when a longer item rotates in. */
.hero h1 { font: 700 clamp(38px, 5.2vw, 56px)/1.08 var(--display); margin: 0 0 18px; min-height: 3.24em; }
.hero h1 .item { color: var(--pink-text); transition: opacity .35s; }
.hero h1 .item.out { opacity: 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
/* Apple's official German badge, unaltered (App Store Marketing Guidelines: min. 40 px high, clear space around it). */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s ease; }
.store-badge img { display: block; height: 54px; width: auto; }
a.store-badge:hover { transform: translateY(-2px); }
a.store-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } a.store-badge:hover { transform: none; } }
.gems { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 300px; }
.gem { animation: float 3.2s ease-in-out infinite; }
.gem.big { width: 230px; }
.gem.side { width: 120px; margin: 0 -18px 14px; animation-duration: 3.6s; }
.gem.side.late { animation-delay: .8s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .gem { animation: none; } .hero h1 .item { transition: none; } }

/* Sections */
section { padding-block: 56px; }
h2 { font: 700 clamp(30px, 4vw, 40px)/1.15 var(--display); margin: 0 0 8px; text-wrap: balance; }
.intro { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border-radius: 20px; padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--sunk); color: var(--accent-text); font: 700 17px/1 var(--display); margin-bottom: 12px; }
.step h3 { font: 700 20px/1.25 var(--display); margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.chest { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: center; background: var(--lilac-soft); border-radius: 28px; padding: 36px; }
.chest img { border-radius: 22px; }
.chest ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.chest li { padding-left: 30px; position: relative; font-weight: 700; }
.chest li::before { content: '✓'; position: absolute; left: 0; color: #1C9E6A; font-family: var(--display); }
.note { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* Screenshots: four in a row, swipeable on phones. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; border-radius: 22px; box-shadow: 0 10px 30px rgba(23, 24, 59, 0.12); }

/* Text pages (Support, Datenschutz, Impressum) */
.page { max-width: 760px; padding-block: 24px 72px; }
.page h1 { font: 700 clamp(34px, 5vw, 46px)/1.1 var(--display); margin: 8px 0 20px; }
.page h2 { font-size: 26px; margin-top: 36px; }
.page h3 { font: 700 19px/1.3 var(--display); margin: 24px 0 4px; }
.page p, .page li { color: var(--ink); }
.page .stand { color: var(--muted); }
details { background: var(--surface); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { font: 700 19px/1.35 var(--display); cursor: pointer; }
details p { margin: 10px 0 0; }
.contact { background: var(--surface); border-radius: 20px; padding: 24px; margin-top: 32px; }
.contact strong { font-family: var(--display); font-size: 22px; }
.contact p { margin-bottom: 0; }
/* Placeholders that still need real data before going live. */
mark.todo { background: #FFE38A; padding: 0 4px; border-radius: 4px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 24px 40px; text-align: center; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .lead { margin-inline: auto; }
  .gems { order: -1; min-height: 220px; }
  .gem.big { width: 170px; }
  .gem.side { width: 90px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .chest { grid-template-columns: 1fr; padding: 24px; }
  .chest img { max-width: 320px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gallery img { scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
}
