/* wowobot – Referenz-UI (Start „Projekt kurz klären“, Referenzen-Showcase, Zusatzleistungen) */

/* ----- Start: Projekt kurz klären ----- */
#projekt-klaeren {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.project-clarify-card {
  background: var(--bg-deep, #0a0a0e);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius, 12px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 42px rgba(6, 182, 212, 0.08);
}

.project-clarify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 960px) {
  /* Handheld / iPad hoch: wie Referenz – Raster oben, dann Text · Button kleiner */
  .project-clarify-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2.5vw, 1.15rem);
  }

  .project-clarify-right {
    order: -1;
    width: 100%;
  }

  .project-clarify-left {
    width: 100%;
  }

  #projekt-klaeren .project-clarify-card {
    padding: 1.2rem clamp(1rem, 4vw, 1.35rem);
  }

  .project-clarify-title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .project-clarify-list {
    margin-bottom: 0.9rem;
  }

  .project-clarify-list li {
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
  }

  .project-clarify-cta-wrap {
    margin-top: 0.25rem;
  }

  .project-clarify-cta.project-clarify-cta--prominent {
    max-width: 14.5rem;
    padding: 0.58rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .project-clarify-note--under-cta {
    margin-top: 0.65rem;
    font-size: 0.74rem;
    max-width: 19rem;
  }

  .ref-raster-heading {
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
  }

  .project-clarify-right .ref-tiles-grid {
    gap: 0.65rem;
  }
}

.project-clarify-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.project-clarify-title {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary, #e8ecf0);
  margin: 0 0 1.1rem;
}

.project-clarify-title-line2 {
  display: block;
  margin-top: 0.15rem;
  font-weight: 700;
}

.project-clarify-list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.project-clarify-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.65rem;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.92rem;
  line-height: 1.45;
}

.project-clarify-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 3px;
  background: var(--accent, #06b6d4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.project-clarify-list li::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.42rem;
  width: 0.35rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.project-clarify-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--accent, #06b6d4);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.35);
  transition: box-shadow 0.25s, transform 0.2s, background 0.2s;
}

.project-clarify-cta:hover {
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.project-clarify-cta-wrap {
  margin-top: 0.5rem;
  text-align: center;
}

.project-clarify-cta.project-clarify-cta--prominent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  max-width: 15rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: 0 3px 18px rgba(34, 197, 94, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-clarify-cta.project-clarify-cta--prominent:hover {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 6px 36px rgba(34, 197, 94, 0.5);
  transform: translateY(-2px);
}

.project-clarify-cta.project-clarify-cta--prominent:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.85);
  outline-offset: 3px;
}

.project-clarify-note {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
  max-width: 36ch;
}

.project-clarify-note--under-cta {
  margin: 1rem auto 0;
  max-width: 24rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.95);
}

.project-clarify-note-line {
  display: block;
}

.project-clarify-note-line + .project-clarify-note-line {
  margin-top: 0.4rem;
}

