/* Schnellbild's website: system fonts, flat colours, nothing from other servers.
   Motion: sections rise in as they enter (site.js sets .in), the hero screenshot
   straightens while scrolling (--p), screenshots drift slightly (--d), pages
   cross-fade between each other (view transitions). All of it off with
   "reduce motion". */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #0a66e8;
  --ink: #1d1d1f;
  --ink-text: #ffffff;
  --code: #f0f0f4;
  --bar: rgba(251, 251, 253, 0.78);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #161618;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c30;
    --accent: #4f9bff;
    --ink: #f5f5f7;
    --ink-text: #000000;
    --code: #232326;
    --bar: rgba(0, 0, 0, 0.72);
  }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
.brand img { view-transition-name: brand; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
kbd, code {
  font: 0.86em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05em 0.4em;
  color: var(--text);
}
.i { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1240px; }
.narrow { max-width: 760px; }

/* Top bar: sticks, frosted glass once the page moves */
.bar { position: sticky; top: 0; z-index: 10; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.scrolled .bar { background: var(--bar); border-color: var(--line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.top nav > a { color: var(--muted); }
.top nav > a:hover { color: var(--text); text-decoration: none; }

/* Language menu */
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); }
.lang summary .i { width: 16px; height: 16px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 2px;
  padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.lang-list a { color: var(--text); padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.lang-list a:hover { background: var(--code); text-decoration: none; }
.lang-list a[aria-current] { font-weight: 650; color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 28px 0 0; --p: 1; }
.js .hero { --p: 0; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 18px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18)); }
.hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1; margin: 0 0 18px; letter-spacing: -0.035em; font-weight: 700; }
.tagline { font-size: clamp(22px, 3.4vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; margin: 0 auto 18px; max-width: 820px; }
.lead { color: var(--muted); max-width: 680px; margin: 0 auto 30px; font-size: clamp(17px, 2vw, 20px); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 230px; padding: 12px 24px; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { text-decoration: none; }
.button small { font-weight: 400; font-size: 12px; color: var(--muted); }
.button.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.button.primary small { color: inherit; opacity: 0.7; }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.button.soon { cursor: default; }
.fineprint { color: var(--muted); font-size: 13px; margin: 18px auto 0; max-width: 620px; }

/* The hero screenshot lies tilted back and straightens up as the page scrolls */
.shot { margin: 36px auto 0; perspective: 1600px; }
.shot img {
  margin: 0 auto;
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 20deg)) scale(calc(0.92 + var(--p) * 0.08));
  will-change: transform;
}

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 64px; padding-bottom: 8px; text-align: center; }
.stat b { display: block; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* Sections */
section { padding: 88px 0; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.01em; }
.intro { color: var(--muted); max-width: 720px; margin: 0 0 36px; font-size: 19px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 24px; }
.card .i { color: var(--accent); margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); }

.feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; padding: 48px 0; }
.feature:nth-of-type(even) { grid-template-columns: 1.4fr 1fr; }
.feature:nth-of-type(even) .text { order: 2; }
.feature h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { color: var(--muted); margin: 0; padding-left: 20px; }
.feature li { margin: 4px 0; }
.media [data-parallax] { transform: translateY(calc(var(--d, 0) * 36px)); will-change: transform; }
@media (max-width: 820px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .feature:nth-of-type(even) .text { order: 0; }
  .media [data-parallax] { transform: none; }
}

.safe { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.i.big { width: 56px; height: 56px; color: var(--accent); stroke-width: 1.3; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { padding-left: 32px; position: relative; color: var(--muted); font-size: 18px; }
.checks li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--accent); font-weight: 700; }
.checks strong { color: var(--text); }
.more { color: var(--muted); font-size: 15px; margin: 28px 0 0; }

.languages { color: var(--muted); line-height: 1.9; }
.languages a { white-space: nowrap; }

.cta { text-align: center; }
.cta .icon { width: 96px; height: 96px; margin: 0 auto 22px; }
.cta .intro { margin: 0 auto 30px; }

/* Text pages (privacy) */
.page { padding: 32px 20px 88px; }
.page h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 24px 0 24px; }
.page h2 { font-size: 26px; margin: 44px 0 10px; }
.page li { margin: 6px 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

/* Rising in: only with JavaScript (else everything simply shows) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero .icon, .js .hero h1, .js .hero .tagline, .js .hero .lead, .js .hero .actions, .js .hero .fineprint {
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.js .hero h1 { animation-delay: 0.08s; }
.js .hero .tagline { animation-delay: 0.16s; }
.js .hero .lead { animation-delay: 0.24s; }
.js .hero .actions { animation-delay: 0.32s; }
.js .hero .fineprint { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .top nav .section-link { display: none; }
  .top nav { gap: 14px; }
  .lang summary span { display: none; }
  .lang-list { position: fixed; left: 12px; right: 12px; top: 64px; }
  .button { min-width: 0; width: 100%; max-width: 340px; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .shot img, .media [data-parallax] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
/* Printed, everything shows as it stands */
@media print {
  .js [data-reveal], .js .hero * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .shot img, .media [data-parallax] { transform: none !important; }
  .bar { position: static; }
  .lang { display: none; }
}
h1, h2, h3, .tagline, .lead, .intro { text-wrap: balance; }

/* The 404 page's list of home pages */
.homes { columns: 2 180px; padding-left: 20px; }
.page .homes li { margin: 0; padding: 4px 0; break-inside: avoid; }
