/* =========================================================
   DATANOVA – MAIN STYLESHEET
   ========================================================= */

/* ---------------------------------------------------------
   VARIABLES & BASE
   --------------------------------------------------------- */

:root {
  --navy: #061a30;
  --navy-light: #082848;
  --blue: #0b86f5;
  --blue-dark: #2563eb;
  --text: #122238;
  --text-muted: #566275;
  --line: #dce2e9;
  --white: #fff;
  --max: 1160px;
  --surface: #ffffff;
  --surface-light: #f7f9fb;
  --border: #dce2e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

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

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

.blue-color {
  color: var(--blue);
}


/* ---------------------------------------------------------
   HEADER & NAVIGATION
   --------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 100;
  color: #fff;
}

.navbar {
  min-height: 86px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7%;
  background: rgba(5, 8, 22, 0.65);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
}

.navlinks a {
  opacity: 0.92;
}

.navlinks a.active {
  color: #1687f7;
}

.cta {
  background: var(--blue);
  color: #fff;
  border: 1px solid #188ef7;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(11, 134, 245, 0.25);
  }
}

.cta:focus-visible,
.navlinks a:focus-visible,
.logo:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  border-radius: 3px;
  width: 40px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
}

.service-label {
  margin-top: 20px !important;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
  min-height: 510px;
  background:
    linear-gradient(
      90deg,
      #05172b 0%,
      #071d34 48%,
      rgba(6, 24, 43, 0.62) 100%
    ),
    url("images/dashboard.jpg") right center / auto 100% no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero .container {
  padding-top: 62px;
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #9fb9d3;
  margin-bottom: 10px;
}

h1 {
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
}

h1 .blue,
.section-title .blue {
  color: var(--blue);
}

.hero p {
  font-size: 16px;
  line-height: 1.55;
  color: #f1f5f9;
  margin: 0 0 24px;
  max-width: 530px;
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #c8d5e2;
  font-size: 12px;
  margin-top: 20px;
}

.hero-meta span::after {
  content: "•";
  margin-left: 12px;
  color: #56718d;
}

.hero-meta span:last-child::after {
  display: none;
}


/* ---------------------------------------------------------
   TRUST BAR
   --------------------------------------------------------- */

.trust-bar {
  background: #f6f8fa;
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0;
}

.trust-item {
  text-align: center;
  padding: 4px 20px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.trust-item span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 26px;
  border-radius: 3px;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.primary {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  border: none;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-3px);
  }
}


/* ---------------------------------------------------------
   GENERAL SECTIONS
   --------------------------------------------------------- */

.section {
  padding: 80px 0;
}

.section-title {
  text-align: left;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  margin: 0 0 38px;
  letter-spacing: -0.02em;
}


/* ---------------------------------------------------------
   PROBLEMS
   --------------------------------------------------------- */

