/* Agentur NEORATE – Beispiel-App im Handy-Rahmen
   Wird nur auf der Seite App-Entwicklung geladen (nach style.css, nutzt dessen Farbvariablen). */

.demo__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .demo__grid { grid-template-columns: 1fr; } }
.demo__try { font-weight: 600; color: var(--ink); margin: 1.4rem 0 0.7rem; }
.demo__note { margin: 1.5rem 0 0; padding-left: 1rem; border-left: 4px solid var(--orange); color: var(--muted); font-size: 0.97rem; }

/* Orange Fläche hinter dem Handy */
.demo__phone { position: relative; margin: 0; padding: 1.5rem 0; }
.demo__phone::before {
  content: "";
  position: absolute; z-index: 0;
  inset: 0.5rem 4% 0.5rem 4%;
  background: var(--orange);
  border-radius: 32px;
  transform: rotate(-3deg);
}
.phone__tools { position: relative; z-index: 1; margin: 0.8rem 0 0; text-align: center; }
.phone__reset {
  font: 600 0.95rem var(--font-body); color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.55rem 1.1rem; cursor: pointer;
}
.phone__reset:hover { background: var(--ink); color: var(--white); }
.phone__reset[hidden] { display: none; }

/* Handy */
.phone {
  position: relative; z-index: 1;
  width: min(100%, 414px);
  width: min(100%, clamp(320px, calc((100vh - 8rem) * 0.5 + 24px), 414px));
  width: min(100%, clamp(320px, calc((100svh - 8rem) * 0.5 + 24px), 414px));
  margin-inline: auto;
  padding: 18px 12px 16px;
  background: #0b0c10;
  border-radius: 54px;
  box-shadow: 0 40px 70px -30px rgba(20, 22, 28, 0.7), inset 0 0 0 2px #2b2f3a;
}
.phone::before {
  content: "";
  position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 64px; height: 5px; border-radius: 3px;
  background: #2b2f3a;
}
.phone__screen {
  position: relative;
  aspect-ratio: 390 / 780;
  border-radius: 40px;
  overflow: hidden;
  background: #14161c;
}
.phone__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.15) 0%, rgba(20, 22, 28, 0.7) 100%);
}
.phone.is-running .phone__screen::after { display: none; }
.phone__frame { display: block; border: 0; background: #14161c; }

.phone__start {
  position: absolute; z-index: 2; left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.6rem;
  white-space: nowrap;
  background: var(--orange); color: var(--ink);
  border: 0; border-radius: 999px;
  padding: 1rem 1.6rem;
  font: 600 1.05rem/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 129, 23, 0.55);
  animation: demo-pulse 2.4s ease-out infinite;
}
.phone__start svg { width: 1.25rem; height: 1.25rem; }
.phone__start:hover { background: var(--white); }
@keyframes demo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 129, 23, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(255, 129, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 129, 23, 0); }
}
@media (prefers-reduced-motion: reduce) { .phone__start { animation: none; } }
@media (max-width: 460px) {
  .phone { padding: 16px 9px 13px; border-radius: 46px; }
  .phone__screen { border-radius: 34px; }
}

/* Vollbild-Ansicht der Demo (am Smartphone) */
.demo-modal {
  position: fixed; inset: 0; z-index: 300;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: #14161c;
}
.demo-modal[hidden] { display: none; }
.demo-modal__bar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.4rem; padding: 0.4rem 0.9rem;
  background: #0b0c10; color: #dfe3ec;
  font: 500 0.9rem/1.3 var(--font-body);
  border-bottom: 1px solid #2b2f3a;
}
.demo-modal__close {
  flex: none;
  font: 600 0.95rem/1 var(--font-body);
  color: var(--ink); background: var(--orange);
  border: 0; border-radius: 999px; padding: 0.7rem 1.1rem; cursor: pointer;
}
.demo-modal__close:hover { background: var(--white); }
.demo-modal__screen { flex: 1; min-height: 0; }
html.demo-open, html.demo-open body { overflow: hidden; }
.phone { scroll-margin-top: 5.5rem; }
