/* =========================================================================
   Klip Website – Design-System (Web-Umsetzung des DESIGN_MANIFEST)
   Dunkel · Aurora-Tiefe · Mint-Akzent · solide Karten · dunkles Glas
   ========================================================================= */

:root {
  /* Farben */
  --cosmos:        #131328;
  --cosmos-deep:   #0d0d1e;
  --card:          #14142b;
  --mint:          #00ffb2;
  --purple:        #7c3aed;
  --purple-light:  #a78bfa;
  --blue:          #0a84ff;

  /* Text-Opazitäten (weiß) */
  --t-100: rgba(255,255,255,1);
  --t-70:  rgba(255,255,255,.70);
  --t-55:  rgba(255,255,255,.55);
  --t-35:  rgba(255,255,255,.35);
  --t-28:  rgba(255,255,255,.28);
  --line:  rgba(255,255,255,.08);
  --line-2:rgba(255,255,255,.06);

  /* Maße */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;
  --maxw:      1120px;
  --gap:       clamp(16px, 3vw, 28px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, "Apple Color Emoji", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--t-100);
  background: var(--cosmos-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--t-70); }

/* ---------- Aurora-Hintergrund (fix hinter allem) ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1;
  background: var(--cosmos);
  overflow: hidden;
}
.aurora::before, .aurora::after, .aurora span {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5;
}
.aurora::before {
  width: 70vw; height: 55vh; top: -12vh; left: -8vw;
  background: radial-gradient(circle, rgba(124,58,237,.55), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora::after {
  width: 60vw; height: 50vh; top: 25vh; right: -10vw;
  background: radial-gradient(circle, rgba(151,90,247,.42), transparent 65%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.aurora span {
  width: 65vw; height: 50vh; bottom: -15vh; left: 10vw;
  background: radial-gradient(circle, rgba(72,41,184,.45), transparent 65%);
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(6vw, 4vh); } }
@keyframes drift2 { to { transform: translate(-5vw, 5vh); } }
@keyframes drift3 { to { transform: translate(5vw, -4vh); } }
@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after, .aurora span { animation: none; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
section { padding: clamp(56px, 9vw, 120px) 0; }
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--t-28); margin-bottom: 14px;
}
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--t-55); max-width: 42ch; }
.center .lead { margin-inline: auto; }

/* ---------- Skip-Link (Barrierefreiheit) ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--mint); color: #000; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Fokus-Sichtbarkeit ---------- */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(13,13,30,.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(13,13,30,.8); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 32px; height: 32px; border-radius: 23%; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--t-70); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(13,13,30,.97); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 4px; font-size: 1.05rem; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
}

