/* MM Digital GmbH — company site.
   Light, airy, blue. Mobile-first; enhancements at min-width breakpoints.
   No external fonts or assets (system font stack only). */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f8ff;
  --bg-sky: #e6f1ff;
  --ink: #0e2342;
  --muted: #52678a;
  --line: #dbe6f6;
  --blue: #2b7bf5;
  --blue-deep: #1a56c4;
  --blue-light: #8fc0ff;
  --indigo: #5b6cf0;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 60, 130, 0.06), 0 6px 18px -6px rgba(30, 90, 200, 0.14);
  --shadow: 0 1px 2px rgba(20, 60, 130, 0.06), 0 18px 40px -12px rgba(30, 90, 200, 0.28);
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Icons (sprite <use>) */
.ico {
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-fill { fill: currentColor; stroke: none; }

/* Visible reminder for anything still to be filled in before go-live */
.placeholder {
  background: #fff3bf;
  border-radius: 4px;
  padding: 0 0.3em;
  box-decoration-break: clone;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -14px rgba(30, 90, 200, 0.35);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.logo svg { height: 26px; width: auto; aspect-ratio: 38 / 28; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 0.45rem 0.8rem; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: var(--bg-sky); }
.nav .nav-link { display: none; }
.nav .lang {
  border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.85rem;
  padding: 0.35rem 0.75rem; margin-left: 0.4rem; background: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; box-shadow: 0 10px 24px -10px rgba(26, 86, 196, 0.7);
}
.btn-ghost { background: rgba(255, 255, 255, 0.8); color: var(--blue-deep); border-color: var(--line); }
.btn-light { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 108px 0 120px;
  background: linear-gradient(180deg, #d5e8ff 0%, #e9f3ff 48%, #ffffff 100%);
}
.hero .layer, .section-deco .layer { position: absolute; pointer-events: none; will-change: transform; }

.orb { border-radius: 50%; filter: blur(2px); }
.orb-a { width: 320px; height: 320px; top: -90px; right: -110px;
  background: radial-gradient(circle at 30% 30%, #ffffff, rgba(143, 192, 255, 0.55) 55%, rgba(143, 192, 255, 0) 72%); }
.orb-b { width: 240px; height: 240px; top: 46%; left: -110px;
  background: radial-gradient(circle at 60% 40%, rgba(91, 108, 240, 0.32), rgba(91, 108, 240, 0) 70%); }

.cloud { fill: #fff; opacity: 0.85; }
.cloud-1 { top: 96px; left: -40px; width: 200px; }
.cloud-2 { top: 34%; right: -60px; width: 240px; opacity: 0.65; }
.cloud-3 { bottom: 150px; left: 8%; width: 150px; opacity: 0.7; }
.drift { animation: drift 18s ease-in-out infinite alternate; }
.drift.slow { animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(22px); } }

.hero-inner { position: relative; z-index: 2; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); margin: 1.1rem auto 1rem; max-width: 14ch; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blue), var(--indigo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 36rem; margin: 0 auto 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Decorative glass "product teaser" cards */
.stack { position: relative; z-index: 2; height: 210px; margin-top: 2.6rem; }
.stack .slot { position: absolute; will-change: transform; }
.stack .slot-a { left: 0; top: 0; }
.stack .slot-b { right: 0; top: 70px; }
.glass {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.1rem; min-width: 210px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-decoration: none; color: var(--ink);
}
.slot-a .glass { transform: rotate(-4deg); }
.slot-b .glass { transform: rotate(3deg); }
.glass strong { display: block; font-size: 1rem; }
.glass small { color: var(--muted); font-size: 0.82rem; }

.badge-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}
.badge-ico.sky { background: linear-gradient(135deg, #52a3ff, #1a56c4); }
.badge-ico.indigo { background: linear-gradient(135deg, #8b97ff, #4553d6); }

.wave { position: absolute; left: 0; right: 0; bottom: -2px; height: 110px; z-index: 1; }
.wave svg { width: 100%; height: 100%; }
.wave-back { bottom: 8px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.7rem;
}
.section h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 1rem 0 0; }

.section-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.section > .container { position: relative; z-index: 1; }

/* Products */
#produkte, #products { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.cards { display: grid; gap: 1.4rem; }
.product {
  display: flex; flex-direction: column; gap: 1rem; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product .badge-ico { width: 54px; height: 54px; border-radius: 16px; }
.product .badge-ico .ico { width: 1.75rem; height: 1.75rem; }
.product h3 { font-size: 1.6rem; }
.product p { margin: 0; color: var(--muted); }
.tag {
  font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--bg-sky); color: var(--blue-deep);
}
.tag.soon { background: #eceeff; color: #4553d6; }
.product .more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; text-decoration: none; }
.product .more:hover { text-decoration: underline; }
.product .note { margin-top: auto; padding-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }

.deco-a { width: 380px; height: 380px; top: -80px; left: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 192, 255, 0.35), rgba(143, 192, 255, 0) 70%); }
.deco-b { width: 320px; height: 320px; bottom: -60px; right: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 108, 240, 0.22), rgba(91, 108, 240, 0) 70%); }

/* SMEs / services */
.section-sky { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-sky) 100%); }
.deco-c { width: 420px; height: 420px; top: -120px; right: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%); }
.kmu { display: grid; gap: 2.4rem; }
.kmu p { color: var(--muted); font-size: 1.05rem; margin: 1rem 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; position: relative; }
.steps li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255, 255, 255, 0.85); border: 1px solid #fff; border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
}
.step-no {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; font-size: 0.98rem; }

