/* LeuFix website. Same brand as the app (docs/DESIGN.md), in the calm
   parent voice: dark space, neon accents, no confetti. Everything is served
   from this folder: no CDN, no web fonts from third parties, no tracking. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --void: #050816;
  --deep: #0a0f2c;
  --panel: #151a40;
  --panel-high: #1e2558;
  --text: #f4f6ff;
  --text-muted: #a9b1d9;
  --text-dim: #6e76a8;
  --cyan: #22d3ee;
  --magenta: #ff4fd8;
  --lime: #a3ff12;
  --violet: #9d7cff;
  --orange: #ff9f1c;
  --yellow: #ffe14d;
  --diamond: #5eebff;
  --success: #5cff8f;
  --radius: 20px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--void);
  background-image:
    radial-gradient(1px 1px at 12% 18%, #ffffff99 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, #ffffff77 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 33%, #ffffff66 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 52%, #ffffff88 50%, transparent 51%),
    radial-gradient(1px 1px at 23% 71%, #ffffff66 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 84%, #ffffff55 50%, transparent 51%),
    radial-gradient(ellipse 70% 50% at 80% 0%, #3b1d6b55, transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 40%, #0e4a6a44, transparent 70%),
    linear-gradient(180deg, var(--void), var(--deep) 60%, var(--void));
  background-size:
    420px 420px, 420px 420px, 420px 420px, 420px 420px, 420px 420px,
    420px 420px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: scroll;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--diamond);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--panel);
  padding: 10px 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #050816d9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff12;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand span {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--text);
  background: var(--panel);
}

@media (max-width: 760px) {
  .nav .nav-optional {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--cyan);
  color: #04131a;
  box-shadow: 0 0 24px #22d3ee55, inset 0 -4px 0 #0000002a;
}

.btn-primary:hover {
  color: #04131a;
  box-shadow: 0 0 34px #22d3ee88, inset 0 -4px 0 #0000002a;
}

.btn-ghost {
  color: var(--text);
  border-color: #ffffff33;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* Hero */

.hero {
  padding: 64px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--lime);
  background: #a3ff1214;
  border: 1px solid #a3ff1240;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 .glow {
  color: var(--cyan);
  text-shadow: 0 0 28px #22d3ee66;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 1rem;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex: none;
}

.phone {
  position: relative;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3170, #11163a);
  box-shadow: 0 30px 60px #00000080, 0 0 0 1px #ffffff1a, 0 0 60px #9d7cff33;
  max-width: 300px;
  margin: 0 auto;
}

.phone img {
  border-radius: 26px;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
}

.hero-visual {
  position: relative;
}

