/* Webdesign – Projektvitrine */

.wd-portfolio {
  margin: 4.5rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wd-portfolio-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.25rem;
}

.wd-portfolio-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--primary-color);
  font-weight: 700;
}

.wd-portfolio-text {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--third-color);
}

.wd-project {
  position: relative;
}

.wd-project + .wd-project {
  margin-top: 4.5rem;
}

.wd-project-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--primary-color);
  font-weight: 700;
}

.wd-project-lede {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--third-color);
}

.wd-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.wd-skills li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-color);
  background: var(--webdesign-bg);
  border: none;
}

[data-theme="dark"] .wd-skills li {
  color: #ffffff;
  background: rgba(0, 117, 255, 0.55);
}

.wd-cta {
  display: inline-block;
  color: var(--webdesign);
  font-weight: 700;
  box-shadow: inset 0 -0.2em 0 var(--webdesign);
  transition: box-shadow 0.45s ease, color 0.2s ease;
  text-decoration: none;
}

.wd-cta:hover {
  box-shadow: inset 0 -2.85em 0 var(--webdesign-bg);
  color: var(--webdesign) !important;
}

.wd-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: #0a0a0c;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

/* Browser-Mockup */
.wd-b {
  text-align: center;
}

.wd-b .wd-project-lede {
  margin-left: auto;
  margin-right: auto;
}

.wd-b .wd-b-stage {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 960px;
  padding: 1.25rem 1.5rem;
  perspective: 1200px;
  overflow: visible;
}

/* Kein globaler Content-Link-Hover (inset box-shadow) auf dem Screenshot */
.content a.wd-browser,
.content a.wd-browser:hover,
.content a.wd-browser:focus-visible {
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-weight: inherit;
  color: inherit;
  background: #1a1a1f;
  transition: none;
}

.wd-browser {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 12px 12px 8px 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--shadow-color) 70%, transparent);
  background: #1a1a1f;
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
}

.wd-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: #111114;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-browser-dots {
  display: flex;
  gap: 0.35rem;
}

.wd-browser-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3a3a40;
}

.wd-browser-dots i:nth-child(1) { background: #ff5f57; }
.wd-browser-dots i:nth-child(2) { background: #febc2e; }
.wd-browser-dots i:nth-child(3) { background: #28c840; }

.wd-browser-url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: #0a0a0c;
  color: #9aa0a6;
  font-size: 0.75rem;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wd-b .wd-b-copy {
  max-width: 36rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .wd-b .wd-b-stage {
    perspective: none;
  }

  .wd-browser {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .wd-portfolio {
    margin-top: 3rem;
  }

  .wd-project + .wd-project {
    margin-top: 3.5rem;
  }

  .wd-b .wd-b-stage {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-browser {
    transform: none !important;
  }
}
