/*
  APPVOLUTION INSPIRATION — showcase experience styles.
  Also carries the showcase context panel on /kontakt.html (see the block at
  the end of this file).
  ---------------------------------------------------------------------------
  Loaded only by /inspiration.html. Every selector is prefixed `sc-` and no
  existing Appvolution class, element or custom property is redefined, so the
  rest of the website renders exactly as before.
*/

.sc-hero,
.sc-gallery,
.sc-promise,
.sc-saved { --sc-edge: rgba(178, 207, 237, .14); }

/* ------------------------------------------------------------------- hero */

.sc-hero {
  position: relative; overflow: clip; padding: 148px 0 96px;
  color: var(--text); background: var(--bg-deep);
}
.sc-hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; top: -420px; right: -120px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(80, 168, 248, .26), transparent 66%); filter: blur(14px);
}
.sc-hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; left: -260px; bottom: -360px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 76, 104, .2), transparent 68%);
}
.sc-hero > .hero-dots { opacity: .5; }
.sc-hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center; gap: 68px;
}
.sc-hero__copy { max-width: 760px; }
.sc-hero h1 { font-size: clamp(3.2rem, 5.4vw, 5.6rem); }
.sc-hero .lead { margin-top: 24px; color: #b8c8da; }

.sc-hero__stats {
  display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 42px 0 0;
  padding-top: 26px; border-top: 1px solid var(--sc-edge);
}
.sc-hero__stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.sc-hero__stats dt { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sc-hero__stats dd {
  margin: 0; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 830; line-height: 1; letter-spacing: -.04em;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Layered device scene: three concept previews and one phone. */
.sc-hero__stage { position: relative; min-height: 560px; }
.sc-stack { position: absolute; inset: 0; perspective: 1600px; }
.sc-stack__item {
  position: absolute; overflow: hidden; margin: 0;
  border: 1px solid rgba(184, 216, 245, .2); border-radius: 16px;
  background: #0a1524; box-shadow: 0 34px 90px rgba(0, 0, 0, .55);
}
.sc-stack__item img { width: 100%; height: auto; display: block; }
.sc-stack__item--back  { width: 62%; top: 2%;  left: 0;    height: 46%; transform: rotate(-3deg); opacity: .55; filter: saturate(.8); }
.sc-stack__item--mid   { width: 68%; top: 26%; right: 0;   height: 48%; transform: rotate(2.4deg); opacity: .8; }
.sc-stack__item--front { width: 78%; bottom: 2%; left: 4%; height: 54%; box-shadow: 0 44px 110px rgba(0, 0, 0, .62), 0 0 0 1px rgba(81, 222, 244, .12); }
.sc-stack__phone {
  position: absolute; right: 2%; bottom: 6%; z-index: 3; overflow: hidden; width: 22%; height: 42%; margin: 0;
  border: 5px solid #0d1a2b; border-radius: 26px; background: #0a1524;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.sc-stack__phone img { width: 100%; height: auto; display: block; }

/* The device previews stay still. A self-scrolling screenshot reads as a page
   that is moving on its own and pulls attention away from the actual choice. */

/* ---------------------------------------------------------------- promise */

.sc-promise__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sc-promise__grid article {
  position: relative; padding: 34px 30px 32px;
  border: 1px solid var(--sc-edge); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}
.sc-promise__grid span {
  display: block; margin-bottom: 18px; font-size: .82rem; font-weight: 830; letter-spacing: .16em;
  color: var(--page-b);
}
.sc-promise__grid h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
.sc-promise__grid p { margin: 14px 0 0; color: var(--text-soft); font-size: .97rem; }

/* --------------------------------------------------------------- controls */

.sc-controls {
  position: sticky; top: calc(var(--header-height) + 10px); z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 40px; padding: 12px 14px;
  border: 1px solid var(--sc-edge); border-radius: 18px;
  background: rgba(6, 16, 29, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .3);
}
.sc-filters { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.sc-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 15px;
  border: 1px solid transparent; border-radius: 999px;
  color: #b7c7d9; background: rgba(255, 255, 255, .04);
  font-size: .87rem; font-weight: 700; white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.sc-filter span {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted);
  font-size: .72rem; font-weight: 800;
}
.sc-filter:hover { color: #fff; background: rgba(81, 222, 244, .09); border-color: rgba(81, 222, 244, .26); }
.sc-filter[aria-pressed="true"] { color: #04101b; background: linear-gradient(120deg, var(--page-a), var(--page-b)); border-color: transparent; }
.sc-filter[aria-pressed="true"] span { background: rgba(4, 16, 27, .2); color: #04101b; }
.sc-filter:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.sc-view { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--sc-edge); border-radius: 999px; }
.sc-view__btn {
  min-height: 34px; padding: 6px 15px; border: 0; border-radius: 999px;
  color: #a9bed6; background: transparent; font-size: .84rem; font-weight: 700;
  transition: color .18s ease, background .18s ease;
}
.sc-view__btn.is-active { color: #04101b; background: var(--cyan); }
.sc-view__btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.sc-empty { max-width: 620px; margin: 0 0 32px; color: var(--muted); }
.sc-empty a { color: var(--page-b); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ cards */

.sc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px;
}
.sc-card {
  --sc-demo-accent: var(--cyan);
  position: relative; min-width: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sc-card.is-featured { grid-column: span 2; }
.sc-card.is-hidden { display: none; }
.sc-card.is-entering { opacity: 0; transform: translateY(14px) scale(.985); }

.sc-card__link {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--sc-edge); border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(11, 27, 46, .9), rgba(6, 17, 30, .96));
  transition: transform .32s var(--ease), border-color .28s ease, box-shadow .32s ease;
}
.sc-card__link:hover,
.sc-card__link:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--sc-demo-accent) 46%, transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 44px color-mix(in srgb, var(--sc-demo-accent) 14%, transparent);
}
.sc-card__link:focus-visible { outline: 2px solid var(--sc-demo-accent); outline-offset: 3px; }

/* Preview stage with a browser frame; the screenshot scrolls slowly. */
.sc-card__stage {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; padding: 20px 20px 0;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--sc-demo-accent) 16%, transparent), transparent 62%),
    color-mix(in srgb, var(--sc-demo-base) 78%, #06111e);
  border-bottom: 1px solid var(--sc-edge);
}
.sc-card.is-featured .sc-card__stage { aspect-ratio: 16 / 8.4; padding: 26px 34px 0; }

.sc-frame {
  position: absolute; overflow: hidden; display: block;
  border: 1px solid rgba(196, 220, 244, .22); background: #0b1524;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .48);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}
.sc-frame__view { display: block; overflow: hidden; }
.sc-frame__view img { display: block; width: 100%; height: auto; }

.sc-frame--desktop {
  inset: 20px 20px auto; border-radius: 10px 10px 0 0;
  height: calc(100% - 20px);
}
.sc-card.is-featured .sc-frame--desktop { inset: 26px 34px auto; height: calc(100% - 26px); }
.sc-frame__bar {
  display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  background: #101f33; border-bottom: 1px solid rgba(196, 220, 244, .14);
}
.sc-frame__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(196, 220, 244, .3); }
.sc-frame__bar b {
  margin-left: 10px; padding: 2px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .05); color: #94a7bd; font-size: .64rem; font-weight: 600;
}
.sc-frame--desktop .sc-frame__view { height: calc(100% - 26px); }

.sc-frame--mobile {
  left: 50%; top: 26px; width: 190px; height: calc(100% - 26px);
  border-width: 5px; border-color: #0d1a2b; border-radius: 24px 24px 0 0;
  transform: translateX(-50%) translateY(14px); opacity: 0; pointer-events: none;
}
.sc-frame--mobile .sc-frame__view { height: 100%; }

.sc-grid[data-view="mobile"] .sc-frame--desktop { opacity: 0; transform: translateY(10px) scale(.97); }
.sc-grid[data-view="mobile"] .sc-frame--mobile { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Each preview shows the top of the demo and holds there. The card lifts on
   hover; the screenshot itself does not move. */

/* Card text */
.sc-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 26px 26px 24px; }
.sc-card.is-featured .sc-card__body { padding: 30px 34px 30px; }
.sc-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sc-card__cat {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sc-demo-accent) 40%, transparent);
  color: color-mix(in srgb, var(--sc-demo-accent) 82%, #ffffff);
  background: color-mix(in srgb, var(--sc-demo-accent) 10%, transparent);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.sc-card__industry { color: var(--muted); font-size: .8rem; font-weight: 650; }
.sc-card__title { color: #fff; font-size: clamp(1.35rem, 1.9vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.sc-card.is-featured .sc-card__title { font-size: clamp(1.6rem, 2.3vw, 2.15rem); }
.sc-card__claim { color: var(--text-soft); font-size: .98rem; line-height: 1.55; }
.sc-card__style { color: var(--muted-2); font-size: .8rem; font-weight: 620; }

.sc-card__features { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.sc-card__features li {
  padding: 5px 10px; border: 1px solid var(--sc-edge); border-radius: 8px;
  color: #c0d0e1; background: rgba(255, 255, 255, .028); font-size: .75rem; font-weight: 640;
}
.sc-card__cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 18px;
  color: color-mix(in srgb, var(--sc-demo-accent) 85%, #ffffff); font-size: .92rem; font-weight: 780;
}
.sc-card__cta i { font-style: normal; transition: transform .2s ease; }
.sc-card__link:hover .sc-card__cta i { transform: translate(3px, -3px); }

/* ------------------------------------------------------------------ saved */

.sc-saved__panel {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr); align-items: center; gap: 40px;
  padding: 40px; border: 1px solid var(--sc-edge); border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(12, 30, 51, .95), rgba(6, 17, 30, .96));
}
.sc-saved__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.sc-saved__list li {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px;
  border: 1px solid rgba(81, 222, 244, .3); border-radius: 10px;
  background: rgba(81, 222, 244, .07); color: #dcebf8; font-size: .84rem; font-weight: 680;
}
.sc-saved__list em { color: var(--muted); font-style: normal; font-size: .76rem; }
.sc-saved__list button {
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px;
  color: #9fb4c9; background: rgba(255, 255, 255, .07); font-size: .8rem; line-height: 1;
}
.sc-saved__list button:hover { color: #fff; background: rgba(255, 76, 104, .3); }
.sc-saved__actions { display: flex; flex-direction: column; gap: 10px; }

/* Referenzen: die Live-Projekte stehen gleichwertig nebeneinander, die
   Ausblick-Karte laeuft darunter ueber die volle Breite. Nur fuer #referenzen -
   das Demo-Raster in #galerie bleibt dreispaltig. */
#referenzen .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#referenzen .sc-card.is-featured { grid-column: auto; }
#referenzen .sc-card--outlook { grid-column: 1 / -1; }

@media (max-width: 760px) {
  #referenzen .sc-grid { grid-template-columns: minmax(0, 1fr); }
  #referenzen .sc-card--outlook { grid-column: auto; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .sc-hero { padding: 120px 0 76px; }
  .sc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .sc-hero__stage { min-height: 460px; max-width: 620px; width: 100%; margin-inline: auto; }
  .sc-controls { top: 12px; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-card.is-featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  .sc-promise__grid { grid-template-columns: 1fr; }
  .sc-saved__panel { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
}

@media (max-width: 760px) {
  .sc-grid { grid-template-columns: minmax(0, 1fr); }
  .sc-card.is-featured { grid-column: auto; }
  .sc-card.is-featured .sc-card__stage { aspect-ratio: 16 / 10; padding: 20px 20px 0; }
  .sc-card.is-featured .sc-frame--desktop { inset: 20px 20px auto; height: calc(100% - 20px); }
  .sc-card.is-featured .sc-card__body { padding: 24px 22px; }
  .sc-hero__stage { min-height: 360px; }
  .sc-controls { flex-direction: column; align-items: stretch; }
  .sc-view { align-self: flex-start; }
  .sc-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
}

@media (max-width: 520px) {
  .sc-hero__stats { gap: 16px 26px; }
  .sc-card__body { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-card__link, .sc-frame { transition: none; }
  .sc-card__link:hover { transform: none; }
}

/* --------------------------------------------- contact page context panel */
/* Rendered by contact-context.js on /kontakt.html when a visitor arrives from
   a concept demo. Nothing here applies unless that panel exists. */

.showcase-context {
  margin: 26px 0 0; padding: 24px 26px;
  border: 1px solid rgba(81, 222, 244, .28); border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(81, 222, 244, .08), rgba(80, 168, 248, .04));
}
.showcase-context__label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--cyan); font-size: .72rem; font-weight: 820; letter-spacing: .14em; text-transform: uppercase;
}
.showcase-context__label::before { content: ""; width: 18px; height: 2px; border-radius: 99px; background: currentColor; }
.showcase-context h3 { font-size: clamp(1.15rem, 1.9vw, 1.42rem); }
.showcase-context__demos { margin: 10px 0 0; font-size: .92rem; }
.showcase-context__demos a { color: var(--page-b); text-decoration: underline; text-underline-offset: 3px; }
.showcase-context__intro { margin: 16px 0 8px; color: var(--text-soft); font-size: .9rem; }
.showcase-context__chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.showcase-context__chips li {
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: rgba(255, 255, 255, .04); color: #d8e6f4; font-size: .82rem; font-weight: 680;
}
.showcase-context__note { margin: 16px 0 0; color: var(--muted); font-size: .82rem; }
