/* ===================================================
   mk cx e.U. – Hauptstylesheet
   Farben: #0d1821 Hintergrund, #1565c0 Akzent, #fff Text
   Fonts: Montserrat, Open Sans (lokal gehostet)
   =================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/open-sans-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-600.ttf') format('truetype');
}

/* ---- Reset & Basis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1821;
  --bg-card:   #0d2137;
  --bg-cta:    #1565c0;
  --bg-footer: #000;
  --accent:    #1565c0;
  --accent-h:  #1976d2;
  --accent-lt: #42a5f5;
  --text:      #fff;
  --text-muted:#b0bec5;
  --border:    rgba(255,255,255,0.08);
  --radius:    6px;
  --radius-lg: 12px;
  --max-w:     1160px;
  --font-h:    'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --font-b:    'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Utility ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 0;
  left: 12px;
  z-index: 300;
  transform: translateY(calc(-100% - 8px));
  background: #fff;
  color: var(--bg);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 700;
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(12px); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-h); }

.btn-secondary {
  background: #fff;
  color: var(--accent);
}
.btn-secondary:hover { background: #e3f2fd; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

.text-link {
  color: var(--accent-lt);
  font-weight: 600;
  transition: color var(--transition);
}
.text-link:hover { color: #fff; }

/* ---- Header ---- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 24, 33, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

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

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--text); }
.main-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius);
}
.main-nav .nav-cta:hover { background: var(--accent-h); color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-nav a {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mobile-nav a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(66,165,245,0.16), transparent 32%),
    linear-gradient(160deg, rgba(21, 101, 192, 0.14) 0%, rgba(13, 24, 33, 0) 58%);
  opacity: 1;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 22%;
  height: 120px;
  border-top: 1px solid rgba(66,165,245,0.18);
  border-radius: 50%;
  transform: rotate(-2.5deg);
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 44px;
  align-items: center;
  padding-bottom: 52px;
}

.label-ai-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
  opacity: 0.7;
}

.hero-text h1 {
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text);
}

.accent-link {
  color: var(--accent-lt);
  border-bottom: 2px solid var(--accent-lt);
  transition: color var(--transition), border-color var(--transition);
}
.accent-link:hover { color: #fff; border-color: #fff; }

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.hero-text p { margin-bottom: 16px; }
.hero-text .btn { margin-top: 8px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-media .portrait {
  border-radius: var(--radius);
  width: 100%;
  max-width: 210px;
  opacity: 0.88;
  filter: saturate(0.9) contrast(0.95);
  box-shadow: 0 14px 34px rgba(0,0,0,0.32);
}

.hero-sub {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.hero-sub-block {
  border-left: 3px solid rgba(66,165,245,0.45);
  padding-left: 20px;
}
.hero-sub-block h2 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.hero-sub-block p { color: var(--text-muted); margin-bottom: 12px; }

/* ---- Services ---- */
.services { padding: 80px 0; }
.services h2,
.why-section h2 {
  font-family: var(--font-h);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
}
.services > .container > h2 {
  margin-bottom: 22px;
}

.service-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
  padding: 48px 0;
  opacity: 1;
  transform: none;
}
.service-card-featured {
  padding-top: 36px;
}
.pillar-card {
  border-left: 3px solid rgba(66,165,245,0.35);
  padding-left: 28px;
}
.service-divider {
  height: 1px;
  background: var(--border);
}

.service-icon img { width: 72px; height: 72px; object-fit: contain; }

.service-content h3 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.service-content p { color: var(--text-muted); margin-bottom: 12px; }
.service-content ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.service-content ul li { margin-bottom: 6px; }
.partner-note {
  font-weight: 600;
  color: var(--text) !important;
}
.partner-badge, .ki-badge { margin-top: 12px; }
.partner-logo {
  margin-top: 16px;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}
.service-link-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---- Why mk cx ---- */
.why-section {
  background: rgba(255,255,255,0.025);
  border-block: 1px solid var(--border);
  padding: 68px 0;
}
.why-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 48px;
  align-items: start;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-grid div {
  border-left: 2px solid rgba(66,165,245,0.45);
  padding-left: 16px;
}
.why-grid h3,
.support-card h3 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.why-grid p,
.support-card p {
  color: var(--text-muted);
}

/* ---- Supporting services ---- */
.services-secondary {
  padding-top: 70px;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.support-card {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.support-card > img:first-child {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 18px;
}
.support-card ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.support-card ul li { margin-bottom: 6px; }

/* ---- CTA Section ---- */
.cta-section {
  background: var(--bg-cta);
  padding: 72px 24px;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 16px; max-width: 560px; margin-inline: auto; }

.cta-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 32px;
}
.cta-list li {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  position: relative;
  padding-left: 16px;
}
.cta-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.6);
}

/* ---- Footer ---- */
#site-footer {
  background: var(--bg-footer);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.footer-badge img { width: 70px; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Cookie Banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 33, 55, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 200;
  max-width: 560px;
  width: calc(100% - 48px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.service-kicker {
  color: var(--accent-lt) !important;
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px !important;
}
#cookie-banner.hidden { display: none; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- Back to Top ---- */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 150;
  transition: background var(--transition), opacity var(--transition);
  opacity: 0.85;
}
#back-to-top:hover { background: var(--accent-h); opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-media { display: none; }
  .hero-sub { grid-template-columns: 1fr; gap: 28px; }
  .service-card { grid-template-columns: 1fr; }
  .service-icon { display: none; }
  .why-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 40px; }
  .container { padding: 0 20px; }
  .hero-inner { padding-bottom: 36px; }
  .hero-actions { justify-content: center; }
  .hero-sub { padding: 32px 20px; }
  .hero-sub-block { padding-left: 16px; }
  .services { padding: 56px 0; }
  .service-card { padding: 36px 0; }
  .pillar-card { padding-left: 16px; }
  .why-section { padding: 48px 0; }
  .support-grid { grid-template-columns: 1fr; gap: 28px; }
  #cookie-banner {
    bottom: 8px;
    width: calc(100% - 16px);
    padding: 10px 12px;
    font-size: 0.74rem;
    line-height: 1.45;
  }
  .cookie-actions .btn-sm { padding: 6px 12px; font-size: 0.78rem; }
}

/* ---- Animations ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text h1 { animation: fadeUp 0.7s ease both; }
  .hero-lead     { animation: fadeUp 0.7s ease 0.15s both; }
  .hero-text .btn { animation: fadeUp 0.7s ease 0.3s both; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