.ref-raster-heading {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.ref-raster-dot {
  opacity: 0.7;
}

.ref-raster-accent {
  color: var(--accent, #06b6d4);
}

.ref-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

/* Referenz-Kacheln: festes Querformat wie Laptop-Screenshot, ohne Stretch */
.project-clarify-right .ref-tile-media {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 12px 32px rgba(0, 0, 0, 0.45);
}

.project-clarify-right .ref-tile-kenburns .ref-tile-img {
  animation: none;
  transform: none;
}

.project-clarify-right .ref-tile-label {
  padding: 0.45rem 0.4rem 0;
  font-size: 0.76rem;
}

@media (max-width: 640px) {
  .ref-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ref-tile-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.ref-tile-link:hover {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.ref-tile-link:focus-visible {
  outline: 2px solid var(--accent, #06b6d4);
  outline-offset: 2px;
}

.ref-tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #060809;
}

.ref-tile-kenburns .ref-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform-origin: 50% 0%;
}

@media (prefers-reduced-motion: no-preference) {
  .ref-tile-kenburns .ref-tile-img {
    animation: wowobot-ref-kenburns 14s ease-in-out infinite alternate;
  }
}

@keyframes wowobot-ref-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

.ref-tile-label {
  display: block;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary, #e8ecf0);
  text-align: center;
  line-height: 1.3;
}

/* Vaihingen: Hero-Video Vollfläche + Text-Overlay (wie auf der Live-Website; Text liegt nicht im Videostream) */
.ref-tile-vaihingen-motion {
  display: block;
  height: 100%;
}

.ref-tile-vaihingen-hero {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #060809;
}

.ref-tile-vaihingen-hero .ref-tile-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.ref-tile-vaihingen-hero .ref-tile-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.ref-tile-vaihingen-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.ref-tile-vaihingen-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.45rem 0.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.04) 48%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.ref-tile-vaihingen-brand {
  font-size: clamp(0.58rem, 0.95vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.ref-tile-vaihingen-tagline {
  font-size: clamp(0.48rem, 0.82vw, 0.68rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 96%;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.ref-tile-vaihingen-static {
  display: none;
  height: 100%;
  width: 100%;
}

.ref-tile-vaihingen-static .ref-tile-vaihingen-hero {
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .ref-tile-kenburns .ref-tile-img {
    animation: none;
  }
}

body.no-motion .ref-tile-vaihingen-motion {
  display: none !important;
}

body.no-motion .ref-tile-vaihingen-static {
  display: block !important;
}

/* Lokales .mov spielt z. B. in manchen Browsern nicht → Poster wie bei reduced-motion */
.ref-tile-link--vaihingen.ref-tile-vaihingen-video-failed .ref-tile-vaihingen-motion {
  display: none !important;
}

.ref-tile-link--vaihingen.ref-tile-vaihingen-video-failed .ref-tile-vaihingen-static {
  display: block !important;
}

@media (prefers-reduced-motion: reduce) {
  .ref-tile-vaihingen-motion {
    display: none !important;
  }
  .ref-tile-vaihingen-static {
    display: block !important;
  }
}

/* ----- Zusatzleistungen ----- */
#zusatzleistungen {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.zusatz-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.zusatz-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent, #06b6d4);
  font-weight: 700;
  margin: 0 0 1rem;
}

.zusatz-headline {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary, #e8ecf0);
  margin: 0 auto;
  max-width: 42rem;
  line-height: 1.35;
}

.zusatz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.zusatz-card {
  background: var(--bg-card, rgba(18, 22, 28, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius, 12px);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.zusatz-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.zusatz-card-icon {
  color: var(--accent, #06b6d4);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.zusatz-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
  color: var(--text-primary, #e8ecf0);
}

.zusatz-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
}

.zusatz-cta-wrap {
  text-align: center;
}

.zusatz-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.75rem;
  background: var(--accent, #06b6d4);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.3);
  transition: box-shadow 0.25s, transform 0.2s;
}

.zusatz-cta:hover {
  box-shadow: 0 0 36px rgba(6, 182, 212, 0.45);
  transform: translateY(-1px);
}

.zusatz-footnote {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
}

@media (max-width: 900px) {
  #zusatzleistungen {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .zusatz-section-head {
    margin-bottom: 1.35rem;
  }

  .zusatz-kicker {
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .zusatz-headline {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    line-height: 1.28;
    max-width: 22rem;
    padding: 0 0.35rem;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }

  .zusatz-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .zusatz-card {
    padding: 1.1rem 1rem;
  }

  .zusatz-card-icon {
    margin-bottom: 0.55rem;
  }

  .zusatz-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .zusatz-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
  }

  .zusatz-card p {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  .zusatz-cta-wrap .zusatz-footnote {
    font-size: 0.78rem;
    margin-top: 0.65rem;
    padding: 0 0.5rem;
    line-height: 1.45;
  }

  .zusatz-cta {
    padding: 0.78rem 1.35rem;
    font-size: 0.92rem;
  }
}

/* ----- Referenzen: Showcase-Karten ----- */
.ref-page-intro {
  text-align: center;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-size: 0.98rem;
}

.project-showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.project-showcase-card {
  background: var(--bg-deep, #0a0a0e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 1.25rem;
  box-shadow: 0 0 48px rgba(6, 182, 212, 0.12);
}

.project-showcase-card__top {
  margin-bottom: 1rem;
}

.project-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 0.75rem;
}

.project-showcase-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success, #22c55e);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.project-showcase-badge .badge-dot--external {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
}

.project-showcase-card--external.project-showcase-card--view-mobile .project-showcase-gate {
  inset: auto;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(390px, 100%);
  max-width: 390px;
  transform: translateX(-50%);
}

.project-showcase-view-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.view-toggle-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-primary, #e8ecf0);
  transition: background 0.2s, color 0.2s;
}

.view-toggle-btn.is-active {
  background: #f1f5f9;
  color: #0f172a;
}

.view-toggle-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.06);
}

.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

.browser-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: #12161d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-frame__lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-frame__lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-frame__lights span:nth-child(1) {
  background: #ff5f56;
}
.browser-frame__lights span:nth-child(2) {
  background: #ffbd2e;
}
.browser-frame__lights span:nth-child(3) {
  background: #27c93f;
}

.browser-frame__url {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
}

.browser-frame__body {
  position: relative;
  background: transparent;
}

.browser-frame__body-inner {
  position: relative;
  width: 100%;
  transition: max-width 0.35s ease;
  background: transparent;
  min-height: 0;
}

/* Eine feste 16:9-Fläche: kein extra hoher Streifen unter dem Hero (kein Leerraum). */
.project-showcase-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  background: #0f172a;
}

/* Mobil-Toggle: gleiche Rahmengröße wie Desktop (16:9); iframe nur schmaler & zentriert für Responsiveness */
.project-showcase-stage .project-showcase-gate {
  position: absolute;
  inset: 0;
  min-height: 0;
  isolation: isolate;
}

.project-showcase-gate-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.68);
  z-index: 1;
  pointer-events: none;
}

