:root {
  --bg: #f3f6fb;
  --bg-strong: #e8eef8;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #0f172a;
  --ink-soft: #24324a;
  --muted: #4f5f7a;
  --line: #d5dfee;
  --line-strong: #b9c8df;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-warm: #f59e0b;
  --accent-green: #059669;
  --focus: #0ea5e9;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 28px 56px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 16px 30px rgba(15, 23, 42, 0.08);
  --container: min(1120px, 92vw);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Avenir Next", "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: radial-gradient(circle at 8% -5%, #ffffff 0, var(--bg) 45%, #edf3fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

main a:not(.pill):not(.nav-link):not(.hub-tile):not(.app-card__link) {
  color: #1e40af;
  text-decoration: underline;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.14em;
}

main a:not(.pill):not(.nav-link):not(.hub-tile):not(.app-card__link):hover {
  color: #1e3a8a;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

section[id] {
  scroll-margin-top: 96px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #f8fafc;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px max(24px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 251, 255, 0.84);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(140deg, #2563eb, #0ea5e9);
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: #e5eeff;
  color: var(--ink);
  transform: translateY(-1px);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 3px;
  background: #f8fbff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 11px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-btn.is-active {
  background: var(--ink);
  color: #f8fafc;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pill.primary {
  color: #f8fafc;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.25);
}

.pill.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line-strong);
}

.pill.ghost {
  color: var(--ink-soft);
  background: #f8fbff;
  border-color: var(--line);
}

.pill:hover {
  transform: translateY(-1px);
}

main {
  width: 100%;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0;
}

.section + .section {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.section-header {
  margin-bottom: 24px;
}

.section-header h1,
.section-header h2 {
  margin: 8px 0 0;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.section h2 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.section p {
  margin: 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #37507f;
}

.hero {
  width: var(--container);
  margin: 0 auto;
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.hero-content h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  margin: 10px 0 14px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 68ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #b6cbef;
  background: #eaf2ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
}

.hero-cta {
  margin: 20px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-points {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-media {
  min-width: 0;
}

.device {
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card.highlight {
  background: linear-gradient(165deg, #ffffff, #eef5ff);
}

.card.highlight.alt {
  background: linear-gradient(165deg, #ffffff, #ecfbf6);
}

.card.muted {
  background: linear-gradient(165deg, #ffffff, #f5f8fc);
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.split {
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.privacy-card {
  background: linear-gradient(155deg, #ffffff, #f3f8ff);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.privacy-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: start;
}

.screen-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.screen-card figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.screen-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 36px 0 52px;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 700;
}

.footer-contact a {
  font-weight: 800;
  color: var(--ink);
}

/* Hub */
.page-hub {
  background: radial-gradient(circle at 10% -10%, #1d355d 0%, #0c1424 42%, #0a1120 100%);
  color: #e2e8f0;
}

.page-hub .topbar {
  background: rgba(7, 12, 21, 0.8);
  border-bottom-color: rgba(148, 163, 184, 0.24);
}

.page-hub .brand-name {
  color: #f8fafc;
}

.page-hub .brand-sub,
.page-hub .nav-link {
  color: #c7d5eb;
}

.page-hub .nav-link:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
}

.page-hub .lang-switch {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.25);
}

.hub-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0 30px;
}

.hub-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.hub-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #f8fbff;
}

.hero-summary {
  margin: 5px 0;
  font-size: 17px;
  font-weight: 700;
  color: #e2e8f0;
}

.hero-summary--ausmal {
  color: #ffd985;
}

.hero-summary--remed {
  color: #9ef3cc;
}

.hero-summary--cyclr {
  color: #9cd6ff;
}

.hub-hero .mini-points {
  color: #dce6f8;
}

.hub-tiles {
  display: grid;
  gap: 12px;
}

.hub-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.56);
  padding: 14px;
  box-shadow: 0 22px 36px rgba(2, 6, 23, 0.4);
}

.hub-tile picture {
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #091324;
  flex-shrink: 0;
}

.hub-tile__icon {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.hub-tile__title {
  font-size: 17px;
  font-weight: 800;
  color: #f8fbff;
}

.hub-tile__meta {
  font-size: 13px;
  color: #d8e3f7;
}

.hub-status-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.46);
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.hub-apps {
  padding-top: 44px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.app-card {
  background: linear-gradient(160deg, rgba(11, 18, 32, 0.96), rgba(16, 25, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 22px;
  padding: 22px;
  color: #eff6ff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  box-shadow: 0 26px 42px rgba(2, 6, 23, 0.42);
}

.app-card__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.app-card__identity {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-card__identity picture {
  width: 52px;
  height: 52px;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 13px;
  overflow: hidden;
  background: #0c1322;
  flex-shrink: 0;
}

.app-icon {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.app-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: #f8fbff;
}

.app-tagline,
.app-desc {
  margin: 0;
  color: #dbe8ff;
}

.app-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  color: #e4edfb;
  font-size: 14px;
}

.app-points li::before {
  content: "• ";
  color: #7dd3fc;
}

.app-card .hero-cta {
  margin-top: auto;
}

.app-status {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-status--live {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.44);
  color: #86efac;
}

.app-preview {
  background: rgba(8, 15, 29, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 9px;
}

.app-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-hub .section {
  color: #dce7fb;
  background: transparent;
}

.page-hub .section-header h2 {
  color: #f8fbff;
}

.page-hub .section-header p,
.page-hub .section .eyebrow {
  color: #c7d8f5;
}

.page-hub .card h3 {
  color: #0f172a;
}

.page-hub .card p,
.page-hub .card li {
  color: #445676;
}

.page-hub .footer {
  border-top-color: rgba(148, 163, 184, 0.26);
}

.page-hub .footer .brand-name,
.page-hub .footer p,
.page-hub .footer-links a,
.page-hub .footer-contact a {
  color: #dbe8ff;
}

.app-card--warm {
  border-color: rgba(245, 158, 11, 0.46);
}

.app-card--mint {
  border-color: rgba(16, 185, 129, 0.46);
}

.app-card--dark {
  border-color: rgba(56, 189, 248, 0.46);
}

/* Remed theme */
.theme-remed {
  --accent: #53b07c;
  --accent-strong: #3a9f94;
  --focus: #16a34a;
  --bg: #eef7f3;
  --surface-soft: #f4fbf8;
  --ink-soft: #1f3d36;
  --muted: #46675f;
  --line: #c7e0d5;
  --line-strong: #aacdbd;
  background: radial-gradient(circle at 10% -12%, #ffffff 0, #eef7f3 44%, #e9f3ff 100%);
}

.theme-remed .badge {
  background: linear-gradient(140deg, #edf8ff, #eef9f3);
  border-color: #b5d8d3;
  color: #256b63;
}

.theme-remed .brand-mark {
  background: linear-gradient(140deg, #4ab684, #59b4cb 62%, #7f8ef1);
  box-shadow: 0 12px 24px rgba(75, 147, 131, 0.3);
}

.theme-remed .nav-link:hover {
  background: #e6f5f0;
}

.theme-remed .pill.primary {
  background: linear-gradient(132deg, #55b783, #49b49f 56%, #6f8fed);
  box-shadow: 0 14px 24px rgba(84, 166, 137, 0.28);
}

.theme-remed .pill.secondary {
  border-color: #b8d7cf;
  background: #ffffff;
}

.theme-remed .pill.ghost {
  border-color: #c6ddd8;
  background: #f3faf7;
}

.theme-remed .device {
  border-color: #bad8ca;
  background: linear-gradient(165deg, #ffffff, #f5fbff);
}

.theme-remed .card,
.theme-remed .screen-card,
.theme-remed .privacy-card {
  border-color: #c3ddcf;
  background: linear-gradient(162deg, #ffffff, #f3faf7);
}

.theme-remed .card.highlight {
  background: linear-gradient(160deg, #ffffff, #edf9f3);
}

.theme-remed .card.highlight.alt {
  background: linear-gradient(160deg, #fff7fb, #eff4ff);
}

.theme-remed .section + .section {
  border-top-color: rgba(75, 116, 102, 0.12);
}

/* Cyclr theme */
.theme-cyclr {
  --bg: #0d1320;
  --bg-strong: #111b2e;
  --surface: #131d30;
  --surface-soft: #172338;
  --ink: #e8edf8;
  --ink-soft: #c9d6ec;
  --muted: #a9bad7;
  --line: #24324d;
  --line-strong: #32466a;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --focus: #38bdf8;
  --shadow-lg: 0 28px 56px rgba(2, 6, 23, 0.56);
  --shadow-md: 0 16px 30px rgba(2, 6, 23, 0.45);
  color-scheme: dark;
  background: radial-gradient(circle at 8% -8%, #1f2c46 0, #0d1320 45%, #090f1a 100%);
}

.theme-cyclr .topbar {
  background: rgba(10, 16, 28, 0.84);
  border-bottom-color: rgba(148, 163, 184, 0.24);
}

.theme-cyclr .lang-switch {
  background: rgba(8, 15, 27, 0.72);
  border-color: #33425f;
}

.theme-cyclr .lang-btn {
  color: #bcd0ef;
}

.theme-cyclr .lang-btn.is-active {
  background: #f8fafc;
  color: #0f172a;
}

.theme-cyclr .brand-mark {
  background: linear-gradient(140deg, #f59e0b, #38bdf8);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

.theme-cyclr .nav-link:hover {
  background: #1b2840;
}

.theme-cyclr .badge {
  background: #1e2e49;
  border-color: #44618d;
  color: #fcd48e;
}

.theme-cyclr .device,
.theme-cyclr .card,
.theme-cyclr .screen-card,
.theme-cyclr .privacy-card {
  background: #152136;
  border-color: #2b3d5e;
}

.theme-cyclr .card.highlight,
.theme-cyclr .card.highlight.alt,
.theme-cyclr .card.muted {
  background: #18253d;
}

.theme-cyclr .pill.secondary,
.theme-cyclr .pill.ghost {
  background: #101a2b;
  color: #e8edf8;
  border-color: #304363;
}

.theme-cyclr .section + .section {
  border-top-color: rgba(148, 163, 184, 0.18);
}

.theme-cyclr .footer {
  border-top-color: rgba(148, 163, 184, 0.22);
}

/* Legal page layout */
main.section {
  max-width: 860px;
  display: grid;
  gap: 16px;
}

main.section .section-header {
  margin-bottom: 8px;
}

/* Language visibility */
[data-lang] {
  display: none;
}

.lang-de [data-lang="de"] {
  display: revert;
}

.lang-en [data-lang="en"] {
  display: revert;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .hub-hero__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .hub-hero {
    padding-top: 66px;
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: inline-flex;
  }

  .nav.nav-collapsible {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    transform: translateY(-116%);
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: rgba(248, 251, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .theme-cyclr .nav.nav-collapsible,
  .page-hub .nav.nav-collapsible {
    background: rgba(9, 16, 27, 0.96);
    border-bottom-color: rgba(148, 163, 184, 0.26);
  }

  .nav.nav-collapsible.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .section,
  .split,
  .hub-hero,
  .footer {
    width: min(100%, calc(100vw - 24px));
  }

  .hero-content h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .hub-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    gap: 8px;
  }

  .pill {
    width: 100%;
  }

  .actions .pill {
    width: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .actions {
    margin-left: auto;
  }

  .nav:not(.nav-collapsible) {
    width: 100%;
    order: 3;
    justify-content: flex-start;
  }
}
