/* rigilab.com — no build step, no external requests (fonts/analytics) on purpose. */
:root {
  --ink: #0c1a2b;
  --ink-2: #334155;
  --muted: #5b6b7f;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-deep: #0c1a2b;
  --brand: #0b8f7f;        /* Rigi-Grün */
  --brand-strong: #07705f;
  --brand-soft: #e3f5f2;
  --sun: #f2b84b;          /* Morgenrot auf dem Kulm */
  --sky: #2f6fdf;
  --radius: 12px;
  --shadow: 0 24px 60px -20px rgba(12, 26, 43, .28), 0 2px 6px rgba(12, 26, 43, .06);
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); }

/* ---------- Header ---------- */
.utility { font-size: 14px; color: var(--ink-2); }
.utility .wrap { display: flex; justify-content: flex-end; gap: 28px; height: 40px; align-items: center; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--brand-strong); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; height: 76px; gap: 40px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo svg { width: 44px; height: 30px; }
.logo-word { font-weight: 800; font-size: 23px; letter-spacing: -.03em; }
.logo-word span { color: var(--brand); }

.nav-panel { display: flex; flex: 1; align-items: center; gap: 40px; }
.nav-main { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-main > li > a, .nav-main > li > button {
  display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 8px;
  font: 500 16px/1 var(--font); color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nav-main > li > a:hover, .nav-main > li > button:hover,
.nav-main > li > button[aria-expanded="true"] { background: var(--bg-soft); }
.chev { width: 14px; height: 14px; transition: transform .2s; }
button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.burger svg { width: 26px; height: 26px; margin: auto; }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: 1fr 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility 0s .16s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.mega::before { /* little caret under the trigger */
  content: ""; position: absolute; top: -7px; z-index: 1; left: var(--caret-x, 200px);
  width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.mega-main { padding: 36px 40px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-strong); }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 22px 0 32px; }
.mega-col h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega-link {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
  padding: 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none;
}
.mega-link:hover { background: var(--bg-soft); }
.mega-link .ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.mega-link .ico svg { width: 19px; height: 19px; }
.mega-link strong { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.mega-link small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.mega-foot { grid-column: 1; border-top: 1px solid var(--line); padding: 22px 40px 26px; display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.mega-foot .eyebrow { margin-right: 8px; }
.mega-foot a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 500; }
.mega-foot a:hover { color: var(--brand-strong); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-live { background: #16a34a; } .dot-beta { background: var(--sun); } .dot-lab { background: var(--sky); }

.mega-side { border-bottom-right-radius: var(--radius); grid-column: 2; grid-row: 1 / span 2; background: var(--bg-soft); border-left: 1px solid var(--line); padding: 34px 32px; display: flex; flex-direction: column; gap: 22px; }
.mega-side a { text-decoration: none; }
.mega-side .side-item strong { display: block; font-size: 15px; font-weight: 700; }
.mega-side .side-item small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.mega-side .side-item:hover strong { color: var(--brand-strong); }
.mega-side .side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.mega-side .side-list a:hover { color: var(--brand-strong); }
.mega-side .btn { margin-top: auto; width: 100%; }

.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-live { background: #dcfce7; color: #166534; }
.badge-beta { background: #fdf0d5; color: #8a5a00; }
.badge-lab { background: #e0eafc; color: #1d4ea8; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 19px; color: var(--ink-2); margin-top: 24px; max-width: 560px; }
.hero .actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.pulse { animation: pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.pulse.d2 { animation-delay: .9s; } .pulse.d3 { animation-delay: 1.7s; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.flow { stroke-dasharray: 4 7; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .pulse, .flow { animation: none; } }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-size: 17px; font-weight: 700; }
.fact span { color: var(--muted); font-size: 14.5px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-top: 12px; }
.section-head p { font-size: 18px; color: var(--ink-2); margin-top: 16px; }

.cat { margin-top: 48px; }
.cat:first-of-type { margin-top: 0; }
.cat-title { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 4px; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: var(--brand-strong); display: flex; gap: 6px; align-items: center; }
.card .more.muted { color: var(--muted); font-weight: 500; }
.card-pitch { background: var(--bg-soft); border-style: dashed; justify-content: center; }

/* ---------- Incubator steps ---------- */
.dark { background: var(--bg-deep); color: #fff; }
.dark .section-head p { color: #b6c3d4; }
.dark .eyebrow { color: #5fd6c4; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 28px 28px 0 0; border-top: 2px solid rgba(255,255,255,.16); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -15px; left: 0; padding-right: 12px; background: var(--bg-deep);
  font: 700 22px/1 var(--font); color: #5fd6c4;
}
.step h3 { font-size: 20px; margin: 10px 0 10px; display: flex; gap: 10px; align-items: center; }
.step p { color: #b6c3d4; font-size: 15.5px; }

/* ---------- Platform ---------- */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.stack { display: grid; gap: 10px; }
.layer { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.layer .ico { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); flex: none; }
.layer .ico svg { width: 20px; height: 20px; }
.layer strong { display: block; font-size: 15.5px; }
.layer span { color: var(--muted); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); }
.checks svg { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.checks strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-strong), #0d5f8f); color: #fff; padding: 72px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.cta-band p { color: #d7ece8; margin-top: 10px; font-size: 17px; max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #b6c3d4; padding: 64px 0 36px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .logo-word { color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-about { margin-top: 16px; max-width: 320px; }
.foot-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 104px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: 40px; font-weight: 800; margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal address { font-style: normal; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mega { grid-template-columns: 1fr; }
  .mega-side { display: none; }
}
@media (max-width: 900px) {
  .utility { display: none; }
  .nav { height: 64px; }
  .burger { display: grid; }
  /* backdrop-filter would make the header the containing block of the fixed panel */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-panel {
    display: none; position: fixed; inset: 64px 0 0 0; background: #fff; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; padding: 8px 16px 32px;
  }
  .site-header.menu-open .nav-panel { display: flex; }
  .nav-main { flex-direction: column; gap: 0; }
  .nav-cta { flex-direction: column; margin: 24px 0 0; }
  .nav-main > li { border-bottom: 1px solid var(--line); }
  .nav-main > li > a, .nav-main > li > button { width: 100%; height: 56px; padding: 0 4px; justify-content: space-between; font-size: 17px; }
  .nav-main > li > a:hover, .nav-main > li > button:hover, .nav-main > li > button[aria-expanded="true"] { background: none; }
  .mega {
    position: static; box-shadow: none; border: 0; border-radius: 0; display: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .mega.open { display: block; }
  .mega::before { display: none; }
  .mega-main { padding: 0 0 8px; }
  .mega-main > .eyebrow { display: none; }
  .mega-cols { grid-template-columns: 1fr; gap: 18px; margin: 4px 0 12px; }
  .mega-foot { padding: 14px 0 18px; gap: 14px; }
  .hero { padding: 32px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 380px; justify-self: center; order: -1; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 16px 20px 0; border-left: 0; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .platform { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero .actions .btn { flex: 1; }
  .card { padding: 22px; }
}
