/* Pipaxo – Website. Schriften liegen auf dem eigenen Server (keine Verbindung zu Google & Co.). */
@font-face { font-family: "Grandstander"; font-weight: 500 900; src: url("fonts/grandstander.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Andika"; font-weight: 400; src: url("fonts/andika-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Andika"; font-weight: 700; src: url("fonts/andika-700.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #1d1b4b; --soft: #4b4f78; --violet: #6b4cff; --violet-2: #8b6cff; --sky: #dff2ff; --sky-2: #f3faff;
  --sun: #ffc531; --sun-dark: #e0a100; --card: #ffffff; --line: rgba(29, 27, 75, .08);
  --shadow: 0 18px 40px rgba(53, 45, 140, .14); --shadow-s: 0 6px 18px rgba(53, 45, 140, .10);
  --r: 22px; --display: "Grandstander", "Arial Rounded MT Bold", system-ui, sans-serif; --body: "Andika", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--sky-2); font: 17px/1.6 var(--body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(5vw, 18px); padding-right: max(5vw, 18px); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.01em; margin: 0; }
.accent { color: var(--violet); }
.spark { position: relative; }
.spark::after { content: ""; position: absolute; width: .9em; height: .9em; right: -1.05em; top: -.35em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23ffc531' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M8 30 L4 36'/%3E%3Cpath d='M18 22 L18 6'/%3E%3Cpath d='M28 28 L36 20'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 17px/1 var(--display); text-decoration: none; padding: 15px 24px; border-radius: 999px; transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.btn-sun { background: var(--sun); color: #2a1c00; box-shadow: 0 5px 0 var(--sun-dark); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sun-dark); }
.btn-sun:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sun-dark); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), var(--shadow-s); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--violet-2), var(--shadow-s); }
.btn .ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.btn-sun .ico { background: #2a1c00; color: var(--sun); }
.btn-ghost .ico { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 800; }

/* Kopf */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(243, 250, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 900 30px/1 var(--display); }
.logo img { width: 52px; height: auto; }
.site-head nav { display: flex; gap: 30px; margin-left: auto; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-head nav a:hover { color: var(--violet); }
.site-head .btn { padding: 12px 20px; font-size: 16px; }

/* Bühne mit Wolken und Hügeln */
.stage { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #ecf8ff 60%, var(--sky-2) 100%); padding: 30px 0 0; overflow: hidden; }
.cloud { position: absolute; width: 160px; height: 52px; background: #fff; border-radius: 60px; opacity: .85; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 70px; height: 70px; left: 22px; top: -34px; }
.cloud::after { width: 54px; height: 54px; left: 78px; top: -22px; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 48px; align-items: center; padding-bottom: 96px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 900; margin-bottom: 18px; }
.hero p { font-size: 19px; color: var(--soft); margin: 0 0 28px; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; }
.screen { border-radius: 26px; background: #2b2260; padding: 10px; box-shadow: 0 26px 60px rgba(43, 34, 96, .35); }
.screen img { border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hero-art .mascot { position: absolute; width: 38%; left: -12%; bottom: -14%; filter: drop-shadow(0 14px 18px rgba(29, 27, 75, .25)); animation: bob 4s ease-in-out infinite; }
.hero-art .deco-star { position: absolute; width: 74px; right: -22px; top: -30px; transform: rotate(14deg); animation: twinkle 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 50% { transform: rotate(4deg) scale(1.08); } }

/* Vorteile-Leiste */
.perks { position: relative; z-index: 2; margin-top: -40px; }
.perks ul { list-style: none; margin: 0; padding: 14px 22px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); display: flex; justify-content: space-around; gap: 8px 20px; flex-wrap: wrap; }
.perks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 6px 4px; }
.perks img { width: 34px; }

section { padding: 88px 0; }
.head-center { text-align: center; margin-bottom: 40px; }
.head-center h2 { font-size: clamp(30px, 3.8vw, 44px); display: inline-block; }
.head-center p { color: var(--soft); margin: 10px auto 0; max-width: 40em; font-size: 18px; }

/* Lernwelten */
.worlds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.world { border-radius: var(--r); padding: 26px 24px 26px; box-shadow: var(--shadow-s); position: relative; overflow: hidden; transition: transform .15s; }
.world:hover { transform: translateY(-4px); }
.world img { width: 92px; margin: 0 auto 14px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .12)); }
.world h3 { font-size: clamp(20px, 1.75vw, 26px); font-weight: 900; overflow-wrap: break-word; hyphens: auto; }
.world .tag { font: 800 16px/1.2 var(--display); margin: 4px 0 10px; }
.world p { margin: 0 0 16px; font-size: 16px; color: var(--soft); }
.world .count { display: inline-block; background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.w-blue { background: linear-gradient(160deg, #e3efff, #c6dcff); } .w-blue .tag { color: #2f5fe0; }
.w-green { background: linear-gradient(160deg, #ddf7e9, #b8ecd1); } .w-green .tag { color: #138a59; }
.w-orange { background: linear-gradient(160deg, #fff0d6, #ffd9a3); } .w-orange .tag { color: #c46a00; }
.w-pink { background: linear-gradient(160deg, #fbe3f7, #f0c4ee); } .w-pink .tag { color: #a43ba6; }

/* Abschnitte mit Bild */
.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 90px; }
.feature.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feature.flip .txt { order: 2; }
.feature h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.feature p { color: var(--soft); font-size: 18px; margin: 0 0 18px; }
.feature .pic { position: relative; }
.feature .pic .float { position: absolute; width: 86px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .18)); }
.feature .ttl-ico { width: 54px; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks img { width: 30px; flex: none; margin-top: 1px; }

/* Familien */
.family { background: #fff; }
.family .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.family h2 { font-size: clamp(28px, 3vw, 38px); align-self: center; }
.fcard { background: var(--sky-2); border-radius: var(--r); padding: 22px; }
.fcard img { width: 52px; margin-bottom: 10px; }
.fcard h3 { font-size: 20px; margin-bottom: 6px; }
.fcard p { margin: 0; color: var(--soft); font-size: 16px; }

/* Fragen */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow-s); padding: 4px 22px; }
.faq summary { cursor: pointer; font: 800 19px/1.3 var(--display); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--soft); }

/* Geräte */
.devices { padding-top: 0; }
.devbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 24px; align-items: center; background: linear-gradient(120deg, #ebe6ff, #e2f0ff); border-radius: 28px; padding: 26px 30px; }
.devbar .ico { width: 84px; }
.devbar h2 { font-size: 26px; margin-bottom: 4px; }
.devbar p { margin: 0; color: var(--soft); }
.chip { background: #fff; border-radius: 18px; padding: 14px 22px; box-shadow: var(--shadow-s); display: flex; align-items: center; gap: 12px; }
.chip b { font: 900 19px/1.1 var(--display); display: block; }
.chip small { color: var(--soft); font-size: 14px; }
.chip .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 900 15px/1 var(--display); flex: none; }
.dot-lg { background: #a50034; }
.dot-and { background: #3ddc84; }
.dot-and svg { width: 26px; height: 26px; }

/* Fuß */
footer { background: #1d1b4b; color: #d9dbff; padding: 40px 0; margin-top: 88px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
footer .logo { color: #fff; font-size: 26px; }
footer .logo img { width: 44px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a { color: #fff; text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; }
footer .legal { margin-left: auto; display: flex; gap: 22px; }
footer .copy { width: 100%; font-size: 14px; color: #a9abd6; }

/* Unterseiten */
.doc { padding: 56px 0 24px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc .stand { color: var(--soft); margin: 0 0 28px; }
.doc .box { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-s); padding: 8px 30px 26px; }
.doc h2 { font-size: 22px; margin: 26px 0 8px; }
.doc p, .doc li { color: #2e3160; }

@media (prefers-reduced-motion: reduce) { .hero-art .mascot, .hero-art .deco-star { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 1140px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .world h3 { font-size: 26px; } }
@media (max-width: 1020px) {
  .site-head nav { display: none; }
  .site-head .btn { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 110px; }
  .hero-art { margin: 0 4% 0 12%; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .feature.flip .txt { order: 0; }
  .family .grid { grid-template-columns: minmax(0, 1fr); }
  .devbar { grid-template-columns: auto minmax(0, 1fr); }
  .devbar .chip { grid-column: span 1; }
  .perks ul { border-radius: 28px; justify-content: flex-start; }
  .perks li { flex: 1 1 40%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo { font-size: 26px; } .logo img { width: 44px; }
  .site-head .btn { padding: 10px 14px; font-size: 14px; }
  .site-head .btn .ico { display: none; }
  .hero-art { margin: 0 0 0 14%; }
  .hero-art .mascot { width: 44%; left: -18%; bottom: -22%; }
  .hero-art .deco-star { width: 50px; right: -6px; }
  .worlds { grid-template-columns: minmax(0, 1fr); }
  .perks li { flex: 1 1 100%; }
  section { padding: 64px 0; }
  .devbar { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .devbar .ico { width: 64px; }
  footer .legal { margin-left: 0; }
  .feature .pic .float { width: 56px; }
}
