:root {
  --color-primary: #1a77b3;
  --color-primary-dark: #0d5b89;
  --color-primary-light: #4da3d9;
  --color-text: #101114;
  --color-body: #56606b;
  --color-bg: #ffffff;
  --color-surface: #f5f9fc;
  --color-dark: #08141d;
  --color-border: rgba(16, 17, 20, 0.08);
  --shadow-soft: 0 24px 70px rgba(8, 20, 29, 0.1);
  --shadow-card: 0 18px 40px rgba(26, 119, 179, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", "Manrope", Arial, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(77, 163, 217, 0.14), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 42%, #f5f9fc 100%);
}

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 17, 20, 0.06);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logo {
  width: 154px;
  height: auto;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 250px;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.brand-copy small,
.nav-links {
  color: var(--color-body);
}

.brand-copy small {
  font-size: 0.82rem;
  line-height: 1.35;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-weight: 600;
  justify-content: flex-end;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch__select {
  min-width: 96px;
  min-height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.lang-switch::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-body);
  border-bottom: 2px solid var(--color-body);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-primary);
}

.hero,
.section {
  padding: 96px 0;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.76) 62%, rgba(255, 255, 255, 0.88) 100%),
    linear-gradient(180deg, rgba(245, 249, 252, 0.08), rgba(245, 249, 252, 0.42)),
    url("./assets/xentral-hero.webp") center right / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11.5ch;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5.1vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.lead,
.section-heading p,
.info-card p,
.service-card p,
.timeline-card p,
.value-panel p,
.contact-panel p,
.hero-points,
.focus-card p,
.hero-stats span {
  color: var(--color-body);
  font-size: 1.04rem;
  line-height: 1.72;
}

.partner-logo {
  display: block;
  width: auto;
  max-width: min(320px, 100%);
  height: 56px;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: left center;
}

.partner-logo-xentral {
  max-width: min(360px, 100%);
  height: 64px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-card);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-primary-dark);
}

.button-secondary {
  border: 1px solid rgba(16, 17, 20, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

.hero-points,
.service-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-points li,
.service-card li {
  position: relative;
  padding-left: 18px;
}

.hero-points li::before,
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-primary-light);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.focus-card,
.info-card,
.service-card,
.timeline-card,
.contact-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.focus-card {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(26, 119, 179, 0.08), rgba(77, 163, 217, 0.16)),
    rgba(255, 255, 255, 0.96);
}

.focus-card span,
.card-index,
.timeline-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.3rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-stats article {
  padding: 22px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-stats span {
  overflow-wrap: anywhere;
}

.section-light {
  background: rgba(245, 249, 252, 0.74);
}

.section-dark {
  background:
    radial-gradient(circle at top right, rgba(77, 163, 217, 0.18), transparent 28%),
    linear-gradient(180deg, #0a1823 0%, #0c1b28 100%);
  color: white;
}

.section-dark .eyebrow {
  color: #8fd0ff;
}

.section-dark h2,
.section-dark strong,
.section-dark p {
  color: white;
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 42px;
}

.split {
  grid-template-columns: 1fr 0.9fr;
  align-items: end;
}

.card-grid,
.timeline-grid,
.avoid-grid {
  display: grid;
  gap: 22px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.service-card,
.timeline-card {
  padding: 28px;
}

.info-card {
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.info-card:hover {
  transform: translateY(-5px);
  background: var(--color-primary);
  color: white;
}

.info-card:hover p,
.info-card:hover .card-index {
  color: white;
}

.service-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 22px;
}

.roi-shell {
  display: grid;
  gap: 24px;
}

.roi-embed-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.roi-embed-card {
  padding: 14px;
  overflow: hidden;
}

.roi-embed {
  display: block;
  width: 100%;
  min-height: 980px;
  height: 100vh;
  border: 0;
  border-radius: 18px;
  background: white;
}

.service-card.featured {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(26, 119, 179, 0.08), rgba(255, 255, 255, 0.98)),
    white;
}

.service-card ul {
  margin-top: 20px;
  color: var(--color-body);
  line-height: 1.84;
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-card {
  min-height: 220px;
}

.value-panel {
  display: grid;
  gap: 28px;
}

.avoid-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.avoid-grid article {
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.avoid-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.legal-card {
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal-card h3 {
  margin: 28px 0 10px;
  font-size: 1.02rem;
}

.legal-card p,
.legal-card li {
  color: var(--color-body);
  line-height: 1.78;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-card strong {
  color: var(--color-text);
}

.button-social {
  border-color: rgba(26, 119, 179, 0.18);
  color: var(--color-primary);
  gap: 10px;
}

.button-social::before {
  content: "in";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #0a66c2;
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.site-imprint {
  padding: 0 0 40px;
}

.imprint-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 28px 32px;
}

.imprint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.imprint-label {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.imprint-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 18px;
}

.imprint-links a {
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.imprint-links a:hover {
  color: var(--color-primary);
}

.imprint-entry {
  margin: 0;
  color: var(--color-body);
  line-height: 1.72;
}

.imprint-entry strong {
  color: var(--color-text);
}

.section-divider {
  width: min(85%, 1000px);
  height: 4px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    rgba(26, 119, 179, 0),
    #1a77b3,
    #4da3d9,
    #1a77b3,
    rgba(26, 119, 179, 0)
  );
}

@media (max-width: 1080px) {
  .timeline-grid,
  .avoid-grid,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-copy {
    max-width: 210px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .service-layout,
  .timeline-grid,
  .avoid-grid,
  .three-up,
  .legal-grid,
  .contact-panel,
  .imprint-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-points,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 128px;
  }

  .brand-copy {
    max-width: none;
  }

  .hero,
  .section {
    padding: 72px 0;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .focus-card,
  .info-card,
  .service-card,
  .timeline-card,
  .roi-intro-card,
  .roi-embed-card,
  .contact-panel {
    border-radius: 22px;
  }

  .roi-embed {
    min-height: 860px;
  }
}