.project-showcase-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.project-showcase-gate--poster-failed {
  background: linear-gradient(155deg, #1e293b 0%, #0f172a 55%, #020617 100%);
}

.project-showcase-gate--poster-failed .project-showcase-poster {
  display: none;
}

button.project-showcase-play,
a.project-showcase-play {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0;
  background: transparent;
  color: #f8fafc;
  text-align: center;
  max-width: min(22rem, 92%);
}

a.project-showcase-play {
  text-decoration: none;
  color: inherit;
}

.project-showcase-play__circle {
  width: min(92px, 20vw);
  height: min(92px, 20vw);
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-showcase-play:hover .project-showcase-play__circle,
.project-showcase-play:focus-visible .project-showcase-play__circle {
  transform: scale(1.04);
  box-shadow: 0 12px 48px rgba(34, 197, 94, 0.55);
}

.project-showcase-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 12px;
}

.project-showcase-play__icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

.project-showcase-play__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 16px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(0, 0, 0, 0.55);
}

.project-showcase-play__sub {
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 1;
  line-height: 1.45;
  max-width: 18rem;
  color: rgba(248, 250, 252, 0.98);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.8);
}

.project-showcase-card--gate-open .project-showcase-gate {
  display: none;
}

.project-showcase-stage .project-showcase-iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.project-showcase-card--view-mobile .project-showcase-stage .project-showcase-iframe {
  inset: auto;
  left: 50%;
  top: 0;
  width: min(390px, 100%);
  max-width: 390px;
  height: 100%;
  transform: translateX(-50%);
}

.project-showcase-iframe[hidden] {
  display: none !important;
}

.project-showcase-card--gate-open .project-showcase-iframe:not([hidden]) {
  display: block !important;
}

/* Referenzen / Showcase: Mobil & Notch (Touch-Ziele, Umbrüche, keine Überbreite) */
@media (max-width: 768px) {
  .project-showcase-stack {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .project-showcase-card {
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 1.25rem;
    padding-bottom: 1rem;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .project-showcase-card__top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .project-showcase-view-toggle {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .view-toggle-btn {
    flex: 1 1 0;
    min-height: 44px;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
    -webkit-tap-highlight-color: transparent;
  }

  .project-showcase-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    font-size: 0.62rem;
  }

  .browser-frame,
  .browser-frame__body-inner,
  .project-showcase-stage {
    max-width: 100%;
    box-sizing: border-box;
  }

  button.project-showcase-play,
  a.project-showcase-play {
    max-width: min(22rem, calc(100% - 1rem));
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .project-showcase-play__circle {
    min-width: 72px;
    min-height: 72px;
    -webkit-tap-highlight-color: transparent;
  }

  .project-showcase-play__title {
    font-size: 0.98rem;
  }

  .project-showcase-play__sub {
    font-size: 0.78rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .browser-frame__chrome {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .browser-frame__url {
    min-width: 0;
    font-size: 0.72rem;
  }
}
