/* MKDigitec – Basis-Stylesheet
   Keine externen Schriften oder Skripte (DSGVO-freundlich). */

:root {
  --ink: #0b1f3a;
  --ink-soft: #3a4a63;
  --muted: #64728a;
  --line: #e2e6ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --accent: #ff6a3d;
  --accent-dark: #e2512a;
  --accent-soft: #fff1ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --max: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-dark); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Platzhalter: vor dem Livegang ersetzen. Gelb markiert, damit nichts übersehen wird. */
.ph {
  background: #fff3a8;
  color: #6b5600;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
}
.logo span.accent { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--accent-dark); }
.main-nav .btn { margin-left: 8px; color: #fff; }
.main-nav .btn:hover { background: var(--accent-dark); color: #fff; }
.main-nav .btn[aria-current="page"] { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(900px 400px at 85% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero-card h3 { font-size: 1rem; margin-bottom: 18px; }
.funnel { display: grid; gap: 10px; }
.funnel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
}
.funnel-row:nth-child(2) { margin: 0 14px; }
.funnel-row:nth-child(3) { margin: 0 28px; }
.funnel-row:nth-child(4) { margin: 0 42px; background: var(--accent-soft); color: var(--accent-dark); }
.funnel-row small { font-weight: 500; color: var(--muted); }
.hero-card p { font-size: 0.9rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card p:last-child { margin-bottom: 0; }

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }

.card-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

/* ---------- Check list ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2512a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Service detail ---------- */
.service {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service:last-child { border-bottom: 0; }
.service .icon { margin-bottom: 16px; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { max-width: 640px; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: #c9d3e3;
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 560px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon { margin: 0; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--ink); }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
form input:focus,
form textarea:focus,
form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
form textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.consent input { width: auto; margin-top: 5px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.notice {
  background: #fff8e1;
  border: 1px solid #f3dd8a;
  border-radius: 12px;
  padding: 16px 20px;
  color: #6b5600;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #9fb0c8;
  padding: 64px 0 28px;
  font-size: 0.95rem;
}
.site-footer a { color: #d7e0ee; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo-mark { background: #fff; color: var(--ink); }
.site-footer .logo-mark::after { border-color: var(--ink); }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .service,
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
  .main-nav .btn { margin: 8px 0 0; justify-content: center; }
  .grid-2,
  .grid-3,
  .grid-4,
  .field-row,
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .funnel-row:nth-child(n) { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
