/* Lokale Schriftart (DSGVO-konform — keine externe Anfrage) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Inter.woff2') format('woff2');
}

:root {
  --navy-900: #0a1f3d;
  --navy-800: #11294f;
  --navy-700: #1a3768;
  --blue-400: #5aa9e6;
  --blue-300: #8cc3ec;
  --ink:      #1a1a1a;
  --ink-2:    #444;
  --muted:    #6b7280;
  --bg:       #ffffff;
  --bg-soft:  #f4f7fb;
  --border:   #e5e9f0;
  --radius:   14px;
  --shadow-1: 0 1px 2px rgba(10,31,61,.04), 0 4px 12px rgba(10,31,61,.06);
  --shadow-2: 0 8px 24px rgba(10,31,61,.10);
  --max:      1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 88px; width: auto; display: block; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: #cfd9e8;
  font-weight: 500; font-size: 15px;
  transition: color .15s ease;
}
.nav a:hover { color: #fff; }
.nav-cta {
  background: var(--blue-400);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .15s ease;
}
.nav-cta:hover { background: #4593cf; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; width: 40px; height: 40px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 5px auto;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Generic section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #f4f7fb; }
.section-dark h2, .section-dark p { color: #f4f7fb; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px; font-weight: 600;
  color: var(--blue-400);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
.eyebrow.accent { color: var(--blue-300); }

h1, h2, h3 { color: var(--navy-900); margin: 0 0 16px; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.3px; }
h3 { font-size: 19px; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-title { text-align: center; margin-bottom: 14px; }
.section-sub {
  text-align: center; max-width: 640px; margin: 0 auto 56px;
  color: var(--ink-2);
}
.accent { color: var(--blue-400); }

.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 540px;
}
.section-dark .lede { color: #cfd9e8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--blue-400); color: #fff;
}
.btn-primary:hover { background: #4593cf; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: #fff; }
.section-dark .btn-ghost { color: #fff; border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 96px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-text h1 { margin-bottom: 24px; }
.hero-text .lede { margin-bottom: 32px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  aspect-ratio: 4/3; object-fit: cover;
}

/* ---------- AI Strip ---------- */
.ai-strip {
  background: var(--navy-900);
  color: #f4f7fb;
  padding: 88px 0;
}
.ai-strip .section-title { color: #fff; }
.ai-strip .section-sub { color: #cfd9e8; }
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.ai-item {
  padding: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
}
.ai-num {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .15em;
  color: var(--blue-400);
  margin-bottom: 14px;
}
.ai-item h3 { color: #fff; margin-bottom: 10px; }
.ai-item p { color: #cfd9e8; margin: 0; }

@media (max-width: 900px) {
  .ai-grid { grid-template-columns: 1fr; gap: 16px; }
  .ai-strip { padding: 64px 0; }
}

/* ---------- Coming-Soon / Gründungs-Banner ---------- */
.startup-banner {
  background: linear-gradient(90deg, #f0c14b 0%, #fdd76e 100%);
  color: #0a1f3d;
  padding: 14px 22px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .2px;
  border-bottom: 1px solid rgba(10,31,61,.15);
  line-height: 1.55;
}
.startup-banner strong { font-weight: 700; }
.startup-banner .sb-icon {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .startup-banner { font-size: 13px; padding: 12px 16px; }
}

/* Banner ausblenden wenn Mobile-Menü offen ist */
body.nav-open .startup-banner { display: none; }

/* ---------- Cards (Leistungen) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cards-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cards-2 .card { padding: 32px; }
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(90,169,230,.12);
  color: var(--blue-400);
  border-radius: 10px;
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card p { color: var(--ink-2); margin: 0 0 14px; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 2px;
  background: var(--blue-400);
  border-radius: 2px;
}
.card-list li:last-child { margin-bottom: 0; }

/* ---------- Über ---------- */
.ueber-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.pull-quote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--blue-400);
  background: rgba(90,169,230,.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-900);
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: -.2px;
}
.pull-quote cite {
  font-style: normal;
  color: var(--ink-2);
  font-size: 15px;
}

.bullets { list-style: none; padding: 0; margin: 24px 0 0; }
.bullets li {
  position: relative; padding-left: 28px;
  margin-bottom: 12px; color: var(--ink-2);
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 14px; height: 2px; background: var(--blue-400);
  border-radius: 2px;
}
.ueber-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  aspect-ratio: 4/5; object-fit: cover;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  position: relative; box-shadow: var(--shadow-1);
}
.gallery img {
  aspect-ratio: 1/1; object-fit: cover;
  transition: transform .4s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px; color: #fff; font-size: 14px; font-weight: 500;
  background: linear-gradient(180deg, transparent 0%, rgba(10,31,61,.85) 100%);
}

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-list {
  list-style: none; padding: 0; margin: 28px 0 0;
}
.contact-list li {
  display: grid; grid-template-columns: 100px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}
.contact-list li span {
  color: var(--blue-300); font-size: 13px; text-transform: uppercase;
  letter-spacing: .1em; align-self: center;
}
.contact-list a:hover { color: var(--blue-300); }

.contact-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 28px; border-radius: var(--radius);
  display: grid; gap: 16px;
}
.contact-form label { display: grid; gap: 6px; font-size: 14px; }
.contact-form span { color: var(--blue-300); font-weight: 500; }
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font: inherit;
  transition: border-color .15s ease;
}
.contact-form textarea {
  resize: none;
}

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
.form-msg.success {
  display: block;
  background: rgba(52, 211, 153, .15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, .35);
}
.form-msg.error {
  display: block;
  background: rgba(245, 83, 138, .12);
  color: #ffadbd;
  border: 1px solid rgba(245, 83, 138, .3);
}
.contact-form button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ---------- Success Modal ---------- */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 61, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 24px;
  animation: smFadeIn 0.2s ease-out;
}
.success-modal.hidden { display: none; }

