/* Schaufenster «Ihre potenzielle Website»: Laptop, iPad, Handy mit scrollbaren Beispiel-Websites.
   Einfärben über Variablen auf .sc oder einem Elternelement:
   --sc-ink (Text), --sc-muted, --sc-accent, --sc-line, --sc-device (Gehäuse), --sc-font, --sc-radius */
.sc { --sc-ink: #15140f; --sc-muted: #6b675e; --sc-accent: #e0542a; --sc-line: rgba(0,0,0,.14);
  --sc-device: #1b1b1d; --sc-font: inherit; --sc-radius: 999px; font-family: var(--sc-font); color: var(--sc-ink); }
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }

.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 28px; padding: 0; list-style: none; }
.sc-tab { min-height: 44px; padding: 0 18px; border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
  background: transparent; color: var(--sc-ink); font: inherit; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sc-tab:hover { border-color: var(--sc-ink); }
.sc-tab[aria-selected="true"] { background: var(--sc-ink); color: #fff; border-color: var(--sc-ink); }
.sc-tab:focus-visible, .sc-pfeil:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 2px; }

.sc-buehne { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; aspect-ratio: 1100 / 640; }
.sc-geraet { position: absolute; }
.sc-rahmen { position: relative; background: var(--sc-device); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset; }
.sc-bild { position: absolute; overflow-y: auto; overflow-x: hidden; background: #fff; overscroll-behavior: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sc-bild::-webkit-scrollbar { display: none; }
.sc-bild img { display: block; width: 100%; height: auto; transition: opacity .35s ease; }
.sc-bild img.sc-weg { opacity: 0; }

/* Laptop */
.sc-laptop { left: 6%; top: 0; width: 70%; }
.sc-laptop .sc-rahmen { border-radius: 14px 14px 0 0; aspect-ratio: 16 / 10.4; }
.sc-laptop .sc-bild { inset: 3.2% 2.4% 4.2%; border-radius: 3px; }
.sc-laptop .sc-sockel { height: 0; border-top: 14px solid #c9c9cd; border-left: 26px solid transparent; border-right: 26px solid transparent;
  margin: 0 -7%; border-radius: 0 0 10px 10px; position: relative; }
.sc-laptop .sc-sockel::after { content: ""; position: absolute; left: 50%; top: -14px; width: 16%; height: 6px; transform: translateX(-50%);
  background: #b2b2b7; border-radius: 0 0 8px 8px; }
/* Tablet */
.sc-tablet { right: 2%; top: 14%; width: 25%; z-index: 2; }
.sc-tablet .sc-rahmen { border-radius: 22px; aspect-ratio: 820 / 1180; }
.sc-tablet .sc-bild { inset: 4.2% 5.2%; border-radius: 6px; }
/* Handy */
.sc-handy { left: 0; bottom: 0; width: 14.5%; z-index: 3; }
.sc-handy .sc-rahmen { border-radius: 30px; aspect-ratio: 390 / 820; }
.sc-handy .sc-bild { inset: 3.2% 5.5%; border-radius: 22px; }
.sc-handy .sc-rahmen::after { content: ""; position: absolute; top: 4.3%; left: 50%; width: 30%; height: 3.2%; transform: translateX(-50%);
  background: var(--sc-device); border-radius: 20px; z-index: 2; }

.sc-fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px; margin: 24px auto 0; }
.sc-name { margin: 0; font-size: 15px; color: var(--sc-muted); }
.sc-name b { color: var(--sc-ink); font-weight: 600; }
.sc-pfeile { display: flex; gap: 8px; flex: none; }
.sc-pfeil { width: 48px; height: 48px; border-radius: var(--sc-radius); border: 1px solid var(--sc-line); background: transparent;
  color: var(--sc-ink); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sc-pfeil:hover { border-color: var(--sc-ink); }
.sc-hinweis { max-width: 1100px; margin: 10px auto 0; font-size: 13px; color: var(--sc-muted); }

/* Handy und kleine Tablets: Laptop oben, iPad und Handy darunter nebeneinander */
@media (max-width: 760px) {
  .sc-buehne { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; align-items: end; }
  .sc-geraet { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; }
  .sc-laptop { grid-column: 1 / -1; padding: 0 5%; }
  .sc-tablet { justify-self: end; width: 86%; }
  .sc-handy { justify-self: start; width: 58%; }
  .sc-laptop .sc-sockel { border-top-width: 9px; border-left-width: 16px; border-right-width: 16px; }
  .sc-fuss { flex-wrap: wrap; }
  .sc-tabs { gap: 6px; }
  .sc-tab { padding: 0 14px; font-size: 14px; }
}
/* Touch-Geräte: Wischen scrollt immer die Seite, nie in einem Bildschirm hängen bleiben.
   Die Bildschirme laufen automatisch durch (showcase.js). */
@media (pointer: coarse) {
  .sc-bild { overflow-y: hidden; touch-action: pan-y; }
}
@media (prefers-reduced-motion: reduce) { .sc-bild img { transition: none; } }

/* Live-Modus: Beispielseite läuft als iframe im Gerät, skaliert auf die Bildschirmbreite */
.sc-bild.sc-live { overflow: hidden; }
.sc-bild iframe.sc-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity .5s ease; }
.sc-bild iframe.sc-frame.sc-an { opacity: 1; }
.sc-bild.sc-live > img { position: absolute; left: 0; top: 0; }   /* Standbild als Platzhalter unter der Live-Seite */
@media (pointer: coarse) { .sc-bild iframe.sc-frame { pointer-events: none; } }
