/* ═══════════════════════════════════════════════════════════════════
   KV-CARDS (W50.3) — 5 Pattern-Klassen für asymmetrische Komposition
   Erfordert kv-light.css (Material-Layer + Schatten-Tokens)
   ═══════════════════════════════════════════════════════════════════ */

/* ───── 1. HERO-CARD — pro Section max 1× ───── */
.kv-card-hero {
  position: relative;
  padding: 40px 44px;
  background: linear-gradient(180deg, oklch(13% .015 160), oklch(10% .01 160));
  border: 1px solid oklch(100% 0 0 / .10);
  border-radius: 22px;
  box-shadow: var(--kv-shadow-massive);
  overflow: hidden;
  isolation: isolate;
}
.kv-card-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 75% 0%,
    oklch(80% .24 145 / .12) 0%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 0;
}
.kv-card-hero > * { position: relative; z-index: 1; }
@media (max-width: 640px) { .kv-card-hero { padding: 28px 22px; border-radius: 16px; } }

/* ───── 2. FEATURE-CARD — Standard für Feature-Listen ───── */
.kv-card-feature {
  position: relative;
  padding: 24px 22px;
  background: oklch(11% .008 160);
  border: 1px solid oklch(100% 0 0 / .08);
  border-radius: 14px;
  box-shadow: var(--kv-shadow-lift);
  transition: transform .25s var(--kv-ease-glide, cubic-bezier(.22,1,.36,1)),
              box-shadow .35s var(--kv-ease-glide, cubic-bezier(.22,1,.36,1)),
              border-color .25s;
  cursor: default;
}
.kv-card-feature:hover, .kv-card-feature.is-touched {
  transform: translateY(-3px);
  box-shadow: var(--kv-shadow-premium-hover);
  border-color: oklch(80% .24 145 / .26);
}
.kv-card-feature__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: oklch(80% .24 145 / .12);
  border: 1px solid oklch(80% .24 145 / .25);
  border-radius: 10px;
  color: oklch(80% .24 145);
  margin-bottom: 14px;
}
.kv-card-feature h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.005em;
  margin-bottom: 6px;
}
.kv-card-feature p {
  font-size: 13.5px;
  color: oklch(72% .01 145);
  line-height: 1.55;
  margin: 0;
}

/* ───── 3. STAT-CARD — Große Zahl + Label ───── */
.kv-card-stat {
  padding: 28px 24px;
  background: oklch(11% .008 160);
  border: 1px solid oklch(100% 0 0 / .08);
  border-radius: 12px;
  box-shadow: var(--kv-shadow-lift);
  text-align: left;
}
.kv-card-stat__num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  color: oklch(80% .24 145);
  line-height: .95;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
  display: block;
}
.kv-card-stat__label {
  font-size: 13px;
  color: oklch(72% .01 145);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: block;
}

/* ───── 4. STORY-CARD — Editorial (Text links + Visual rechts) ───── */
.kv-card-story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  padding: 36px 36px;
  background: oklch(11% .008 160);
  border: 1px solid oklch(100% 0 0 / .08);
  border-radius: 18px;
  box-shadow: var(--kv-shadow-premium);
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.kv-card-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, oklch(80% .24 145 / .04) 100%);
  pointer-events: none;
  z-index: 0;
}
.kv-card-story > * { position: relative; z-index: 1; }
.kv-card-story__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 760px) {
  .kv-card-story { grid-template-columns: 1fr; gap: 22px; padding: 24px 22px; }
}

/* ───── 5. TILE-CARD — Square, Icon-First ───── */
.kv-card-tile {
  position: relative;
  padding: 20px;
  aspect-ratio: 1;
  background: oklch(11% .008 160);
  border: 1px solid oklch(100% 0 0 / .08);
  border-radius: 14px;
  box-shadow: var(--kv-shadow-lift);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .35s;
  text-decoration: none;
  color: inherit;
}
.kv-card-tile:hover {
  transform: translateY(-3px);
  border-color: oklch(80% .24 145 / .35);
  box-shadow: var(--kv-shadow-premium-hover);
}
.kv-card-tile__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(80% .24 145 / .12);
  border-radius: 10px;
  color: oklch(80% .24 145);
}
.kv-card-tile__label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -.005em;
}

/* ═══════════════════════════════════════════════════════════════════
   ASYMMETRIC GRID — Helper-Klassen für Anti-Grid-Kompositionen
   ═══════════════════════════════════════════════════════════════════ */

.kv-asym-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.kv-asym-grid > .kv-span-4  { grid-column: span 4; }
.kv-asym-grid > .kv-span-5  { grid-column: span 5; }
.kv-asym-grid > .kv-span-6  { grid-column: span 6; }
.kv-asym-grid > .kv-span-7  { grid-column: span 7; }
.kv-asym-grid > .kv-span-8  { grid-column: span 8; }
.kv-asym-grid > .kv-span-12 { grid-column: span 12; }
.kv-asym-grid > .kv-row-2   { grid-row: span 2; }
@media (max-width: 900px) {
  .kv-asym-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .kv-asym-grid > .kv-span-4 { grid-column: span 6; }
  .kv-asym-grid > .kv-span-5 { grid-column: span 6; }
  .kv-asym-grid > .kv-span-7 { grid-column: span 6; }
  .kv-asym-grid > .kv-span-8 { grid-column: span 6; }
}

/* ═══════════════════════════════════════════════════════════════════
   REACTIVE BORDER (für kv-reactive-border via kv-motion.js)
   ═══════════════════════════════════════════════════════════════════ */

.kv-reactive-border {
  position: relative;
  isolation: isolate;
}
.kv-reactive-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from var(--kv-rb-angle, 0deg),
    oklch(80% .24 145 / .8),
    transparent 40%,
    transparent 100%
  );
  opacity: var(--kv-rb-opacity, 0);
  transition: opacity .28s var(--kv-ease-glide, cubic-bezier(.22,1,.36,1));
  border-radius: inherit;
  z-index: -1;
  filter: blur(8px);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   HOVER-LIFT (CSS-only, optional touch via JS)
   ═══════════════════════════════════════════════════════════════════ */

.kv-hover-lift {
  transition: transform .25s var(--kv-ease-glide, cubic-bezier(.22,1,.36,1)),
              box-shadow .35s var(--kv-ease-glide, cubic-bezier(.22,1,.36,1));
}
.kv-hover-lift:hover, .kv-hover-lift.is-touched {
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════════
   prefers-reduced-motion
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .kv-card-feature, .kv-card-tile, .kv-hover-lift {
    transition: none !important;
  }
  .kv-card-feature:hover, .kv-card-tile:hover, .kv-hover-lift:hover {
    transform: none !important;
  }
}
