/* olisoft – design system from business card */

:root {
  --navy: #0f172a;
  --navy-muted: #334155;
  --accent: #4da6ff;
  --accent-bright: #66b2ff;
  --accent-soft: #a8d4ff;
  --hero-blue: #0066cc;
  --hero-blue-deep: #0052a3;
  --hero-blue-mid: #1180e7;
  --surface: #ffffff;
  --surface-tint: #f4f8fd;
  --surface-mist: #e8f2fc;
  --line: rgba(15, 23, 42, 0.08);
  --white: #ffffff;
  --radius: 1.25rem;
  --shadow-soft: 0 24px 60px rgba(0, 82, 163, 0.12);
  --font: "Outfit", system-ui, sans-serif;
  --container: 70rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--hero-blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  overflow-x: clip;
}

.section-header {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  min-width: 0;
}

.section-header h2,
.about-copy h2,
.legal-content h1 {
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

.section-lead {
  margin: 0;
  color: var(--navy-muted);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
  overflow-wrap: break-word;
}

/* Logo */
.logo,
.hero-brand,
.about-mark {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo {
  font-size: 1.35rem;
}

.logo-oli {
  color: var(--navy);
}

.logo-soft {
  color: var(--accent);
}

.hero .logo-oli,
.site-footer .logo-oli,
.about-mark .logo-oli {
  color: var(--white);
}

.hero .logo-soft,
.site-footer .logo-soft,
.about-mark .logo-soft {
  color: #8ec8ff;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  overflow-anchor: none;
  /* Keep compositing stable – visual chrome fades via ::before only */
  background: transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled::before,
.site-header.is-solid::before {
  opacity: 1;
  border-bottom-color: var(--line);
}

.site-header .header-inner {
  position: relative;
  z-index: 1;
}

.site-header:not(.is-scrolled):not(.is-solid) .logo-oli {
  color: var(--white);
}

.site-header:not(.is-scrolled):not(.is-solid) .logo-soft {
  color: #8ec8ff;
}

.site-header:not(.is-scrolled):not(.is-solid) .site-nav a {
  color: rgba(255, 255, 255, 0.92);
}

.site-header:not(.is-scrolled):not(.is-solid) .nav-cta {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
}

.site-nav a:hover {
  color: var(--hero-blue);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-tint);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  padding: 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header:not(.is-scrolled):not(.is-solid) .nav-toggle {
  color: var(--white);
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-solid .nav-toggle {
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn-primary {
  background: var(--white);
  color: var(--hero-blue-deep);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: #f0f7ff;
  color: var(--hero-blue-deep);
}

.contact .btn-primary,
.about .btn-primary {
  background: var(--hero-blue);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(0, 102, 204, 0.28);
}

.contact .btn-primary:hover {
  background: var(--hero-blue-deep);
  color: var(--white);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--navy);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--hero-blue);
}

/* Hero */
.hero {
  position: relative;
  /* svh = stabile Viewport-Höhe; dvh springt auf Mobile wenn die Browser-Leiste verschwindet */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  overflow-anchor: none;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 70% at 50% 35%, var(--hero-blue-mid), transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 100%, var(--hero-blue-deep), var(--hero-blue));
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-1 {
  width: min(28vw, 18rem);
  height: min(28vw, 18rem);
  top: 12%;
  right: 10%;
  background: radial-gradient(circle at 35% 30%, #7ec4ff, #2b8de8 55%, #0066cc 100%);
  opacity: 0.85;
  animation: float-orb 9s ease-in-out infinite;
}

.hero-orb-2 {
  width: min(18vw, 10rem);
  height: min(18vw, 10rem);
  bottom: 18%;
  left: 8%;
  background: radial-gradient(circle at 40% 35%, var(--accent-bright), transparent 70%);
  opacity: 0.55;
  animation: float-orb 11s ease-in-out infinite reverse;
}

.hero-ring {
  position: absolute;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.hero-ring-1 {
  width: min(70vw, 36rem);
  height: min(70vw, 36rem);
  top: 5%;
  right: -8%;
  animation: spin-slow 48s linear infinite;
}

.hero-ring-2 {
  width: min(45vw, 22rem);
  height: min(45vw, 22rem);
  bottom: 8%;
  left: -4%;
  border-color: rgba(168, 212, 255, 0.4);
  animation: spin-slow 60s linear infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  width: min(100% - 2rem, var(--container));
  max-width: 100%;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(1.5rem);
  animation: hero-in 1s var(--ease) 0.15s forwards;
}

.hero-content > * {
  max-width: 44rem;
}

.header-back {
  display: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--navy);
}

.header-back:hover {
  color: var(--hero-blue);
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 11vw, 4.5rem);
  line-height: 1;
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.45rem, 1.1rem + 2.5vw, 2.85rem);
  font-weight: 700;
  max-width: 18ch;
  overflow-wrap: break-word;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 0.92rem + 0.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 11rem);
}

/* Services */
.services {
  background:
    linear-gradient(180deg, var(--surface-tint) 0%, var(--surface) 40%, var(--surface) 100%);
}

.services-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.45em;
  row-gap: 0.15em;
}

