/* ==========================================================================
   MIRSYON — Projektseite (Referenzen ohne Namen)
   Karte je Projekt: Telefon als Körper mit echter Ansicht, Text daneben.
   Alle Ansichten öffnen sich als Blatt von unten (Wisch nach unten schließt).
   ========================================================================== */

.projekte { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }

.projekt {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.4rem, 3.5vw, 3rem) clamp(1.25rem, 3.5vw, 3rem);
  border-radius: var(--radius-lg);
}
.projekt.glas:hover { transform: none; }
.projekt:nth-child(even) .projekt__buehne { order: 2; }
@media (max-width: 860px) {
  .projekt { grid-template-columns: 1fr; gap: 1.5rem; }
  .projekt:nth-child(even) .projekt__buehne { order: 0; }
}

/* --- Bühne mit Telefon --- */
.projekt__buehne { position: relative; display: grid; place-items: center; min-width: 0; }
.projekt__buehne::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 108, 238, .34), rgba(123, 205, 254, .1) 48%, transparent 72%);
  filter: blur(40px); pointer-events: none;
}
.projekt__geraet { padding: 1.5rem 0 2.5rem; }
.projekt__geraet .geraet { width: min(250px, 58vw); }
.geraet__schirm video, .geraet__schirm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.projekt__monitor { width: 100%; perspective: 1600px; }
.monitor { transform: rotateX(6deg) rotateY(-5deg); overflow: hidden; border-radius: var(--radius); }
.monitor__leiste { display: flex; gap: 6px; padding: .6rem .8rem; border-bottom: 1px solid var(--linie-dunkel); }
.monitor__leiste i { width: 8px; height: 8px; border-radius: 50%; background: var(--hellblau); opacity: .45; }
.monitor__schirm img, .monitor__schirm video { width: 100%; height: auto; display: block; }

