/* Jelly Cascade web (jelly.jomars.de): candy look of the app, self-hosted fonts, no external requests, no inline styles (CSP). */
@font-face { font-family: "Baloo 2"; src: url("/fonts/Baloo2-ExtraBold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/NunitoSans-Regular.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/NunitoSans-ExtraBold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --top: #2B3F9E; --bottom: #151A45; --tile: #1C2656; --border: #4152A6; --soft: #C9D3FA; --note: #B4C2F5;
  --gold: #FFC247; --gold-top: #FFD75A; --gold-low: #F5A623; --gold-lip: #B87408; --ink-gold: #3A2400;
  --green-top: #2DA24A; --green-bottom: #17752E; --green-lip: #0F5A22; --pink: #FF7AB6;
  --head: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito Sans", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bottom); scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; min-height: 100vh; color: #fff; font-family: var(--body); font-size: 17px; line-height: 1.55;
  background: linear-gradient(180deg, var(--top) 0, var(--bottom) 720px) no-repeat, var(--bottom);
}
html[data-bilingual].en body [lang="de"], html[data-bilingual]:not(.en) body [lang="en"] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--gold-top); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold-top); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #1a1a1a; padding: 8px 12px; border-radius: 10px; z-index: 9; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
img { max-width: 100%; }
figure { margin: 0; }

