/* SchlummerLernen website (help, subscription terms, privacy policy, legal notice) in the annico.eu
   design: night sheet, Fraunces headings, Figtree text, Baloo 2 for the name. All fonts self-hosted
   under the SIL OFL 1.1 (fonts/OFL-*.txt), no external resources. The start page "/" comes from the
   annico.eu container (~/REPOS/annico-web), which passes every other path on to this one. */
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/Fraunces-latin-ext.woff2") format("woff2-variations"), url("fonts/Fraunces-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/Fraunces-latin.woff2") format("woff2-variations"), url("fonts/Fraunces-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/Figtree-latin-ext.woff2") format("woff2-variations"), url("fonts/Figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/Figtree-latin.woff2") format("woff2-variations"), url("fonts/Figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* annico.eu night palette */
  --sheet: #0F2B28;
  --sheet-2: #143F3B;
  --ink: #FFF8E6;
  --ink-2: #C6D2C4;
  --ink-3: #8FA596;
  --hair: rgba(255, 248, 214, .14);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4.2vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* app palette (also used by the old landing styles below) */
  --night: #061514;
  --forest: #0E2E2C;
  --moss-deep: #143F3B;
  --moss: #4F9A74;
  --moss-light: #78C49A;
  --glow: #F6E27A;
  --glow-core: #FFF9C9;
  --cream: #FFF8D6;
  --clay: #E9B98F;
  --text: var(--ink);
  --muted: var(--ink-2);
  --faint: var(--ink-3);
  --line: var(--hair);
  --card: rgba(255, 248, 214, .05);
  --round: "Baloo 2", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sheet); scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 75% -10%, #1b524b 0%, transparent 55%),
    radial-gradient(90% 50% at 0% 110%, #12332f 0%, transparent 70%),
    var(--sheet);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--glow); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--glow-core); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2.5px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

/* Top bar shared by all pages */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gut);
  background: color-mix(in srgb, var(--sheet) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--round); font-weight: 700; font-size: 22px; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 24%; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 248, 214, .22); flex: none; }
.lang button { background: none; border: 0; color: var(--ink); opacity: .6; padding: 4px 10px; border-radius: 999px; cursor: pointer; font: 700 12.5px/1.2 var(--sans); letter-spacing: .06em; transition: background-color .25s, opacity .25s, color .25s; }
.lang button.on { background: var(--ink); color: var(--sheet); opacity: 1; }

/* Language blocks: English by default, German with html[lang=de] */
[data-lang-block="de"] { display: none; }
html[lang="de"] [data-lang-block="de"] { display: block; }
html[lang="de"] [data-lang-block="en"] { display: none; }
html[lang="de"] span[data-lang-block="de"], html:not([lang="de"]) span[data-lang-block="en"] { display: inline; }

/* Legal and help pages */
main { flex: 1; }
.doc { max-width: 780px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut) 96px; box-sizing: content-box; }
.doc h1 {
  font-family: var(--display);
  font-weight: 480;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.doc .lead { color: var(--ink-2); font-size: clamp(17px, .4vw + 15px, 19px); margin: 0 0 40px; max-width: 60ch; }
.doc h2 {
  font-family: var(--display);
  font-weight: 540;
  font-size: clamp(22px, 1.6vw + 12px, 27px);
  line-height: 1.2;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
  margin: 52px 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.doc h3 { font-family: var(--sans); font-weight: 650; font-size: 17px; margin: 26px 0 4px; color: var(--ink); }
.doc p, .doc li, .doc td { color: var(--ink-2); }
.doc p { max-width: 68ch; }
.doc strong { color: var(--ink); font-weight: 620; }
.doc ul { padding-left: 22px; }
.doc li { margin: 5px 0; }
.doc li::marker { color: var(--glow); }
.doc address { font-style: normal; color: var(--ink); line-height: 1.75; }
.summary { background: rgba(255, 248, 214, .05); box-shadow: 0 0 0 1px var(--hair); border-radius: 20px; padding: 20px 24px; margin: 10px 0 14px; }
.summary ul { margin: 6px 0 0; padding-left: 0; list-style: none; }
.summary li { position: relative; padding-left: 26px; margin: 9px 0; color: var(--ink); }
.summary li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--glow-core); box-shadow: 0 0 10px 3px rgba(246, 226, 122, .55); }
.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--hair); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--ink); font-weight: 650; background: rgba(255, 248, 214, .05); }
.note { font-size: 15px; color: var(--ink-3); background: rgba(255, 248, 214, .05); border-radius: 12px; padding: 14px 18px; margin-top: 44px; }
.toc { columns: 2; column-gap: 28px; font-size: 15.5px; padding-left: 20px; margin: 8px 0 12px; }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc { columns: 1; } }
details { border-top: 1px solid var(--hair); padding: 2px 0; margin: 0; }
details:last-of-type { border-bottom: 1px solid var(--hair); }
details + h2 { margin-top: 56px; }
details summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 40px 16px 0;
  font-family: var(--display);
  font-weight: 520;
  font-size: clamp(18px, .5vw + 15px, 21px);
  line-height: 1.3;
  font-variation-settings: "SOFT" 100, "opsz" 48;
  color: var(--ink);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--ease);
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details > *:not(summary) { padding-right: 40px; }
details > p:last-child { margin-bottom: 18px; }