/* ---------- Buttons (dunkles Glas + Mint) ---------- */
.btn {
  --b: var(--mint);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  color: var(--b); border: 1px solid rgba(0,255,178,.45);
  background: rgba(0,255,178,.10);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,255,178,.14);
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { text-decoration: none; background: rgba(0,255,178,.16); border-color: rgba(0,255,178,.6); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--mint); color: #04150f; border-color: var(--mint); box-shadow: 0 8px 26px rgba(0,255,178,.28); }
.btn-solid:hover { background: #33ffc4; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--t-70); box-shadow: none; }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }

/* App-Store-Badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 16px; color: #fff;
  background: #000; border: 1px solid rgba(255,255,255,.18);
  transition: transform .15s, border-color .2s;
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .sb-small { font-size: .68rem; color: var(--t-55); display: block; line-height: 1; }
.store-badge .sb-big { font-size: 1.15rem; font-weight: 600; line-height: 1.2; }

/* ---------- Karten ---------- */
.card {
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  padding: clamp(20px, 3vw, 30px);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--mint);
  background: rgba(0,255,178,.10); border: 1px solid rgba(0,255,178,.24);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .grad { background: linear-gradient(120deg, var(--mint), var(--purple-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 22px auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .85rem; color: var(--t-35); }
.hero-visual { margin-top: clamp(40px, 6vw, 72px); display: flex; justify-content: center; }
.hero-visual .mock { width: min(760px, 100%); }

/* ---------- Feature-Grid ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { }
.feature .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; color: var(--mint);
  background: rgba(0,255,178,.12); border: 1px solid rgba(0,255,178,.22);
}
.feature.purple .ico { color: var(--purple-light); background: rgba(124,58,237,.16); border-color: rgba(124,58,237,.3); }
.feature.blue .ico   { color: var(--blue); background: rgba(10,132,255,.16); border-color: rgba(10,132,255,.3); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--t-55); font-size: .96rem; margin: 0; }
.feature .ico svg { width: 24px; height: 24px; }

/* ---------- Vergleich Free/Pro ---------- */
.compare { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare caption { text-align: left; color: var(--t-35); font-size: .85rem; margin-bottom: 10px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-2); }
.compare thead th { font-size: .95rem; color: var(--t-70); font-weight: 600; }
.compare thead th.col-pro { color: var(--mint); }
.compare tbody th { font-weight: 500; color: #fff; }
.compare td { text-align: center; color: var(--t-70); }
.compare td.col-pro { color: #fff; }
.compare .yes { color: var(--mint); font-weight: 700; }
.compare .no  { color: var(--t-28); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* ---------- Preis ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan.pro { border-color: rgba(0,255,178,.35); box-shadow: 0 20px 50px rgba(0,255,178,.10); position: relative; }
.plan .tag { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--mint); background: rgba(0,255,178,.14); padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--t-35); }
.plan .price-note { color: var(--t-35); font-size: .85rem; margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--t-70); font-size: .95rem; }
.plan li svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--mint); margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ (native <details>) ---------- */
.faq { display: grid; gap: 12px; max-width: 780px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 80%, transparent); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px;
  font-weight: 600; color: #fff; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--t-55); font-size: .96rem; }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band .card { padding: clamp(32px, 6vw, 64px); background: linear-gradient(160deg, rgba(124,58,237,.16), rgba(0,255,178,.06)); border-color: rgba(0,255,178,.2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 260px; }
.footer-brand p { font-size: .9rem; color: var(--t-35); }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--t-28); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--t-70); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--t-35); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Legal / Doc-Seiten ---------- */
.doc { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.doc .updated { color: var(--t-35); font-size: .85rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--t-70); font-size: .98rem; }
.doc address { font-style: normal; color: var(--t-70); }
.doc .note { margin-top: 32px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: .88rem; color: var(--t-35); }

/* ---------- Hilfe-Seite ---------- */
.help-section { margin-bottom: 34px; }
.help-section > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 16px; }
.help-section .badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--mint); background: rgba(0,255,178,.14); }
.help-section .badge svg { width: 18px; height: 18px; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Sprachumschalter ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  padding: 6px 12px; font-size: .82rem; font-weight: 700; color: var(--t-55);
  letter-spacing: .04em;
}
.lang-switch a:hover { text-decoration: none; color: #fff; }
.lang-switch a[aria-current="true"] { background: rgba(0,255,178,.14); color: var(--mint); }
@media (max-width: 820px) { .nav-links .lang-switch { align-self: flex-start; margin-top: 8px; } }

/* ---------- Screenshot-Showcase ---------- */
.showcase { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 52px; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; justify-items: center; } }
.shot { position: relative; }
.shot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.shot.iphone { max-width: 300px; }
.shot.mac { max-width: 100%; }
.shot .caption { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--t-35); }
.shot.reveal.visible img { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .shot.reveal.visible img { animation: none; } }

/* ---------- Cookie-/Datenschutz-Hinweis ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 660px; margin-inline: auto;
  background: rgba(20,20,43,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 18px 48px rgba(0,0,0,.5);
  animation: cb-in .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes cb-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.cookie-banner p { margin: 0; font-size: .86rem; color: var(--t-70); flex: 1 1 280px; line-height: 1.5; }
.cookie-banner .cb-actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 10px 20px; font-size: .9rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.stack { display: grid; gap: 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