.hero-visual .leu {
  position: absolute;
  width: 120px;
  height: 120px;
  left: -10px;
  bottom: 40px;
  filter: drop-shadow(0 10px 30px #ffe14d55);
}

@media (max-width: 860px) {
  .hero {
    padding-top: 36px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual .leu {
    width: 88px;
    height: 88px;
    left: auto;
    bottom: auto;
    top: -58px;
    right: calc(50% - 190px);
  }
}

@media (max-width: 420px) {
  .hero-visual .leu {
    right: 0;
  }
}

/* Sections */

section {
  padding: 72px 0;
  scroll-margin-top: 69px;
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.kicker {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.k-cyan { color: var(--cyan); }
.k-magenta { color: var(--magenta); }
.k-lime { color: var(--lime); }
.k-violet { color: var(--violet); }
.k-orange { color: var(--orange); }
.k-yellow { color: var(--yellow); }

.grid {
  display: grid;
  gap: 20px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(180deg, #1a2050, var(--panel));
  border: 1px solid #ffffff14;
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon svg {
  width: 28px;
  height: 28px;
}

.i-cyan { background: #22d3ee1f; color: var(--cyan); box-shadow: inset 0 0 0 1px #22d3ee55; }
.i-magenta { background: #ff4fd81f; color: var(--magenta); box-shadow: inset 0 0 0 1px #ff4fd855; }
.i-lime { background: #a3ff121a; color: var(--lime); box-shadow: inset 0 0 0 1px #a3ff1255; }
.i-violet { background: #9d7cff1f; color: var(--violet); box-shadow: inset 0 0 0 1px #9d7cff55; }
.i-orange { background: #ff9f1c1f; color: var(--orange); box-shadow: inset 0 0 0 1px #ff9f1c55; }
.i-yellow { background: #ffe14d1a; color: var(--yellow); box-shadow: inset 0 0 0 1px #ffe14d55; }
.i-diamond { background: #5eebff1a; color: var(--diamond); box-shadow: inset 0 0 0 1px #5eebff55; }

/* Screens */

.sprite {
  position: absolute;
}

.screens-gap {
  margin-top: 56px;
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.screens figure {
  margin: 0;
}

.screens .phone {
  max-width: 240px;
  border-radius: 28px;
  padding: 8px;
}

.screens .phone img {
  border-radius: 21px;
}

.screens figcaption {
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}

.screens figcaption strong {
  display: block;
  color: var(--text);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .screens {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .screens {
    grid-template-columns: 1fr;
  }
}

/* Lehrplan 21 */

.lp21 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.lp21 > *,
.split > *,
.hero .wrap > * {
  min-width: 0;
}

@media (max-width: 860px) {
  .lp21 {
    grid-template-columns: 1fr;
  }
}

.subjects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.subjects li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border: 1px solid #ffffff12;
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 56px;
}

.subjects .name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}

.subjects .meta {
  color: var(--text-muted);
  font-size: 1rem;
  text-align: right;
}

.d-cyan { background: var(--cyan); }
.d-magenta { background: var(--magenta); }
.d-orange { background: var(--orange); }
.d-lime { background: var(--lime); }
.d-violet { background: var(--violet); }
.d-yellow { background: var(--yellow); }

.tag-example {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1rem;
  background: var(--void);
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text-muted);
  overflow-x: auto;
  margin: 20px 0 0;
  white-space: pre;
}

.tag-example b {
  color: var(--lime);
  font-weight: 400;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.checklist svg {
  width: 24px;
  height: 24px;
  color: var(--success);
  margin-top: 3px;
}

.checklist strong {
  display: block;
}

.checklist span {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Parent split */

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split .phone {
    order: 2;
  }
}

/* Mitmachen */

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 44px;
  background:
    radial-gradient(ellipse at 100% 0%, #9d7cff40, transparent 60%),
    radial-gradient(ellipse at 0% 100%, #22d3ee30, transparent 60%),
    var(--panel);
  border: 1px solid #9d7cff55;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps li {
  counter-increment: step;
  background: #050816aa;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #ffffff14;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--violet);
  color: #0d0726;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}

.steps strong {
  display: block;
}

.steps span {
  color: var(--text-muted);
  font-size: 1rem;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cta-panel {
    padding: 28px 20px;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

.note {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 20px 0 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid #ffffff12;
  padding: 32px 0 44px;
  color: var(--text-muted);
  font-size: 1rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  color: var(--text-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover {
  color: var(--text);
}

/* Legal pages */

.legal {
  padding: 48px 0 72px;
}

.legal .wrap {
  max-width: 780px;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal strong {
  color: var(--text);
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: 1rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid #ffffff1a;
}

.legal th {
  color: var(--text);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
}

.legal td {
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .legal table,
  .legal tbody,
  .legal tr,
  .legal td,
  .legal th {
    display: block;
  }

  .legal thead {
    display: none;
  }

  .legal tr {
    border-bottom: 1px solid #ffffff1a;
    padding: 8px 0;
  }

  .legal td {
    border: 0;
    padding: 4px 0;
  }

  .legal td:first-child {
    color: var(--text);
    font-weight: 700;
  }
}

.address {
  background: var(--panel);
  border: 1px solid #ffffff14;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
}

/* Placeholder that must be filled before going live. */
.todo {
  background: #ff9f1c26;
  color: var(--orange);
  border: 1px dashed var(--orange);
  border-radius: 6px;
  padding: 0 6px;
}

.stand {
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 3em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