.services-heading .sep {
  color: var(--accent);
  font-weight: 600;
}

.service-list {
  display: grid;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

.service-index {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 0.35rem;
}

.service-body {
  min-width: 0;
}

.service-body h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem);
}

.service-body p,
.service-body li,
.about-copy p,
.contact-list dd {
  overflow-wrap: break-word;
}

.service-body p {
  color: var(--navy-muted);
  margin-bottom: 1rem;
  max-width: 42rem;
}

.service-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.service-body li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--navy);
  font-weight: 500;
}

.service-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* About */
.about {
  padding-top: 0;
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.about-surface {
  background: var(--surface-mist);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.about-panel {
  position: relative;
  min-height: 22rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 60% 30%, var(--hero-blue-mid), transparent 55%),
    linear-gradient(160deg, var(--hero-blue), var(--hero-blue-deep));
  box-shadow: var(--shadow-soft);
}

.about-orb {
  position: absolute;
  width: 8rem;
  height: 8rem;
  top: 12%;
  right: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8fc9ff, #2a8de6 60%, transparent);
  opacity: 0.9;
  animation: float-orb 8s ease-in-out infinite;
}

.about-ring {
  position: absolute;
  width: 16rem;
  height: 16rem;
  left: -3rem;
  bottom: -4rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.about-mark {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
}

.about-tagline {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.about-copy p {
  color: var(--navy-muted);
  margin-bottom: 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 2rem;
  align-items: end;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-tint) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-list div {
  display: grid;
  gap: 0.25rem;
}

.contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-list dd {
  margin: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.2rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--hero-blue);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(ellipse 80% 120% at 80% 0%, var(--hero-blue-mid), transparent 50%),
    linear-gradient(180deg, var(--hero-blue), var(--hero-blue-deep));
  color: var(--white);
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand .logo {
  margin: 0;
  font-size: 1.5rem;
}

.footer-tagline {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--accent-soft);
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* Legal pages */
.legal-page .site-header {
  position: sticky;
}

.legal-main {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--surface-tint);
  min-height: 60vh;
}

.legal-content {
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-soft);
}

.legal-content h1 {
  margin-bottom: 0.75rem;
}

.legal-note {
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #fff8e8;
  border: 1px solid #f0d9a0;
  color: #5c4a1f;
  font-size: 0.95rem;
}

.legal-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

.legal-content section {
  margin-top: 2rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.legal-content p,
.legal-content li {
  color: var(--navy-muted);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.back-link {
  margin-top: 2.5rem;
}

.back-link a {
  font-weight: 600;
  text-decoration: none;
  color: var(--hero-blue);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .about-panel {
    min-height: 15rem;
  }

  .about-tagline {
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    padding-inline: 0.75rem;
  }

  .about-mark {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    color: var(--navy) !important;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    background: var(--surface-tint) !important;
    border-color: var(--line) !important;
    color: var(--navy) !important;
  }

  .site-header.is-solid .site-nav,
  .legal-page .site-nav {
    display: none;
  }

  .legal-page .site-nav.is-open-desktop {
    display: none;
  }

  .legal-page .header-back {
    display: inline-flex;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }

  .hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-orb-1 {
    width: 7.5rem;
    height: 7.5rem;
    top: 18%;
    right: 4%;
  }

  .hero-orb-2 {
    width: 5rem;
    height: 5rem;
  }

  .hero-ring-1 {
    width: 18rem;
    height: 18rem;
    right: -6rem;
  }

  .hero-ring-2 {
    width: 12rem;
    height: 12rem;
    left: -4rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 4rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header h2,
  .about-copy h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .services-heading .sep {
    display: none;
  }

  .services-heading .part:not(:last-child)::after {
    content: "·";
    margin-left: 0.45em;
    color: var(--accent);
  }

  .btn {
    padding: 0.85rem 1.15rem;
  }

  .contact-panel {
    padding: 1.35rem;
  }
}

@media (min-width: 861px) {
  .legal-page .site-nav.is-open-desktop {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .reveal,
  .hero-orb,
  .hero-ring,
  .about-orb {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