.kmu p strong { color: var(--ink); }
.ai-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.6rem; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #3d8bff 0%, #4553d6 100%);
  box-shadow: var(--shadow);
}
.ai-ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2);
}
.ai-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.ai-card p { margin: 0; color: #e8f0ff; font-size: 1rem; }

/* Values */
.values { display: grid; gap: 1.2rem; }
.value {
  padding: 1.6rem; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
}
.value .ico-wrap {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-sky); color: var(--blue-deep); margin-bottom: 1rem;
}
.value h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.value p { margin: 0; color: var(--muted); }

/* Facts */
#firma, #company { background: var(--bg-soft); }
.about { display: grid; gap: 2rem; }
.about p { color: var(--muted); font-size: 1.05rem; margin: 1rem 0 0; }
.facts {
  margin: 0; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.facts div { display: grid; gap: 0.1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Contact */
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 3rem 1.5rem; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #3d8bff 0%, #1a56c4 100%);
  box-shadow: var(--shadow);
}
.contact-card .kicker { color: #cfe4ff; }
.contact-card h2 { color: #fff; }
.contact-card p { position: relative; z-index: 1; max-width: 32rem; margin: 1rem auto 1.6rem; color: #e3efff; }
.contact-card .btn { position: relative; z-index: 1; }
.contact-card .kicker, .contact-card h2 { position: relative; z-index: 1; }
.contact-card .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.28); }
.contact-card .ring.r1 { width: 300px; height: 300px; top: -130px; left: -90px; }
.contact-card .ring.r2 { width: 420px; height: 420px; bottom: -240px; right: -120px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 1.8rem 0 2.2rem; background: #fff; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue-deep); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { background: linear-gradient(180deg, var(--bg-sky), #fff 320px); }
.legal main { padding: 112px 0 64px; }
.legal main .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 1.4rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: #2b3f60; }
.legal ul { padding-left: 1.2rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .nav .nav-link { display: inline-block; }
  .section { padding: 96px 0; }
  .stack { height: 190px; }
  .stack .slot-a { left: 8%; }
  .stack .slot-b { right: 8%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .contact-card { padding: 4.5rem 3rem; }
}

@media (min-width: 900px) {
  .hero { padding: 150px 0 170px; }
  .cloud-1 { width: 300px; left: 4%; }
  .cloud-2 { width: 380px; right: 2%; }
  .cloud-3 { width: 220px; }
  .orb-a { width: 520px; height: 520px; right: -140px; }
  .stack { height: 170px; }
  .stack .slot-a { left: 14%; }
  .stack .slot-b { right: 14%; }
  .about { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 3.5rem; }
  .kmu { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
  .ai-card { grid-column: 1 / -1; align-items: center; padding: 2rem 2.4rem; }
  .wave { height: 170px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drift { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .product { transition: none; }
}
