:root {
  --color-primary: #1572A5;
  --color-primary-dark: #0F5376;
  --color-bg: #0F1012;
  --color-bg-alt: #1C1D20;
  --color-surface: #222327;

  --color-text: #F5F5F5;
  --color-text-muted: #C7CBD3; /* etwas heller für bessere Lesbarkeit */
  --color-heading: #FFFFFF;

  --color-accent: #33B2FF;
  --color-accent-soft: #8ED9FF; /* lesbarer Hover-Ton */
  --color-on-accent: #071118;   /* Text auf hellen Gradients */

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 22px 48px rgba(0, 0, 0, 0.6);

  --container-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1572A5 0, #0F1012 36%) fixed;
  color: var(--color-text);
  line-height: 1.6;
}

/* Layout */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}

/* Typography */

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--color-heading);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

ul, ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: var(--color-text);
}

li {
  margin-bottom: 0.4rem;
}

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(15,16,18,0.96), rgba(15,16,18,0.86));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  display: flex;
  align-items: center; /* bleibt so */
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo img {
  display: block;
}


.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.0rem;
  align-items: center;
  margin: 0;        /* überschreibt global */
  padding: 0;
}

/* Navi: standard jetzt weiß, damit es auf Blau/Gradient immer lesbar bleibt */
.main-nav a {
  display: flex;              /* neu */
  align-items: center;        /* vertikal mittig */
  justify-content: center;
  min-height: 40px;           /* sorgt für gleiche optische Höhe */
  line-height: 1.2;           /* nicht zu groß */
  padding: 0.2rem 0.3rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
  background: rgba(51,178,255,0.14);
  transform: translateY(-1px);
  outline: none;
}

.main-nav a:active {
  transform: translateY(0);
}

.nav-cta {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-on-accent); /* vorher zu dunkel/zu hell je nach Gradient */
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--color-on-accent);
  background: linear-gradient(135deg, #1b86bf, #6ad0ff);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

/* Mobile Nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 1px;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 999px;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-content p {
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0 0.8rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Buttons / Links / CTAs */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 2px solid rgba(51,178,255,0.55);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-on-accent); /* lesbarer auf dem hellen Blau */
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, #1b86bf, #6ad0ff);
  color: #061017;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

.btn-secondary {
  background: rgba(34, 35, 39, 0.92);
  color: rgba(255,255,255,0.94);
  border-color: rgba(255,255,255,0.18);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(34,35,39,1);
  border-color: rgba(51,178,255,0.35);
  color: #ffffff;
}

.btn-secondary:active {
  transform: translateY(0);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-accent-soft); /* etwas weicher, trotzdem gut lesbar */
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.text-link::after {
  content: "↗";
  font-size: 0.82rem;
}

.text-link:hover,
.text-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

/* Hero Visual */

.hero-visual {
  position: relative;
}

.hero-image-card {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(21,114,165,0.5), rgba(15,16,18,1));
  padding: 0.9rem;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-image-card img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.hero-image-card figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Service Cards / CTAs */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}

.service-card h3 {
  margin-bottom: 0.45rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Tabelle */

.table-wrapper {
  margin-top: 1.8rem;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1rem;
  text-align: left;
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.comparison-table th {
  color: #ffffff;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(12,13,16,0.5);
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(15,16,18,0.9);
}

.comparison-table tbody tr:hover {
  background: rgba(21,114,165,0.18);
}

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq details {
  background: var(--color-surface);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  transition: transform 0.2s ease;
  color: rgba(255,255,255,0.85);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

.faq-cta {
  margin-top: 1.8rem;
}

/* Footer */

.site-footer {
  background: #050609;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 0 1.8rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-radius: 8px;
  padding: 0.15rem 0.25rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  background: rgba(51,178,255,0.14);
}

.footer-bottom {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Links allgemein */

a {
  color: var(--color-accent-soft);
}

a:hover,
a:focus-visible {
  color: #ffffff;
}

/* Responsiv / Mobile */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .main-nav ul {
    position: absolute;
    inset: 56px 0 auto 0;
    padding: 0.75rem 1.5rem 1.2rem;
    flex-direction: column;
    gap: 0.65rem;
    background: radial-gradient(circle at top, rgba(21,114,165,0.35), #050609);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

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

  .main-nav a {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.6rem;
    color: rgba(255,255,255,0.94);
  }

  .nav-toggle {
    display: flex;
  }

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