.problems {
  background: #fff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.problem {
  padding: 0 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.problem:last-child {
  border: 0;
}

.icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: #102d4d;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem h3,
.service h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

.problem p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.center-note {
  text-align: center;
  color: #12345a;
  font-weight: 700;
  margin: 28px 0 0;
}

.center-note span {
  color: var(--blue);
}


/* ---------------------------------------------------------
   SERVICES
   --------------------------------------------------------- */

.services {
  background: #071e35;
  color: #fff;
}

.services .section-title {
  color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service {
  background: #0b3157;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 24px;
  min-height: 290px;
  border-radius: 6px;
}

.service .icon {
  color: #d9ecff;
  margin: 0 0 12px;
}

.service h3 {
  font-size: 16px;
  color: #fff;
}

.service p {
  font-size: 14px;
  line-height: 1.6;
  color: #d0dceb;
  margin: 0 0 10px;
}

.service ul {
  margin: 0;
  padding-left: 15px;
  color: #cbd8e6;
  font-size: 13px;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   PROCESS
   --------------------------------------------------------- */

.process {
  background: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 18px;
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -19px;
  top: 24px;
  color: #9aa8b8;
  font-size: 28px;
}

.step .icon {
  width: 48px;
  height: 48px;
}

.step h4 {
  font-size: 13px;
  margin: 10px 0 5px;
}

.step p {
  font-size: 12px;
  line-height: 1.45;
  color: #687587;
  margin: 0;
}


/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */

.about {
  background: #f6f8fa;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  gap: 0;
}

.about-photo {
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  padding: 42px 48px;
  background: #fff;
}

.about-copy h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.about-copy h2 span {
  color: var(--blue);
}

.about-copy p {
  font-size: 14px;
  line-height: 1.65;
  color: #4e5a69;
  margin: 0 0 14px;
}

.about-copy b {
  color: #0b74cf;
}


/* ---------------------------------------------------------
   COLLABORATION
   --------------------------------------------------------- */

.collab {
  background: #fff;
}

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

.card {
  border: 1px solid #e0e5eb;
  padding: 22px 20px;
  min-height: 135px;
  box-shadow: 0 3px 10px rgba(15, 30, 50, 0.03);
}

.card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card .icon {
  margin: 0;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.card h3 {
  margin: 2px 0 7px;
  font-size: 15px;
}

.card p {
  font-size: 13px;
  line-height: 1.55;
  color: #5d6978;
  margin: 0;
}

.card strong {
  display: block;
  color: #0874d8;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}


/* ---------------------------------------------------------
   CTA & FOOTER
   --------------------------------------------------------- */

.final-cta {
  background: #061a30;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.final-cta .cta-question {
  font-size: 16px;
  color: #d3dce6;
  margin: 0 0 14px;
}

.final-cta h2 {
  font-size: 23px;
  margin: 0 0 8px;
}

.final-cta h2 span {
  color: var(--blue);
}

.final-cta p {
  font-size: 12px;
  color: #d3dce6;
  margin: 0 0 18px;
}

footer {
  background: #061a30;
  color: #dce7f2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: #0b74cf;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #1587f7;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: white;
}


/* ---------------------------------------------------------
   JAVASCRIPT ENHANCEMENTS
   --------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}


/* ---------------------------------------------------------
   LEGAL PAGES
   Impressum / Datenschutz
   --------------------------------------------------------- */

.legal-hero {
  min-height: 275px;
  position: relative;
  overflow: hidden;
  background: #06182b;
  color: #fff;
}

.legal-hero-image {
  position: absolute;
  inset: 0 0 0 45%;
  background:
    linear-gradient(
      90deg,
      #06182b 0%,
      rgba(6, 24, 43, 0.9) 35%,
      rgba(6, 24, 43, 0.35) 100%
    ),
    url("images/hero-dashboard.png") center / cover no-repeat;
  opacity: 0.95;
}

.legal-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #06182b 0%,
      rgba(6, 24, 43, 0.95) 43%,
      rgba(6, 24, 43, 0.25) 100%
    );
}

.legal-hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 55px;
}

.legal-eyebrow {
  color: #0a83ed;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 12px;
}

.legal-hero h1 {
  font-size: 42px;
  line-height: 1;
  margin: 0 0 15px;
  letter-spacing: -1px;
}

.legal-hero p:not(.legal-eyebrow) {
  max-width: 490px;
  font-size: 13px;
  line-height: 1.6;
  color: #e4edf7;
}

.legal-content {
  background: #fff;
  padding: 50px 0 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

.legal-card {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 15px;
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e3e8ed;
}

.legal-card:last-child {
  border-bottom: 0;
}

.legal-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce5ed;
  border-radius: 3px;
  color: #07335c;
  font-size: 21px;
  font-weight: 600;
  background: #f8fafc;
}

.legal-card h2 {
  margin: 2px 0 12px;
  color: #0b2b4c;
  font-size: 19px;
  line-height: 1.35;
}

.legal-card p {
  margin: 0 0 12px;
  color: #4e5964;
  font-size: 15px;
  line-height: 1.7;
}

.legal-card ul {
  margin: 8px 0 14px;
  padding-left: 20px;
  color: #4e5964;
  font-size: 15px;
  line-height: 1.7;
}

.legal-card a {
  color: #087fe8;
}

.legal-card a:focus-visible {
  outline: 2px solid #087fe8;
  outline-offset: 3px;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-note {
  padding: 12px 14px;
  background: #f2f7fb;
  border-left: 3px solid #087fe8;
  font-size: 13px !important;
  line-height: 1.6;
  color: #5c6873 !important;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

/* Tablet */
@media (max-width: 900px) {
  .navlinks {
    gap: 16px;
  }

  .hero {
    min-height: 550px;
  }

  .problem-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem {
    padding: 20px;
  }

  .problem:nth-child(2) {
    border-right: 0;
  }

  .problem:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .process-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .step:not(:last-child)::after {
    right: -12px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 0;
    padding: 120px 0 70px;
    background-position: 65% center;
  }

  h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 14px;
  }

  .problem-grid,
  .service-grid,
  .collab-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .problem {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .problem:last-child {
    border-bottom: 0 !important;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step:not(:last-child)::after {
    content: "↓";
    right: auto;
    top: auto;
    bottom: -22px;
    left: 50%;
    font-size: 20px;
  }

  .about-photo {
    min-height: 300px;
  }

  .about-copy {
    padding: 26px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Mobile navigation */
  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 10px;
  }

  .navlinks {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 8px;
    background: #061a30;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    display: block;
    padding: 13px 14px;
  }

  .navlinks {
    text-align: center;
    margin-top: 8px;
    border-bottom: 0;
  }

 .navlinks a:focus-visible,
 .menu-toggle:focus-visible,
 .cta:focus-visible {
   outline: 2px solid var(--blue);
   outline-offset: 4px;
 }
}

/* Legal pages – tablet/mobile */
@media (max-width: 800px) {
  .legal-hero {
    min-height: 330px;
  }

  .legal-hero-image {
    inset: 0;
    opacity: 0.35;
  }

  .legal-hero-overlay {
    background:
      linear-gradient(
        90deg,
        #06182b 0%,
        rgba(6, 24, 43, 0.85) 100%
      );
  }

  .legal-hero-content {
    padding: 80px 0 55px;
  }

  .legal-hero h1 {
    font-size: 35px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-card {
    grid-template-columns: 48px 1fr;
  }
}

/* Legal pages – small mobile */
@media (max-width: 520px) {
  .legal-content {
    padding: 35px 0 45px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