h1, h2, h3, .d { font-family: var(--head); font-weight: 800; line-height: 1.12; margin: 0; }
p { margin: 0; color: var(--soft); }
.soft { color: var(--soft); }
strong, b { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* Header + footer */
header.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0; }
.home { font-family: var(--head); font-weight: 800; font-size: 28px; line-height: 1; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.home span { color: var(--gold-top); }
.home img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 800; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.lang {
  min-height: 44px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--border); background: var(--tile); color: #fff;
  font: 800 15px var(--body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.lang:hover { border-color: var(--soft); color: #fff; }

footer.foot { border-top: 1px solid #33408F; margin-top: 56px; padding: 22px 0 34px; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
footer.foot a { color: var(--soft); text-decoration: none; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }
footer.foot a:hover, footer.foot a[aria-current="page"] { color: var(--gold-top); }
footer.foot small { color: var(--note); font-size: 14px; }

/* Buttons + tiles */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 30px 4px; border: 0; border-radius: 20px;
  font: 800 21px/1.1 var(--head); color: #fff; background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  box-shadow: inset 0 3px 0 rgba(255,255,255,.28), 0 5px 0 var(--green-lip); text-shadow: 0 2px 0 rgba(0,0,0,.3); text-decoration: none; cursor: pointer;
}
.cta:hover { color: #fff; }
.cta:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.28), 0 2px 0 var(--green-lip); }
.cta.gold { background: linear-gradient(180deg, var(--gold-top), var(--gold-low)); color: var(--ink-gold); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 5px 0 var(--gold-lip); text-shadow: none; }
.cta.gold:hover { color: var(--ink-gold); }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 10px 24px; border-radius: 16px; border: 2px solid var(--border); background: var(--tile); line-height: 1.2; }
.store .k { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); }
.store .v { font: 800 21px/1.2 var(--head); color: #fff; }
.tile { background: var(--tile); border: 2px solid var(--border); border-radius: 22px; box-shadow: 0 4px 0 #111A45; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); }

/* Home */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding: 20px 0 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-logo { width: 100%; max-width: 300px; height: auto; aspect-ratio: 720 / 444; display: block; }
.hero h1 { font-size: 68px; text-wrap: balance; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: var(--gold-top); }
.hero .lead { font-size: 20px; max-width: 520px; text-wrap: pretty; }
.hero-shot { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.phone { width: 100%; max-width: 340px; border: 9px solid #0A0E2C; border-radius: 38px; overflow: hidden; background: #0A0E2C; box-shadow: 0 24px 50px rgba(5,8,35,.55); transform: rotate(3deg); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1121; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.feats li { padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.feats h2 { font-size: 26px; }
.ico { width: 56px; height: 56px; border-radius: 16px; background: var(--top); display: flex; align-items: center; justify-content: center; }
.ico svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-top); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon { margin-top: 56px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.soon h2 { font-size: 34px; }
.soon p { margin-top: 6px; }

/* Support */
.page-title { font-size: 52px; margin: 16px 0 12px; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.intro { font-size: 19px; }
.mailtile { margin: 24px 0 40px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.mailtile .d { font-size: 26px; color: #fff; }
h2.sec { font-size: 34px; margin-bottom: 16px; }
details { background: var(--tile); border: 2px solid var(--border); border-radius: 18px; margin: 0 0 12px; }
summary { cursor: pointer; list-style: none; padding: 14px 20px; min-height: 56px; font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 800 26px/1 var(--head); color: var(--gold-top); flex: none; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 20px 18px; }
details b { color: #fff; }
.meta { font-size: 15px; color: var(--note); }
p.meta { margin-top: 24px; }

/* Invite */
.invite { max-width: 420px; margin: 0 auto; padding: 36px 16px 24px; display: flex; flex-direction: column; gap: 22px; text-align: center; min-height: 100vh; }
.invite .brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.invite .brand img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.invite .brand p { font: 800 28px var(--head); color: #fff; }
.invite .brand p span { color: var(--gold-top); }
.invite h1 { font-size: 38px; text-wrap: balance; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.invite .lead { margin-top: 8px; font-weight: 800; }
.invite .tile { padding: 20px 18px 24px; }
.invite .code { font-family: var(--head); font-size: clamp(34px, 9vw, 48px); line-height: 1.1; font-weight: 800; color: var(--gold-top); margin: 8px 0 18px; letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0,0,0,.35); word-break: break-all; user-select: all; -webkit-user-select: all; }
.invite .cta { width: 100%; font-size: 20px; text-align: center; }
.invite .done { margin-top: 12px; font-size: 14px; color: #B4F07E; font-weight: 800; min-height: 22px; }
.invite .done.bad { color: #FFB0B5; }
.steps { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: center; text-align: left; color: var(--soft); }
.steps li::before {
  content: attr(data-n); flex: 0 0 38px; height: 38px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-top), var(--gold-low)); color: var(--ink-gold);
  display: flex; align-items: center; justify-content: center; font: 800 22px var(--head); padding-bottom: 3px;
}
.invite .hint { font-size: 14px; color: var(--note); }
.legal { margin-top: auto; font-size: 14px; display: flex; gap: 0 20px; justify-content: center; flex-wrap: wrap; }
.legal a { color: var(--note); font-weight: 800; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.legal a:hover { color: #fff; }

/* Legal pages: light reading theme */
body.light { background: #F3F5FC; color: #1B2150; }
body.light p, body.light li, body.light td { color: #1B2150; }
body.light a { color: #1F3AA8; }
body.light a:hover { color: #0F2278; }
body.light :focus-visible { outline-color: #1F3AA8; }
body.light .skip { background: var(--gold-top); color: #1a1a1a; }
.band { background: linear-gradient(180deg, #2B3F9E, #1B2670); }
body.light .band a { color: var(--soft); }
body.light .band a.home, body.light .band a:hover { color: #fff; }
body.light .band a.home span { color: var(--gold-top); }
body.light .band .lang { color: #fff; }
.lg h1 { font-size: 52px; color: #1B2150; overflow-wrap: anywhere; hyphens: auto; }
main.lg > h1 { margin-top: 36px; }
@media (min-width: 900px) { .toc summary { pointer-events: none; } .toc summary::after { display: none; } }
.lg h2 { font-size: 24px; color: #2B3F9E; margin: 30px 0 8px; }
.lg h3 { font-size: 21px; color: #1B2150; margin: 22px 0 6px; }
.lg p { margin: 8px 0 0; }
.lg ul { margin: 8px 0 0; padding-left: 1.2em; }
.lg li { margin: .3em 0; }
.lg address { font-style: normal; }
.lg .meta { color: #4A5388; font-size: 15px; margin: 10px 0 0; }
.lg .meta b { color: #1B2150; }
.paper { background: #fff; border: 1px solid #DCE2F7; border-radius: 20px; padding: 36px clamp(20px, 5vw, 48px) 44px; box-shadow: 0 8px 24px rgba(27,33,80,.08); margin-top: 28px; }
.paper > h1 { margin-top: 0; }
.draft { background: var(--gold-top); color: var(--ink-gold); font-weight: 800; text-align: center; padding: 10px 16px; }
.draft p { color: inherit; }
.doc { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; margin-top: 28px; }
.toc { flex: 1 1 280px; max-width: 340px; background: #fff; border: 1px solid #DCE2F7; border-radius: 18px; padding: 8px 20px 12px; }
.toc summary { color: #1B2150; padding: 12px 0; min-height: 48px; font-size: 22px; font-family: var(--head); }
.toc summary::after { color: #2B3F9E; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 40px; font-weight: 800; text-decoration: none; line-height: 1.3; padding: 2px 0; }
.toc a.sub { min-height: 36px; padding-left: 16px; font-size: 15px; font-weight: 400; }
.toc details { background: none; border: 0; border-radius: 0; margin: 0; }
.doc .paper { flex: 999 1 480px; min-width: 0; margin: 0; padding-top: 4px; }
.doc .paper > section:first-child h2 { margin-top: 30px; }
.doc section { scroll-margin-top: 16px; }
.lg table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 10px; }
.lg th, .lg td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid #DCE2F7; }
.lg th { color: #1B2150; background: #EEF1FB; }
.tw { overflow-x: auto; }
.band-foot { background: var(--bottom); margin-top: 56px; }
.band-foot footer.foot { margin-top: 0; border-top: 0; }
@media (min-width: 900px) { .toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; } }

.center { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 42px; }
  .page-title { font-size: 38px; }
  .lg h1 { font-size: 32px; }
  .hero-text { flex-basis: 100%; }
  .home { font-size: 22px; gap: 8px; }
  .home img { width: 34px; height: 34px; }
  .nav a { padding: 0 8px; }
  .lang { padding: 0 12px; }
  .soon h2 { font-size: 28px; }
}
