/* Kerno 2.0 — Startseite (DE + EN). Dunkel, Violett→Blau, Liquid-Glass-Karten — wie die App.
   Ratgeber & Rechtsseiten nutzen weiterhin style.css. Keine externen Requests (DSGVO). */

:root {
  --bg: #0B0B17;
  --bg-2: #12122A;
  --card: rgba(255,255,255,.055);
  --card-2: rgba(255,255,255,.085);
  --stroke: rgba(255,255,255,.12);
  --text: #F5F4FF;
  --text-2: #B4B3CF;
  --text-3: #7E7D9C;
  --violet: #8B5CF6;
  --indigo: #6366F1;
  --blue: #5B8DEF;
  --pink: #EC4899;
  --green: #22C55E;
  --orange: #F97316;
  --grad: linear-gradient(100deg, #F0E6FF 0%, #B79CFF 45%, #8FB0FF 100%);
  --grad-btn: linear-gradient(135deg, #8B5CF6, #5B8DEF);
  --maxw: 1180px;
  --r: 28px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid #B79CFF; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Aurora — fließender Hintergrund (nur transform/opacity animiert) */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -200px; background: var(--violet); }
.aurora i:nth-child(2) { width: 520px; height: 520px; right: -140px; top: 80px; background: var(--blue); animation-delay: -7s; opacity: .4; }
.aurora i:nth-child(3) { width: 460px; height: 460px; left: 30%; top: 55%; background: var(--pink); animation-delay: -14s; opacity: .18; }
@keyframes drift { to { transform: translate3d(80px, 60px, 0) scale(1.15); } }

/* Pill / Eyebrow */
.pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text);
}
.pill .spark { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-btn); box-shadow: 0 0 12px var(--violet); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 60; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11,11,23,.72); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom-color: var(--stroke); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-btn); display: grid; place-items: center; box-shadow: 0 6px 18px -4px var(--violet); }
.brand .logo::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #fff; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .lang { font-size: 12px; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--stroke); padding: 5px 10px; border-radius: 8px; }
.nav-cta { padding: 9px 16px; border-radius: 999px; background: var(--grad-btn); color: #fff !important; font-weight: 600; box-shadow: 0 8px 22px -8px var(--violet); }
@media (max-width: 820px) { .nav-links a:not(.nav-cta):not(.lang) { display: none; } .nav-links { gap: 12px; } }

/* Buttons */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #000; padding: 0 22px 0 18px; height: 58px;
  border-radius: 16px; text-decoration: none; transition: transform .15s var(--ease), box-shadow .25s ease;
  box-shadow: 0 14px 40px -12px rgba(139,92,246,.7);
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px rgba(139,92,246,.85); }
.btn-appstore:active { transform: scale(.97); }
.btn-appstore svg { width: 26px; height: 26px; fill: #000; flex: none; }
.btn-appstore .l { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.btn-appstore small { font-size: 11px; margin-bottom: 3px; }
.btn-appstore b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.btn-ghost {
  display: inline-flex; align-items: center; height: 58px; padding: 0 24px; border-radius: 16px; text-decoration: none; font-weight: 600;
  background: var(--card); border: 1px solid var(--stroke); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .2s;
}
.btn-ghost:hover { background: var(--card-2); }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(50px, 7.4vw, 96px); margin-top: 26px; }
.hero .lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--text-2); max-width: 34ch; margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--text-3); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 56px; } .hero { padding-top: 40px; } }

/* Phone-Mockup mit echtem Screenshot */
.stage { position: relative; display: grid; place-items: center; }
.phone {
  width: min(330px, 78vw); padding: 10px; border-radius: 54px; position: relative; z-index: 2;
  background: linear-gradient(160deg, #3a3a52, #15151f 40%, #2b2b3d);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), 0 50px 120px -30px rgba(139,92,246,.75), 0 30px 60px -20px rgba(0,0,0,.8);
}
.phone img { border-radius: 45px; width: 100%; }
.stage.float .phone { animation: floaty 8s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.55), transparent 65%); filter: blur(30px); z-index: 0; }