/* Footer */
footer { margin-top: 0; box-shadow: 0 -1px 0 var(--hair); background: rgba(6, 21, 20, .35); }
footer .inner { max-width: 1240px; margin: 0 auto; padding: 30px var(--gut) 44px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 14.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--glow); }

/* ---------- Landing page ---------- */
.hero { position: relative; max-width: 1080px; margin: 0 auto; padding: 36px 20px 24px; text-align: center; overflow: hidden; }
.hero .icon { width: 140px; height: 140px; margin: 8px auto 22px; filter: drop-shadow(0 18px 40px rgba(246, 226, 122, .22)); }
.hero h1 { font-family: var(--round); font-weight: 700; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 14px; color: var(--cream); }
.hero .tagline { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--text); max-width: 640px; margin: 0 auto 10px; }
.hero .sub { color: var(--muted); max-width: 600px; margin: 0 auto 26px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; background: rgba(255, 248, 214, .08); border: 1px solid rgba(246, 226, 122, .35); color: var(--cream); font-weight: 600; font-size: 15px; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px 4px rgba(246, 226, 122, .6); }
.fireflies { position: absolute; inset: 0; pointer-events: none; }
.fireflies i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--glow-core); box-shadow: 0 0 12px 5px rgba(246, 226, 122, .55); opacity: .0; animation: drift 9s ease-in-out infinite; }
.fireflies i:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.fireflies i:nth-child(2) { left: 82%; top: 18%; animation-delay: 1.6s; }
.fireflies i:nth-child(3) { left: 24%; top: 64%; animation-delay: 3.1s; }
.fireflies i:nth-child(4) { left: 74%; top: 58%; animation-delay: 4.4s; }
.fireflies i:nth-child(5) { left: 50%; top: 8%; animation-delay: 5.8s; }
.fireflies i:nth-child(6) { left: 90%; top: 76%; animation-delay: 7.1s; }
@keyframes drift { 0% { opacity: 0; transform: translate(0, 0); } 25% { opacity: .9; } 55% { opacity: .35; transform: translate(14px, -18px); } 80% { opacity: .85; } 100% { opacity: 0; transform: translate(-6px, -34px); } }
@media (prefers-reduced-motion: reduce) { .fireflies i { animation: none; opacity: .6; } }

.screens { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 34px); max-width: 1080px; margin: 34px auto 0; padding: 0 20px; }
.phone { flex: 0 1 260px; border-radius: 38px; padding: 7px; background: linear-gradient(160deg, rgba(255, 248, 214, .22), rgba(255, 248, 214, .05)); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.phone img { width: 100%; border-radius: 32px; }
.phone.side { flex-basis: 220px; opacity: .92; }
@media (max-width: 700px) { .phone.side { display: none; } .phone { flex-basis: 250px; } }

.section { max-width: 1080px; margin: 0 auto; padding: 72px 20px 8px; }
.section h2 { font-family: var(--round); font-weight: 700; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; margin: 0 0 12px; color: var(--cream); text-align: center; }
.section .intro { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 32px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.feature .sym { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #8fd2aa, var(--moss) 60%, #2f6a50); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), 0 6px 16px rgba(0, 0, 0, .3); margin-bottom: 12px; font-size: 20px; }
.feature h3 { font-family: var(--round); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0 0 6px; color: var(--cream); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .covers { grid-template-columns: repeat(2, 1fr); } }
.cover { margin: 0; }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.cover figcaption { margin-top: 8px; font-size: 15px; color: var(--text); line-height: 1.35; }
.cover .free { display: inline-block; margin-left: 4px; font-size: 12px; color: var(--night); background: var(--glow); border-radius: 999px; padding: 0 7px; vertical-align: 1px; font-weight: 700; }
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.topics li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.promise div { border-left: 2px solid rgba(246, 226, 122, .5); padding: 4px 0 4px 16px; }
.promise strong { display: block; color: var(--cream); font-size: 18px; margin-bottom: 2px; }
.promise span { color: var(--muted); font-size: 15px; }

.price { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .price { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.plan.best { border-color: rgba(246, 226, 122, .5); background: rgba(246, 226, 122, .06); }
.plan h3 { font-family: var(--round); font-weight: 700; font-size: 22px; margin: 0 0 4px; color: var(--cream); }
.plan .amount { font-family: var(--round); font-weight: 700; font-size: 34px; color: var(--glow); line-height: 1.2; }
.plan p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.fineprint { text-align: center; color: var(--faint); font-size: 14px; max-width: 680px; margin: 18px auto 0; }
.later { text-align: center; color: var(--muted); padding: 64px 20px 40px; max-width: 680px; margin: 0 auto; }
.later strong { color: var(--cream); }
