/* LernSchule – Startseite */
:root {
  --blue: #2b4c9b; --blue-d: #213b7a; --blue-l: #e6ecf8;
  --coral: #e8574f; --gold: #f4b942; --green: #2f9870;
  --cream: #fbf6ec; --card: #ffffff; --ink: #1f2540; --muted: #5d6384; --line: #ece4d3;
  --shadow: 0 10px 30px rgba(31, 37, 64, .10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #7c9cf0; --blue-d: #9bb3f4; --blue-l: #232c48;
    --coral: #ff7e76; --gold: #f4c25c; --green: #5fd0a3;
    --cream: #141827; --card: #1d2236; --ink: #eef0f8; --muted: #a3aac8; --line: #2d3350;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 "Nunito", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.15; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; font: 800 1rem "Nunito", sans-serif; text-decoration: none; padding: 12px 20px; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 1.08rem; border-radius: 18px; }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-d); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #10162b; } }
.btn-ghost { background: var(--card); color: var(--blue); border-color: var(--line); }
.btn-light { background: #fff; color: #2b4c9b; box-shadow: 0 5px 0 rgba(0,0,0,.18); }

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.45rem "Fredoka", sans-serif; }
.logo img { border-radius: 12px; }
.logo b { color: var(--coral); font-weight: 700; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.top-nav a:hover { color: var(--blue); }
@media (max-width: 820px) { .top-nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 500px at 85% 10%, var(--blue-l), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 99px; background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); font-weight: 800; font-size: .92rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
.hl { color: var(--blue); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 55%, transparent) 62%); }
.lead { font-size: 1.18rem; color: var(--muted); margin: 18px 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
.hero-vis { position: relative; }
.device { margin: 0; background: var(--card); border-radius: 22px; box-shadow: 0 30px 60px rgba(31,37,64,.18); overflow: hidden; border: 1px solid var(--line); transform: rotate(1deg); }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.device-bar i:nth-child(1) { background: #ff6159; } .device-bar i:nth-child(2) { background: #ffbd2e; } .device-bar i:nth-child(3) { background: #28c941; }
.device-bar span { margin-left: 10px; font-size: .8rem; color: var(--muted); font-weight: 700; background: var(--cream); padding: 2px 12px; border-radius: 99px; }
.float { position: absolute; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: .95rem; max-width: 260px; animation: bob 4s ease-in-out infinite; }
.float b { font-family: "Fredoka", sans-serif; font-size: 1.2rem; color: var(--blue); white-space: nowrap; }
.float img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; }
.float-a { left: -26px; bottom: 26px; }
.float-b { right: -14px; top: -18px; animation-delay: -2s; }
.float-b b { color: var(--green); font-size: 1rem; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } .btn:hover { transform: none; } }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .float-a { left: 8px; bottom: -18px; } .float-b { right: 8px; top: -18px; }
}

/* Zahlen */
.stats { padding: 26px 0; }
.stats-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; }
.stats-in div { text-align: center; }
.stats-in b { display: block; font: 700 clamp(1.5rem, 3vw, 2.2rem) "Fredoka", sans-serif; color: var(--blue); }
.stats-in span { color: var(--muted); font-weight: 700; font-size: .95rem; }
@media (max-width: 700px) { .stats-in { grid-template-columns: repeat(2, 1fr); } .stats-in div:last-child { grid-column: 1 / -1; } }

/* Abschnitte */
.sec { padding: 72px 0; }
.sec.alt { background: color-mix(in srgb, var(--blue-l) 55%, var(--cream)); }
.sec-h { font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-align: center; }
.sec-h.left { text-align: left; }
.sec-sub { text-align: center; color: var(--muted); font-size: 1.12rem; max-width: 680px; margin: 12px auto 0; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 1.3rem "Fredoka", sans-serif; margin-bottom: 14px; }
.steps li:nth-child(2) .num { background: var(--coral); } .steps li:nth-child(3) .num { background: var(--green); }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.feat { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-top: 64px; }
.feat.rev .feat-txt { order: 2; }
.feat h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 12px; }
.feat p { color: var(--muted); margin: 0 0 14px; }
.shot { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(31,37,64,.16); border: 1px solid var(--line); }
.tag { display: inline-block; padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: .85rem; }
.tag-blue { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.tag-coral { background: color-mix(in srgb, var(--coral) 15%, transparent); color: var(--coral); }
.tag-gold { background: color-mix(in srgb, var(--gold) 25%, transparent); color: #a06d00; }
.tag-green { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
@media (prefers-color-scheme: dark) { .tag-gold { color: var(--gold); } }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; } .feat.rev .feat-txt { order: 0; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.lp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-txt p { color: var(--muted); }
.lp-txt .sec-h { margin-bottom: 16px; }
.subj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.subj-grid span { background: var(--card); border-radius: 18px; padding: 10px; text-align: center; font-weight: 800; font-size: .88rem; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.subj-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
@media (max-width: 900px) { .lp { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .subj-grid { grid-template-columns: repeat(3, 1fr); } }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.card .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--blue-l); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .card .ic { filter: invert(1); background: #c9d3ee; } }
.card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px; margin: 40px auto 0; align-items: stretch; }
.price { position: relative; background: var(--card); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--line); }
.price.best { border-color: var(--blue); }
.price h3 { font-size: 1.4rem; }
.amount { font: 700 3rem/1 "Fredoka", sans-serif; margin: 10px 0 0; color: var(--blue); }
.per { color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.price .checks { margin-bottom: 22px; flex: 1; align-content: start; }
.ribbon { position: absolute; top: -14px; right: 22px; background: var(--coral); color: #fff; font-weight: 800; font-size: .88rem; padding: 6px 14px; border-radius: 99px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

details { background: var(--card); border-radius: 18px; margin-top: 12px; box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 18px 50px 18px 20px; font-weight: 800; font-size: 1.06rem; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 700 1.5rem "Fredoka", sans-serif; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.sec-h + details { margin-top: 30px; }

.final { padding: 30px 0 72px; }
.final-in { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; background: linear-gradient(135deg, #2b4c9b, #6a4f9c 60%, #e8574f); color: #fff; border-radius: 32px; padding: 30px; box-shadow: var(--shadow); }
.final-in img { border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.final h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.final p { font-size: 1.12rem; opacity: .92; margin: 10px 0 22px; }
@media (max-width: 760px) { .final-in { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot .logo { font-size: 1.2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.foot nav a:hover, .foot nav a.strong { color: var(--blue); }
@media (max-width: 600px) { .float-b { display: none; } .float-a { left: 8px; bottom: -22px; } .kicker { font-size: .85rem; } }
.demo-teaser { padding: 10px 0 30px; }
.demo-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; background: var(--card); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); border: 2px dashed color-mix(in srgb, var(--blue) 35%, transparent); }
.demo-kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-kids span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.demo-kids img { width: 100%; max-width: 110px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--blue-l); }
.demo-kids b { font: 700 1.15rem "Fredoka", sans-serif; }
.demo-kids small { color: var(--muted); font-weight: 700; font-size: .85rem; }
.demo-txt h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.demo-txt p { color: var(--muted); margin: 10px 0 18px; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; margin-left: 8px; }
@media (max-width: 820px) { .demo-in { grid-template-columns: 1fr; } .btn-outline-light { margin: 10px 0 0; } }