/* Schwebende Glas-Karten am Phone */
.glass {
  background: rgba(24,22,48,.62); border: 1px solid var(--stroke); border-radius: 22px;
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12);
}
.chip { position: absolute; z-index: 3; padding: 14px 16px; display: flex; gap: 12px; align-items: center; width: 250px; animation: floaty 8s ease-in-out infinite; }
.chip .ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; }
.chip .ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip b { display: block; font-size: 14px; line-height: 1.25; }
.chip small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.chip.c1 { left: -30px; top: 18%; animation-delay: -2s; }
.chip.c2 { right: -24px; bottom: 16%; animation-delay: -5s; width: 220px; }
.toggle { margin-left: auto; width: 44px; height: 26px; border-radius: 99px; background: var(--green); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
@media (max-width: 560px) { .chip.c1 { display: none; } .chip.c2 { right: -6px; bottom: 6%; } .chip { width: 210px; transform: scale(.9); } }

/* Werte-Band (Marquee) */
.marquee { border-block: 1px solid var(--stroke); background: rgba(255,255,255,.025); overflow: hidden; position: relative; z-index: 2; }
.marquee .track { display: flex; gap: 56px; padding: 20px 0; width: max-content; animation: slide 40s linear infinite; }
.marquee span { white-space: nowrap; color: var(--text-2); font-weight: 600; display: inline-flex; align-items: center; gap: 12px; }
.marquee span::before { content: "✦"; color: #B79CFF; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section.band { padding: 110px 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(36px, 5vw, 62px); margin-top: 20px; }
.sec-head p { color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); margin-top: 18px; }

/* Spotlight (KI-Coach, KI-Assistent) */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot.rev .stage { order: -1; }
.spot .copy h2 { font-size: clamp(36px, 4.8vw, 58px); margin-top: 20px; }
.spot .copy > p { color: var(--text-2); font-size: 19px; margin: 20px 0 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.ticks li b { color: var(--text); }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat, var(--grad-btn); }
.spot-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: .5;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.badge-ai { display: inline-flex; gap: 8px; align-items: center; margin-top: 30px; font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) { .spot { grid-template-columns: 1fr; gap: 48px; } .spot.rev .stage { order: 0; } }

/* Bento-Features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { padding: 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--stroke); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), background .3s ease, border-color .3s ease; }
.tile:hover { transform: translateY(-4px); background: var(--card-2); border-color: rgba(183,156,255,.35); }
.tile::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, var(--tint, rgba(139,92,246,.35)), transparent 70%); opacity: .7; pointer-events: none; }
.tile.wide { grid-column: span 2; }
.tile .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 10px 26px -8px var(--tint2, var(--violet)); }
.tile .ic svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 22px; letter-spacing: -.02em; }
.tile p { color: var(--text-2); font-size: 15.5px; margin: 10px 0 0; }
.tile .new { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--grad-btn); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }

/* Manifest */
.manifest { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.16; letter-spacing: -.03em; font-weight: 700; max-width: 22ch; margin: 22px auto 0; text-align: center; }
.manifest .dim { color: var(--text-3); }

/* Galerie (Store-Screens) */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 10px 24px 34px; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; z-index: 2; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 280px; border-radius: 30px; scroll-snap-align: center; box-shadow: 0 30px 60px -28px rgba(0,0,0,.9), 0 0 0 1px var(--stroke); }
@media (min-width: 1240px) { .gallery { justify-content: center; } }
@media (max-width: 600px) { .gallery img { width: 230px; } }

/* Preise */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { padding: 38px 34px; border-radius: var(--r); background: var(--card); border: 1px solid var(--stroke); }
.plan.pro { background: linear-gradient(160deg, rgba(139,92,246,.35), rgba(91,141,239,.18)); border-color: rgba(183,156,255,.45); box-shadow: 0 40px 90px -40px rgba(139,92,246,.8); position: relative; }
.plan .tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.plan.pro .tag { color: #D9CCFF; }
.plan h3 { font-size: 26px; margin-top: 10px; }
.plan .price { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 0; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan li { padding-left: 30px; position: relative; color: var(--text-2); font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan.pro li::before { background-color: var(--violet); }
.plan .note { font-size: 13px; color: var(--text-3); margin-top: 22px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--stroke); border-radius: 20px; padding: 20px 24px; transition: background .2s; }
.faq details[open] { background: var(--card-2); }
.faq summary { font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #B79CFF; font-weight: 400; font-size: 24px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); margin: 14px 0 0; }

/* Ratgeber-Karten */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide { display: block; position: relative; padding: 26px 26px 50px; border-radius: 22px; background: var(--card); border: 1px solid var(--stroke); text-decoration: none; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.guide:hover { transform: translateY(-3px); background: var(--card-2); border-color: rgba(183,156,255,.35); }
.guide h3 { font-size: 19px; letter-spacing: -.015em; line-height: 1.25; }
.guide p { color: var(--text-2); font-size: 15px; margin: 8px 0 0; }
.guide span { position: absolute; left: 26px; bottom: 18px; color: #B79CFF; font-weight: 700; }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guides { grid-template-columns: 1fr; } }

/* CTA */
.cta-box { text-align: center; padding: 80px 32px; border-radius: 40px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(139,92,246,.55), rgba(91,141,239,.2) 45%, rgba(255,255,255,.03) 75%); border: 1px solid rgba(183,156,255,.3); }
.cta-box h2 { font-size: clamp(38px, 6vw, 72px); }
.cta-box p { color: var(--text-2); font-size: 19px; margin: 18px auto 34px; max-width: 44ch; }

/* Footer */
footer { padding: 70px 0 40px; border-top: 1px solid var(--stroke); position: relative; z-index: 2; color: var(--text-3); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-grid h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
.foot-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Scroll-Reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