.success-modal-card {
  background: #ffffff;
  padding: 44px 38px 38px;
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: smSlideUp 0.3s ease-out;
}
.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5aa9e6, #34d399);
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(52, 211, 153, .35);
}
.success-modal-card h2 {
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--navy-900);
  font-weight: 600;
  letter-spacing: -.2px;
}
.success-modal-card p {
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 12px;
  font-size: 15px;
}
.success-sub {
  font-size: 13px !important;
  color: var(--muted) !important;
  font-style: italic;
  margin: 18px 0 26px !important;
  letter-spacing: .15px;
}
.success-modal-card .btn {
  padding: 11px 28px;
  font-size: 14px;
}

@keyframes smFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes smSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-400);
}
.contact-form button { justify-self: start; }

/* ---------- Legal Pages ---------- */
.legal {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  min-height: 60vh;
}
.legal-container { max-width: 820px; }
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.legal .legal-intro {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal section {
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--navy-900);
  font-weight: 600;
}
.legal h3 {
  font-size: 16px;
  margin: 18px 0 10px;
  color: var(--navy-700);
  font-weight: 600;
}
.legal p, .legal ul, .legal ol {
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 15px;
}
.legal ul, .legal ol {
  padding-left: 22px;
}
.legal a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--navy-700); }

.legal-dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 24px;
  margin: 14px 0;
  font-size: 15px;
}
.legal-dl dt {
  color: var(--muted);
  font-weight: 500;
}
.legal-dl dd {
  margin: 0;
  color: var(--ink);
}

.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .legal-dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .legal-dl dt { margin-top: 8px; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 60px 0;
  text-align: center;
}
.nf-container { max-width: 560px; }
.nf-code {
  font-size: clamp(56px, 7vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--navy-900);
  margin: 0 0 12px;
}
.nf-title {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy-900);
  margin: 0 0 16px;
}
.nf-text {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 32px;
}
.nf-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #061429; color: #cfd9e8;
  padding: 48px 0 32px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand nav"
    "copy  copy";
  gap: 24px;
  align-items: center;
}
.footer-brand { grid-area: brand; display: flex; gap: 16px; align-items: center; }
.footer-brand img { height: 40px; }
.footer-brand p { margin: 0; font-size: 13px; color: #8aa1c0; }
.footer-nav { grid-area: nav; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.copy {
  grid-area: copy;
  margin: 16px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: #6c84a3;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 48px; }
  .hero-grid, .ueber-grid, .kontakt-grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav-row { height: 64px; }
  .brand img { height: 44px; }

  /* Header-Hintergrund als Pseudo-Element mit höherem z-index als Menü,
     damit Menü beim Schließen sauber hinter dem Header verschwindet */
  .site-header { background: transparent; }
  .site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,.08);
    z-index: 41;
    pointer-events: none;
  }
  .brand, .nav-toggle { position: relative; z-index: 42; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--navy-800);
    flex-direction: column; align-items: stretch;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-2);
    transform: translateY(-150%);
    transition: transform .25s ease;
    padding: 8px 0;
    z-index: 40;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #f4f7fb;
  }
  .nav a:last-child { border-bottom: none; }
  .nav-cta {
    margin: 12px 24px;
    text-align: center;
    background: var(--blue-400);
    border-radius: 999px;
    border-bottom: none !important;
  }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .footer-row {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "nav" "copy";
  }
}
