.sgcw-dm {
  --sgcw-dm-accent: #b21f2d;
  --sgcw-dm-text: #172033;
  --sgcw-dm-muted: #667085;
  --sgcw-dm-border: #e5e7eb;
  --sgcw-dm-surface: #ffffff;
  --sgcw-dm-soft: #f7f8fa;
  width: 100%;
  color: var(--sgcw-dm-text);
  font-family: inherit;
}

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

.sgcw-dm-intro {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sgcw-dm-accent) 18%, var(--sgcw-dm-border));
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--sgcw-dm-accent) 13%, transparent), transparent 42%),
    var(--sgcw-dm-surface);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.sgcw-dm-intro-mark {
  flex: 0 0 auto;
  width: 8px;
  height: 42px;
  border-radius: 99px;
  background: var(--sgcw-dm-accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--sgcw-dm-accent) 10%, transparent);
}

.sgcw-dm-intro p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.sgcw-dm-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
}

.sgcw-dm-cols-2 .sgcw-dm-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgcw-dm-cols-3 .sgcw-dm-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sgcw-dm-cols-4 .sgcw-dm-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sgcw-dm-item {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 118px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--sgcw-dm-border);
  border-radius: 16px;
  color: var(--sgcw-dm-text);
  background: var(--sgcw-dm-surface);
  box-shadow: 0 7px 20px rgba(16, 24, 40, 0.055);
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sgcw-dm-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -20% -70% 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sgcw-dm-accent) 8%, transparent);
  transition: transform 220ms ease;
}

.sgcw-dm a.sgcw-dm-item:hover,
.sgcw-dm a.sgcw-dm-item:focus-visible {
  border-color: color-mix(in srgb, var(--sgcw-dm-accent) 42%, var(--sgcw-dm-border));
  color: var(--sgcw-dm-text);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.11);
  transform: translateY(-3px);
}

.sgcw-dm a.sgcw-dm-item:hover::before,
.sgcw-dm a.sgcw-dm-item:focus-visible::before {
  transform: scale(1.18);
}

.sgcw-dm a.sgcw-dm-item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sgcw-dm-accent) 35%, transparent);
  outline-offset: 3px;
}

.sgcw-dm-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.sgcw-dm-item small {
  overflow: hidden;
  color: var(--sgcw-dm-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.075em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.sgcw-dm-item strong {
  color: inherit;
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sgcw-dm-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--sgcw-dm-accent);
  background: color-mix(in srgb, var(--sgcw-dm-accent) 10%, white);
  font-size: 1.25rem;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease;
}

.sgcw-dm a.sgcw-dm-item:hover .sgcw-dm-arrow,
.sgcw-dm a.sgcw-dm-item:focus-visible .sgcw-dm-arrow {
  color: white;
  background: var(--sgcw-dm-accent);
  transform: translateX(3px);
}

.sgcw-dm-aktuell {
  border-color: var(--sgcw-dm-accent);
  color: #ffffff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sgcw-dm-accent) 87%, #000), var(--sgcw-dm-accent));
  box-shadow: 0 15px 34px color-mix(in srgb, var(--sgcw-dm-accent) 22%, transparent);
}

.sgcw-dm-aktuell::before {
  inset: -35% -5% auto auto;
  width: 150px;
  background: rgba(255, 255, 255, 0.1);
}

.sgcw-dm-aktuell small,
.sgcw-dm-aktuell:hover,
.sgcw-dm-aktuell:focus-visible {
  color: #ffffff !important;
}

.sgcw-dm-badge {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 0.32rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: currentColor;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sgcw-dm-inaktiv {
  cursor: default;
  border-style: dashed;
  color: #667085;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(16, 24, 40, 0.018) 8px, rgba(16, 24, 40, 0.018) 16px),
    var(--sgcw-dm-soft);
  box-shadow: none;
}

.sgcw-dm-inaktiv .sgcw-dm-badge {
  color: #7a2e2e;
  background: #fff4f3;
}

.sgcw-dm-current-page:not(.sgcw-dm-aktuell) {
  border-color: var(--sgcw-dm-accent);
  box-shadow: inset 4px 0 0 var(--sgcw-dm-accent), 0 7px 20px rgba(16, 24, 40, 0.055);
}

@media (max-width: 782px) {
  .sgcw-dm-cols-3 .sgcw-dm-menu,
  .sgcw-dm-cols-4 .sgcw-dm-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .sgcw-dm-cols-2 .sgcw-dm-menu,
  .sgcw-dm-cols-3 .sgcw-dm-menu,
  .sgcw-dm-cols-4 .sgcw-dm-menu {
    grid-template-columns: 1fr;
  }

  .sgcw-dm-item {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sgcw-dm-item,
  .sgcw-dm-item::before,
  .sgcw-dm-arrow {
    transition: none;
  }
}
