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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #f9fafb;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-link {
  color: #cbd5f5;
  opacity: 0.8;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link.active {
  opacity: 1;
  border-color: #38bdf8;
}

/* Hero */

.hero {
  padding: 4rem 0 3.5rem;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 58%);
  color: #e5e7eb;
}

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

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-text p {
  font-size: 1rem;
  max-width: 32rem;
  margin: 0 0 1.5rem;
  color: #cbd5f5;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #4f46e5);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.55);
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.hero-side {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.5rem 1.75rem;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 65%) #020617;
}

.hero-tagline {
  font-size: 0.95rem;
  margin: 0 0 1rem;
  color: #e5e7eb;
}

.hero-list {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.hero-list li + li {
  margin-top: 0.3rem;
}

/* Sections */

.section {
  padding: 3.5rem 0;
  background-color: #f9fafb;
}

.section-alt {
  background-color: #e5e7eb;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: start;
}

.section h2 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.section h3 {
  margin-top: 0;
}

.section p {
  margin-top: 0;
}

.section p + p {
  margin-top: 0.9rem;
}

.bullet-list {
  padding-left: 1.1rem;
  margin: 0.2rem 0 0;
}

.bullet-list li + li {
  margin-top: 0.35rem;
}

/* Cards */

.three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background-color: #f9fafb;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Page hero */

.page-hero {
  padding: 3.3rem 0 2.4rem;
  background-color: #020617;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.page-subtitle {
  margin: 0;
  color: #cbd5f5;
  max-width: 38rem;
}

/* Layout helpers */

.narrow {
  max-width: 44rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-box {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin: 0 0 0.25rem;
}

.contact-side h3 {
  margin-top: 0;
}

.contact-note {
  margin-top: 0;
  margin-bottom: 0.95rem;
  font-size: 0.95rem;
  color: #1f2937;
}

.contact-note.small {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Footer */

.site-footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  font-size: 0.85rem;
}

.footer-brand {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: #e5e7eb;
}

.footer-copy {
  margin: 0.1rem 0;
}

.footer-note {
  margin-top: 0.7rem;
  max-width: 22rem;
  color: #6b7280;
}

.footer-contact-label {
  margin: 0 0 0.2rem;
  font-weight: 500;
  color: #d1d5db;
  font-size: 0.85rem;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #e5e7eb;
  text-decoration: none;
}

/* Legal blocks */

.legal-box {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: #ffffff;
  margin-bottom: 1.5rem;
}

.legal-small {
  font-size: 0.8rem;
  color: #4b5563;
  margin-top: 1.2rem;
}

/* Responsive */

@media (max-width: 880px) {

  /* Header */
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }

  /* Mobile Layout: 1 Spalte für alle Grids */
  .section-grid,
  .three-cols,
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* Footer: statt flex -> grid (damit es sauber stapelt) */
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* HERO: ZWINGEND flex-column, damit Reihenfolge sicher ist */
  .hero {
    padding-top: 3.2rem;
  }

  .hero-inner {
    display: flex;              /* <- wichtig */
    flex-direction: column;     /* <- wichtig */
    gap: 2.3rem;
  }

  .hero-text {
    order: 1;                   /* <- Headline zuerst */
  }

  .hero-side {
    order: 2;                   /* <- 25+ Card danach */
  }

  /* Cards */
  .three-cols {
    gap: 1rem;
  }

  .card {
    padding: 1.05rem 1.1rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0.65rem 0;
  }

  .logo-text {
    font-size: 0.78rem;
  }

  .container {
    width: min(100% - 1.8rem, 640px);
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .site-footer {
    padding-bottom: 2.4rem;
  }
}