/* --- Text --- */
.projekt__text { min-width: 0; }
.projekt__kennung {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem;
  font-family: var(--font-display); font-size: var(--schrift-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-hell-leise);
}
.projekt__stand { display: inline-flex; align-items: center; gap: .5rem; color: var(--tuerkis); }
.projekt__stand::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.projekt__stand--entwicklung { color: var(--hellblau); }
.projekt__titel { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem); margin: 0 0 .4rem; letter-spacing: -.03em; text-wrap: balance; }
.projekt__art { font-family: var(--font-display); font-size: var(--schrift-md); color: var(--hellblau); margin: 0 0 .9rem; }
.projekt__kurz { color: var(--text-hell-sanft); max-width: 58ch; margin: 0; text-wrap: pretty; }
.projekt__label {
  display: block; margin: 1.5rem 0 .6rem; font-family: var(--font-display); font-weight: 500;
  font-size: var(--schrift-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--hellblau);
}
.projekt__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: var(--schrift-sm); color: var(--text-hell-sanft); }
.projekt__liste li { position: relative; padding-left: 1.45rem; text-wrap: pretty; }
.projekt__liste li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--verlauf); box-shadow: 0 0 10px rgba(123, 205, 254, .55);
}
.projekt__fuss { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.projekt__plattformen .projekt__label { margin: 0 0 .5rem; }
.projekt__plattformen .schilder { margin: 0; }
.projekt__mehr { padding: .8rem 1.35rem; }
.projekt__zahl { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; opacity: .72; }
.projekt__galerie[hidden] { display: none; }
@media (max-width: 560px) {
  .projekt__fuss { flex-direction: column; align-items: stretch; }
  .projekt__mehr { width: 100%; min-height: 48px; }
}

/* --- Blatt (Bottom-Sheet) --- */
.blatt { position: fixed; inset: 0; z-index: 140; }   /* über dem Assistenten (130) */
.blatt[hidden] { display: none; }
.blatt__schleier {
  position: absolute; inset: 0; background: rgba(2, 6, 16, .58); opacity: 0;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: opacity .42s cubic-bezier(.32, .72, 0, 1);
}
.blatt__flaeche {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(100%, 1180px);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top));
  display: flex; flex-direction: column; outline: none;
  border-radius: 28px 28px 0 0; border: 1px solid var(--linie-dunkel-hell); border-bottom: 0;
  background: linear-gradient(165deg, rgba(20, 43, 73, .88), rgba(6, 15, 28, .96));
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .65), inset 0 1px 0 var(--glas-licht);
  transform: translateY(105%); transition: transform .46s cubic-bezier(.32, .72, 0, 1);
  will-change: transform; touch-action: none;
}
.blatt.ist-offen .blatt__schleier { opacity: 1; }
.blatt.ist-offen .blatt__flaeche { transform: translateY(0); }
.blatt.zieht .blatt__flaeche, .blatt.zieht .blatt__schleier { transition: none; }
.blatt__griff { flex: none; display: grid; place-items: center; height: 30px; cursor: grab; }
.blatt__griff i { width: 42px; height: 5px; border-radius: 3px; background: rgba(234, 243, 250, .28); }
.blatt__kopf { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.1rem .6rem 1.5rem; }
.blatt__kopf h2 { margin: 0; font-size: var(--schrift-h3); letter-spacing: -.02em; }
.blatt__zu {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie-dunkel);
  background: var(--glas-stark); color: var(--text-hell); cursor: pointer; display: grid; place-items: center;
  transition: border-color var(--tempo), background var(--tempo);
}
.blatt__zu:hover { border-color: var(--hellblau); }
.blatt__inhalt {
  display: flex; gap: clamp(.8rem, 2vw, 1.4rem); align-items: flex-start;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-padding-inline: 1.5rem; touch-action: pan-x;
  padding: .4rem 1.5rem calc(1.6rem + env(safe-area-inset-bottom));
}
.blatt__inhalt::-webkit-scrollbar { height: 6px; }
.blatt__inhalt::-webkit-scrollbar-thumb { background: rgba(123, 205, 254, .25); border-radius: 3px; }
.galerie__bild { flex: none; scroll-snap-align: center; margin: 0; display: grid; gap: .6rem; justify-items: center; }
.galerie__bild img {
  display: block; width: auto; height: auto;
  max-height: min(60vh, 620px); max-width: min(84vw, 900px);
  border-radius: 18px; border: 1px solid var(--linie-dunkel); background: var(--tiefe-000);
  box-shadow: var(--schatten);
}
.galerie__bild--handy img { border-radius: 24px; }
.galerie__bild figcaption { font-size: var(--schrift-xs); color: var(--text-hell-leise); text-align: center; max-width: 36ch; }
.galerie__geraet {
  display: inline-block; margin-right: .5rem; padding: .15rem .55rem; border-radius: 999px;
  border: 1px solid var(--linie-dunkel); color: var(--text-hell-sanft); letter-spacing: .08em; text-transform: uppercase;
}
body.blatt-offen { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .blatt__flaeche, .blatt__schleier { transition: none; }
}

/* Store-Knoepfe (Vantao, Chef 14.11.2026): zweizeilig wie die offiziellen Badges, Glas statt Kasten. */
.laden { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .2rem; }
.laden__knopf { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px;
  padding: .45rem 1.1rem; border-radius: 14px; border: 1px solid var(--linie-dunkel-hell);
  background: linear-gradient(158deg, var(--glas-stark), rgba(10, 23, 40, .62));
  color: var(--text-hell); text-decoration: none; line-height: 1.15;
  transition: border-color .2s, transform .2s; }
.laden__knopf:hover, .laden__knopf:focus-visible { border-color: var(--hellblau); transform: translateY(-2px); }
.laden__klein { font-size: .72rem; color: var(--text-hell-sanft); letter-spacing: .02em; }
.laden__gross { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .laden__knopf { transition: none; } .laden__knopf:hover { transform: none; } }
