/* Gemeinsame Optik aller Kikoń-Seiten: Logo-Blau, Gold, Kacheln in Baustein-Form */
:root {
  --blue: #2e6aa1;
  --blue-deep: #1d4a78;
  --ink: #0f2a47;
  --gold: #f0c27a;
  --gold-deep: #d4a35c;
  --gold-soft: rgba(240, 194, 122, 0.72);
  --text: #f4ead8;
  --font: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
  /* Gruppenfarben der Kacheln */
  --g-ablauf: #5e5e6e; --g-aktion: #286ec8; --g-pruefen: #2e9a4e; --g-zeit: #dc821e;
  --g-rechnen: #8a5cc8; --g-ok: #2e9a4e; --g-nio: #c83232; --g-ausgabe: #12868f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--blue);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
}
/* feines Blaupausen-Raster wie im App-Icon */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}
/* mit LED-Hintergrund (assets/kikon-led-bg.js) entfällt das Linienraster */
.led-bg body::before { display: none; }
/* das Logo hat eigenes Blau – Ränder weich ausblenden, damit keine Kante im LED-Raster entsteht */
.led-bg .logo {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(transparent, #000 10%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(transparent, #000 10%);
  mask-composite: intersect;
}
a { color: var(--gold); }
h1, h2, h3 { font-weight: 400; color: var(--gold); margin: 0; line-height: 1.2; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }

.rule {
  width: 56px; height: 1px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.eyebrow {
  font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft);
}

/* ---------- Baustein-Kachel (Kerbe oben, Nase unten) ---------- */
.brick { position: relative; display: block; text-decoration: none; color: inherit; }
.brick > svg.shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.brick > svg.shape path {
  fill: rgba(15, 42, 71, .55);
  stroke: var(--gold-deep); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  transition: fill .25s, stroke .25s;
}

/* ---------- Kopf auf Unterseiten ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 18px;
}
.top a.home {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  letter-spacing: .28em; text-transform: uppercase; font-size: .85rem;
}
.top a.home img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; text-decoration: none;
  font: inherit; font-weight: 400; letter-spacing: .08em;
  background: linear-gradient(180deg, #f3cf8f, var(--gold-deep)); color: #1a1205;
  border: 0; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-deep); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }

@keyframes rise {
  from { opacity: 0.001; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Vorschauseiten ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
  padding-block: clamp(16px, 5vh, 56px) clamp(32px, 7vh, 72px);
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .04em; margin: 8px 0 18px; animation: rise 1s ease-out both; }
.hero h1 small { display: block; font-size: .38em; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); margin: 0 0 22px; color: var(--text); animation: rise 1s .15s ease-out both; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1s .3s ease-out both; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border: 1px solid rgba(240,194,122,.45); border-radius: 999px; color: var(--gold);
}
.visual { animation: rise 1.2s .2s ease-out both; }

/* Mini-Prüfplan */
.plan-demo {
  background: rgba(10, 14, 24, .78); border: 1px solid rgba(240,194,122,.25); border-radius: 18px;
  padding: 14px 14px 6px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.plan-demo svg { display: block; width: 100%; height: auto; font-family: "DejaVu Sans", system-ui, sans-serif; }
.plan-demo .plan-status {
  margin: 6px 0 4px; text-align: center; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  min-height: 1.4em;
}

/* Handy-Rahmen */
.phone {
  width: min(300px, 78vw); margin-inline: auto; padding: 10px; border-radius: 34px;
  background: #0b0d12; border: 1px solid rgba(240,194,122,.35); box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }

section.block { padding-block: clamp(32px, 7vh, 72px); border-top: 1px solid rgba(240,194,122,.18); }
section.block > h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 6px 0 10px; }
section.block > .sub { margin: 0 0 28px; max-width: 62ch; }

/* Schritte als Bausteine */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { aspect-ratio: 1.15; }
.steps .body { position: absolute; inset: 12% 9% 14%; display: flex; flex-direction: column; gap: 8px; }
.steps .body::before {
  counter-increment: s; content: counter(s);
  font-size: 1.9rem; line-height: 1; color: var(--gold);
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; font-size: .95rem; }

/* Merkmale */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.features li {
  padding: 18px 18px 16px; border-radius: 14px;
  background: rgba(15, 42, 71, .45); border: 1px solid rgba(240,194,122,.2);
  border-left: 4px solid var(--c, var(--gold-deep));
}
.features h3 { font-size: 1.05rem; margin-bottom: 6px; }
.features p { margin: 0; font-size: .95rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }

/* Aufgaben-Kärtchen (Spiel) */
.tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.tasks li { aspect-ratio: 1; }
.tasks .body { position: absolute; inset: 10% 8% 14%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.tasks .em { font-size: 2.2rem; line-height: 1; }
.tasks .t { color: var(--gold); font-weight: 400; line-height: 1.2; }
.tasks .k { font-size: .8rem; opacity: .8; line-height: 1.3; }
.tasks .gold > svg.shape path { stroke: var(--gold); stroke-dasharray: 6 5; }

.cta { text-align: center; padding-block: clamp(40px, 9vh, 90px); }
.cta h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin: 10px 0 14px; }
.cta p { margin: 0 auto 24px; max-width: 52ch; }
footer { text-align: center; padding: 18px 16px 30px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
  .steps li { aspect-ratio: 1.6; }
}
