/* ============================================================
   Mitware — Design System (v1.0)
   Quelle: context/brand-style.md
   Ink #0E1116 · Text #F5F7FA · Akzent Teal #16E0C4 · Lines #2A2F3A
   ============================================================ */

:root {
  --ink: #0E1116;
  --ink-2: #151A21;        /* leicht erhöhte Flächen / Karten */
  --text: #F5F7FA;
  --text-dim: #A7B0BD;     /* Sekundärtext */
  --teal: #16E0C4;
  --teal-dim: rgba(22, 224, 196, 0.12);
  --line: #2A2F3A;
  --radius: 14px;
  --maxw: 1080px;
  --font-sans: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section.tight { padding: 56px 0; }

/* ---------- Typo ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
p { color: var(--text-dim); max-width: 60ch; }
.lead { font-size: 1.25rem; color: var(--text); max-width: 62ch; }

/* Monospace-Label (technische Identität) */
.label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 16px;
}

.teal { color: var(--teal); }

/* ---------- Wortmarke ---------- */
.brand {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
}
/* Wortmarke "i": ganzer Buchstabe teal (dotless-i) + EIN pulsierender Punkt */
.brand .node { color: var(--teal); position: relative; display: inline-block; line-height: 1; }
.brand .node .idot {
  position: absolute; left: 50%; top: -0.16em;
  width: 0.2em; height: 0.2em; border-radius: 50%;
  background: var(--teal); transform: translateX(-50%);
  animation: brandDotPulse 1.7s ease-in-out infinite;
}
@keyframes brandDotPulse {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(22, 224, 196, .55); }
  50% { transform: translateX(-50%) scale(1.25); box-shadow: 0 0 7px 1px rgba(22, 224, 196, .6); }
}
@media (prefers-reduced-motion: reduce) { .brand .node .idot { animation: none; } }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; transition: color .15s; }
nav.main a:hover { color: var(--text); }

/* Leistungen-Dropdown */
.has-dropdown { position: relative; display: flex; align-items: center; }
.dd-toggle {
  cursor: pointer; background: none; border: none; padding: 0;
  font-family: inherit; font-size: 0.95rem; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 5px; transition: color .15s;
}
.dd-toggle:hover, .has-dropdown:hover .dd-toggle, .has-dropdown:focus-within .dd-toggle { color: var(--text); }
.dd-caret { width: 14px; height: 14px; transition: transform .15s; }
.has-dropdown:hover .dd-caret, .has-dropdown:focus-within .dd-caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; min-width: 220px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; z-index: 60;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a { padding: 9px 12px; border-radius: 8px; font-size: 0.92rem; white-space: nowrap; }
.dropdown-menu a:hover { background: var(--ink); color: var(--teal); }
.dropdown-menu a.current { color: var(--teal); }
@media (max-width: 820px) {
  .dropdown-menu { left: 0; transform: translateY(-6px); }
  .has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 10px;
  text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,224,196,.25); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 96px; position: relative; overflow: hidden; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin: 24px 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
/* dezenter Verbindungs-Layer im Hintergrund */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% -10%, var(--teal-dim), transparent 70%);
  pointer-events: none;
}

/* ---------- Erklärvideo ---------- */
.video-wrap { margin-top: 48px; max-width: 860px; }
.explainer { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.video-placeholder {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background:
    radial-gradient(500px 220px at 50% 30%, var(--teal-dim), transparent 70%),
    var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--teal); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 6px;
}
.video-placeholder .vp-label { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.video-placeholder .vp-sub { color: var(--text-dim); font-size: .95rem; max-width: 42ch; }

/* ---------- Karten / Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--teal); transform: translateY(-3px); }
.card a.more { color: var(--teal); text-decoration: none; font-size: .92rem; font-family: var(--font-mono); }
.card .num { font-family: var(--font-mono); color: var(--teal); font-size: .8rem; }

/* ---------- Proof / Stats ---------- */
.proof { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  font-family: var(--font-mono); font-size: .82rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; color: var(--text-dim);
}
.chip b { color: var(--teal); }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--teal); font-family: var(--font-mono); }
.faq details[open] summary::before { content: "– "; }
.faq p { margin-top: 12px; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { margin-bottom: 10px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 48px 0; }
footer.site .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
footer.site a { color: var(--text-dim); text-decoration: none; display: block; padding: 4px 0; font-size: .92rem; }
footer.site a:hover { color: var(--teal); }
footer.site .legal { color: var(--text-dim); font-size: .82rem; margin-top: 28px; font-family: var(--font-mono); }

/* ---------- Content-Seiten ---------- */
.page-head { padding: 96px 0 40px; }
.prose p { margin-bottom: 18px; }
.prose ul { color: var(--text-dim); margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  nav.main { gap: 16px; }
  nav.main a.nav-hide { display: none; }
  section { padding: 64px 0; }
}
