/* sipnetic.de – Stylesheet */
:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8edf6;
  --muted: #94a0b8;
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --accent-ink: #04121a;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 999; }
.skip:focus { left: 12px; top: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 11, 20, 0.88); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand span b { color: var(--accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); font-size: .94rem; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px -8px rgba(34, 211, 238, .55);
}
.btn-primary:hover { box-shadow: 0 12px 34px -8px rgba(34, 211, 238, .75); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 50% at 75% 30%, rgba(99, 102, 241, .28), transparent 70%),
    radial-gradient(35% 45% at 20% 20%, rgba(34, 211, 238, .22), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .5; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; color: var(--muted); margin-bottom: 22px;
}
.pill i { font-style: normal; background: rgba(52, 211, 153, .15); color: var(--ok); padding: 2px 9px; border-radius: 999px; font-weight: 600; font-size: .78rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
.grad { background: linear-gradient(90deg, var(--accent), #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--ok); }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 8%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .35), transparent);
  filter: blur(30px);
}
.hero-visual img { position: relative; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Sections ===== */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -40px; position: relative; z-index: 2; }
.stat { background: var(--bg-2); padding: 26px 22px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; font-weight: 750; color: var(--text); }
.stat span { color: var(--muted); font-size: .9rem; }

/* ===== Bento ===== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(34, 211, 238, .35); transform: translateY(-2px); }
.card h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(34, 211, 238, .1); color: var(--accent);
  border: 1px solid rgba(34, 211, 238, .2);
}
.icon svg { width: 22px; height: 22px; }
.icon.violet { background: rgba(99, 102, 241, .12); color: #a5b4fc; border-color: rgba(99, 102, 241, .25); }
.icon.green { background: rgba(52, 211, 153, .1); color: var(--ok); border-color: rgba(52, 211, 153, .22); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }

.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.list-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.list-item b { color: var(--text); font-weight: 600; }

/* ===== Note ===== */
.note {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 860px; margin: 48px auto 0; padding: 20px 24px;
  border-radius: var(--radius); background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .25);
  color: #f5e6c4;
}
.note svg { width: 22px; height: 22px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.note p { margin: 0; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.split p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.checks svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; margin-top: 4px; }

.code-card { border-radius: var(--radius); border: 1px solid var(--line); background: #050911; overflow: hidden; }
.code-card header { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.code-card header i { width: 10px; height: 10px; border-radius: 50%; background: #2a3346; }
.code-card dl { margin: 0; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9rem; }
.code-card dt { color: var(--muted); }
.code-card dd { margin: 0; color: var(--text); word-break: break-all; }

.qr-visual { display: grid; place-items: center; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(closest-side, rgba(99, 102, 241, .18), transparent), var(--surface); }
.qr-visual svg { width: min(220px, 70%); height: auto; color: var(--text); }
.qr-visual small { color: var(--muted); margin-top: 14px; display: block; text-align: center; }

/* ===== Changelog ===== */
.timeline { max-width: 760px; margin: 0 auto; border-left: 2px solid var(--line); padding-left: 28px; }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); }
.tl-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tl-item p { color: var(--muted); margin: 0; }
.center { text-align: center; }
.mt { margin-top: 28px; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(34, 211, 238, .3); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ===== CTA ===== */
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 28px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(60% 120% at 50% 0%, rgba(34, 211, 238, .2), transparent 70%), var(--bg-2);
}
.cta-box h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: #6c7891; }

/* ===== Legal pages ===== */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.placeholder { background: rgba(251, 191, 36, .15); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; font-size: .92rem; }

/* ===== Error pages ===== */
.error-page { min-height: calc(100vh - 68px); display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img { animation: none; }
  * { transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .bento .wide { grid-column: span 2; }
  .list, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 18px; background: rgba(7, 11, 20, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .bento, .list, .steps { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .card { padding: 22px; }
}
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), #38bdf8); }
.split.mt { margin-top: 64px; }
.hint-box { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); }
.hint-box svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.hint-box p { margin: 0; color: var(--text); font-size: .96rem; }

/* ===== Nach-oben-Button ===== */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(34, 211, 238, .4);
  background: rgba(12, 19, 34, .85); color: var(--accent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s, color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
